:root {
    --utpm-ink-950: #17121f;
    --utpm-ink-900: #21182c;
    --utpm-ink-800: #312245;
    --utpm-plum-900: #2a0d46;
    --utpm-plum-700: #5b2c88;
    --utpm-plum-500: #8c55bf;
    --utpm-gold-600: #b98a31;
    --utpm-gold-500: #d5a13b;
    --utpm-gold-300: #efd28c;
    --utpm-sand-100: #fbf6ed;
    --utpm-sand-200: #f2eadc;
    --utpm-mist: #eef2f8;
    --utpm-line: rgba(71, 46, 108, 0.14);
    --utpm-shadow-lg: 0 30px 80px rgba(32, 18, 54, 0.18);
    --utpm-shadow-md: 0 18px 40px rgba(32, 18, 54, 0.12);
    --utpm-shadow-sm: 0 10px 24px rgba(32, 18, 54, 0.08);
    --utpm-radius-xl: 28px;
    --utpm-radius-lg: 22px;
    --utpm-radius-md: 16px;
    --utpm-radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--utpm-ink-900);
    background:
        radial-gradient(circle at top left, rgba(213, 161, 59, 0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(91, 44, 136, 0.12), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, #f8f3eb 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.02em;
}

a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

.public-site main,
.public-site section,
.public-site header {
    position: relative;
    z-index: 1;
}

.public-site::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(91, 44, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 44, 136, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 78%);
}

