/* ============================================================
   Public Site Styles - جمعيّة
   Scoped to .ps-* classes to avoid CPanel conflicts
   ============================================================ */

:root {
    --ps-green: #2eaa56;
    --ps-green-dark: #238c45;
    --ps-green-light: #e8f8ee;
    --ps-gold: #c9a84c;
    --ps-gold-light: #f9f3e3;
    --ps-dark: #1a1a2e;
    --ps-gray: #6c757d;
    --ps-light: #f8f9fa;
    --ps-white: #ffffff;
    --ps-radius: 12px;
    --ps-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --ps-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --ps-transition: all 0.3s ease;
}

/* Base */
.ps-body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
    background: var(--ps-white);
}

/* Header */
.ps-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--ps-transition);
}

.ps-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.ps-logo img {
    height: 44px;
    object-fit: contain;
}

.ps-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.ps-nav li a {
    display: block;
    padding: 8px 16px;
    color: var(--ps-dark);
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--ps-transition);
    text-decoration: none;
}

.ps-nav li a:hover {
    color: var(--ps-green);
    background: var(--ps-green-light);
}

.ps-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ps-mobile-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--ps-dark);
    cursor: pointer;
    padding: 8px;
}

.ps-mobile-menu {
    display: none;
    background: var(--ps-white);
    border-top: 1px solid #eee;
    padding: 16px 0;
}

.ps-mobile-menu.active {
    display: block;
}

.ps-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-mobile-menu ul li a {
    display: block;
    padding: 12px 24px;
    color: var(--ps-dark);
    font-weight: 500;
    text-decoration: none;
    transition: var(--ps-transition);
}

.ps-mobile-menu ul li a:hover {
    background: var(--ps-green-light);
    color: var(--ps-green);
}

.ps-mobile-register-btn {
    display: block;
    width: calc(100% - 48px);
    margin: 8px 24px 16px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: var(--ps-green);
    color: var(--ps-white);
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.ps-mobile-register-btn:hover {
    background: var(--ps-green-dark);
}

/* Buttons */
.ps-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--ps-transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.ps-btn-primary {
    background: var(--ps-green);
    color: var(--ps-white);
}

.ps-btn-primary:hover {
    background: var(--ps-green-dark);
    color: var(--ps-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 170, 86, 0.3);
}

.ps-btn-outline {
    background: transparent;
    color: var(--ps-green);
    border: 2px solid var(--ps-green);
}

.ps-btn-outline:hover {
    background: var(--ps-green);
    color: var(--ps-white);
}

.ps-btn-gold {
    background: var(--ps-gold);
    color: var(--ps-white);
}

.ps-btn-gold:hover {
    background: #b8943f;
    color: var(--ps-white);
    transform: translateY(-2px);
}

.ps-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.ps-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Main */
.ps-main {
    padding-top: 72px;
}

/* Sections */
.ps-section {
    padding: 80px 0;
}

.ps-section-light {
    background: var(--ps-light);
}

.ps-section-green {
    background: linear-gradient(135deg, var(--ps-green) 0%, var(--ps-green-dark) 100%);
    color: var(--ps-white);
}

.ps-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ps-dark);
    margin-bottom: 12px;
    text-align: center;
}

.ps-section-subtitle {
    font-size: 17px;
    color: var(--ps-gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.ps-section-text {
    font-size: 17px;
    color: #555;
    line-height: 1.9;
    text-align: center;
    margin-bottom: 16px;
}

.ps-highlight-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--ps-green-dark);
}

.ps-result-text {
    font-size: 16px;
    color: var(--ps-dark);
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--ps-green-light);
    border-radius: 8px;
    border-right: 4px solid var(--ps-green);
}

.ps-challenges-list li i {
    color: #e74c3c;
}

/* Hero */
.ps-hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background: url('/images/hero.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.ps-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.75) 45%,
        rgba(232, 248, 238, 0.75) 100%
    );
    z-index: 1;
}

.ps-hero::after {
    display: none;
}

.ps-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 32px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow-lg);
    backdrop-filter: blur(6px);
}

