* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f7fa;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header,
.site-nav,
.site-footer,
.admin-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-header,
.site-nav,
.site-footer,
.admin-topbar,
.page-section,
.hero {
    padding: 20px 0;
}

.site-nav .container,
.admin-sidebar nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-nav a,
.admin-sidebar a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
}

.hero {
    padding: 60px 0;
    background: #ffffff;
}

.hero h1,
.page-section h1 {
    margin-bottom: 12px;
}

.admin-shell {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 24px;
}

.admin-sidebar nav {
    flex-direction: column;
}

.admin-content {
    flex: 1;
    padding: 24px;
}

.site-footer {
    margin-top: 40px;
}
button {
    background: #111827;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

button:hover {
    opacity: 0.92;
}

input,
select,
textarea {
    border: 1px solid #d1d5db;
}
h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

p {
    margin-bottom: 12px;
}

.page-section p,
.hero p {
    max-width: 1100px;
}

.page-section h2,
.hero h2 {
    margin-top: 24px;
}
@media (max-width: 768px) {
    .container {
        width: 92%;
    }

    .site-nav .container {
        gap: 12px;
    }

    .hero h1,
    .page-section h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}
.hero {
    background: #ffffff;
    padding: 72px 0;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 900px;
}

section {
    background: #ffffff;
}

section + section {
    border-top: 1px solid #e5e7eb;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

section p {
    font-size: 1rem;
    margin-bottom: 12px;
    max-width: 1000px;
}
.page-section,
section {
    padding: 48px 0;
}

.page-section .container,
section .container {
    max-width: 1100px;
}

.page-section h1,
section h1 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.page-section h2,
section h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.page-section p,
section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.page-section > .container > div,
section > .container > div {
    margin-top: 24px;
}
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 20px;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.info-card p {
    margin-bottom: 0;
}
.hero-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions a {
    display: inline-block;
    padding: 12px 18px;
    font-weight: 700;
    text-decoration: none;
}

.hero-actions .primary-action {
    background: #111827;
    color: #ffffff;
}

.hero-actions .secondary-action {
    border: 1px solid #111827;
    color: #111827;
}

.hero-actions .tertiary-action {
    border: 1px solid #d1d5db;
    color: #111827;
}
.section-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #111827;
}

.section-link:hover {
    text-decoration: underline;
}
.record-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 20px;
}

.record-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.record-card p:last-child {
    margin-bottom: 0;
}
.action-panel {
    margin-top: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 24px;
}

.action-panel h2 {
    margin-bottom: 12px;
}
.hero-authority-line {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111827;
}

.hero-subline {
    margin-top: 18px;
    max-width: 880px;
    font-size: 1rem;
    line-height: 1.7;
}
.home-section-lead {
    max-width: 980px;
    margin-bottom: 22px;
    font-size: 1.05rem;
    line-height: 1.85;
    font-weight: 400;
    color: #1f2937;
}

.section-divider-space {
    padding-top: 8px;
}
.card-cta {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #111827;
}

.card-cta:hover {
    text-decoration: underline;
}
.section-link-wrap {
    margin: 14px 0 18px 0;
}

.section-link {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    color: #111827;
}

.section-link:hover {
    text-decoration: underline;
}
.hero .container {
    max-width: 1100px;
}

.hero h1 {
    max-width: 900px;
}

.hero p,
.hero .hero-subline,
.hero .home-section-lead {
    max-width: 860px;
}

.hero-actions {
    padding-top: 6px;
}
.hero-actions .primary-action,
.hero-actions .secondary-action,
.hero-actions .tertiary-action {
    min-width: 220px;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-actions .primary-action,
    .hero-actions .secondary-action,
    .hero-actions .tertiary-action {
        width: 100%;
        min-width: 100%;
    }
}
.info-card,
.record-card,
.action-panel {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.info-card:hover,
.record-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}
footer .info-card p a {
    color: #111827;
    text-decoration: none;
}

footer .info-card p a:hover {
    text-decoration: underline;
}

footer .info-card h3 {
    margin-bottom: 12px;
}

footer .info-card p {
    margin-bottom: 10px;
}

footer .container > div:last-child p {
    font-size: 0.95rem;
    color: #4b5563;
}
main {
    min-height: 60vh;
}

