/* ══════════════════════════════════════════
   Events Public Pages - Prima Finance
   Premium Design v2
   ══════════════════════════════════════════ */

/* ── Hero ── */
.pf-events-hero {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #051c66 0%, #072890 40%, #0a3ab8 100%);
}
.pf-events-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 40%);
}
.pf-events-hero-bg {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
/* Floating shapes */
.pf-events-hero-bg::before,
.pf-events-hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .06;
    background: #fff;
}
.pf-events-hero-bg::before {
    width: 300px; height: 300px;
    top: -80px; right: -60px;
    animation: evtFloat 8s ease-in-out infinite;
}
.pf-events-hero-bg::after {
    width: 200px; height: 200px;
    bottom: -40px; left: 10%;
    animation: evtFloat 10s ease-in-out infinite reverse;
}
@keyframes evtFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

.pf-events-hero .container { position: relative; z-index: 2; }
.pf-events-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff; font-size: 13px; font-weight: 500;
    padding: 6px 18px; border-radius: 30px;
    margin-bottom: 18px;
}
.pf-events-hero-badge i { color: #ffd700; }
.pf-events-hero h1 {
    position: relative;
    color: #fff;
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -.5px;
}
.pf-events-hero p {
    position: relative;
    color: rgba(255,255,255,.75);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}
/* Wave */
.pf-events-hero-wave {
    position: absolute; bottom: -1px; left: 0; right: 0;
    z-index: 2; line-height: 0;
}
.pf-events-hero-wave svg { width: 100%; height: 60px; }

/* ── Filter Bar ── */
.pf-events-filters {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 16px rgba(0,0,0,.04);
}
.pf-evt-filter-bar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 14px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pf-evt-filter-bar::-webkit-scrollbar { display: none; }
.pf-evt-filter-btn {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    color: #666;
    position: relative;
}
.pf-evt-filter-btn::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px;
    background: #072890;
    border-radius: 2px;
    transition: width .25s cubic-bezier(.4,0,.2,1);
}
.pf-evt-filter-btn:hover { color: #072890; background: rgba(7,40,144,.04); }
.pf-evt-filter-btn.active {
    background: rgba(7,40,144,.08);
    color: #072890;
}
.pf-evt-filter-btn.active::after { width: 20px; }

/* ── Grid Section ── */
.pf-events-grid-section {
    padding: 48px 0 70px;
    background: linear-gradient(180deg, #fff 0%, #f6f8fd 100%);
    min-height: 400px;
}
.pf-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Event Card v2 ── */
.pf-event-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(7,40,144,.04);
    transition: all .4s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    animation: evtCardReveal .6s cubic-bezier(.4,0,.2,1) forwards;
}
.pf-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(7,40,144,.12), 0 2px 8px rgba(0,0,0,.06);
}
@keyframes evtCardReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Card Image */
.pf-event-card-img {
    position: relative;
    height: 210px;
    overflow: hidden;
}
.pf-event-card-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5) 100%);
    opacity: 0;
    transition: opacity .4s;
}
.pf-event-card:hover .pf-event-card-img::after { opacity: 1; }
.pf-event-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.pf-event-card:hover .pf-event-card-img img {
    transform: scale(1.08);
}
.pf-event-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    font-size: 42px; color: #9fa8da;
}

/* Date badge floating */
.pf-event-date-badge {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    min-width: 52px;
    transition: transform .3s;
}
.pf-event-card:hover .pf-event-date-badge { transform: scale(1.06); }
.pf-event-date-badge .day {
    display: block;
    font-size: 20px; font-weight: 800; line-height: 1;
    color: #072890;
}
.pf-event-date-badge .month {
    display: block;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    color: #e30613; letter-spacing: .5px;
    margin-top: 1px;
}

/* Category badge */
.pf-event-cat-badge {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    background: rgba(7,40,144,.88);
    backdrop-filter: blur(6px);
    color: #fff; font-size: 10px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    letter-spacing: .3px; text-transform: uppercase;
}

