/* ============================================
   LKPS North America — Custom Styles
   Built on Bootstrap 5.3.8
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --lkps-blue: #1a4b8c;
    --lkps-blue-dark: #0f2d54;
    --lkps-blue-light: #2563b0;
    --lkps-red: #D01930;
    --lkps-orange: #E8752A;
    --lkps-green: #2D7A3A;
    --lkps-navy: #06038D;
    --lkps-light-blue: #5B8AC4;
    --lkps-bg: #f8f9fc;
    --lkps-text: #3F3F3F;
    --lkps-text-light: #6c757d;
    --lkps-border: #e2e6ea;
    --lkps-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --lkps-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --lkps-radius: 0.5rem;
    --lkps-transition: all 0.25s ease;

    /* News category palettes */
    --lkps-condolence: #6b1f2b;
    --lkps-condolence-bg: #faf7f5;
    --lkps-celebration: #b8860b;
    --lkps-celebration-bg: #fdfbf3;
    --lkps-important: #c85000;
    --lkps-important-bg: #fff8f5;
    --lkps-community: #0d7377;
    --lkps-community-bg: #f0f7f7;
    --lkps-general-accent: #c9a84c;
    --lkps-general-bg: #f8f6f0;
    --lkps-recap: #c9a84c;
    --lkps-recap-bg: #f8f8f5;
}

/* --- Base / Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--lkps-text);
    background-color: var(--lkps-bg);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container.mt-4.mb-5 {
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--lkps-blue-dark);
}

.page-heading {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--lkps-red);
}

.page-heading small {
    display: block;
    font-size: 0.85rem;
    color: var(--lkps-light-blue);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-page-heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lkps-border);
    color: var(--lkps-navy);
}

/* --- Navbar --- */
.navbar-lkps {
    background: #ffffff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--lkps-border);
    padding: 0.5rem 0;
}

.navbar-lkps .navbar-brand img {
    height: 45px;
    width: auto;
    transition: var(--lkps-transition);
}

.navbar-lkps .navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-lkps .nav-link {
    color: var(--lkps-text) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem !important;
    transition: var(--lkps-transition);
    border-radius: var(--lkps-radius);
    position: relative;
}

.navbar-lkps .nav-link:hover,
.navbar-lkps .nav-link.active {
    color: var(--lkps-blue) !important;
    background: rgba(26, 75, 140, 0.06);
}

.navbar-lkps .dropdown-menu {
    border: none;
    box-shadow: var(--lkps-shadow-hover);
    border-radius: var(--lkps-radius);
    padding: 0.5rem;
}

.navbar-lkps .dropdown-item {
    border-radius: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    transition: var(--lkps-transition);
}

.navbar-lkps .dropdown-item:hover {
    background-color: var(--lkps-bg);
    color: var(--lkps-blue);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--lkps-blue) 0%, var(--lkps-navy) 50%, var(--lkps-blue-dark) 100%);
    color: #fff;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(208,25,48,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 0 0 auto;
}