body > main > nav,
body > nav {
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

body > main > nav a,
body > nav a {
    text-decoration: none;
    color: #111827;
    font-weight: 700;
}

body > main > nav a:hover,
body > nav a:hover {
    text-decoration: underline;
}
header .container > div:first-child a {
    letter-spacing: 0.01em;
}

header nav {
    row-gap: 10px;
}

header nav a {
    transition: opacity 0.2s ease;
}

header nav a:hover {
    opacity: 0.75;
    text-decoration: none;
}
header nav a:last-child {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

header nav a:last-child:hover {
    opacity: 1;
    background: #f9fafb;
}
footer {
    margin-top: 56px;
}

footer .info-card-grid {
    align-items: start;
}

footer .info-card {
    min-height: 100%;
}

footer .container > div:last-child {
    margin-top: 28px;
}
.site-footer {
    margin-top: 56px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.site-footer .container {
    padding: 28px 0;
}

.site-footer .info-card-grid {
    align-items: start;
}

.site-footer .info-card {
    min-height: 100%;
}

.site-footer .info-card h3 {
    margin-bottom: 12px;
}

.site-footer .info-card p {
    margin-bottom: 10px;
}

.site-footer .info-card p a {
    color: #111827;
    text-decoration: none;
}

.site-footer .info-card p a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
}
.site-header {
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.site-header .container {
    padding: 18px 0;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.site-brand a {
    font-weight: 800;
    font-size: 1.1rem;
    color: #111827;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.site-brand-subline {
    font-size: 0.92rem;
    color: #4b5563;
    margin-top: 4px;
}

.site-nav {
    display: flex;
    gap: 18px;
    row-gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    color: #111827;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.site-nav a:hover {
    opacity: 0.75;
    text-decoration: none;
}

.site-nav a:last-child {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

.site-nav a:last-child:hover {
    opacity: 1;
    background: #f9fafb;
}
.form-stack > div {
    margin: 12px 0;
}

.form-control {
    width: 100%;
    padding: 10px;
}

.primary-button {
    padding: 12px 20px;
    font-weight: 700;
}
.hero-actions .primary-action,
.hero-actions .secondary-action,
.hero-actions .tertiary-action {
    display: inline-block;
    padding: 12px 18px;
    font-weight: 700;
    text-decoration: none;
}
/* =========================================================
   GCE HOMEPAGE VISUAL POLISH — LIGHT MODE STABLE v1
   Scope: public homepage only
   Purpose: premium institutional readability and spacing
========================================================= */

.hero {
    padding: 96px 0 72px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.hero .container {
    max-width: 1180px;
}

.hero-authority-line {
    display: inline-block;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
}

.hero h1 {
    max-width: 980px;
    margin: 0 0 26px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    color: #171717;
}

.hero p {
    max-width: 980px;
    margin: 0 0 26px;
    font-size: 20px;
    line-height: 1.75;
    color: #111827;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 58px;
    padding: 16px 28px;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hero-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.primary-action {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a !important;
}

.secondary-action,
.tertiary-action {
    background: #ffffff;
    color: #0f172a;
}

.page-section {
    padding: 76px 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.page-section .container {
    max-width: 1180px;
}

.page-section h2 {
    max-width: 900px;
    margin: 0 0 28px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #111827;
}

.home-section-lead {
    max-width: 1080px;
    font-size: 19px;
    line-height: 1.85;
    color: #1f2937;
}

.home-section-lead br {
    display: block;
    margin-bottom: 16px;
    content: "";
}

.section-divider-space {
    padding-top: 12px;
}

@media (max-width: 768px) {
    .hero {
        padding: 72px 0 56px;
    }

    .hero h1 {
        font-size: 44px;
        line-height: 1.04;
    }

    .hero p,
    .home-section-lead {
        font-size: 17px;
        line-height: 1.75;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions a {
        width: 100%;
        min-width: 0;
    }

    .page-section {
        padding: 56px 0;
    }
}
/* =========================================================
   GCE HOMEPAGE SECTION CARD POLISH — LIGHT MODE v1
   Purpose: make dynamic homepage sections feel institutional
========================================================= */

.page-section .container {
    position: relative;
}

.page-section h2 {
    padding-bottom: 18px;
    border-bottom: 3px solid #0f172a;
}

.page-section .home-section-lead {
    margin-top: 28px;
    padding: 34px 40px;
    max-width: 1160px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #0f172a;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.page-section .home-section-lead p,
.page-section .home-section-lead {
    white-space: normal;
}

.page-section .home-section-lead br {
    display: block;
    margin-bottom: 14px;
    content: "";
}

.page-section h2 {
    max-width: 980px;
}

.page-section:nth-of-type(even) {
	.page-section .home-section-lead p {
    margin: 0 0 22px 0;
    font-weight: 400;
    line-height: 1.85;
}

.page-section .home-section-lead p:last-child {
    margin-bottom: 0;
}
    background: #f9fafb;
}

.page-section:nth-of-type(odd) {
    background: #ffffff;
}

.page-section strong {
    color: #0f172a;
}

@media (max-width: 768px) {
    .page-section .home-section-lead {
        padding: 24px 22px;
        border-left-width: 4px;
    }
}
/* =========================================================
   GCE HOMEPAGE SECTION HEADING REFINEMENT — LIGHT MODE v1
========================================================= */

.page-section h2 {
    display: inline-block;
    padding-bottom: 18px;
    border-bottom: 3px solid #0f172a;
}
/* =========================================================
   GCE HOMEPAGE CARD READABILITY REFINEMENT — LIGHT MODE v1
========================================================= */

.page-section .home-section-lead {
    max-width: 1040px;
    font-size: 18px;
    line-height: 1.9;
}

.page-section .home-section-lead p,
.page-section .home-section-lead div {
    max-width: 1000px;
}
/* =========================================================
   GCE FOOTER VISUAL POLISH — LIGHT MODE STABLE v1
   Scope: public footer only
========================================================= */

.site-footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 72px 0 28px;
    border-top: 1px solid #1e293b;
}

.site-footer .container {
    max-width: 1180px;
}

.site-footer .info-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.site-footer .info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 28px 26px;
    min-height: 220px;
}

.site-footer .info-card h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.site-footer .info-card p {
    margin: 0 0 12px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.75;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
}

.site-footer .info-card:last-child p:last-child {
    margin-top: 18px;
    color: #ffffff;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .site-footer .info-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 56px 0 24px;
    }

    .site-footer .info-card-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .info-card {
        min-height: auto;
        padding: 24px 22px;
    }
}
/* =========================================================
   GCE FOOTER LINK READABILITY FIX — LIGHT MODE v1
========================================================= */

.site-footer .footer-links a,
.site-footer .info-card a,
.site-footer .info-card p a {
    color: #f8fafc !important;
    opacity: 1 !important;
    text-decoration: none;
    font-weight: 700;
}

.site-footer .footer-links a:hover,
.site-footer .info-card a:hover,
.site-footer .info-card p a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.site-footer .footer-bottom p {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.site-footer .info-card p {
    color: #dbeafe;
}
/* =========================================================
   GCE ADMIN INBOX VISUAL POLISH — LIGHT MODE STABLE v1
========================================================= */

.admin-inbox-page .admin-page-lead {
    max-width: 920px;
    font-size: 18px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 32px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    background: #ffffff;
}

.admin-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    text-align: left;
    padding: 18px 16px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.admin-table td {
    padding: 18px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    vertical-align: top;
    line-height: 1.6;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.inbox-message-cell {
    max-width: 320px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.status-new {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.status-read {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.admin-action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 110px;
}

.admin-action-btn {
    display: inline-block;
    text-align: center;
    padding: 10px 14px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid #0f172a;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
}

.admin-action-btn.secondary {
    background: #ffffff;
    color: #0f172a;
}

.admin-action-btn.primary {
    background: #0f172a;
    color: #ffffff;
}

.admin-action-btn.danger {
    background: #111827;
    color: #ffffff;
    width: 100%;
}

.admin-action-btn:hover {
    opacity: 0.9;
}

.admin-action-label {
    display: inline-block;
    font-weight: 900;
    color: #0f172a;
    padding: 6px 0;
}

.admin-empty-state {
    margin-top: 32px;
    padding: 36px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.admin-empty-state h2 {
    margin: 0 0 12px;
    font-size: 28px;
    color: #0f172a;
}

.admin-empty-state p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}
/* =========================================================
   GCE ADMIN INBOX TABLE WIDTH FIX — LIGHT MODE v1
========================================================= */

.admin-inbox-page .container {
    max-width: 1320px;
}

.admin-table {
    min-width: 1120px;
}

.inbox-table th:nth-child(5),
.inbox-table td:nth-child(5) {
    width: 300px;
}

.inbox-table th:nth-child(8),
.inbox-table td:nth-child(8) {
    width: 150px;
}

.admin-action-stack form {
    margin: 0;
}

.admin-action-btn {
    white-space: nowrap;
}
/* =========================================================
   GCE ADMIN INBOX FINAL COMPACT FIX — LIGHT MODE v1
========================================================= */

.admin-table {
    min-width: 920px;
}

.inbox-table th:nth-child(1),
.inbox-table td:nth-child(1) {
    width: 140px;
}

.inbox-table th:nth-child(2),
.inbox-table td:nth-child(2) {
    width: 230px;
}

.inbox-table th:nth-child(3),
.inbox-table td:nth-child(3) {
    width: 110px;
}

.inbox-table th:nth-child(4),
.inbox-table td:nth-child(4) {
    width: 260px;
}

.inbox-table th:nth-child(5),
.inbox-table td:nth-child(5) {
    width: 110px;
}

.inbox-table th:nth-child(6),
.inbox-table td:nth-child(6) {
    width: 150px;
}

.inbox-table th:nth-child(7),
.inbox-table td:nth-child(7) {
    width: 140px;
}
/* =========================================================
   GCE ADMIN INBOX 7-COLUMN FINAL FIX — LIGHT MODE v1
========================================================= */

.admin-inbox-page .container {
    max-width: 1280px;
}

.admin-table {
    min-width: 860px;
}

.inbox-table th:nth-child(1),
.inbox-table td:nth-child(1) {
    width: 150px;
}

.inbox-table th:nth-child(2),
.inbox-table td:nth-child(2) {
    width: 220px;
}

.inbox-table th:nth-child(3),
.inbox-table td:nth-child(3) {
    width: 110px;
}

.inbox-table th:nth-child(4),
.inbox-table td:nth-child(4) {
    width: 260px;
}

.inbox-table th:nth-child(5),
.inbox-table td:nth-child(5) {
    width: 110px;
}

.inbox-table th:nth-child(6),
.inbox-table td:nth-child(6) {
    width: 150px;
}

.inbox-table th:nth-child(7),
.inbox-table td:nth-child(7) {
    width: 140px;
}

.inbox-message-cell {
    max-width: 260px;
}
/* =========================================================
   GCE ADMIN INBOX MESSAGE WIDTH FINAL POLISH
========================================================= */

.inbox-table .col-name {
    width: 120px;
}

.inbox-table .col-email {
    width: 240px;
}

.inbox-table .col-subject {
    width: 100px;
}

.inbox-table .col-message {
    width: 340px;
}

.inbox-table .col-status {
    width: 100px;
}

.inbox-table .col-created {
    width: 140px;
}

.inbox-table .col-action {
    width: 150px;
}

.inbox-message-cell {
    max-width: 340px;
    line-height: 1.55;
}
/* =========================================================
   GCE ADMIN SIDEBAR ACTIVE STATE — LIGHT MODE v1
========================================================= */

.admin-sidebar nav a {
    display: block;
    padding: 12px 18px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.admin-sidebar nav a:hover {
    background: #f8fafc;
    border-left-color: #cbd5e1;
}

.admin-sidebar nav a.active {
    background: #f1f5f9;
    border-left-color: #0f172a;
    color: #0f172a;
    font-weight: 900;
}
/* =========================================================
   GCE ADMIN DASHBOARD CLICKABLE METRIC CARDS — LIGHT MODE v1
========================================================= */

.dashboard-metric-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-metric-card:hover {
    transform: translateY(-3px);
    border-color: #0f172a;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.dashboard-metric-card h3 {
    margin-bottom: 18px;
}

.dashboard-metric-card p {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
}
/* =========================================================
   GCE ADMIN DASHBOARD SUMMARY STRIP — LIGHT MODE v1
========================================================= */

.admin-summary-strip {
    margin: 28px 0 30px;
    padding: 28px 30px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.admin-summary-strip h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    color: #0f172a;
}

.admin-summary-strip p {
    margin: 0;
    max-width: 820px;
    color: #334155;
    font-size: 18px;
    line-height: 1.6;
}

.admin-summary-strip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 12px 18px;
    border: 1px solid #0f172a;
    border-radius: 999px;
    color: #0f172a;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .admin-summary-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .admin-summary-strip h2 {
        font-size: 24px;
    }

    .admin-summary-strip p {
        font-size: 16px;
    }
}
/* =========================================================
   GCE ADMIN DASHBOARD QUICK ACTIONS — LIGHT MODE v1
========================================================= */

/* ==========================================================
   GCE ADMIN DASHBOARD QUICK ACTIONS - LIGHT MODE v2
========================================================== */

.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 16px;
    margin: 0 0 42px;
    align-items: stretch;
}

.admin-quick-actions a {
    min-height: 56px;
    padding: 16px 22px;
    border-radius: 16px;
    border: 1px solid #0b1328;
    background: #0b1328;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 14px 28px rgba(11, 19, 40, 0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.admin-quick-actions a:nth-child(4),
.admin-quick-actions a:nth-child(5) {
    background: #ffffff;
    color: #0b1328;
}

.admin-quick-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(11, 19, 40, 0.14);
}

@media (max-width: 1200px) {
    .admin-quick-actions {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-quick-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-quick-actions a {
        width: 100%;
    }
}
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    background: #111827;
}

.admin-quick-actions a:nth-child(4),
.admin-quick-actions a:nth-child(5) {
    background: #ffffff;
    color: #0f172a;
}

.admin-quick-actions a:nth-child(4):hover,
.admin-quick-actions a:nth-child(5):hover {
    background: #f8fafc;
}
/* =========================================================
   GCE ADMIN DASHBOARD RECENT ACTIVITY — LIGHT MODE v1
========================================================= */

.admin-recent-panel {
    margin-top: 34px;
    padding: 30px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
}

.admin-recent-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-recent-panel-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    color: #0f172a;
}

.admin-recent-panel-header p {
    margin: 0;
    color: #334155;
    font-size: 17px;
    line-height: 1.5;
}

.admin-recent-panel-header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid #0f172a;
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
    border-radius: 12px;
    white-space: nowrap;
}

.recent-activity-list {
    display: grid;
    gap: 14px;
}

.recent-activity-item {
    display: grid;
    grid-template-columns: 220px 1fr 170px;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
    border-radius: 14px;
}

.recent-activity-item:hover {
    border-color: #0f172a;
    background: #ffffff;
}

.recent-activity-item strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
    margin-bottom: 4px;
}

.recent-activity-item span {
    color: #475569;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.recent-activity-item p {
    margin: 0;
    color: #334155;
    line-height: 1.5;
}

.recent-activity-item small {
    color: #64748b;
    text-align: right;
    font-size: 14px;
}

.admin-empty-state.compact {
    padding: 24px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 14px;
}

.admin-empty-state.compact h3 {
    margin: 0 0 8px;
    color: #0f172a;
}

.admin-empty-state.compact p {
    margin: 0;
    color: #475569;
}

@media (max-width: 900px) {
    .admin-recent-panel-header {
        flex-direction: column;
    }

    .recent-activity-item {
        grid-template-columns: 1fr;
    }

    .recent-activity-item small {
        text-align: left;
    }
}
/* =========================================================
   GCE ADMIN INQUIRY DETAIL ACTION BAR — LIGHT MODE v1
========================================================= */

.admin-detail-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 26px 0 28px;
}

.admin-detail-action-bar form {
    margin: 0;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid #0f172a;
}

.admin-action-btn.primary {
    background: #0f172a;
    color: #ffffff;
}

.admin-action-btn.secondary {
    background: #ffffff;
    color: #0f172a;
}

.admin-action-btn.danger {
    background: #0f172a;
    color: #ffffff;
}

.admin-action-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-weight: 900;
}
/* =========================================================
   GCE ADMIN TOPBAR — LIGHT MODE v2 FINAL
========================================================= */

.admin-content .admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin: 0 0 34px 0;
    padding: 20px 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.admin-content .admin-topbar > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-content .admin-topbar strong {
    display: block;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-content .admin-topbar span {
    display: block;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
}

.admin-content .admin-topbar-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid #0f172a;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .admin-content .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
	
	    .admin-content .admin-topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }
}
.admin-content .admin-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-content .admin-topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #0f172a;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.admin-content .admin-topbar-link:hover {
    background: #0f172a;
    color: #ffffff;
}

.admin-content .admin-topbar-logout {
    background: #0f172a;
    color: #ffffff;
}

.admin-content .admin-topbar-logout:hover {
    background: #ffffff;
    color: #0f172a;
}
/* =========================================================
   GCE ADMIN DASHBOARD METRIC LINKS — v1
========================================================= */

.dashboard-metric-grid {
    margin-top: 34px;
}

.dashboard-metric-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-metric-card:hover {
    transform: translateY(-4px);
    border-color: #0f172a;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.10);
}

.dashboard-metric-card:focus {
    outline: 3px solid rgba(15, 23, 42, 0.18);
    outline-offset: 4px;
}

.metric-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.metric-card-top span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #475569;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.dashboard-metric-card:hover .metric-card-top span {
    border-color: #0f172a;
    color: #0f172a;
}

.dashboard-metric-card p {
    margin-top: 24px;
}

.dashboard-metric-card::after {
    content: "→";
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.dashboard-metric-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}
/* =========================================================
   GCE ADMIN DASHBOARD RECENT ACTIVITY — v1
========================================================= */

.dashboard-recent-card {
    margin-top: 34px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.06);
}