.ps-hero-logo {
    width: 120px;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.ps-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--ps-dark);
    margin-bottom: 20px;
    line-height: 1.5;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.ps-hero-tagline {
    font-size: 16px;
    font-weight: 600;
    color: var(--ps-gold);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.ps-hero-lead {
    font-size: 22px;
    font-weight: 600;
    color: var(--ps-green);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.ps-hero p {
    font-size: 18px;
    color: var(--ps-gray);
    line-height: 1.9;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.ps-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Feature Cards */
.ps-card {
    background: var(--ps-white);
    border-radius: var(--ps-radius);
    padding: 36px 28px;
    box-shadow: var(--ps-shadow);
    transition: var(--ps-transition);
    height: 100%;
    text-align: center;
}

.ps-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ps-shadow-lg);
}

.ps-card-tall {
    min-height: 220px;
}

.ps-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
}

.ps-card-icon-green {
    background: var(--ps-green-light);
    color: var(--ps-green);
}

.ps-card-icon-gold {
    background: var(--ps-gold-light);
    color: var(--ps-gold);
}

.ps-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ps-dark);
    margin-bottom: 12px;
}

.ps-card p {
    color: var(--ps-gray);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* Feature List */
.ps-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: #444;
}

.ps-feature-list li i {
    color: var(--ps-green);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Association Cards */
.ps-assoc-card {
    background: var(--ps-white);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    overflow: hidden;
    transition: var(--ps-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ps-assoc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ps-shadow-lg);
}

.ps-assoc-card-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ps-assoc-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--ps-light);
    border: 2px solid #eee;
    flex-shrink: 0;
}

.ps-assoc-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ps-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-green);
    font-size: 22px;
    flex-shrink: 0;
}

.ps-assoc-info h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ps-dark);
    margin: 0 0 4px;
}

.ps-assoc-info small {
    color: var(--ps-gray);
    font-size: 13px;
}

.ps-assoc-card-body {
    padding: 0 24px 16px;
    flex: 1;
}

.ps-assoc-card-body p {
    color: var(--ps-gray);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.ps-assoc-card-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ps-assoc-social {
    display: flex;
    gap: 8px;
}

.ps-assoc-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ps-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-gray);
    font-size: 13px;
    transition: var(--ps-transition);
    text-decoration: none;
}

.ps-assoc-social a:hover {
    background: var(--ps-green);
    color: var(--ps-white);
}

.ps-assoc-card-footer .ps-btn {
    padding: 6px 16px;
    font-size: 13px;
}

/* Benefits */
.ps-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ps-benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--ps-white);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    transition: var(--ps-transition);
}

.ps-benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--ps-shadow-lg);
}

.ps-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--ps-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-green);
    font-size: 20px;
    flex-shrink: 0;
}

.ps-benefit-item span {
    font-size: 15px;
    font-weight: 600;
    color: var(--ps-dark);
}

/* CTA Section */
.ps-cta {
    text-align: center;
    padding: 80px 20px;
}

.ps-cta h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--ps-white);
}

.ps-cta p {
    font-size: 17px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.ps-cta-actions {
    margin-bottom: 28px;
}

.ps-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
}

.ps-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--ps-white);
    text-decoration: none;
    font-size: 15px;
    transition: var(--ps-transition);
}

.ps-contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--ps-white);
    transform: translateY(-2px);
}

.ps-contact-item i {
    font-size: 20px;
}

.ps-cta .ps-btn {
    margin: 0 8px;
}

.ps-section-green .ps-btn-outline {
    border-color: var(--ps-white);
    color: var(--ps-white);
}

.ps-section-green .ps-btn-outline:hover {
    background: var(--ps-white);
    color: var(--ps-green);
}

/* Footer */
.ps-footer {
    background: var(--ps-dark);
    color: #ccc;
    padding: 60px 0 0;
}

.ps-footer-logo {
    height: 40px;
    object-fit: contain;
    margin-bottom: 16px;
}

.ps-footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: #aaa;
}

.ps-footer-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ps-white);
    margin-bottom: 16px;
}

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