.utpm-navbar {
    background: rgba(23, 18, 31, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(239, 210, 140, 0.18);
    padding: 1rem 0;
    z-index: 1040;
}

.utpm-navbar .container {
    gap: 1rem;
}

.navbar-brand {
    text-decoration: none;
}

.brand-logo {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    padding: 0.4rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(239, 210, 140, 0.2));
    border: 1px solid rgba(239, 210, 140, 0.32);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    object-fit: contain;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--utpm-gold-500), var(--utpm-gold-300));
    color: var(--utpm-plum-900);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.brand-subtext {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 0.55rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(239, 210, 140, 0.18);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    margin: 0.15rem 0.2rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.member-nav-note {
    color: rgba(239, 210, 140, 0.86) !important;
    background: transparent !important;
    cursor: default;
}

.public-flash-wrap {
    position: relative;
    z-index: 1030;
    margin-top: 6.75rem;
}

.public-flash-alert {
    border-radius: 18px;
    box-shadow: var(--utpm-shadow-sm);
}

.btn-gold,
.btn-admin-primary {
    background: linear-gradient(135deg, var(--utpm-gold-500), #f4d48d);
    border: none;
    color: var(--utpm-plum-900);
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(185, 138, 49, 0.24);
}

.btn-gold:hover,
.btn-gold:focus,
.btn-admin-primary:hover,
.btn-admin-primary:focus {
    color: #22162f;
    background: linear-gradient(135deg, #ca9632, #f4deaa);
    transform: translateY(-1px);
}

.btn-outline-light,
.btn-admin-ghost {
    border-color: rgba(255, 255, 255, 0.58);
    color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-admin-ghost:hover,
.btn-admin-ghost:focus {
    background: #fff;
    color: var(--utpm-plum-900);
}

.eyebrow,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--utpm-gold-300);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
    content: '';
    width: 44px;
    height: 1px;
    background: currentColor;
    opacity: 0.85;
}

.hero-section {
    padding: 8.5rem 0 4.5rem;
    background:
        radial-gradient(circle at 84% 14%, rgba(255, 215, 128, 0.22), transparent 22%),
        radial-gradient(circle at 12% 24%, rgba(181, 130, 248, 0.18), transparent 24%),
        linear-gradient(135deg, #130e19 0%, #2d1449 46%, #5b2c88 100%);
    color: #fff;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    opacity: 0.4;
    filter: blur(6px);
}

.hero-section::before {
    width: 420px;
    height: 420px;
    right: -140px;
    top: 80px;
    border: 1px solid rgba(239, 210, 140, 0.18);
}

.hero-section::after {
    width: 220px;
    height: 220px;
    left: -40px;
    bottom: 40px;
    background: radial-gradient(circle, rgba(239, 210, 140, 0.16), transparent 68%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(8, 5, 14, 0.1), rgba(8, 5, 14, 0.28)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3.2rem, 7vw, 5.6rem);
    font-weight: 700;
    line-height: 0.92;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-summary-card {
    margin-top: 2.2rem;
    padding: 1.2rem 1.35rem;
    border-radius: var(--utpm-radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}

.hero-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-summary-item {
    padding-right: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-summary-item:last-child {
    border-right: none;
    padding-right: 0;
}

.hero-summary-label {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(239, 210, 140, 0.9);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-summary-value {
    display: block;
    font-size: 0.98rem;
    line-height: 1.55;
}

.hero-panel {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    padding: 1.1rem;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 26px 80px rgba(7, 5, 12, 0.45);
}

.hero-panel::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px solid rgba(239, 210, 140, 0.18);
    pointer-events: none;
}

.logo-card {
    position: relative;
    border-radius: 28px;
    padding: 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(239, 210, 140, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.14);
    animation: floatY 5s ease-in-out infinite;
}

.logo-card img {
    width: min(100%, 320px);
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 26px 44px rgba(17, 10, 30, 0.36));
}

.hero-logo {
    width: min(100%, 320px);
    max-width: 320px;
    height: auto;
}

.hero-panel-stack {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.hero-panel-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(12, 9, 18, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel-item strong {
    display: block;
    font-size: 0.95rem;
}

.hero-panel-item span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.hero-panel-tag {
    white-space: nowrap;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(239, 210, 140, 0.16);
    color: var(--utpm-gold-300);
    font-size: 0.76rem;
    font-weight: 700;
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.section-pad {
    padding: 6rem 0;
}

.section-shell {
    padding: 2.2rem;
    border-radius: var(--utpm-radius-xl);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--utpm-shadow-md);
    backdrop-filter: blur(10px);
}

.section-accent {
    background:
        radial-gradient(circle at right top, rgba(91, 44, 136, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(239, 230, 216, 0.68), rgba(255, 255, 255, 0.62));
}

.section-title {
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.9rem;
    line-height: 0.94;
}

.section-intro {
    max-width: 640px;
    color: #55486b;
    font-size: 1.03rem;
    line-height: 1.8;
}

.section-note {
    color: #5c5070;
    font-weight: 600;
}

.surface-card,
.stat-card,
.ministry-card,
.event-card,
.contact-card,
.visit-card {
    height: 100%;
    padding: 1.55rem;
    border-radius: var(--utpm-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(91, 44, 136, 0.08);
    box-shadow: var(--utpm-shadow-sm);
}

.stat-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 245, 237, 0.96));
}

.stat-card h3,
.ministry-card h3,
.event-card h3,
.contact-card h3,
.visit-card h3 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: var(--utpm-plum-900);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.service-meta {
    display: block;
    color: var(--utpm-gold-600);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.service-time {
    margin-bottom: 0.2rem;
    font-weight: 700;
    color: var(--utpm-ink-900);
}

.service-desc,
.muted-copy {
    color: #665a79;
}

.value-card {
    height: 100%;
    padding: 1.6rem;
    border-radius: var(--utpm-radius-lg);
    background: linear-gradient(180deg, rgba(42, 13, 70, 0.96), rgba(65, 31, 103, 0.92));
    color: #fff;
    box-shadow: var(--utpm-shadow-md);
}

.value-card h3 {
    color: #fff;
    font-size: 1.45rem;
    margin-bottom: 0.65rem;
}

.value-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.value-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(239, 210, 140, 0.12);
    color: var(--utpm-gold-300);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ministry-card {
    position: relative;
    overflow: hidden;
}

.ministry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(91, 44, 136, 0.03), transparent 40%);
    pointer-events: none;
}

.ministry-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(91, 44, 136, 0.12), rgba(239, 210, 140, 0.18));
    color: var(--utpm-plum-900);
    font-weight: 800;
    font-size: 1.05rem;
}

.events-wrap {
    display: grid;
    gap: 1.4rem;
}

.event-card {
    position: relative;
}

.event-date {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    background: rgba(239, 210, 140, 0.22);
    color: var(--utpm-gold-600);
    font-size: 0.76rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.9rem;
}

.managed-event-card {
    border-left: 4px solid var(--utpm-gold-500);
}

.event-card-media-wrap {
    margin: -1.55rem -1.55rem 1.15rem;
    border-radius: calc(var(--utpm-radius-lg) - 2px) calc(var(--utpm-radius-lg) - 2px) 18px 18px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, rgba(42, 13, 70, 0.94), rgba(77, 39, 120, 0.9));
}

.event-card-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.event-card ul {
    color: #5d536f;
}

.event-card ul li + li {
    margin-top: 0.45rem;
}

.schedule-table {
    overflow: hidden;
    border-radius: 18px;
}

.schedule-table th {
    background: rgba(91, 44, 136, 0.08);
    color: #432764;
    font-weight: 800;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.schedule-table td,
.schedule-table th {
    border-color: rgba(91, 44, 136, 0.14);
    padding: 1rem 1.05rem;
}

.schedule-table tbody tr:hover {
    background: rgba(239, 210, 140, 0.08);
}

.form-shell {
    padding: 1.7rem;
    border-radius: var(--utpm-radius-lg);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(91, 44, 136, 0.08);
    box-shadow: var(--utpm-shadow-sm);
}

.form-label {
    font-weight: 700;
    color: #43345b;
}

.form-control,
.form-select {
    border-radius: 16px;
    border: 1px solid rgba(91, 44, 136, 0.16);
    padding: 0.82rem 0.95rem;
    background-color: rgba(255, 255, 255, 0.92);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(91, 44, 136, 0.45);
    box-shadow: 0 0 0 0.24rem rgba(140, 85, 191, 0.13);
}

textarea.form-control {
    min-height: 140px;
}

.form-message {
    font-weight: 700;
}

.form-message.success {
    color: #117a38;
}

.form-message.error {
    color: #b1262e;
}

.contact-list {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.35rem;
}

.contact-list-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.contact-list-item strong {
    display: block;
    color: var(--utpm-plum-900);
}

.contact-marker {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 44, 136, 0.08);
    color: var(--utpm-plum-700);
    font-weight: 800;
}

.gallery-card {
    height: 100%;
    overflow: hidden;
    border-radius: var(--utpm-radius-lg);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(91, 44, 136, 0.08);
    box-shadow: var(--utpm-shadow-sm);
}

.gallery-media-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(42, 13, 70, 0.94), rgba(77, 39, 120, 0.9));
}