.dashboard-recent-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-recent-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.dashboard-recent-head h2::after {
    content: "";
    display: block;
    width: 220px;
    max-width: 100%;
    height: 3px;
    margin-top: 14px;
    background: #0f172a;
}

.dashboard-recent-head p {
    margin: 14px 0 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.65;
}

.dashboard-activity-list {
    display: grid;
    gap: 14px;
}

.dashboard-activity-item {
    display: grid;
    grid-template-columns: 230px 1fr 180px;
    gap: 24px;
    align-items: center;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-activity-item:hover {
    transform: translateY(-3px);
    border-color: #0f172a;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.dashboard-activity-item strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.dashboard-activity-item span {
    display: block;
    margin-top: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.dashboard-activity-item p {
    margin: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.55;
}

.dashboard-activity-item time {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.dashboard-empty-feed {
    padding: 18px 22px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    color: #475569;
    font-weight: 800;
}

@media (max-width: 980px) {
    .dashboard-activity-item {
        grid-template-columns: 1fr;
    }

    .dashboard-activity-item time {
        text-align: left;
    }

    .dashboard-recent-head {
        flex-direction: column;
    }
}
/* =========================================================
   GCE ADMIN INQUIRY DETAIL — PROFESSIONAL CARD v1
========================================================= */

.admin-inquiry-detail-page .container {
    max-width: 1180px;
}

.admin-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.admin-detail-head h1 {
    margin: 0;
    color: #171717;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.admin-detail-head p {
    margin: 18px 0 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.65;
}

.admin-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.admin-detail-actions form {
    margin: 0;
}

.admin-action-btn.disabled {
    cursor: default;
    opacity: 0.85;
    pointer-events: none;
}

.admin-detail-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.inquiry-record-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
}

.record-label {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.inquiry-record-top h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.inquiry-record-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.record-field {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

.record-field span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.record-field strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.inquiry-message-panel {
    margin-top: 26px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
}

.inquiry-message-panel span {
    display: block;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.inquiry-message-panel p {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.75;
}

.admin-empty-text {
    margin: 0;
    color: #475569;
    font-size: 17px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .admin-detail-head {
        flex-direction: column;
    }

    .inquiry-record-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .inquiry-record-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-record-top {
        flex-direction: column;
    }
}
/* =========================================================
   GCE ADMIN EMPTY STATES — v1
========================================================= */

.admin-empty-state {
    margin-top: 22px;
    padding: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #f8fafc;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.04);
}

.admin-empty-kicker {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}

.admin-empty-state h3 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
    color: #0f172a;
}

.admin-empty-state p {
    margin: 0;
    max-width: 780px;
    color: #334155;
    line-height: 1.7;
    font-size: 1rem;
}
/* STEP 39A — Admin Form Field Polish */

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    max-width: 100%;
}

.admin-form-grid label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #111827;
}

.admin-form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8dee8;
    border-radius: 0;
    background: #ffffff;
    color: #111827;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
}

textarea.admin-form-control {
    min-height: 130px;
    resize: vertical;
}

select.admin-form-control {
    min-height: 50px;
    cursor: pointer;
}

.admin-form-control:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}
/* STEP 40 — Projects Page Final Polish Lock */

.admin-projects-page .admin-form-grid {
    display: grid;
    gap: 22px;
}

.admin-projects-page .record-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 26px;
    margin-top: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.admin-projects-page label {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    display: inline-block;
}

.admin-projects-page input,
.admin-projects-page textarea,
.admin-projects-page select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8dee8;
    background: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
}

.admin-projects-page textarea {
    min-height: 140px;
    resize: vertical;
}

.admin-projects-page .primary-button,
.admin-projects-page .admin-action-btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    border: none;
    background: #071126;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.admin-projects-page .record-card form + form {
    margin-top: 18px;
}

.admin-projects-page .record-card form[action*="delete"] button {
    width: 100%;
    min-height: 58px;
    border-radius: 14px;
    border: none;
    background: #071126;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}
/* STEP 40 — Projects Page Final Polish Lock */

.admin-projects-page .admin-form-grid {
    display: grid;
    gap: 22px;
}

.admin-projects-page .record-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 26px;
    margin-top: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.admin-projects-page label {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    display: inline-block;
}

.admin-projects-page input,
.admin-projects-page textarea,
.admin-projects-page select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8dee8;
    background: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
}

.admin-projects-page textarea {
    min-height: 140px;
    resize: vertical;
}

.admin-projects-page .primary-button,
.admin-projects-page .admin-action-btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    border: none;
    background: #071126;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.admin-projects-page .record-card form + form {
    margin-top: 18px;
}

.admin-projects-page .record-card form[action*="delete"] button {
    width: 100%;
    min-height: 58px;
    border-radius: 14px;
    border: none;
    background: #071126;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}
/* STEP 41 — Media Page Final Polish Lock */

.admin-media-page .admin-form-grid {
    display: grid;
    gap: 22px;
}

.admin-media-page .record-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 26px;
    margin-top: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.admin-media-page label {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    display: inline-block;
}

.admin-media-page input,
.admin-media-page textarea,
.admin-media-page select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8dee8;
    background: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
}

.admin-media-page textarea {
    min-height: 140px;
    resize: vertical;
}

.admin-media-page .primary-button,
.admin-media-page .admin-action-btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    border: none;
    background: #071126;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.admin-media-page .admin-action-stack {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-media-page .admin-action-btn.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid #071126;
    color: #071126;
    background: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.admin-media-page .admin-action-btn.danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: none;
    color: #ffffff;
    background: #071126;
    font-weight: 800;
    text-decoration: none;
}
/* STEP 41 — Media Page Final Polish Lock */

.admin-media-page .admin-form-grid {
    display: grid;
    gap: 22px;
}

.admin-media-page .record-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 26px;
    margin-top: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.admin-media-page label {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    display: inline-block;
}

.admin-media-page input,
.admin-media-page textarea,
.admin-media-page select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8dee8;
    background: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
}

.admin-media-page textarea {
    min-height: 140px;
    resize: vertical;
}

.admin-media-page .primary-button,
.admin-media-page .admin-action-btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    border: none;
    background: #071126;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.admin-media-page .admin-action-stack {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-media-page .admin-action-btn.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid #071126;
    color: #071126;
    background: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.admin-media-page .admin-action-btn.danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: none;
    color: #ffffff;
    background: #071126;
    font-weight: 800;
    text-decoration: none;
}
.card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 14px 22px;
    min-width: 180px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.card-cta:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-1px);
}
/* PUBLIC FOOTER INSTITUTIONAL POLISH */
.site-footer {
    margin-top: 80px;
    padding: 56px 0 28px;
    background: #0f172a;
    color: #f8fafc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 34px;
    align-items: start;
}

.footer-brand h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

.footer-brand p,
.footer-column p {
    margin: 0 0 12px;
    color: #cbd5e1;
    line-height: 1.7;
}

.footer-doctrine {
    margin-top: 18px !important;
    font-weight: 700;
    color: #ffffff !important;
}

.footer-column h4 {
    margin: 0 0 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
}

.footer-column a {
    display: block;
    margin-bottom: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.14);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 54px;
        padding: 42px 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
/* ABOUT ACTION PANEL */
.action-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 42px;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.action-panel h2 {
    margin-bottom: 18px;
}

.action-panel p {
    max-width: 980px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}
/* ================================
   GCE Public Partnerships Page
   Controlled Polishing Layer
================================ */

.page-hero {
    padding: 90px 0 70px;
    background: linear-gradient(135deg, #101010 0%, #1d1d1d 55%, #2b2118 100%);
    color: #ffffff;
}

.page-hero-content {
    max-width: 900px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c9a15b;
}

.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.05;
    font-weight: 800;
}

.page-hero p {
    max-width: 760px;
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.btn-primary {
    background: #c9a15b;
    color: #111111;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #d9b36d;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.btn-outline:hover {
    transform: translateY(-2px);
    border-color: #c9a15b;
    color: #c9a15b;
}

.section {
    padding: 76px 0;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 36px;
}

.section-heading h2,
.split-content h2,
.note-box h2,
.cta-box h2 {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    line-height: 1.15;
    color: #151515;
}

.section-heading p,
.split-content p,
.note-box p,
.cta-box p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555555;
}

.feature-grid.three,
.cards-grid,
.process-grid {
    display: grid;
    gap: 22px;
}

.feature-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.info-card,
.process-step,
.highlight-panel,
.note-box,
.cta-box {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06);
}

.feature-card,
.info-card,
.process-step {
    padding: 26px;
}