.ps-footer-links li {
    margin-bottom: 10px;
}

.ps-footer-links li a {
    color: #aaa;
    text-decoration: none;
    transition: var(--ps-transition);
    font-size: 14px;
}

.ps-footer-links li a:hover {
    color: var(--ps-green);
}

.ps-footer-contact li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-footer-contact li a i {
    width: 20px;
    text-align: center;
}

.ps-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.ps-footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #888;
}

/* Loading & States */
.ps-loading {
    text-align: center;
    padding: 60px 20px;
}

.ps-loading i {
    font-size: 36px;
    color: var(--ps-green);
    animation: spin 1s linear infinite;
}

.ps-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ps-gray);
}

.ps-empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.ps-error-state {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

/* Profile Page */
.ps-profile-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--ps-green-light) 0%, var(--ps-gold-light) 100%);
}

.ps-profile-cover-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--ps-green) 0%, var(--ps-green-dark) 100%);
}

.ps-profile-header {
    position: relative;
    margin-top: -60px;
    margin-bottom: 32px;
}

.ps-profile-identity {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.ps-profile-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--ps-white);
    box-shadow: var(--ps-shadow);
    background: var(--ps-white);
    object-fit: contain;
}

.ps-profile-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--ps-white);
    box-shadow: var(--ps-shadow);
    background: var(--ps-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--ps-green);
}

.ps-profile-name h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ps-dark);
    margin: 0 0 4px;
}

.ps-profile-name p {
    color: var(--ps-gray);
    margin: 0;
    font-size: 15px;
}

.ps-profile-section {
    margin-bottom: 40px;
}

.ps-profile-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ps-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ps-green-light);
}

.ps-profile-section p {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    white-space: pre-line;
}

.ps-profile-card {
    background: var(--ps-white);
    border-radius: var(--ps-radius);
    padding: 28px;
    box-shadow: var(--ps-shadow);
    height: 100%;
}

.ps-profile-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ps-dark);
    margin-bottom: 12px;
}

.ps-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.ps-contact-list li:last-child {
    border-bottom: none;
}

.ps-contact-list li i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ps-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-green);
    font-size: 15px;
    flex-shrink: 0;
}

.ps-contact-list li a,
.ps-contact-list li span {
    color: #444;
    font-size: 14px;
    text-decoration: none;
    word-break: break-all;
}

.ps-contact-list li a:hover {
    color: var(--ps-green);
}

.ps-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ps-social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ps-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-gray);
    font-size: 18px;
    transition: var(--ps-transition);
    text-decoration: none;
}

.ps-social-links a:hover {
    background: var(--ps-green);
    color: var(--ps-white);
    transform: translateY(-3px);
}

.ps-social-links .ps-icon-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.ps-map-container {
    width: 100%;
    height: 300px;
    border-radius: var(--ps-radius);
    overflow: hidden;
    border: 1px solid #eee;
}

.ps-subscription-card {
    background: var(--ps-green-light);
    border-radius: var(--ps-radius);
    padding: 32px;
    border: 1px solid rgba(46, 170, 86, 0.2);
}

.ps-subscription-card h3 {
    color: var(--ps-green-dark);
    border-bottom-color: rgba(46, 170, 86, 0.2);
}

.ps-subscription-action {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(46, 170, 86, 0.2);
    text-align: center;
}

.ps-subscription-action .ps-btn {
    min-width: 220px;
}

.ps-subscription-action .ps-btn i {
    margin-left: 8px;
}

/* Ads List */
.ps-ads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ps-ad-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    background: var(--ps-white);
    border: 1px solid #eee;
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    cursor: pointer;
    text-align: right;
    transition: var(--ps-transition);
}

.ps-ad-item:hover {
    border-color: rgba(46, 170, 86, 0.35);
    box-shadow: var(--ps-shadow-lg);
    transform: translateY(-2px);
}

.ps-ad-item-main {
    flex: 1;
    min-width: 0;
}

.ps-ad-item-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--ps-dark);
    margin-bottom: 6px;
}