.gallery-media-trigger {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    display: block;
    background: transparent;
    cursor: zoom-in;
    text-align: inherit;
}

.gallery-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.gallery-media-overlay {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(19, 11, 30, 0.72);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.gallery-media-trigger:hover .gallery-media,
.gallery-media-trigger:focus-visible .gallery-media {
    transform: scale(1.04);
}

.gallery-media-trigger:hover .gallery-media-overlay,
.gallery-media-trigger:focus-visible .gallery-media-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-media-trigger:focus-visible {
    outline: 3px solid rgba(213, 161, 59, 0.42);
    outline-offset: -3px;
}

.gallery-card-body {
    padding: 1.25rem;
}

.gallery-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(213, 161, 59, 0.18);
    color: var(--utpm-gold-600);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-event-name {
    margin-bottom: 0.55rem;
    color: #6a5f80;
    font-weight: 700;
}

.gallery-story-card {
    height: 100%;
    overflow: hidden;
    border-radius: var(--utpm-radius-lg);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(91, 44, 136, 0.08);
    box-shadow: var(--utpm-shadow-sm);
}

.gallery-story-card h3,
.gallery-featured-copy h3,
.gallery-post-article h1,
.gallery-share-panel h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--utpm-plum-900);
    margin-bottom: 0.8rem;
}

.gallery-story-media-link,
.gallery-featured-media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-story-kicker {
    color: var(--utpm-gold-600);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.gallery-story-summary {
    color: #5f5472;
    line-height: 1.8;
    margin-bottom: 0;
}

.gallery-story-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.gallery-featured-story {
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(213, 161, 59, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(27, 16, 39, 0.98), rgba(56, 29, 89, 0.96));
    color: #fff;
    box-shadow: var(--utpm-shadow-lg);
}

.gallery-featured-media {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-featured-copy {
    height: 100%;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-featured-copy h3 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 0.96;
}

.gallery-featured-copy .gallery-story-summary {
    color: rgba(255, 255, 255, 0.82);
}

.gallery-featured-copy .event-date {
    background: rgba(239, 210, 140, 0.14);
    color: var(--utpm-gold-300);
}

.gallery-post-hero {
    padding-bottom: 3rem;
}

.gallery-post-title {
    max-width: 760px;
}

.gallery-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.gallery-story-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 700;
}

.gallery-post-media-shell {
    border-radius: 30px;
    overflow: hidden;
    background: rgba(12, 9, 18, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 70px rgba(11, 9, 18, 0.38);
}

.gallery-post-media {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 560px;
}

.gallery-post-article,
.gallery-share-panel {
    height: 100%;
    padding: 2rem;
    border-radius: var(--utpm-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(91, 44, 136, 0.08);
    box-shadow: var(--utpm-shadow-sm);
}

.blog-featured-post {
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(213, 161, 59, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(27, 16, 39, 0.98), rgba(56, 29, 89, 0.96));
    color: #fff;
    box-shadow: var(--utpm-shadow-lg);
}

.blog-featured-placeholder,
.blog-card-placeholder,
.blog-post-placeholder {
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(239, 210, 140, 0.18), transparent 24%),
        linear-gradient(145deg, rgba(33, 24, 44, 0.96), rgba(91, 44, 136, 0.92));
}

.blog-featured-placeholder span,
.blog-card-placeholder span,
.blog-post-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--utpm-gold-300);
    font-size: 2rem;
    font-weight: 800;
}