.feature-card h3,
.info-card h3,
.process-step h3,
.highlight-panel h3 {
    margin: 0 0 12px;
    color: #151515;
    font-size: 1.16rem;
}

.feature-card p,
.info-card p,
.process-step p,
.highlight-panel p {
    margin: 0;
    color: #5b5b5b;
    line-height: 1.75;
}

.partnership-categories {
    background: #f7f4ef;
}

.partnership-value {
    background: #ffffff;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 34px;
    align-items: center;
}

.clean-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.clean-list li {
    position: relative;
    padding-left: 28px;
    color: #333333;
    line-height: 1.65;
}

.clean-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #c9a15b;
    font-weight: 900;
}

.highlight-panel {
    padding: 34px;
    background: #151515;
    color: #ffffff;
}

.highlight-panel h3 {
    color: #ffffff;
}

.highlight-panel p {
    color: rgba(255, 255, 255, 0.78);
}

.partnership-process {
    background: #fafafa;
}

.process-step span {
    display: inline-flex;
    margin-bottom: 16px;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #151515;
    color: #c9a15b;
    font-weight: 800;
}

.strategic-note {
    background: #111111;
}

.note-box {
    padding: 42px;
    background: linear-gradient(135deg, #181818 0%, #24211b 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
}

.note-box h2 {
    color: #ffffff;
}

.note-box p {
    color: rgba(255, 255, 255, 0.78);
}

.partnership-cta {
    background: #f7f4ef;
}

.cta-box {
    padding: 48px;
    text-align: center;
}

.cta-box .hero-actions {
    justify-content: center;
}

.cta-box .btn-outline {
    border-color: rgba(0, 0, 0, 0.22);
    color: #151515;
}

.cta-box .btn-outline:hover {
    border-color: #c9a15b;
    color: #a77d33;
}

@media (max-width: 992px) {
    .feature-grid.three,
    .cards-grid,
    .process-grid,
    .split-layout {
        grid-template-columns: 1fr 1fr;
    }

    .split-layout {
        align-items: stretch;
    }
}

@media (max-width: 680px) {
    .page-hero {
        padding: 68px 0 52px;
    }

    .section {
        padding: 56px 0;
    }

    .feature-grid.three,
    .cards-grid,
    .process-grid,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .feature-card,
    .info-card,
    .process-step,
    .highlight-panel,
    .note-box,
    .cta-box {
        padding: 24px;
        border-radius: 18px;
    }

    .cta-box {
        text-align: left;
    }

    .cta-box .hero-actions {
        justify-content: flex-start;
    }
}
.alert-success {
    margin: 24px 0;
    padding: 18px 22px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(22, 101, 52, 0.08);
}
.contact-form,
form {
    width: 100%;
}

form label {
    display: block;
    margin: 18px 0 8px;
    font-weight: 700;
    color: #111827;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    background: #ffffff;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form textarea {
    min-height: 180px;
    resize: vertical;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #d4a64f;
    box-shadow: 0 0 0 4px rgba(212, 166, 79, 0.14);
}

form button,
form .btn,
button[type="submit"] {
    margin-top: 22px;
}
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border: 1px solid #0f172a;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    background: #111827;
}
/* =====================================================
   ADMIN DASHBOARD MOBILE FIX — OPERATIONAL LOCK BUTTON
   Purpose: Prevent top admin action button from overflowing
   ===================================================== */

.admin-layout,
.admin-main,
.admin-content,
.dashboard-content,
.admin-page,
main {
    max-width: 100%;
    box-sizing: border-box;
}

.admin-main,
.admin-content,
.dashboard-content,
.admin-page {
    overflow-x: hidden;
}

/* Fix admin top/header card alignment */
.admin-main > .card:first-child,
.admin-content > .card:first-child,
.dashboard-content > .card:first-child,
.admin-page > .card:first-child,
.admin-header,
.admin-header-card,
.admin-topbar,
.admin-toolbar {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Make any right-side admin action button stay inside its card */
.admin-main > .card:first-child a,
.admin-main > .card:first-child button,
.admin-content > .card:first-child a,
.admin-content > .card:first-child button,
.dashboard-content > .card:first-child a,
.dashboard-content > .card:first-child button,
.admin-page > .card:first-child a,
.admin-page > .card:first-child button,
.admin-header a,
.admin-header button,
.admin-header-card a,
.admin-header-card button,
.admin-topbar a,
.admin-topbar button,
.admin-toolbar a,
.admin-toolbar button {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
}

/* Mobile correction */
@media (max-width: 768px) {
    .admin-main > .card:first-child,
    .admin-content > .card:first-child,
    .dashboard-content > .card:first-child,
    .admin-page > .card:first-child,
    .admin-header,
    .admin-header-card,
    .admin-topbar,
    .admin-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .admin-main > .card:first-child a,
    .admin-main > .card:first-child button,
    .admin-content > .card:first-child a,
    .admin-content > .card:first-child button,
    .dashboard-content > .card:first-child a,
    .dashboard-content > .card:first-child button,
    .admin-page > .card:first-child a,
    .admin-page > .card:first-child button,
    .admin-header a,
    .admin-header button,
    .admin-header-card a,
    .admin-header-card button,
    .admin-topbar a,
    .admin-topbar button,
    .admin-toolbar a,
    .admin-toolbar button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 18px;
        font-size: 13px;
        line-height: 1.25;
        letter-spacing: 1.4px;
        overflow-wrap: break-word;
    }
}

/* Extra small mobile */
@media (max-width: 430px) {
    .admin-main,
    .admin-content,
    .dashboard-content,
    .admin-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-main > .card:first-child a,
    .admin-main > .card:first-child button,
    .admin-content > .card:first-child a,
    .admin-content > .card:first-child button,
    .dashboard-content > .card:first-child a,
    .dashboard-content > .card:first-child button,
    .admin-page > .card:first-child a,
    .admin-page > .card:first-child button,
    .admin-header a,
    .admin-header button,
    .admin-header-card a,
    .admin-header-card button,
    .admin-topbar a,
    .admin-topbar button,
    .admin-toolbar a,
    .admin-toolbar button {
        font-size: 12px;
        letter-spacing: 1.1px;
        padding: 13px 14px;
    }
}
/* =====================================================
   ADMIN DASHBOARD MOBILE FIX — RECENT ACTIVITY SECTION
   Purpose: Keep Recent Activity header, button and rows inside mobile screen
   ===================================================== */

.recent-activity,
.admin-recent-activity,
.dashboard-recent,
.activity-section,
.admin-activity,
.admin-card,
.dashboard-card {
    max-width: 100%;
    box-sizing: border-box;
}

.recent-activity,
.admin-recent-activity,
.dashboard-recent,
.activity-section,
.admin-activity {
    overflow-x: hidden;
}

/* Recent Activity top/header button fix */
.recent-activity-header,
.activity-header,
.dashboard-section-header,
.admin-section-header {
    max-width: 100%;
    box-sizing: border-box;
}

.recent-activity-header a,
.recent-activity-header button,
.activity-header a,
.activity-header button,
.dashboard-section-header a,
.dashboard-section-header button,
.admin-section-header a,
.admin-section-header button {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
}