.ps-ad-category {
    display: inline-block;
    font-size: 13px;
    color: var(--ps-green-dark);
    background: var(--ps-green-light);
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 2px;
}

.ps-ad-date {
    font-size: 14px;
    color: var(--ps-gray);
    white-space: nowrap;
}

.ps-ad-item-arrow {
    font-size: 18px;
    color: var(--ps-green);
    flex-shrink: 0;
}

/* Events Grid */
.ps-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.ps-event-card {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: var(--ps-white);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    overflow: hidden;
    cursor: pointer;
    text-align: right;
    transition: var(--ps-transition);
}

.ps-event-card:hover {
    box-shadow: var(--ps-shadow-lg);
    transform: translateY(-3px);
}

.ps-event-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ps-light);
}

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

.ps-death-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 72px;
    height: 72px;
    z-index: 2;
    pointer-events: none;
}

.ps-death-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 72px 72px 0;
    border-color: transparent #1a1a1a transparent transparent;
}

.ps-death-ribbon--hero {
    width: 96px;
    height: 96px;
}

.ps-death-ribbon--hero::before {
    border-width: 0 96px 96px 0;
}

.ps-event-body {
    padding: 16px;
}

.ps-event-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ps-green-dark);
    background: var(--ps-green-light);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.ps-event-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ps-dark);
    margin: 0 0 8px;
    line-height: 1.5;
}

.ps-event-date {
    font-size: 13px;
    color: var(--ps-gray);
}

/* Detail Modal */
.ps-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
}

.ps-detail-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.65);
    backdrop-filter: blur(2px);
}

.ps-detail-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px 16px;
    pointer-events: none;
}

.ps-detail-modal-content {
    position: relative;
    width: min(720px, 100%);
    max-height: min(90vh, 900px);
    background: var(--ps-white);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow-lg);
    overflow: hidden;
    pointer-events: auto;
}

.ps-detail-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ps-dark);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--ps-transition);
}

.ps-detail-modal-close:hover {
    background: var(--ps-white);
    color: var(--ps-green);
}

.ps-detail-modal-body {
    max-height: min(90vh, 900px);
    overflow-y: auto;
    padding: 24px;
}

.ps-detail-hero {
    position: relative;
    margin: -24px -24px 20px;
    max-height: 320px;
    overflow: hidden;
    background: var(--ps-light);
}

.ps-detail-hero img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

/* Obituary image: full height, no crop — after title */
.ps-detail-obituary {
    margin: 0 0 20px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: auto;
    max-height: none;
}

.ps-detail-obituary img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.ps-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ps-dark);
    margin: 0 0 12px;
    line-height: 1.4;
}

.ps-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ps-detail-meta .ps-share-btn {
    margin-right: auto;
}

.ps-detail-category {
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-green-dark);
    background: var(--ps-green-light);
    padding: 4px 12px;
    border-radius: 20px;
}

.ps-detail-date {
    font-size: 14px;
    color: var(--ps-gray);
}

.ps-detail-description {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 24px;
}

.ps-detail-description p {
    margin-bottom: 12px;
}

.ps-detail-documents h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ps-dark);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ps-green-light);
}

.ps-detail-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.ps-detail-doc-image {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    aspect-ratio: 1;
}

.ps-detail-doc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ps-detail-doc-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: var(--ps-light);
    color: var(--ps-dark);
    text-decoration: none;
    min-height: 120px;
    transition: var(--ps-transition);
}

.ps-detail-doc-pdf:hover {
    border-color: var(--ps-green);
    background: var(--ps-green-light);
    color: var(--ps-green-dark);
}

.ps-detail-doc-pdf i {
    font-size: 36px;
    color: #dc3545;
}

.ps-detail-doc-pdf span {
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
}

/* Registration Modal */
.ps-modal-open {
    overflow: hidden;
}

.ps-register-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.ps-register-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.65);
    backdrop-filter: blur(2px);
}

.ps-register-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px 16px;
    pointer-events: none;
}

.ps-register-modal-content {
    width: min(960px, 100%);
    height: min(90vh, 820px);
    background: var(--ps-white);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow-lg);
    overflow: hidden;
    pointer-events: auto;
}