.hero-image img {
    max-height: 300px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(255, 255, 255, 0.12))
           drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero-section h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-section .hero-subtitle {
    font-size: 1.1rem;
    color: var(--lkps-light-blue);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-section .hero-tagline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 550px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

/* --- Cards --- */
.card {
    border: 1px solid var(--lkps-border);
    border-radius: var(--lkps-radius);
    box-shadow: var(--lkps-shadow);
    transition: var(--lkps-transition);
    overflow: hidden;
}

.feature-card:hover,
.gallery-card:hover {
    box-shadow: var(--lkps-shadow-hover);
    transform: translateY(-3px);
}
/* Card-listing hover only — skip admin-page containers that use content-card for layout */
body:not(.admin-page) .content-card:hover {
    box-shadow: var(--lkps-shadow-hover);
    transform: translateY(-3px);
}

.card-header-branded {
    background: linear-gradient(135deg, var(--lkps-blue) 0%, var(--lkps-blue-dark) 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    border-bottom: none;
}

.card-header-branded h3,
.card-header-branded h4,
.card-header-branded h5 {
    color: #fff;
    margin: 0;
}

/* Feature cards on homepage */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid var(--lkps-border);
}

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    transition: var(--lkps-transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h5 {
    font-size: 1.125rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--lkps-text-light);
}

/* Feature icon LKPS palette tints */
.feature-icon-blue  { background: rgba(26,75,140,0.1);  color: var(--lkps-blue); }
.feature-icon-green { background: rgba(45,122,58,0.1);  color: var(--lkps-green); }
.feature-icon-red   { background: rgba(208,25,48,0.1);  color: var(--lkps-red); }
.feature-icon-navy  { background: rgba(6,3,141,0.1);    color: var(--lkps-navy); }

/* Event / news cards */
.content-card {
    border-left: 4px solid var(--lkps-blue);
}

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

.content-card .card-date {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lkps-blue);
    background: rgba(26, 75, 140, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.content-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.content-card .card-title a {
    color: var(--lkps-blue-dark);
    text-decoration: none;
    transition: var(--lkps-transition);
}

.content-card .card-title a:hover {
    color: var(--lkps-red);
}

/* Dashboard stat cards */
.stat-card {
    border: none;
    border-radius: var(--lkps-radius);
    height: 100%;
    transition: filter 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: none;
    filter: brightness(1.15);
    box-shadow: var(--lkps-shadow-hover);
}

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

.stat-card .display-6 {
    font-weight: 800;
}

/* Admin stats: make <a> wrappers fill column height */
#admin-stats a {
    display: block;
    height: 100%;
}

.stat-card-blue { background: var(--lkps-blue); color: #fff; }
.stat-card-navy { background: var(--lkps-navy); color: #fff; }
.stat-card-accent { background: var(--lkps-red); color: #fff; }
.stat-card-blue .card-title,
.stat-card-navy .card-title,
.stat-card-accent .card-title { color: rgba(255,255,255,0.85); }

/* Gallery image hover */
.gallery-card .card-img-top {
    transition: transform 0.4s ease;
}

.gallery-card:hover .card-img-top {
    transform: scale(1.05);
}

.gallery-card {
    overflow: hidden;
    border-left: 4px solid var(--lkps-blue);
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--lkps-blue);
    border-color: var(--lkps-blue);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--lkps-blue-dark);
    border-color: var(--lkps-blue-dark);
}

.btn-accent {
    background-color: var(--lkps-red);
    border-color: var(--lkps-red);
    color: #fff;
}

.btn-accent:hover, .btn-accent:focus {
    background-color: #b01528;
    border-color: #b01528;
    color: #fff;
}

.btn-accent:focus-visible,
.btn-primary:focus-visible,
.btn-outline-primary:focus-visible {
    outline: 2px solid var(--lkps-blue);
    outline-offset: 2px;
    box-shadow: none;
}

.btn-outline-primary {
    color: var(--lkps-blue);
    border-color: var(--lkps-blue);
}

.btn-outline-primary:hover {
    background-color: var(--lkps-blue);
    border-color: var(--lkps-blue);
    color: #fff;
}

/* --- Forms --- */
.form-control:focus,
.form-select:focus {
    border-color: var(--lkps-light-blue);
    box-shadow: 0 0 0 0.2rem rgba(26, 75, 140, 0.15);
}

/* --- Tables --- */
.table-dark th {
    background-color: var(--lkps-blue) !important;
}

/* --- Member Photos --- */
.member-avatar-sm {
    width: 32px;
    height: 32px;
    object-fit: cover;
}
.member-avatar-md {
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.member-avatar-lg {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* --- Footer --- */
.footer-main {
    background: linear-gradient(180deg, var(--lkps-blue-dark) 0%, #0a1e3d 100%);
    padding: 3rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    border-top: 4px solid var(--lkps-red);
}

.footer-main h6 {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-main h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--lkps-red);
}

.footer-main p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-main .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-main .footer-links li {
    margin-bottom: 0.4rem;
}

.footer-main .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--lkps-transition);
}

.footer-main .footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-main .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-main .footer-contact-item i {
    color: var(--lkps-light-blue);
    margin-top: 0.2rem;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: var(--lkps-transition);
}

.footer-contact-link:hover {
    color: #fff !important;
}

.footer-bottom {
    background: #060d1a;
    color: rgba(255, 255, 255, 0.65);
    padding: 1rem 0;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--lkps-transition);
}

.footer-bottom a:hover {
    color: #fff;
}

/* --- Utility --- */
.text-lkps-blue { color: var(--lkps-blue); }
.text-lkps-green { color: var(--lkps-green); }
.icon-feature { font-size: 1.5rem; color: var(--lkps-blue); }
.form-narrow { max-width: 500px; }

/* --- Sponsors --- */
.sponsors-section { margin-bottom: 2.5rem; }
.tier-heading {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.95rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #dee2e6;
}
.tier-heading.platinum { color: #6c757d; border-color: #adb5bd; }
.tier-heading.gold { color: #b8860b; border-color: #daa520; }
.tier-heading.silver { color: #6c757d; border-color: #adb5bd; }
.tier-heading.bronze { color: #8B4513; border-color: #cd853f; }

.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}
.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e9ecef;
}
.sponsor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sponsor-logo {
    object-fit: contain;
    width: auto;
}
.sponsor-logo.platinum { height: 100px; max-width: 220px; }
.sponsor-logo.gold { height: 80px; max-width: 200px; }
.sponsor-logo.silver { height: 70px; max-width: 180px; }
.sponsor-logo.bronze { height: 60px; max-width: 160px; }

.sponsor-name {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sponsor-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    color: #adb5bd;
    font-weight: 600;
    font-size: 0.85rem;
}
.sponsor-placeholder.platinum { height: 100px; width: 180px; }
.sponsor-placeholder.gold { height: 80px; width: 160px; }
.sponsor-placeholder.silver { height: 70px; width: 140px; }
.sponsor-placeholder.bronze { height: 60px; width: 120px; }

/* --- Section spacing --- */
.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.section-heading p {
    color: var(--lkps-text-light);
    max-width: 500px;
    margin: 0 auto;
}

.section-heading .section-line {
    width: 50px;
    height: 3px;
    background: var(--lkps-red);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* --- Collapse chevron rotation --- */
.collapse-icon {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* --- Auth pages (login/register) --- */
.auth-logo {
    display: block;
    margin: 0 auto 1.5rem;
    height: 70px;
    width: auto;
}

/* --- Badges --- */
.badge.bg-info { background-color: var(--lkps-blue) !important; }

/* --- Links --- */
a {
    color: var(--lkps-blue);
    transition: var(--lkps-transition);
}

a:hover {
    color: var(--lkps-red);
}

/* --- News Article Categories --- */
.news-article {
    background: #fff;
    border-radius: var(--lkps-radius);
    box-shadow: var(--lkps-shadow);
    overflow: hidden;
}

.news-article-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--lkps-border);
    position: relative;
}

.news-article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.news-article-body {
    padding: 2rem;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.news-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-article-date {
    font-size: 0.85rem;
    color: var(--lkps-text-light);
}

.news-article-header h2 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

/* Category: General */
.news-cat-general .news-article-header::before { background: var(--lkps-blue); }
.news-cat-general .news-category-badge { background: rgba(26,75,140,0.1); color: var(--lkps-blue); }

/* Category: Celebration / Good News */
.news-cat-celebration .news-article-header::before { background: var(--lkps-green); }
.news-cat-celebration .news-category-badge { background: rgba(45,122,58,0.1); color: var(--lkps-green); }
.news-cat-celebration .news-article-header { background: linear-gradient(135deg, rgba(45,122,58,0.04) 0%, rgba(255,255,255,0) 100%); }

/* Category: Condolence / Sad News */
.news-cat-condolence .news-article-header::before { background: #5c636a; }
.news-cat-condolence .news-category-badge { background: rgba(92,99,106,0.1); color: #5c636a; }
.news-cat-condolence .news-article-header { background: linear-gradient(135deg, rgba(92,99,106,0.04) 0%, rgba(255,255,255,0) 100%); }
.news-cat-condolence .news-article-header h2 { color: #495057; }

/* Category: Important / Alert */
.news-cat-important .news-article-header::before { background: var(--lkps-orange); }
.news-cat-important .news-category-badge { background: rgba(232,117,42,0.1); color: var(--lkps-orange); }
.news-cat-important .news-article-header { background: linear-gradient(135deg, rgba(232,117,42,0.04) 0%, rgba(255,255,255,0) 100%); }

/* Category: Community */
.news-cat-community .news-article-header::before { background: #0d6efd; }
.news-cat-community .news-category-badge { background: rgba(13,110,253,0.1); color: #0d6efd; }

/* Category: Event Recap */
.news-cat-event .news-article-header::before { background: var(--lkps-red); }
.news-cat-event .news-category-badge { background: rgba(208,25,48,0.1); color: var(--lkps-red); }

/* News card category accents — left-border color per category */
.content-card-general     { border-left-color: var(--lkps-blue); }
.content-card-celebration { border-left-color: var(--lkps-green); }
.content-card-condolence  { border-left-color: #5c636a; }
.content-card-important   { border-left-color: var(--lkps-orange); }
.content-card-community   { border-left-color: #0d6efd; }
.content-card-event       { border-left-color: var(--lkps-red); }

/* --- Rich text editor (Quill) --- */
.ql-toolbar.ql-snow {
    border-color: var(--lkps-border) !important;
    border-radius: var(--lkps-radius) var(--lkps-radius) 0 0;
    background: #fafbfc;
}

.ql-container.ql-snow {
    border-color: var(--lkps-border) !important;
    border-radius: 0 0 var(--lkps-radius) var(--lkps-radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
}

.ql-editor {
    min-height: 200px;
}

/* --- Rendered rich content --- */
.rendered-content blockquote {
    border-left: 4px solid var(--lkps-blue);
    padding-left: 1rem;
    color: var(--lkps-text-light);
    margin: 1rem 0;
}

/* --- Donate CTA Banner --- */
.donate-cta {
    background: linear-gradient(135deg, #8b1525 0%, var(--lkps-red) 40%, #ef5350 100%);
    color: #fff;
    border-radius: var(--lkps-radius);
}

.donate-cta h3 { color: #fff; }

/* --- Community Stats (homepage full-bleed) --- */
.stats-section {
    background: linear-gradient(135deg, var(--lkps-blue-dark) 0%, var(--lkps-blue) 50%, var(--lkps-blue-dark) 100%);
    color: #fff;
    padding: 3rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.stats-section .stat-card {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.stats-section .stat-card:hover {
    background: rgba(255,255,255,0.14);
}

.stats-section .stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

.stats-section .stat-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.stats-section .stat-icon {
    color: var(--lkps-light-blue);
}

/* --- Admin page density --- */
.admin-page { line-height: 1.6; }

/* --- Content fade-in --- */
#main-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Event card date badge (homepage) --- */
.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 0.3rem 0.5rem;
    background: rgba(26,75,140,0.08);
    border-radius: var(--lkps-radius);
    border-left: 3px solid var(--lkps-blue);
}

.event-date-badge .date-month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--lkps-blue);
    letter-spacing: 0.5px;
    line-height: 1;
}

.event-date-badge .date-day {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--lkps-blue-dark);
    line-height: 1.2;
}

/* --- Event detail page --- */
.event-detail-card {
    margin-bottom: 1rem;
    border-left: 4px solid var(--lkps-blue);
}
.event-detail-card .card-header {
    background: rgba(26, 75, 140, 0.10);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid rgba(26, 75, 140, 0.18);
    color: var(--lkps-text);
}
.event-detail-card .card-header i { color: var(--lkps-blue); margin-right: 0.5rem; }

/* Table headers inside cards — lkps-blue column headers with white text */
.event-detail-card thead th,
.content-card thead th {
    background: var(--lkps-blue);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid var(--lkps-blue-dark);
    white-space: nowrap;
}
/* No hover on header row */
.event-detail-card .table-hover > thead > tr:hover > *,
.content-card .table-hover > thead > tr:hover > * {
    --bs-table-hover-bg: transparent;
    --bs-table-hover-color: #fff;
    background: var(--lkps-blue);
    color: #fff;
}

/* Table body — disable hover, keep text always dark and readable */
.event-detail-card .table,
.content-card .table {
    --bs-table-hover-bg: transparent;
    --bs-table-striped-bg: rgba(26, 75, 140, 0.03);
    --bs-table-striped-color: var(--lkps-text);
}

/* Permission matrix specific */
.perm-matrix .perm-feature-col {
    min-width: 180px;
    font-weight: 600;
}
.perm-matrix td { vertical-align: middle; }
.perm-matrix .form-check-input {
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
}
.perm-matrix .form-check-input:checked {
    background-color: var(--lkps-blue);
    border-color: var(--lkps-blue);
}
.perm-matrix tbody tr:hover {
    background: rgba(26, 75, 140, 0.04);
}

.pricing-tier-current { background: rgba(26,75,140,0.08); }
.pricing-tier-badge { font-size: 0.7rem; }
/* --- PayPal button container — prevent oversized buttons --- */
#paypal-button-container {
    max-width: 400px;
}

.register-card {
    margin-bottom: 1rem;
    border-left: 4px solid var(--lkps-green);
}
.register-card .card-header {
    background: rgba(45, 122, 58, 0.06);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(45, 122, 58, 0.12);
    color: var(--lkps-text);
}
.register-card .card-header i { color: var(--lkps-green); margin-right: 0.5rem; }

/* --- Empty state illustration --- */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--lkps-text-light);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* --- News Detail Shared Classes --- */
.news-section-heading {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-family: Arial, sans-serif;
}
.news-body-text { line-height: 1.8; }
.news-info-block { font-size: 0.95rem; border-radius: var(--lkps-radius); padding: 1rem; }
.news-accent-block { padding: 1rem; border-radius: var(--lkps-radius); border-left: 4px solid; }
.news-type-badge { font-size: 0.85rem; padding: 6px 14px; }
.news-photo-sm { max-width: 200px; border: 1px solid #ddd; }
.news-photo-md { max-width: 300px; border: 1px solid #ddd; }
.news-banner-img { max-height: 350px; }
.news-photo-grid { width: 100%; height: 140px; object-fit: cover; }
.news-verse { font-family: Georgia, 'Times New Roman', serif; }
.news-meta-row { font-size: 0.95rem; }
.news-verse-text { color: var(--lkps-condolence); font-size: 1.05rem; }
.news-verse-translation { font-size: 0.85rem; }

/* Condolence colors */
.news-condolence-color { color: var(--lkps-condolence); }
.news-condolence-bg { background: var(--lkps-condolence-bg); }
.news-condolence-accent { border-color: var(--lkps-condolence); background: #f9f4f2; }
.news-section-heading.news-condolence-color { font-size: 0.85rem; }

/* Celebration colors */
.news-celebration-color { color: var(--lkps-celebration); }
.news-celebration-bg { background: var(--lkps-celebration-bg); }
.news-celebration-accent { border-color: var(--lkps-celebration); background: var(--lkps-celebration-bg); }
.news-type-badge.news-celebration-badge { background: rgba(184,134,11,0.15); color: var(--lkps-celebration); }
.news-celebration-names { color: var(--lkps-green); }

/* General (invitation) colors */
.news-general-color { color: var(--lkps-general-accent); }
.news-general-bg { background: var(--lkps-general-bg); }
.news-general-border { border: 2px solid var(--lkps-general-accent); }
.btn-news-general { background: var(--lkps-general-accent); color: #fff; font-weight: bold; }
.btn-news-general:hover { background: #b8962f; color: #fff; }

/* Important colors */
.news-important-color { color: var(--lkps-important); }
.news-important-bg { background: var(--lkps-important-bg); }
.news-important-accent { border-color: var(--lkps-important); background: var(--lkps-important-bg); }
.news-type-badge.news-important-badge { background: rgba(200,80,0,0.12); color: var(--lkps-important); }

/* Community colors */
.news-community-color { color: var(--lkps-community); }
.news-community-bg { background: var(--lkps-community-bg); }
.news-community-border { border: 2px solid var(--lkps-community); }
.news-type-badge.news-community-badge { background: rgba(13,115,119,0.12); color: var(--lkps-community); }
.btn-news-community { background: var(--lkps-community); color: #fff; }
.btn-news-community:hover { background: #095a5d; color: #fff; }

/* Event recap colors */
.news-recap-color { color: var(--lkps-recap); }
.news-recap-bg { background: var(--lkps-recap-bg); }
.news-recap-accent { border-color: var(--lkps-recap); background: var(--lkps-recap-bg); }
.news-type-badge.news-recap-badge { background: var(--lkps-recap); color: #fff; font-size: 0.9rem; padding: 6px 18px; }

/* Neutral info block */
.news-neutral-bg { background: #f8f8f8; }

/* --- Cursor helpers --- */
.event-link { cursor: pointer; }
.news-link { cursor: pointer; }

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero-image img {
        max-height: 220px;
    }

    .hero-content {
        gap: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2.5rem 1.25rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image img {
        max-height: 180px;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section .hero-subtitle {
        font-size: 0.9rem;
    }

    .footer-main {
        text-align: center;
    }

    .footer-main h6::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-main .footer-contact-item {
        justify-content: center;
        text-align: center;
    }

    .page-heading {
        font-size: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.35rem;
    }

    .hero-image img {
        max-height: 140px;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }
}

/* --- Sortable Table Headers --- */
.table thead th {
    cursor: pointer;
    user-select: none;
    position: relative;
}
.table thead th.sort-asc::after {
    content: ' \25B2';
    font-size: 0.7em;
}
.table thead th.sort-desc::after {
    content: ' \25BC';
    font-size: 0.7em;
}
.table thead th:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

/* --- Litepicker date range picker (LKPS theme) --- */
:root {
    --litepicker-is-start-color-bg: var(--lkps-blue);
    --litepicker-is-end-color-bg: var(--lkps-blue);
    --litepicker-is-in-range-color: rgba(26, 75, 140, 0.15);
    --litepicker-day-color-hover: var(--lkps-blue);
    --litepicker-is-today-color: var(--lkps-red);
    --litepicker-month-header-color: var(--lkps-navy);
    --litepicker-button-prev-month-color-hover: var(--lkps-blue);
    --litepicker-button-next-month-color-hover: var(--lkps-blue);
    --litepicker-button-apply-color-bg: var(--lkps-blue);
    --litepicker-button-reset-color-hover: var(--lkps-blue);
    --litepicker-highlighted-day-color-bg: rgba(26, 75, 140, 0.10);
    --litepicker-highlighted-day-color: var(--lkps-blue);
}
.litepicker {
    font-family: 'DM Sans', sans-serif;
    border-radius: var(--lkps-radius);
    box-shadow: var(--lkps-shadow);
}
.litepicker .container__months {
    border-radius: var(--lkps-radius);
}
.litepicker .month-item-header div > .month-item-name,
.litepicker .month-item-header div > .month-item-year {
    font-weight: 600;
}
.litepicker .container__days .day-item.is-start-date,
.litepicker .container__days .day-item.is-end-date {
    border-radius: 50%;
    font-weight: 600;
}
.litepicker .container__days .day-item.is-in-range {
    border-radius: 0;
}
.date-range-trigger {
    cursor: pointer;
    background-color: #fff;
}
.date-range-trigger:focus {
    border-color: var(--lkps-blue);
    box-shadow: 0 0 0 0.2rem rgba(26, 75, 140, 0.25);
}
@media (max-width: 576px) {
    .litepicker .container__months {
        flex-direction: column;
    }
}