.blog-card {
    height: 100%;
    overflow: hidden;
    border-radius: var(--utpm-radius-lg);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(91, 44, 136, 0.08);
    box-shadow: var(--utpm-shadow-sm);
}

.blog-card-media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.blog-card-placeholder {
    aspect-ratio: 16 / 10;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.2rem;
}

.blog-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: flex-end;
}

.blog-like-count {
    color: #695d7c;
    font-size: 0.88rem;
    font-weight: 700;
}

.blog-post-placeholder {
    min-height: 420px;
}

.blog-post-placeholder span {
    width: 120px;
    height: 120px;
    font-size: 2.4rem;
}

.blog-member-prompt {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(91, 44, 136, 0.06);
    border: 1px solid rgba(91, 44, 136, 0.12);
}

.blog-member-prompt strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--utpm-plum-900);
}

.gallery-post-body p {
    margin-bottom: 1.15rem;
    color: #4e4462;
    font-size: 1.04rem;
    line-height: 1.95;
}

.gallery-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.gallery-share-url {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(91, 44, 136, 0.06);
    border: 1px solid rgba(91, 44, 136, 0.12);
    color: #5c5070;
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: break-word;
}

.gallery-lightbox .modal-content {
    border: 1px solid rgba(239, 210, 140, 0.14);
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(213, 161, 59, 0.12), transparent 24%),
        linear-gradient(160deg, #140e1d 0%, #241432 52%, #311d49 100%);
    color: #fff;
    box-shadow: 0 32px 90px rgba(11, 9, 18, 0.52);
}

.gallery-lightbox .modal-header {
    padding: 1.4rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-lightbox .modal-body {
    padding: 1.5rem;
}

.gallery-lightbox-kicker {
    color: rgba(239, 210, 140, 0.84);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-lightbox-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 72vh;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(7, 7, 12, 0.48);
    margin-bottom: 1.25rem;
}

.gallery-lightbox-asset {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    background: #0b0912;
}

.gallery-lightbox-copy .gallery-event-name,
.gallery-lightbox-copy p {
    color: rgba(255, 255, 255, 0.82);
}

.gallery-lightbox .event-date {
    background: rgba(239, 210, 140, 0.14);
    color: var(--utpm-gold-300);
}

.admin-image-preview {
    padding: 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(82, 60, 121, 0.12);
    background: rgba(247, 243, 252, 0.82);
}

.admin-image-preview-asset {
    width: 100%;
    max-height: 220px;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

.admin-event-thumb {
    width: 56px;
    height: 56px;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 0.65rem;
    border: 1px solid rgba(82, 60, 121, 0.12);
}

.admin-access-panel {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(91, 44, 136, 0.05);
    border: 1px solid rgba(91, 44, 136, 0.1);
}

.admin-credential-card {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(82, 60, 121, 0.12);
}

.admin-credential-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-credential-row + .admin-credential-row {
    margin-top: 0.8rem;
}

.admin-credential-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f5273;
}

.admin-credential-value-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.admin-credential-value {
    margin: 0;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    background: rgba(42, 13, 70, 0.08);
    color: var(--utpm-plum-900);
}

.admin-credential-note {
    margin-top: 0.9rem;
    color: #5f5273;
}

.footer-section {
    position: relative;
    margin-top: 2rem;
    background:
        radial-gradient(circle at top right, rgba(239, 210, 140, 0.16), transparent 20%),
        linear-gradient(115deg, #130e19, #30154d 54%, #201129);
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 35%);
    pointer-events: none;
}

.footer-title {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.72);
    max-width: 460px;
}