.ps-register-modal-content iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--ps-white);
}

@media (max-width: 767px) {
    .ps-register-modal-dialog {
        padding: 0;
    }

    .ps-register-modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}

/* Not Found */
.ps-not-found {
    text-align: center;
    padding: 120px 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ps-not-found i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 24px;
}

.ps-not-found h2 {
    font-size: 24px;
    color: var(--ps-dark);
    margin-bottom: 12px;
}

.ps-not-found p {
    color: var(--ps-gray);
    margin-bottom: 24px;
}

/* Powered By */
.ps-powered-by {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: 60px;
}

.ps-powered-by a {
    color: var(--ps-green);
    text-decoration: none;
    font-weight: 600;
}

/* Standalone profile page */
.ps-profile-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ps-profile-page form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ps-profile-state {
    flex: 1;
}

.ps-profile-powered-by {
    text-align: center;
    padding: 20px 16px;
    border-top: 1px solid #eee;
    background: var(--ps-light);
    margin-top: auto;
}

.ps-profile-powered-by p {
    margin: 0;
    font-size: 14px;
    color: var(--ps-gray);
}

.ps-profile-powered-by a {
    color: var(--ps-green);
    text-decoration: none;
    font-weight: 700;
}

.ps-profile-powered-by a:hover {
    color: var(--ps-green-dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .ps-hero h1 {
        font-size: 30px;
    }

    .ps-section {
        padding: 60px 0;
    }

    .ps-section-title {
        font-size: 26px;
    }

    .ps-profile-cover,
    .ps-profile-cover-placeholder {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .ps-hero h1 {
        font-size: 26px;
    }

    .ps-hero-tagline {
        font-size: 14px;
    }

    .ps-hero-lead {
        font-size: 18px;
    }

    .ps-hero p {
        font-size: 16px;
    }

    .ps-contact-links {
        flex-direction: column;
        align-items: center;
    }

    .ps-contact-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .ps-section {
        padding: 48px 0;
    }

    .ps-profile-identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ps-profile-logo,
    .ps-profile-logo-placeholder {
        width: 90px;
        height: 90px;
    }

    .ps-profile-cover,
    .ps-profile-cover-placeholder {
        height: 160px;
    }

    .ps-benefits-grid {
        grid-template-columns: 1fr;
    }

    .ps-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ps-ad-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ps-ad-date {
        white-space: normal;
    }

    .ps-detail-modal-dialog {
        padding: 0;
    }

    .ps-detail-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .ps-detail-modal-body {
        max-height: 100vh;
        padding: 20px 16px;
    }

    .ps-detail-hero {
        margin: -20px -16px 16px;
    }
}

/* ============================================================
   Jam3ieh Registration Modal
   ============================================================ */
.ps-reg-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
}

.ps-reg-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.65);
    backdrop-filter: blur(2px);
}

.ps-reg-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px 16px;
    pointer-events: none;
}

.ps-reg-modal-content {
    width: min(780px, 100%);
    max-height: min(92vh, 920px);
    background: var(--ps-white);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
}

.ps-reg-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
    background: var(--ps-green-light);
}

.ps-reg-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--ps-green-dark);
}

.ps-reg-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--ps-white);
    color: var(--ps-dark);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ps-reg-modal-close:hover {
    color: var(--ps-green);
}

.ps-reg-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
}

.ps-reg-section {
    margin-bottom: 28px;
}

.ps-reg-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ps-dark);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ps-green-light);
}

.ps-reg-field {
    margin-bottom: 16px;
}

.ps-reg-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.ps-reg-field .form-control {
    border-radius: 8px;
    border-color: #dde1e6;
    min-height: 42px;
}

.ps-reg-field .form-control:focus {
    border-color: var(--ps-green);
    box-shadow: 0 0 0 3px rgba(46, 170, 86, 0.15);
}

.ps-reg-field.ps-reg-invalid .form-control,
.ps-reg-field.ps-reg-invalid .ps-reg-map {
    border-color: #dc3545;
}