/* Recent Activity list item containment */
.recent-activity .activity-item,
.admin-recent-activity .activity-item,
.dashboard-recent .activity-item,
.activity-section .activity-item,
.admin-activity .activity-item,
.recent-activity li,
.admin-recent-activity li,
.dashboard-recent li,
.activity-section li,
.admin-activity li {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Mobile correction */
@media (max-width: 768px) {
    .recent-activity-header,
    .activity-header,
    .dashboard-section-header,
    .admin-section-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .recent-activity-header a,
    .recent-activity-header button,
    .activity-header a,
    .activity-header button,
    .dashboard-section-header a,
    .dashboard-section-header button,
    .admin-section-header a,
    .admin-section-header button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 13px 16px;
        font-size: 13px;
        line-height: 1.25;
        letter-spacing: 1.2px;
    }

    .recent-activity .activity-item,
    .admin-recent-activity .activity-item,
    .dashboard-recent .activity-item,
    .activity-section .activity-item,
    .admin-activity .activity-item,
    .recent-activity li,
    .admin-recent-activity li,
    .dashboard-recent li,
    .activity-section li,
    .admin-activity li {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 18px;
    }

    .recent-activity .activity-item *,
    .admin-recent-activity .activity-item *,
    .dashboard-recent .activity-item *,
    .activity-section .activity-item *,
    .admin-activity .activity-item *,
    .recent-activity li *,
    .admin-recent-activity li *,
    .dashboard-recent li *,
    .activity-section li *,
    .admin-activity li * {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* Extra small mobile */
@media (max-width: 430px) {
    .recent-activity,
    .admin-recent-activity,
    .dashboard-recent,
    .activity-section,
    .admin-activity {
        padding-left: 0;
        padding-right: 0;
    }

    .recent-activity-header a,
    .recent-activity-header button,
    .activity-header a,
    .activity-header button,
    .dashboard-section-header a,
    .dashboard-section-header button,
    .admin-section-header a,
    .admin-section-header button {
        font-size: 12px;
        padding: 12px 14px;
        letter-spacing: 1px;
    }

    .recent-activity .activity-item,
    .admin-recent-activity .activity-item,
    .dashboard-recent .activity-item,
    .activity-section .activity-item,
    .admin-activity .activity-item,
    .recent-activity li,
    .admin-recent-activity li,
    .dashboard-recent li,
    .activity-section li,
    .admin-activity li {
        padding: 16px;
    }
}
/* =====================================================
   ADMIN DASHBOARD FINAL MOBILE CONTAINMENT FIX
   Purpose: Stop Recent Activity and header actions from overflowing
   ===================================================== */

.admin-main,
.admin-content,
.admin-dashboard,
.dashboard-main,
.dashboard-content {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.admin-main *,
.admin-content *,
.admin-dashboard *,
.dashboard-main *,
.dashboard-content * {
    box-sizing: border-box;
}

/* Any dashboard section top row with title + button */
.admin-main section > .section-header,
.admin-main .section-header,
.admin-main .dashboard-header,
.admin-main .recent-header,
.admin-main .activity-header,
.admin-main .card-header,
.admin-content section > .section-header,
.admin-content .section-header,
.admin-content .dashboard-header,
.admin-content .recent-header,
.admin-content .activity-header,
.admin-content .card-header {
    max-width: 100%;
    overflow: hidden;
}

/* Buttons and links inside dashboard sections must not escape */
.admin-main section a,
.admin-main section button,
.admin-content section a,
.admin-content section button,
.dashboard-content a,
.dashboard-content button {
    max-width: 100%;
    box-sizing: border-box;
}

/* Recent activity rows containment */
.admin-main .activity-row,
.admin-main .recent-row,
.admin-main .inquiry-row,
.admin-main .activity-item,
.admin-main .recent-item,
.admin-content .activity-row,
.admin-content .recent-row,
.admin-content .inquiry-row,
.admin-content .activity-item,
.admin-content .recent-item {
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Mobile dashboard correction */
@media (max-width: 768px) {
    .admin-main,
    .admin-content,
    .admin-dashboard,
    .dashboard-main,
    .dashboard-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .admin-main section,
    .admin-content section,
    .dashboard-content section {
        max-width: 100%;
        overflow-x: hidden;
    }

    .admin-main section > div:first-child,
    .admin-content section > div:first-child,
    .dashboard-content section > div:first-child {
        max-width: 100%;
    }

    /* Force title + action button to stack on mobile */
    .admin-main .section-header,
    .admin-main .dashboard-header,
    .admin-main .recent-header,
    .admin-main .activity-header,
    .admin-main .card-header,
    .admin-content .section-header,
    .admin-content .dashboard-header,
    .admin-content .recent-header,
    .admin-content .activity-header,
    .admin-content .card-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .admin-main .section-header a,
    .admin-main .section-header button,
    .admin-main .dashboard-header a,
    .admin-main .dashboard-header button,
    .admin-main .recent-header a,
    .admin-main .recent-header button,
    .admin-main .activity-header a,
    .admin-main .activity-header button,
    .admin-main .card-header a,
    .admin-main .card-header button,
    .admin-content .section-header a,
    .admin-content .section-header button,
    .admin-content .dashboard-header a,
    .admin-content .dashboard-header button,
    .admin-content .recent-header a,
    .admin-content .recent-header button,
    .admin-content .activity-header a,
    .admin-content .activity-header button,
    .admin-content .card-header a,
    .admin-content .card-header button {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        white-space: normal !important;
    }

    /* Recent Activity row becomes vertical on mobile */
    .admin-main .activity-row,
    .admin-main .recent-row,
    .admin-main .inquiry-row,
    .admin-main .activity-item,
    .admin-main .recent-item,
    .admin-content .activity-row,
    .admin-content .recent-row,
    .admin-content .inquiry-row,
    .admin-content .activity-item,
    .admin-content .recent-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .admin-main .activity-row *,
    .admin-main .recent-row *,
    .admin-main .inquiry-row *,
    .admin-main .activity-item *,
    .admin-main .recent-item *,
    .admin-content .activity-row *,
    .admin-content .recent-row *,
    .admin-content .inquiry-row *,
    .admin-content .activity-item *,
    .admin-content .recent-item * {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
}
/* =====================================================
   ADMIN RECENT ACTIVITY HEADER FINAL FIX
   ===================================================== */

.admin-recent-panel-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.admin-section-title-row {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.admin-section-title-text {
    min-width: 0;
    max-width: 100%;
}

.admin-section-action {
    flex: 0 0 auto;
    max-width: 220px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .admin-section-title-row {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 18px !important;
        overflow: hidden !important;
    }

    .admin-section-title-text {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .admin-section-action {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        white-space: normal !important;
        text-align: center !important;
    }
}
/* Admin Dashboard Recent Activity - Stable Fix */
.admin-recent-panel {
    margin-top: 48px;
    width: 100%;
}

.dashboard-recent-card {
    background: #ffffff;
    border: 1px solid #dbe1e8;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.dashboard-recent-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.dashboard-recent-title h2 {
    margin: 0 0 12px;
}

.dashboard-recent-title p {
    margin: 0;
}

.dashboard-recent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border: 1px solid #0f172a;
    border-radius: 18px;
    color: #0f172a;
    background: #ffffff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-activity-list {
    display: grid;
    gap: 18px;
}

.dashboard-activity-item {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.5fr) auto;
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
    background: #f8fafc;
    border: 1px solid #dbe1e8;
    border-radius: 18px;
    color: #0f172a;
    text-decoration: none;
}

.dashboard-activity-name strong {
    display: block;
    font-weight: 900;
    margin-bottom: 10px;
}

.dashboard-activity-name span {
    display: block;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #475569;
}

.dashboard-activity-item p {
    margin: 0;
}

.dashboard-activity-item time {
    color: #64748b;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-empty-feed {
    padding: 24px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #dbe1e8;
    color: #475569;
    font-weight: 700;
}

@media (max-width: 768px) {
    .dashboard-recent-card {
        padding: 24px;
        border-radius: 20px;
    }

    .dashboard-recent-head {
        display: grid;
        gap: 18px;
    }

    .dashboard-recent-btn {
        width: 100%;
    }

    .dashboard-activity-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px;
    }

    .dashboard-activity-item time {
        white-space: normal;
    }
}
/* =========================================================
   ADMIN INBOX MANAGEMENT RESPONSIVE POLISH
   Safe scope: affects inbox page only
========================================================= */

.admin-inbox-page .container {
    max-width: 1280px;
    width: 100%;
}

.admin-inbox-page .admin-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.04);
}

.admin-inbox-page .admin-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
}

.admin-inbox-page .admin-table th,
.admin-inbox-page .admin-table td {
    padding: 22px 18px;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    color: #0f172a;
    line-height: 1.45;
}

.admin-inbox-page .admin-table th {
    background: #f8fafc;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-inbox-page .admin-table td {
    font-size: 15px;
    word-break: normal;
    overflow-wrap: break-word;
}

.admin-inbox-page .col-name {
    width: 150px;
    font-weight: 800;
}

.admin-inbox-page .col-email {
    width: 220px;
}

.admin-inbox-page .col-subject {
    width: 130px;
}

.admin-inbox-page .col-message {
    width: 260px;
}

.admin-inbox-page .col-status {
    width: 110px;
    text-align: center;
}

.admin-inbox-page .col-created {
    width: 150px;
    color: #475569;
    font-weight: 700;
}

.admin-inbox-page .col-action {
    width: 150px;
}

.admin-inbox-page .inbox-message-preview {
    max-width: 260px;
}

.admin-inbox-page .admin-action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-inbox-page .admin-action-stack .admin-action-btn,
.admin-inbox-page .admin-action-stack form,
.admin-inbox-page .admin-action-stack button {
    width: 100%;
}

.admin-inbox-page .admin-action-stack .admin-action-btn,
.admin-inbox-page .admin-action-stack button {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
}

/* Inbox tablet protection */
@media (max-width: 1100px) {
    .admin-inbox-page .admin-table {
        min-width: 1000px;
    }

    .admin-inbox-page .admin-table th,
    .admin-inbox-page .admin-table td {
        padding: 18px 16px;
    }
}

/* Inbox mobile protection */
@media (max-width: 700px) {
    .admin-inbox-page .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-inbox-page h1 {
        font-size: 34px;
        line-height: 1.1;
    }

    .admin-inbox-page .admin-page-lead {
        font-size: 17px;
        line-height: 1.55;
    }

    .admin-inbox-page .admin-table-wrap {
        border-radius: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .admin-inbox-page .admin-table {
        min-width: 920px;
    }

    .admin-inbox-page .admin-table th,
    .admin-inbox-page .admin-table td {
        padding: 16px 14px;
        font-size: 14px;
    }

    .admin-inbox-page .admin-action-stack .admin-action-btn,
    .admin-inbox-page .admin-action-stack button {
        min-height: 44px;
        font-size: 13px;
        padding: 10px 14px;
    }
}
/* =========================================================
   ADMIN INBOX TABLE FINAL FIT FIX
   Purpose: keep all inbox columns visible, including Action
========================================================= */

.admin-inbox-page .admin-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
}

.admin-inbox-page .admin-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    border-collapse: collapse;
}

.admin-inbox-page .admin-table th,
.admin-inbox-page .admin-table td {
    padding: 18px 14px;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Column balance */
.admin-inbox-page .col-name {
    width: 14%;
    font-weight: 900;
}

.admin-inbox-page .col-email {
    width: 17%;
}

.admin-inbox-page .col-subject {
    width: 10%;
}

.admin-inbox-page .col-message {
    width: 27%;
}

.admin-inbox-page .col-status {
    width: 9%;
}

.admin-inbox-page .col-created {
    width: 12%;
    font-weight: 800;
}

.admin-inbox-page .col-action {
    width: 11%;
}

/* Keep action buttons inside the action column */
.admin-inbox-page .admin-action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-inbox-page .admin-action-stack .admin-action-btn,
.admin-inbox-page .admin-action-stack button {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 900;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
}

/* Mobile: allow safe horizontal scroll only on very small screens */
@media (max-width: 900px) {
    .admin-inbox-page .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-inbox-page .admin-table {
        min-width: 850px !important;
    }
}
/* =========================================================
   ADMIN INBOX FINAL CARD LAYOUT
   Replaces wide table behavior with safe responsive cards
========================================================= */

.admin-inbox-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 34px;
}

.admin-inbox-card {
    display: grid;
    grid-template-columns: 1.1fr 2.2fr 0.9fr;
    gap: 28px;
    align-items: center;
    width: 100%;
    padding: 24px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
}

.admin-inbox-person strong {
    display: block;
    color: #071126;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.admin-inbox-person span {
    display: block;
    margin-top: 8px;
    color: #334155;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.admin-inbox-content p {
    margin: 12px 0 0;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.55;
}

.admin-inbox-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-inbox-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-inbox-actions form {
    margin: 0;
}