.footer-link {
    color: var(--utpm-gold-300);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover,
.footer-link:focus {
    color: #fff;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-shell {
    background:
        radial-gradient(circle at top left, rgba(91, 44, 136, 0.1), transparent 24%),
        linear-gradient(180deg, #f5f6fb 0%, #edf1f7 100%);
    color: var(--utpm-ink-900);
}

.admin-top {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.95rem 0;
    background: rgba(23, 18, 31, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.admin-brand:hover,
.admin-brand:focus {
    color: #fff;
}

.admin-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--utpm-gold-500), var(--utpm-gold-300));
    color: var(--utpm-plum-900);
    font-weight: 800;
}

.admin-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.admin-brand-copy small {
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.68rem;
}

.admin-top .nav-link {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    margin: 0.1rem 0.12rem;
}

.admin-top .nav-link:hover,
.admin-top .nav-link:focus,
.admin-top .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.admin-page-hero {
    padding: 2.2rem 0 1.25rem;
}

.admin-page-panel {
    padding: 1.7rem 1.8rem;
    border-radius: var(--utpm-radius-xl);
    background:
        radial-gradient(circle at right top, rgba(239, 210, 140, 0.14), transparent 22%),
        linear-gradient(135deg, #1d1628 0%, #311d4c 52%, #53307e 100%);
    color: #fff;
    box-shadow: var(--utpm-shadow-lg);
}

.admin-page-panel h1 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    margin-bottom: 0.4rem;
}

.admin-page-panel p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
}

.admin-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.86rem;
    font-weight: 600;
}

.admin-shell main.container {
    padding-bottom: 4rem;
}

.admin-shell .card {
    border: 1px solid rgba(82, 60, 121, 0.08);
    border-radius: 24px;
    box-shadow: var(--utpm-shadow-sm);
}

.admin-shell .card-header {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid rgba(82, 60, 121, 0.08);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
}

.admin-shell .card-body {
    padding: 1.35rem;
}

.metric {
    overflow: hidden;
}

.metric .card-body {
    padding: 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(239, 210, 140, 0.2), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 242, 251, 0.96));
}

.metric-kicker {
    display: block;
    margin-bottom: 0.55rem;
    color: #6b5f82;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.metric-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    color: var(--utpm-plum-900);
}

.admin-shell .alert {
    border: 1px solid transparent;
    border-radius: 18px;
    box-shadow: var(--utpm-shadow-sm);
}

.admin-shell .alert-warning {
    background: #fff8e3;
    border-color: rgba(185, 138, 49, 0.18);
}

.admin-shell .table {
    margin-bottom: 0;
    vertical-align: middle;
}

.admin-shell .table thead th {
    border-bottom-width: 1px;
    border-color: rgba(82, 60, 121, 0.12);
    color: #64587b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(240, 235, 248, 0.62);
}

.admin-shell .table td,
.admin-shell .table th {
    padding: 1rem 1.15rem;
    border-color: rgba(82, 60, 121, 0.08);
}

.admin-shell .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(248, 246, 252, 0.72);
}