/* Image count */
.pf-event-img-count {
    position: absolute; bottom: 14px; right: 14px; z-index: 3;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    color: #fff; font-size: 11px; font-weight: 500;
    padding: 4px 10px; border-radius: 8px;
    display: flex; align-items: center; gap: 4px;
    opacity: 0; transform: translateY(6px);
    transition: all .3s;
}
.pf-event-card:hover .pf-event-img-count {
    opacity: 1; transform: translateY(0);
}

/* Read more arrow - reveal on hover */
.pf-event-read-more {
    position: absolute; bottom: 14px; left: 14px; z-index: 3;
    color: #fff; font-size: 12px; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    opacity: 0; transform: translateX(-10px);
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.pf-event-card:hover .pf-event-read-more {
    opacity: 1; transform: translateX(0);
}
.pf-event-read-more i {
    transition: transform .2s;
}
.pf-event-card:hover .pf-event-read-more i { transform: translateX(3px); }

/* Card Body */
.pf-event-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pf-event-card-body h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.pf-event-card:hover .pf-event-card-body h3 { color: #072890; }
.pf-event-card-body p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #777;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.pf-event-card-footer {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #999;
    padding-top: 12px;
    border-top: 1px solid #f2f3f7;
}
.pf-event-card-footer i { color: #072890; font-size: 14px; }

/* ── Loading / Empty ── */
.pf-events-loading {
    grid-column: 1/-1; text-align: center; padding: 80px 0; color: #aaa;
}
.pf-events-spinner {
    width: 40px; height: 40px;
    border: 3px solid #e8eaf6; border-top-color: #072890;
    border-radius: 50%;
    animation: evtSpin .7s linear infinite;
    margin: 0 auto 14px;
}
@keyframes evtSpin { to { transform: rotate(360deg); } }
.pf-events-empty {
    grid-column: 1/-1; text-align: center; padding: 80px 0; color: #aaa;
}
.pf-events-empty i { font-size: 56px; margin-bottom: 14px; display: block; color: #c5cae9; }
.pf-events-empty p { font-size: 15px; }

/* ── Pagination ── */
.pf-events-pagination {
    display: flex; justify-content: center; gap: 6px; margin-top: 40px;
}
.pf-events-pagination button {
    border: 1px solid #e0e0e0; background: #fff; border-radius: 10px;
    padding: 10px 16px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .25s;
    color: #555;
}
.pf-events-pagination button.active {
    background: #072890; color: #fff; border-color: #072890;
    box-shadow: 0 4px 12px rgba(7,40,144,.3);
}
.pf-events-pagination button:hover:not(.active) {
    border-color: #072890; color: #072890;
    background: rgba(7,40,144,.04);
}

/* ═══════════════════════════════════════════
   Event Detail Page - Magazine Layout
   ═══════════════════════════════════════════ */

/* ── Hero Banner ── */
.evtd-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-color: #072890;
    display: flex; align-items: flex-end;
    overflow: hidden;
}
.evtd-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(5,28,102,.3) 0%,
        rgba(5,28,102,.6) 40%,
        rgba(5,28,102,.92) 100%
    );
}
.evtd-hero-inner {
    position: relative; z-index: 2;
    max-width: 760px;
    padding: 0 40px 50px;
    animation: evtdFadeUp .7s ease both;
}
@keyframes evtdFadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
.evtd-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500;
    text-decoration: none; margin-bottom: 16px;
    transition: color .2s, gap .2s;
}
.evtd-back-link:hover { color: #fff; gap: 10px; }
.evtd-hero-cat {
    display: inline-block;
    background: #e30613; color: #fff;
    font-size: 10px; font-weight: 800;
    padding: 4px 14px; border-radius: 4px;
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 14px;
}
.evtd-hero h1 {
    color: #fff;
    font-size: 2.4rem; font-weight: 900;
    line-height: 1.15; margin: 0 0 16px;
    letter-spacing: -.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.evtd-hero-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    color: rgba(255,255,255,.75); font-size: 13px;
}
.evtd-hero-meta span {
    display: flex; align-items: center; gap: 5px;
}
.evtd-hero-meta i { font-size: 15px; }
.evtd-hero-wave {
    position: absolute; bottom: -1px; left: 0; right: 0;
    z-index: 3; line-height: 0;
}
.evtd-hero-wave svg { width: 100%; height: 60px; }

/* ── Body ── */
.evtd-body {
    background: #f6f8fd;
    padding: 0 0 70px;
}
.evtd-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Info Strip ── */
.evtd-info-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: -30px 0 36px;
    position: relative; z-index: 4;
}
.evtd-info-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 2px 12px rgba(7,40,144,.06), 0 1px 3px rgba(0,0,0,.04);
    animation: evtdFadeUp .6s ease both;
}
.evtd-info-item:nth-child(2) { animation-delay: .08s; }
.evtd-info-item:nth-child(3) { animation-delay: .16s; }
.evtd-info-item:nth-child(4) { animation-delay: .24s; }
.evtd-info-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, #072890, #0a3ab8);
    color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.evtd-info-item small { display: block; font-size: 11px; color: #999; font-weight: 500; }
.evtd-info-item strong { display: block; font-size: 13px; color: #1a1a2e; font-weight: 700; margin-top: 1px; }

/* ── Article Content ── */
.evtd-article {
    background: #fff;
    border-radius: 16px;
    padding: 40px 44px;
    box-shadow: 0 1px 3px rgba(0,0,0,.03), 0 6px 24px rgba(7,40,144,.04);
    margin-bottom: 28px;
    font-size: 15px; line-height: 1.85; color: #444;
    animation: evtdFadeUp .7s ease .2s both;
}
.evtd-article p { margin: 0 0 18px; }
.evtd-article p:last-child { margin-bottom: 0; }

/* Section headings */
.evtd-section-heading {
    display: flex; align-items: center; gap: 14px;
    margin: 32px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eaf6;
}
.evtd-section-heading:first-child { margin-top: 0; }
.evtd-section-num {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #072890, #0a3ab8);
    color: #fff; font-size: 16px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.evtd-section-heading h2 {
    margin: 0; font-size: 18px; font-weight: 800;
    color: #1a1a2e; letter-spacing: -.2px;
}

/* Sub headings a), b) */
.evtd-sub-heading {
    font-size: 15px; font-weight: 700; color: #072890;
    margin: 20px 0 8px;
    padding-left: 4px;
}
.evtd-sub-heading span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 6px;
    background: rgba(7,40,144,.08);
    color: #072890; font-weight: 800; font-size: 13px;
    margin-right: 8px;
}

/* Bullet lists */
.evtd-list {
    list-style: none; padding: 0; margin: 0 0 18px;
}
.evtd-list li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 14px; line-height: 1.6; color: #555;
    border-bottom: 1px solid #f5f6fa;
}
.evtd-list li:last-child { border-bottom: none; }
.evtd-list li::before {
    content: '';
    position: absolute; left: 6px; top: 15px;
    width: 8px; height: 8px; border-radius: 3px;
    background: linear-gradient(135deg, #072890, #0a3ab8);
}

/* ── Gallery v3 ── */
.evtd-gallery-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.03), 0 6px 24px rgba(7,40,144,.04);
    margin-bottom: 28px;
    animation: evtdFadeUp .7s ease .3s both;
}
.evtd-gallery-header {
    font-size: 17px; font-weight: 800; color: #1a1a2e;
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.evtd-gallery-header i {
    font-size: 22px; color: #072890;
    background: rgba(7,40,144,.08); padding: 6px; border-radius: 8px;
}
.evtd-gallery-header span { color: #999; font-weight: 500; }
.evtd-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.evtd-gallery-tile {
    position: relative;
    border-radius: 10px; overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.evtd-gallery-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.evtd-gallery-tile:hover img { transform: scale(1.08); }
.evtd-gallery-tile-overlay {
    position: absolute; inset: 0;
    background: rgba(7,40,144,0);
    display: flex; align-items: center; justify-content: center;
    transition: background .3s;
}
.evtd-gallery-tile-overlay i {
    color: #fff; font-size: 28px;
    opacity: 0; transform: scale(.6);
    transition: all .3s;
    background: rgba(7,40,144,.7); width: 48px; height: 48px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.evtd-gallery-tile:hover .evtd-gallery-tile-overlay { background: rgba(7,40,144,.25); }
.evtd-gallery-tile:hover .evtd-gallery-tile-overlay i { opacity: 1; transform: scale(1); }
.evtd-gallery-tile-cap {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff; font-size: 11px; padding: 18px 8px 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Share v3 ── */
.evtd-share {
    background: #fff; border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.03), 0 6px 24px rgba(7,40,144,.04);
    display: flex; align-items: center; justify-content: space-between;
    animation: evtdFadeUp .7s ease .4s both;
}
.evtd-share-label { font-size: 15px; font-weight: 700; color: #1a1a2e; }
.evtd-share-btns { display: flex; gap: 8px; }
.evtd-share-btns a {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 20px;
    text-decoration: none; color: #fff;
    transition: all .25s;
}
.evtd-share-btns a:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.evtd-share-fb { background: #1877f2; }
.evtd-share-tw { background: #1da1f2; }
.evtd-share-wa { background: #25d366; }
.evtd-share-ln { background: #0a66c2; }

/* ── Lightbox ── */
.pf-lightbox {
    position: fixed; inset: 0; z-index: 10000;
    display: none; align-items: center; justify-content: center;
}
.pf-lightbox.active { display: flex; }
.pf-lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.95); }
.pf-lightbox-close {
    position: absolute; top: 20px; right: 20px; z-index: 2;
    background: rgba(255,255,255,.1); border: none; color: #fff;
    width: 46px; height: 46px; border-radius: 12px;
    font-size: 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.pf-lightbox-close:hover { background: rgba(255,255,255,.2); }
.pf-lightbox-prev, .pf-lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    background: rgba(255,255,255,.1); border: none; color: #fff;
    width: 52px; height: 52px; border-radius: 14px;
    font-size: 28px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s; backdrop-filter: blur(4px);
}
.pf-lightbox-prev:hover, .pf-lightbox-next:hover {
    background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.06);
}
.pf-lightbox-prev { left: 20px; }
.pf-lightbox-next { right: 20px; }
.pf-lightbox-content {
    position: relative; z-index: 1;
    max-width: 90vw; max-height: 85vh;
    display: flex; flex-direction: column; align-items: center;
}
.pf-lightbox-content img {
    max-width: 90vw; max-height: 80vh;
    object-fit: contain; border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.pf-lightbox-caption { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 14px; text-align: center; }
.pf-lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.5); font-size: 13px; z-index: 2;
    background: rgba(0,0,0,.4); padding: 5px 16px; border-radius: 20px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .pf-events-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .evtd-hero h1 { font-size: 2rem; }
    .evtd-container { max-width: 100%; }
}
@media (max-width: 768px) {
    .pf-events-hero { padding: 70px 0 55px; }
    .pf-events-hero h1 { font-size: 1.8rem; }
    .pf-events-hero p { font-size: .95rem; }
    .pf-events-grid { grid-template-columns: 1fr; max-width: 440px; }
    .pf-event-card-img { height: 180px; }
    .evtd-hero { min-height: 320px; }
    .evtd-hero h1 { font-size: 1.6rem; }
    .evtd-hero-inner { padding: 0 20px 40px; }
    .evtd-info-strip { grid-template-columns: 1fr 1fr; margin-top: -20px; }
    .evtd-article { padding: 24px 20px; }
    .evtd-gallery-wrap { padding: 20px 16px; }
    .evtd-gallery-mosaic { grid-template-columns: repeat(2, 1fr); }
    .evtd-share { flex-direction: column; gap: 12px; text-align: center; }
    .pf-lightbox-prev, .pf-lightbox-next { width: 40px; height: 40px; font-size: 20px; }
    .pf-lightbox-prev { left: 8px; }
    .pf-lightbox-next { right: 8px; }
}
@media (max-width: 480px) {
    .pf-events-hero { padding: 55px 0 45px; }
    .pf-events-hero h1 { font-size: 1.5rem; }
    .pf-evt-filter-btn { padding: 7px 14px; font-size: 12px; }
    .pf-event-card-body h3 { font-size: 14px; }
    .evtd-hero { min-height: 280px; }
    .evtd-hero h1 { font-size: 1.35rem; }
    .evtd-info-strip { grid-template-columns: 1fr; }
    .evtd-section-heading h2 { font-size: 15px; }
}