.admin-inbox-actions .admin-action-btn,
.admin-inbox-actions button {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

/* Tablet and small laptop */
@media (max-width: 1100px) {
    .admin-inbox-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-inbox-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-inbox-actions .admin-action-btn,
    .admin-inbox-actions button,
    .admin-inbox-actions form {
        flex: 1 1 160px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .admin-inbox-card {
        padding: 20px;
        border-radius: 16px;
    }

    .admin-inbox-actions {
        flex-direction: column;
    }

    .admin-inbox-actions .admin-action-btn,
    .admin-inbox-actions button,
    .admin-inbox-actions form {
        width: 100%;
        flex: none;
    }
}
/* =========================================================
   ADMIN INBOX FINAL CARD POLISH
   Safe compact layout - no table dependency
========================================================= */

.admin-inbox-page .admin-inbox-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 34px;
}

.admin-inbox-page .admin-inbox-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 2fr) minmax(180px, auto);
    gap: 28px;
    align-items: center;
    padding: 28px 32px;
    border: 1px solid #dbe3ec;
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.admin-inbox-page .admin-inbox-person strong {
    display: block;
    max-width: 260px;
    font-size: 20px;
    line-height: 1.35;
    color: #071126;
    margin-bottom: 10px;
}

.admin-inbox-page .admin-inbox-person span {
    display: block;
    font-size: 16px;
    color: #334155;
    word-break: break-word;
}

.admin-inbox-page .admin-inbox-content {
    min-width: 0;
}

.admin-inbox-page .admin-inbox-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.admin-inbox-page .admin-inbox-meta > span:first-child {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #475569;
}

.admin-inbox-page .admin-inbox-meta > span:last-child {
    font-size: 15px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.04em;
}

.admin-inbox-page .admin-inbox-content p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #0f172a;
}

.admin-inbox-page .admin-inbox-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 170px;
}

.admin-inbox-page .admin-inbox-actions form {
    margin: 0;
}

.admin-inbox-page .admin-inbox-actions .admin-action-btn,
.admin-inbox-page .admin-inbox-actions button.admin-action-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-inbox-page .admin-inbox-actions .disabled {
    opacity: 0.78;
    cursor: not-allowed;
}

/* Tablet */
@media (max-width: 1100px) {
    .admin-inbox-page .admin-inbox-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .admin-inbox-page .admin-inbox-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .admin-inbox-page .admin-inbox-actions .admin-action-btn,
    .admin-inbox-page .admin-inbox-actions button.admin-action-btn,
    .admin-inbox-page .admin-inbox-actions form {
        flex: 1 1 160px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .admin-inbox-page {
        padding-left: 0;
        padding-right: 0;
    }

    .admin-inbox-page .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .admin-inbox-page .admin-inbox-card {
        padding: 22px 20px;
        border-radius: 16px;
    }

    .admin-inbox-page .admin-inbox-person strong {
        font-size: 18px;
    }

    .admin-inbox-page .admin-inbox-content p {
        font-size: 15px;
    }

    .admin-inbox-page .admin-inbox-actions {
        flex-direction: column;
    }

    .admin-inbox-page .admin-inbox-actions .admin-action-btn,
    .admin-inbox-page .admin-inbox-actions button.admin-action-btn,
    .admin-inbox-page .admin-inbox-actions form {
        width: 100%;
    }
}
/* =========================================================
   ADMIN INBOX FINAL COMPACT HEIGHT POLISH
   Reduces excessive card height while preserving layout
========================================================= */

.admin-inbox-page .admin-inbox-card {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;
}

.admin-inbox-page .admin-inbox-actions {
    justify-content: center;
}

.admin-inbox-page .admin-inbox-actions .admin-action-btn,
.admin-inbox-page .admin-inbox-actions button.admin-action-btn {
    min-height: 48px;
}

.admin-inbox-page .admin-inbox-content p {
    max-width: 620px;
}

@media (min-width: 1101px) {
    .admin-inbox-page .admin-inbox-card {
        grid-template-columns: minmax(240px, 1fr) minmax(460px, 2fr) 190px;
    }
}

@media (max-width: 1100px) {
    .admin-inbox-page .admin-inbox-card {
        padding: 22px;
    }

    .admin-inbox-page .admin-inbox-actions {
        justify-content: flex-start;
    }
}
/* =========================================================
   ADMIN INQUIRY SHOW / VIEW PAGE POLISH
   Safe CSS-only polish for /admin/inbox/show?id=...
========================================================= */

.admin-inquiry-show-page .container {
    max-width: 1180px;
}

.admin-page-hero.admin-inquiry-show-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 0;
    margin-bottom: 34px;
}

.admin-page-hero.admin-inquiry-show-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1;
    font-weight: 900;
    color: #1f1f1f;
}

.admin-page-hero.admin-inquiry-show-hero p {
    margin: 0;
    max-width: 720px;
    font-size: 20px;
    line-height: 1.7;
    color: #0f1a2e;
}

.inquiry-show-actions,
.inquiry-detail-footer-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.inquiry-detail-card {
    background: #ffffff;
    border: 1px solid #dde3eb;
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}

.inquiry-detail-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.inquiry-detail-label,
.inquiry-detail-meta-card span,
.inquiry-message-box span {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4a5b73;
}

.inquiry-detail-top h2 {
    margin: 0;
    max-width: 880px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
    font-weight: 900;
    color: #0b1326;
}

.inquiry-detail-divider {
    width: 100%;
    height: 4px;
    margin: 30px 0 34px;
    background: #0b1326;
    border-radius: 999px;
}

.inquiry-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.inquiry-detail-meta-card {
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #dde3eb;
    border-radius: 18px;
    padding: 22px;
}

.inquiry-detail-meta-card strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 18px;
    line-height: 1.45;
    color: #0b1326;
}

.inquiry-message-box {
    background: #f8fafc;
    border: 1px solid #dde3eb;
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 28px;
}

.inquiry-message-box p {
    margin: 0;
    font-size: 20px;
    line-height: 1.7;
    color: #0b1326;
}

.inquiry-detail-footer-actions form {
    margin: 0;
}

.inquiry-detail-footer-actions .danger {
    min-width: 220px;
}

/* Mobile safety */
@media (max-width: 900px) {
    .admin-page-hero.admin-inquiry-show-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .inquiry-detail-top {
        flex-direction: column;
    }

    .inquiry-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .inquiry-detail-card {
        padding: 24px;
        border-radius: 18px;
    }

    .inquiry-detail-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-show-actions,
    .inquiry-detail-footer-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .inquiry-show-actions .admin-action-btn,
    .inquiry-detail-footer-actions .admin-action-btn,
    .inquiry-detail-footer-actions form,
    .inquiry-detail-footer-actions button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .inquiry-message-box p {
        font-size: 18px;
    }
}
/* =========================================================
   ADMIN INQUIRY SHOW FINAL BALANCE PATCH
   Reduces oversized sender title and balances action layout
========================================================= */