.admin-shell .table-responsive {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.admin-shell .list-group {
    gap: 0.8rem;
}

.admin-shell .list-group-item {
    border: 1px solid rgba(82, 60, 121, 0.08);
    border-radius: 18px;
}

.admin-shell .badge {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
}

.admin-shell .text-bg-warning {
    color: #53310a;
}

.admin-shell .btn-warning {
    background: linear-gradient(135deg, var(--utpm-gold-500), #f1d589);
    border: none;
    color: var(--utpm-plum-900);
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(185, 138, 49, 0.18);
}

.admin-shell .btn-warning:hover,
.admin-shell .btn-warning:focus {
    color: #24182f;
    background: linear-gradient(135deg, #ca9632, #f4deaa);
}

.admin-shell .btn-outline-primary,
.admin-shell .btn-outline-secondary,
.admin-shell .btn-outline-danger,
.admin-shell .btn-dark {
    border-radius: 999px;
}

.admin-shell .btn,
.public-site .btn,
.login-shell .btn {
    border-radius: 999px;
    padding: 0.78rem 1.2rem;
    font-weight: 700;
}

.admin-shell .btn-sm,
.public-site .btn-sm,
.login-shell .btn-sm {
    padding: 0.45rem 0.9rem;
}

.admin-shell .form-check-input {
    border-color: rgba(91, 44, 136, 0.28);
}

.admin-shell .form-check-input:checked {
    background-color: var(--utpm-plum-700);
    border-color: var(--utpm-plum-700);
}

.admin-kpi-grid {
    margin-bottom: 1.5rem;
}

.admin-kpi-card {
    height: 100%;
    padding: 1.2rem 1.25rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(239, 210, 140, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 242, 251, 0.96));
    border: 1px solid rgba(82, 60, 121, 0.08);
    box-shadow: var(--utpm-shadow-sm);
}

.admin-kpi-label {
    display: block;
    margin-bottom: 0.55rem;
    color: #6d617f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-kpi-value {
    display: block;
    color: var(--utpm-plum-900);
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1;
}

.admin-kpi-note {
    display: block;
    margin-top: 0.5rem;
    color: #74698a;
    font-size: 0.88rem;
}

.admin-card-intro {
    margin-bottom: 1.1rem;
    color: #6a5e80;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-toolbar-copy p {
    margin: 0.2rem 0 0;
    color: #6b607f;
}

.admin-toolbar-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-note {
    padding: 0.95rem 1.05rem;
    border-radius: 18px;
    background: rgba(91, 44, 136, 0.06);
    border: 1px solid rgba(91, 44, 136, 0.09);
    color: #5d5370;
    font-size: 0.95rem;
}

.admin-inline-form {
    display: inline;
}

.admin-empty {
    color: #6d647b;
    text-align: center;
}

.admin-table-title {
    display: block;
    font-weight: 700;
    color: var(--utpm-ink-900);
}

.admin-table-subtitle {
    display: block;
    margin-top: 0.2rem;
    color: #756b88;
    font-size: 0.88rem;
}

.admin-select-compact {
    min-width: 130px;
}

.login-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(239, 210, 140, 0.18), transparent 24%),
        linear-gradient(135deg, #120d18 0%, #31174d 52%, #6a3898 100%);
    color: #fff;
}

.login-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.65), transparent 82%);
    pointer-events: none;
}

.login-panel {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.login-brand {
    max-width: 460px;
}

.login-brand h1 {
    font-size: clamp(3rem, 6vw, 4.7rem);
    line-height: 0.95;
}

.login-brand p {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.8;
}

.login-card {
    border: none;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 44px rgba(8, 5, 14, 0.26);
}

.login-card .card-body {
    padding: 2rem;
}

.login-card h2 {
    color: var(--utpm-plum-900);
    font-size: 2.2rem;
    margin-bottom: 0.35rem;
}

.login-card .text-secondary {
    color: #62576f !important;
}

.login-card .form-label {
    color: #43345b;
}

.login-card .btn-link {
    color: var(--utpm-plum-700);
    font-weight: 700;
}

@media (max-width: 1199px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 430px;
    }
}

@media (max-width: 991px) {
    .section-pad {
        padding: 4.75rem 0;
    }

    .hero-section {
        padding-top: 7.5rem;
    }

    .hero-section .min-vh-100 {
        min-height: auto !important;
    }

    .hero-title {
        font-size: clamp(2.7rem, 12vw, 4.3rem);
    }

    .hero-summary-grid {
        grid-template-columns: 1fr;
    }

    .hero-summary-item {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding-bottom: 0.8rem;
    }

    .hero-summary-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .section-shell,
    .form-shell {
        padding: 1.5rem;
    }

    .admin-page-panel {
        padding: 1.4rem;
    }
}

@media (max-width: 767px) {
    .brand-text {
        font-size: 0.88rem;
    }

    .brand-subtext {
        font-size: 0.68rem;
    }

    .hero-actions,
    .hero-actions .btn,
    .hero-actions a {
        width: 100%;
    }

    .section-title {
        line-height: 1;
    }

    .surface-card,
    .stat-card,
    .ministry-card,
    .event-card,
    .contact-card,
    .visit-card,
    .login-panel,
    .section-shell {
        border-radius: 22px;
    }

    .admin-shell .table td,
    .admin-shell .table th,
    .schedule-table td,
    .schedule-table th {
        padding: 0.85rem 0.85rem;
    }

    .gallery-media-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .gallery-featured-copy,
    .gallery-post-article,
    .gallery-share-panel {
        padding: 1.4rem;
    }

    .gallery-story-card h3,
    .gallery-share-panel h3 {
        font-size: 1.45rem;
    }

    .gallery-featured-copy h3 {
        font-size: 2.2rem;
    }

    .blog-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-inline-actions {
        justify-content: flex-start;
    }

    .gallery-lightbox .modal-body,
    .gallery-lightbox .modal-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