.ps-req {
    color: #dc3545;
}

.ps-reg-map-search {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ps-reg-map-search .form-control {
    flex: 1;
}

.ps-reg-map-search .ps-btn {
    white-space: nowrap;
    padding: 8px 16px;
}

.ps-reg-map-results {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    max-height: 160px;
    overflow-y: auto;
    background: var(--ps-white);
}

.ps-reg-map-result-item {
    display: block;
    width: 100%;
    text-align: right;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
    padding: 10px 12px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    font-family: inherit;
}

.ps-reg-map-result-item:last-child {
    border-bottom: none;
}

button.ps-reg-map-result-item:hover {
    background: var(--ps-green-light);
    color: var(--ps-green-dark);
}

.ps-reg-map {
    width: 100%;
    height: 240px;
    border: 1px solid #dde1e6;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.ps-reg-map-hint {
    font-size: 12px;
    color: var(--ps-gray);
    margin: 8px 0 0;
}

.ps-reg-error {
    background: #fde8ec;
    color: #a71d2a;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 8px;
}

.ps-reg-success {
    text-align: center;
    padding: 48px 20px;
}

.ps-reg-success i {
    font-size: 56px;
    color: var(--ps-green);
    margin-bottom: 16px;
}

.ps-reg-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ps-dark);
    margin: 0 0 12px;
}

.ps-reg-success p {
    font-size: 15px;
    color: var(--ps-gray);
    margin: 0;
    line-height: 1.8;
}

.ps-reg-modal-footer {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

@media (max-width: 767px) {
    .ps-reg-modal-dialog {
        padding: 0;
    }

    .ps-reg-modal-content {
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .ps-reg-modal-header h2 {
        font-size: 17px;
    }

    .ps-reg-map {
        height: 200px;
    }

    .ps-reg-map-search {
        flex-direction: column;
    }
}

/* ============================================================
   Event Public Preview Page
   ============================================================ */

.ps-event-assoc-header {
    background: var(--ps-white);
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ps-event-assoc-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    color: var(--ps-green-dark);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--ps-transition);
}

.ps-event-assoc-link:hover {
    background: var(--ps-green-light);
    color: var(--ps-green);
}

.ps-event-assoc-link i:first-child {
    font-size: 20px;
}

.ps-event-assoc-link i:last-child {
    font-size: 16px;
}

.ps-event-page #event-content {
    padding: 32px 0 48px;
}

.ps-event-detail-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--ps-white);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow-lg);
    overflow: hidden;
    position: relative;
}

.ps-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-width: 1px;
}

.ps-share-btn:hover {
    background: var(--ps-green);
    border-color: var(--ps-green);
    color: var(--ps-white);
}

.ps-share-btn-done {
    background: var(--ps-green) !important;
    border-color: var(--ps-green) !important;
    color: var(--ps-white) !important;
}

.ps-event-detail-body {
    max-height: none;
    padding: 24px;
}

.ps-event-detail-body .ps-detail-hero {
    margin: -24px -24px 20px;
}

@media (max-width: 767px) {
    .ps-event-page #event-content {
        padding: 16px 0 32px;
    }

    .ps-event-detail-card {
        border-radius: 0;
        box-shadow: none;
    }

    .ps-event-assoc-link {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* ============================================================
   Home Video Modal
   ============================================================ */

.ps-video-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
}

.ps-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(2px);
}

.ps-video-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px 16px;
    pointer-events: none;
}

.ps-video-modal-content {
    position: relative;
    width: min(920px, 100%);
    background: #000;
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow-lg);
    overflow: hidden;
    pointer-events: auto;
}

.ps-video-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ps-dark);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--ps-transition);
}

.ps-video-modal-close:hover {
    background: var(--ps-white);
    color: var(--ps-green);
}

.ps-video-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.ps-video-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ps-hero-actions .js-open-video-modal i {
    margin-left: 6px;
    font-size: 1.15em;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .ps-video-modal-dialog {
        padding: 12px;
    }

    .ps-video-modal-content {
        border-radius: 8px;
    }
}