.admin-inquiry-show-page .admin-page-hero.admin-inquiry-show-hero {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.admin-inquiry-show-page .inquiry-detail-card {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.admin-inquiry-show-page .inquiry-detail-top h2 {
    font-size: clamp(34px, 3.4vw, 52px);
    line-height: 1.12;
    max-width: 860px;
}

.admin-inquiry-show-page .inquiry-detail-divider {
    margin-top: 24px;
    margin-bottom: 30px;
    height: 3px;
}

.admin-inquiry-show-page .inquiry-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.admin-inquiry-show-page .inquiry-detail-footer-actions {
    margin-top: 28px;
}

.admin-inquiry-show-page .inquiry-detail-footer-actions .danger {
    width: 100%;
    max-width: none;
    min-height: 62px;
}

.admin-inquiry-show-page .inquiry-show-actions .admin-action-btn {
    min-width: 180px;
}

/* Better tablet behavior */
@media (max-width: 1100px) {
    .admin-inquiry-show-page .admin-page-hero.admin-inquiry-show-hero,
    .admin-inquiry-show-page .inquiry-detail-card {
        max-width: 100%;
    }

    .admin-inquiry-show-page .inquiry-detail-top h2 {
        font-size: clamp(32px, 5vw, 46px);
    }

    .admin-inquiry-show-page .inquiry-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile final safety */
@media (max-width: 640px) {
    .admin-inquiry-show-page .admin-page-hero.admin-inquiry-show-hero h1 {
        font-size: 40px;
    }

    .admin-inquiry-show-page .admin-page-hero.admin-inquiry-show-hero p {
        font-size: 17px;
    }

    .admin-inquiry-show-page .inquiry-detail-top h2 {
        font-size: 32px;
    }

    .admin-inquiry-show-page .inquiry-detail-card {
        padding: 24px;
    }

    .admin-inquiry-show-page .inquiry-detail-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   GCE ADMIN SETTINGS PAGE POLISH
   Stable checkpoint: Settings Control Layer
========================================================= */

.admin-settings-page .container {
    max-width: 1220px;
}

.admin-settings-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
}

.admin-settings-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #151515;
}

.admin-settings-hero p {
    max-width: 900px;
    margin: 0;
    font-size: 20px;
    line-height: 1.7;
    color: #26384f;
}

.admin-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.settings-control-card {
    padding: 42px;
    border: 1px solid #dbe3ec;
    border-radius: 28px;
    background: #f8fafc;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.06);
    margin-bottom: 34px;
}

.settings-card-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.settings-label {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #516579;
}

.settings-card-header h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #071126;
}

.settings-divider {
    width: 100%;
    height: 4px;
    margin: 28px 0 34px;
    background: #071126;
    border-radius: 999px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.settings-item {
    min-height: 120px;
    padding: 24px;
    border: 1px solid #dbe3ec;
    border-radius: 22px;
    background: #ffffff;
}

.settings-item span {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #516579;
}

.settings-item strong {
    display: block;
    font-size: 18px;
    line-height: 1.35;
    color: #071126;
}

.settings-note {
    padding: 24px 28px;
    border: 1px solid #dbe3ec;
    border-radius: 22px;
    background: #ffffff;
}

.settings-note span {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #516579;
}

.settings-note p {
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: #26384f;
}

.settings-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.settings-module-card {
    display: block;
    min-height: 190px;
    padding: 26px;
    border: 1px solid #dbe3ec;
    border-radius: 24px;
    background: #ffffff;
    color: #071126;
    text-decoration: none;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.settings-module-card:hover {
    transform: translateY(-3px);
    border-color: #071126;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.09);
}

.settings-module-card span {
    display: block;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #516579;
}

.settings-module-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.15;
    color: #071126;
}

.settings-module-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #26384f;
}

@media (max-width: 1100px) {
    .admin-settings-hero,
    .settings-card-header {
        grid-template-columns: 1fr;
    }

    .admin-page-actions {
        justify-content: flex-start;
    }

    .settings-grid,
    .settings-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .settings-control-card {
        padding: 26px;
        border-radius: 22px;
    }

    .settings-grid,
    .settings-module-grid {
        grid-template-columns: 1fr;
    }

    .admin-settings-hero h1 {
        font-size: 44px;
    }

    .settings-card-header h2 {
        font-size: 34px;
    }
}
/* =========================================================
   GCE ADMIN SETTINGS FINAL POLISH
   Prevent oversized heading + improve bottom spacing
========================================================= */

.admin-settings-page {
    padding-bottom: 80px;
}

.settings-control-card {
    overflow: hidden;
}

.settings-card-header h2 {
    max-width: 820px;
}

.settings-module-grid {
    margin-bottom: 36px;
}

.settings-module-card {
    min-height: 260px;
}

@media (max-width: 1280px) {
    .settings-card-header h2 {
        font-size: clamp(36px, 4vw, 52px);
    }

    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-module-card {
        min-height: 220px;
    }
}

@media (max-width: 760px) {
    .admin-settings-hero {
        margin-bottom: 34px;
    }

    .settings-control-card {
        padding: 24px;
    }

    .settings-card-header h2 {
        font-size: 34px;
        line-height: 1.08;
    }

    .settings-grid,
    .settings-module-grid {
        grid-template-columns: 1fr;
    }

    .settings-module-card {
        min-height: auto;
    }
}
/* ==========================================================
   GCE ADMIN DASHBOARD FINAL POLISH - LIGHT MODE v1
========================================================== */

.admin-dashboard-page .admin-summary-strip {
    margin-bottom: 34px;
}

.admin-dashboard-page .dashboard-metric-grid {
    gap: 22px;
}

.admin-dashboard-page .dashboard-metric-card {
    min-height: 150px;
}

.admin-dashboard-page .admin-quick-actions {
    margin-top: 6px;
    margin-bottom: 46px;
}

.admin-dashboard-page .admin-quick-actions a {
    min-height: 54px;
    border-radius: 15px;
}

.dashboard-activity-item {
    border: 1px solid #dbe3ee;
}

.dashboard-activity-item:hover {
    border-color: #0b1328;
}

.dashboard-activity-item:focus,
.dashboard-activity-item:focus-visible {
    outline: none;
    border-color: #0b1328;
}
/* =========================================================
   GCE ADMIN PROJECTS POLISH - FINAL STABLE
========================================================= */

.project-record-card .admin-delete-form {
    margin-top: 22px;
}

.project-record-card .admin-delete-form .admin-action-btn {
    width: auto;
    min-width: 240px;
}

.project-record-card .admin-delete-form .admin-action-btn.danger {
    background: #071126;
    color: #ffffff;
}

.project-record-card .admin-delete-form .admin-action-btn.danger:hover {
    opacity: 0.92;
}
/* =========================================================
   ADMIN INBOX FINAL LAYOUT POLISH - LIGHT MODE v1
========================================================= */

.admin-inbox-page .action-panel {
    overflow: hidden;
}

.admin-inbox-list {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.admin-inbox-card {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr) minmax(170px, 220px);
    gap: 28px;
    align-items: center;
    width: 100%;
    padding: 34px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.admin-inbox-person strong {
    display: block;
    color: #071126;
    font-size: 1.08rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.admin-inbox-person span {
    display: block;
    color: #334155;
    font-size: 0.95rem;
    word-break: break-word;
}

.admin-inbox-content {
    min-width: 0;
}

.admin-inbox-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.admin-inbox-meta > span:first-child {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.admin-inbox-meta > span:last-child {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 800;
}

.admin-inbox-content p {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.admin-inbox-actions {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.admin-inbox-actions form {
    width: 100%;
    margin: 0;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid #071126;
    background: #ffffff;
    color: #071126;
    font-size: 0.95rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.admin-action-btn.primary {
    background: #475569;
    border-color: #475569;
    color: #ffffff;
}

.admin-action-btn.secondary {
    background: #ffffff;
    border-color: #071126;
    color: #071126;
}

.admin-action-btn.danger {
    background: #071126;
    border-color: #071126;
    color: #ffffff;
}

.admin-action-btn.disabled {
    opacity: 0.82;
    cursor: not-allowed;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 14px;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.status-read {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.status-unread,
.status-new,
.status-pending {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
}

.status-closed {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}

@media (max-width: 1100px) {
    .admin-inbox-card {
        grid-template-columns: 1fr;
    }

    .admin-inbox-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .admin-inbox-card {
        padding: 24px;
    }

    .admin-inbox-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-recent-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }
}
/* =========================================================
   GCE ADMIN CRUD CONSISTENCY POLISH
   Stable visual layer for Projects, Media, and Partners
   ========================================================= */

.admin-form-card,
.admin-list-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 42px;
    margin-top: 34px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.04);
}

.admin-form-card h2,
.admin-list-card h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 26px;
    color: #0f172a;
    font-weight: 800;
}

.admin-form-card h2::after,
.admin-list-card h2::after {
    content: "";
    display: block;
    width: 420px;
    max-width: 100%;
    height: 4px;
    background: #0f172a;
    margin-top: 18px;
}

.admin-form label,
.admin-form-card label {
    display: block;
    margin-top: 24px;
    margin-bottom: 10px;
    font-weight: 800;
    color: #0f172a;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-form-card input,
.admin-form-card textarea,
.admin-form-card select {
    width: 100%;
    border: 1px solid #d9e0ea;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 1rem;
    background: #ffffff;
    color: #0f172a;
}

.admin-form textarea,
.admin-form-card textarea {
    min-height: 145px;
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-form-card input:focus,
.admin-form-card textarea:focus,
.admin-form-card select:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.admin-primary-btn,
.admin-secondary-btn,
.admin-danger-btn,
.admin-form button,
.admin-form-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 16px 28px;
    border: 0;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
}

.admin-primary-btn,
.admin-form button,
.admin-form-card button {
    background: #071126;
    color: #ffffff;
}

.admin-secondary-btn {
    background: #475569;
    color: #ffffff;
}

.admin-danger-btn {
    background: #071126;
    color: #ffffff;
}

.admin-primary-btn:hover,
.admin-secondary-btn:hover,
.admin-danger-btn:hover,
.admin-form button:hover,
.admin-form-card button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.admin-full-btn {
    width: 100%;
    margin-top: 28px;
}

.admin-delete-btn {
    margin-top: 26px;
    min-width: 260px;
}

.admin-empty-state {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 36px;
    margin-top: 28px;
    color: #0f172a;
}

.admin-empty-state .eyebrow {
    display: block;
    margin-bottom: 16px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.24em;
    color: #64748b;
    text-transform: uppercase;
}

.admin-empty-state h3 {
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #0f172a;
}

.admin-empty-state p {
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
    margin: 0;
}

.admin-record-form {
    margin-top: 28px;
}

@media (max-width: 768px) {
    .admin-form-card,
    .admin-list-card {
        padding: 26px;
    }

    .admin-form-card h2,
    .admin-list-card h2 {
        font-size: 2rem;
    }

    .admin-delete-btn {
        width: 100%;
    }
}
/* =========================
   Admin Feedback Alerts
   ========================= */

.admin-alert {
    width: 100%;
    padding: 18px 24px;
    margin: 26px 0 32px;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    border: 1px solid #d8dee8;
    background: #f7f9fc;
    color: #0b1220;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.admin-alert.success {
    background: #f3fbf6;
    border-color: #bfe8cc;
    color: #14532d;
}

.admin-alert.danger {
    background: #fff5f5;
    border-color: #f1b8b8;
    color: #7f1d1d;
}
/* =========================================================
   ADMIN DASHBOARD VISUAL POLISH
   Checkpoint: ADMIN_DASHBOARD_METRICS_STABLE_CHECKPOINT
   Purpose: Strengthen dashboard presentation without changing logic
========================================================= */

.admin-dashboard-page .admin-page-lead {
    max-width: 900px;
    color: #1f2937;
    line-height: 1.7;
}

.admin-summary-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 42px;
    margin: 34px 0 42px;
    border: 1px solid #dfe6ef;
    border-radius: 22px;
    background: #f8fafc;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
}

.admin-summary-strip h2 {
    margin: 0 0 12px;
    font-size: 32px;
    color: #071126;
}

.admin-summary-strip p {
    margin: 0;
    max-width: 780px;
    color: #334155;
    line-height: 1.7;
}

.admin-summary-strip span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border: 1px solid #071126;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #071126;
    background: #ffffff;
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 34px 0;
}

.dashboard-metric-card {
    display: block;
    padding: 28px 30px;
    min-height: 160px;
    border: 1px solid #dfe6ef;
    border-radius: 22px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.09);
}

.metric-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.metric-card-top h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
    color: #071126;
}

.metric-card-top span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid #dfe6ef;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
    background: #ffffff;
}

.dashboard-metric-card > p {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
    color: #475569;
}

.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin: 34px 0 42px;
}

.admin-quick-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #071126;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    line-height: 1.35;
}

.admin-quick-actions a.secondary {
    background: #ffffff;
    color: #071126;
    border: 1px solid #071126;
}

.admin-recent-panel {
    margin-top: 34px;
    padding: 42px;
    border: 1px solid #dfe6ef;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.05);
}

.dashboard-recent-card {
    padding: 34px;
    border: 1px solid #dfe6ef;
    border-radius: 22px;
    background: #ffffff;
}

.dashboard-recent-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-recent-title h2 {
    margin: 0 0 12px;
    font-size: 34px;
    color: #071126;
}

.dashboard-recent-title p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}

.dashboard-recent-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border: 1px solid #071126;
    border-radius: 16px;
    color: #071126;
    text-decoration: none;
    font-weight: 900;
}

.admin-empty-state.compact {
    padding: 28px 32px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
}

.admin-empty-state.compact h3 {
    margin: 0 0 12px;
    color: #071126;
}

.admin-empty-state.compact p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}

.dashboard-activity-list {
    display: grid;
    gap: 14px;
}

.dashboard-activity-item {
    display: block;
    padding: 20px 22px;
    border: 1px solid #dfe6ef;
    border-radius: 18px;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
}

.dashboard-activity-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.dashboard-activity-name strong {
    color: #071126;
}

.dashboard-activity-name span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.dashboard-activity-item p {
    margin: 0 0 12px;
    color: #334155;
    line-height: 1.6;
}

.dashboard-activity-item time {
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .dashboard-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-summary-strip,
    .dashboard-recent-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .dashboard-metric-grid,
    .admin-quick-actions {
        grid-template-columns: 1fr;
    }

    .admin-summary-strip,
    .admin-recent-panel,
    .dashboard-recent-card {
        padding: 24px;
    }

    .admin-summary-strip h2,
    .dashboard-recent-title h2 {
        font-size: 28px;
    }
}
/* ADMIN INBOX LIST VISUAL OVERFLOW FIX */
.inbox-card-stable {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 2fr) minmax(180px, 220px);
    gap: 28px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.inbox-card-stable .admin-inbox-person,
.inbox-card-stable .admin-inbox-content,
.inbox-card-stable .admin-inbox-actions {
    min-width: 0;
}

.inbox-card-stable .admin-inbox-person strong,
.inbox-card-stable .admin-inbox-person span,
.inbox-card-stable .admin-inbox-content p,
.inbox-card-stable .admin-inbox-meta span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.inbox-card-stable .admin-inbox-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.inbox-card-stable .admin-inbox-actions a,
.inbox-card-stable .admin-inbox-actions form,
.inbox-card-stable .admin-inbox-actions button,
.inbox-card-stable .admin-inbox-actions span {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.inbox-card-stable .admin-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    text-align: center;
    white-space: normal;
}

@media (max-width: 1100px) {
    .inbox-card-stable {
        grid-template-columns: 1fr;
    }

    .inbox-card-stable .admin-inbox-actions {
        margin-top: 18px;
    }
}
/* ADMIN INBOX FINAL CONTAINMENT FIX */
.admin-inbox-list {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.admin-inbox-card.inbox-card-stable {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 2fr) 220px !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.admin-inbox-card.inbox-card-stable .admin-inbox-actions {
    position: static !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 220px !important;
    max-width: 220px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.admin-inbox-card.inbox-card-stable .admin-inbox-actions a,
.admin-inbox-card.inbox-card-stable .admin-inbox-actions form,
.admin-inbox-card.inbox-card-stable .admin-inbox-actions button,
.admin-inbox-card.inbox-card-stable .admin-inbox-actions span {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.admin-inbox-card.inbox-card-stable .admin-action-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 56px !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    overflow: hidden !important;
}

@media (max-width: 1200px) {
    .admin-inbox-card.inbox-card-stable {
        grid-template-columns: 1fr !important;
    }

    .admin-inbox-card.inbox-card-stable .admin-inbox-actions {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 18px !important;
    }
}
/* =========================================================
   Public Homepage Stable Visual Polish
   Controlled layer - no logic, no route, no database changes
========================================================= */

.page-section {
    padding: 64px 0;
    border-bottom: 1px solid #e5e7eb;
}

.page-section h2 {
    font-size: clamp(2.4rem, 4.8vw, 4.6rem);
    line-height: 1.08;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 34px;
    max-width: 980px;
}

.page-section h2::after {
    content: "";
    display: block;
    width: min(100%, 760px);
    height: 4px;
    background: #0f172a;
    margin-top: 20px;
}

/* Main institutional text boxes */
.section-text-box {
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-left: 7px solid #0f172a;
    padding: 38px 44px;
    margin-top: 42px;
    max-width: 1120px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.06);
}

.section-text-box p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #0f172a;
    margin-bottom: 18px;
}

.section-text-box p:last-child {
    margin-bottom: 0;
}

/* Keep cards safe, but do not force narrow institutional sections */
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 26px;
    margin-top: 40px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.info-card h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 14px;
    font-weight: 800;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
}

/* Buttons */
.section-link-wrap {
    margin-top: 28px;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    border-radius: 12px;
}

.card-cta:hover {
    opacity: 0.92;
}

/* Responsive protection */
@media (max-width: 1100px) {
    .info-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .page-section {
        padding: 46px 0;
    }

    .page-section h2 {
        font-size: 2.35rem;
    }

    .section-text-box,
    .info-card {
        padding: 26px 22px;
    }

    .info-card-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Institutional Panel Premium Polish
   For long-form homepage sections
========================================================= */

.institutional-panel {
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-left: 7px solid #0f172a;
    border-radius: 22px;
    padding: 42px 46px;
    margin-top: 42px;
    max-width: 1120px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.institutional-panel p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #0f172a;
    margin: 0;
}

.institutional-panel br {
    display: block;
    content: "";
    margin-bottom: 16px;
}

.institutional-panel strong {
    font-weight: 900;
    color: #061126;
}
/* =========================================================
   GCE ADMIN DASHBOARD METRIC GRID WIDTH FIX — v1
   Fixes dashboard cards overflow and clipped action badges
   ========================================================= */

.admin-content,
.admin-page,
.admin-main,
.admin-dashboard {
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dashboard-metric-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.metric-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.metric-card-top h3 {
    max-width: 65%;
    overflow-wrap: break-word;
}

.metric-card-top span {
    flex-shrink: 0;
    max-width: 44%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dashboard action buttons alignment */
.admin-actions,
.dashboard-actions,
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

/* Responsive lock */
@media (max-width: 1200px) {
    .dashboard-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-metric-grid {
        grid-template-columns: 1fr;
    }

    .metric-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .metric-card-top h3,
    .metric-card-top span {
        max-width: 100%;
    }
}
/* =========================================================
   GCE ADMIN DASHBOARD METRIC BADGE ALIGNMENT FIX — v2
   Keeps metric badges readable inside dashboard cards
   ========================================================= */

.dashboard-metric-card {
    padding: 34px 32px;
}

.metric-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.metric-card-top h3 {
    flex: 1 1 auto;
    max-width: calc(100% - 140px);
    margin: 0;
    line-height: 1.18;
}

.metric-card-top span {
    flex: 0 0 auto;
    max-width: 130px;
    min-width: fit-content;
    padding: 12px 18px;
    border-radius: 999px;
    text-align: center;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* Allow long badge text like OPEN INBOX to fit safely */
@media (max-width: 1200px) {
    .metric-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .metric-card-top h3,
    .metric-card-top span {
        max-width: 100%;
    }
}
/* =========================================================
   GCE ADMIN DASHBOARD METRIC CARD TITLE FIX — v3
   Prevents metric titles from breaking too narrowly
   ========================================================= */

.dashboard-metric-card {
    min-height: 210px;
    padding: 34px 32px;
}

.metric-card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
}

.metric-card-top h3 {
    width: 100%;
    max-width: 100% !important;
    margin: 0;
    line-height: 1.18;
    word-break: normal;
    overflow-wrap: normal;
}

.metric-card-top span {
    width: auto;
    max-width: 100% !important;
    min-width: 130px;
    padding: 12px 18px;
    border-radius: 999px;
    text-align: center;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
/* ==================================================
   PUBLIC PROJECTS DYNAMIC RECORDS POLISH — v1
================================================== */

.public-projects-dynamic .info-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
}

.public-projects-dynamic .info-card {
    max-width: 520px;
}
/* =========================================================
   ADMIN SETTINGS PAGE FINAL STABLE LAYOUT
   ========================================================= */

.admin-settings-page {
    width: 100%;
    overflow-x: hidden;
}

.admin-settings-page .container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 40px;
    box-sizing: border-box;
}

.admin-settings-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 40px;
}

.admin-settings-hero h1 {
    font-size: clamp(46px, 6vw, 84px);
    line-height: 0.95;
    margin: 0 0 24px 0;
    max-width: 760px;
}

.admin-settings-hero p {
    font-size: 22px;
    line-height: 1.55;
    max-width: 760px;
    margin: 0;
}

.settings-control-card {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 42px;
    margin: 0 0 36px 0;
    border: 1px solid #d9e0ea;
    border-radius: 24px;
    background: #ffffff;
    overflow: hidden;
}

.settings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
}

.settings-label,
.settings-item span,
.settings-note span,
.settings-module-card span {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-weight: 800;
    font-size: 13px;
    color: #526273;
    margin-bottom: 12px;
}

.settings-card-header h2 {
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1;
    margin: 0;
    max-width: 780px;
}

.settings-divider {
    width: 100%;
    height: 2px;
    background: #0d1729;
    margin: 30px 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.settings-item {
    border: 1px solid #d9e0ea;
    border-radius: 18px;
    padding: 22px;
    background: #f8fafc;
    min-width: 0;
}

.settings-item strong {
    display: block;
    font-size: 18px;
    line-height: 1.35;
}

.settings-note {
    margin-top: 28px;
    padding: 26px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
}

.settings-note p {
    font-size: 18px;
    line-height: 1.55;
    margin: 0;
}

.settings-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.settings-module-card {
    display: block;
    min-height: 260px;
    padding: 32px;
    border: 1px solid #d9e0ea;
    border-radius: 24px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    overflow: hidden;
}

.settings-module-card strong {
    display: block;
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.settings-module-card p {
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

.settings-module-card:hover {
    border-color: #0d1729;
}

@media (max-width: 1100px) {
    .settings-grid,
    .settings-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-settings-hero,
    .settings-card-header {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .admin-settings-page .container {
        padding: 32px 20px;
    }

    .settings-grid,
    .settings-module-grid {
        grid-template-columns: 1fr;
    }

    .settings-control-card,
    .settings-module-card {
        padding: 24px;
    }
}.settings-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 14px 22px;
    border: 1px solid #0b1326;
    border-radius: 999px;
    background: #0b1326;
    color: #ffffff;
    font-style: normal;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-module-card:hover .settings-card-action {
    background: #ffffff;
    color: #0b1326;
}
/* =========================================================
   GCE ADMIN TABLE ACTION LINKS POLISH - v1
   ========================================================= */

.admin-content table a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    margin: 4px 4px 4px 0;
    border: 1px solid #0f172a;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.admin-content table a:hover {
    background: #0f172a;
    color: #ffffff;
}

/* GCE Tanzania header logo live controlled update - 2026-06-05 */
.site-brand-with-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.site-logo-img {
    width: 72px;
    max-width: 72px;
    height: auto;
    display: block;
}

.site-logo-text {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: inherit;
}

.site-brand-subline {
    margin-top: 0.15rem;
}

@media (max-width: 640px) {
    .site-logo-img {
        width: 56px;
        max-width: 56px;
    }

    .site-logo-link {
        gap: 0.4rem;
    }
}