/* =====================================================
   Montfort Brothers Province ERP - Public Portal CSS
   ULTRA PREMIUM 2026 Edition
   Aurora Glass + Animated Mesh + Micro-interactions
   Color Palette: Montfort Green, Gold, Deep Emerald
   ===================================================== */

/* ===== TAILWIND CDN FALLBACK =====
   Critical utility classes so the site works even
   when cdn.tailwindcss.com is blocked or slow.
   When Tailwind DOES load, its runtime-injected
   styles safely override these (same specificity,
   later in cascade).
   ================================== */
.hidden{display:none}
.block{display:block}
.inline-flex{display:inline-flex}
.flex{display:flex}
.grid{display:grid}
.items-center{align-items:center}
.items-start{align-items:flex-start}
.justify-between{justify-content:space-between}
.justify-center{justify-content:center}
.flex-col{flex-direction:column}
.flex-wrap{flex-wrap:wrap}
.flex-1{flex:1 1 0%}
.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}
.max-w-7xl{max-width:80rem}.max-w-6xl{max-width:72rem}.max-w-5xl{max-width:64rem}.max-w-4xl{max-width:56rem}.max-w-3xl{max-width:48rem}.max-w-2xl{max-width:42rem}
.mx-auto{margin-left:auto;margin-right:auto}
.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}
.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}
.pt-2{padding-top:.5rem}.pb-4{padding-bottom:1rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}
.h-16{height:4rem}.h-10{height:2.5rem}.w-10{width:2.5rem}.w-24{width:6rem}.h-24{height:6rem}
.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}
.object-cover{object-fit:cover}
.text-center{text-align:center}
.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}
.font-bold{font-weight:700}.font-semibold{font-weight:600}.font-medium{font-weight:500}.font-normal{font-weight:400}
.leading-tight{line-height:1.25}
.text-white{color:#fff}.text-slate-500{color:#64748b}.text-slate-700{color:#334155}
.text-mbs-primary{color:var(--mbs-primary)}.text-mbs-secondary{color:var(--mbs-secondary)}.text-mbs-accent{color:var(--mbs-accent)}
.bg-white{background-color:#fff}.bg-mbs-dark{background-color:var(--mbs-dark,#0F2E24)}
.no-underline{text-decoration:none}
.shadow-md{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}
.shadow-lg{box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)}
.overflow-hidden{overflow:hidden}
.relative{position:relative}.absolute{position:absolute}
.z-10{z-index:10}
.space-y-0\.5>*+*{margin-top:.125rem}
.transition-all{transition:all .15s cubic-bezier(.4,0,.2,1)}
.transition-colors{transition:color .15s,background-color .15s}
.border-t{border-top:1px solid #e2e8f0}
.w-full{width:100%}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.text-white\/70{color:rgba(255,255,255,.7)}
.opacity-50{opacity:.5}
.ml-1{margin-left:.25rem}.mr-1{margin-right:.25rem}

@media(min-width:640px){
    .sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}
    .sm\:text-sm{font-size:.875rem}
    .sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
    .sm\:flex-row{flex-direction:row}
    .sm\:block{display:block}
}
@media(min-width:768px){
    .md\:block{display:block}
    .md\:flex{display:flex}
    .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
    .md\:text-4xl{font-size:2.25rem;line-height:2.5rem}
}
@media(min-width:1024px){
    .lg\:flex{display:flex}
    .lg\:block{display:block}
    .lg\:hidden{display:none}
    .lg\:h-20{height:5rem}
    .lg\:w-12{width:3rem}
    .lg\:h-12{height:3rem}
    .lg\:text-base{font-size:1rem}
    .lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(min-width:1280px){
    .xl\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}
}
/* ===== END TAILWIND FALLBACK ===== */

:root {
    --mbs-primary: #1B4D3E;
    --mbs-secondary: #2E7D5B;
    --mbs-accent: #C9A84C;
    --mbs-dark: #0F2E24;
    --mbs-light: #F0F7F4;
    --mbs-gold-light: #F5EFD7;
    --glass-bg: rgba(255,255,255,.62);
    --glass-border: rgba(255,255,255,.35);
    --glass-shadow: 0 8px 32px rgba(15,46,36,.12);
    --aurora-1: #1B4D3E;
    --aurora-2: #2E7D5B;
    --aurora-3: #C9A84C;
    --aurora-4: #3BA88A;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--mbs-light); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--mbs-primary), var(--mbs-secondary), var(--mbs-accent));
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--mbs-dark), var(--mbs-primary), var(--mbs-accent)); }
html { scrollbar-color: var(--mbs-primary) var(--mbs-light); scrollbar-width: thin; }

/* ===== Global Aurora Background ===== */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 50%, rgba(27,77,62,.03) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(201,168,76,.02) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(46,125,91,.02) 0%, transparent 50%);
    animation: pfAuroraBody 20s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes pfAuroraBody {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(3deg) scale(1.05); }
}

/* ===== Header & Navigation - Glass Effect ===== */
.pf-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(27,77,62,.06);
    transition: all .4s cubic-bezier(.4,0,.2,1);
}

.pf-header.scrolled {
    background: rgba(255,255,255,.92);
    box-shadow: 0 4px 30px rgba(15,46,36,.08), 0 1px 3px rgba(0,0,0,.03);
    border-bottom-color: rgba(27,77,62,.1);
}

.pf-nav-link {
    padding: 8px 16px;
    font-size: .83rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    border-radius: 10px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
    position: relative;
}

.pf-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--mbs-accent), var(--mbs-secondary));
    border-radius: 2px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    transform: translateX(-50%);
}

.pf-nav-link:hover {
    color: var(--mbs-primary);
    background: rgba(27,77,62,.04);
}

.pf-nav-link:hover::after {
    width: 60%;
}

.pf-nav-link.active {
    color: var(--mbs-primary);
    font-weight: 700;
    background: rgba(27,77,62,.06);
}

.pf-nav-link.active::after {
    width: 70%;
    height: 2.5px;
}

/* ===== Desktop Dropdown Menu - Glass ===== */
.pf-nav-dropdown {
    position: relative;
}

.pf-nav-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.pf-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15,46,36,.15), 0 4px 12px rgba(0,0,0,.04);
    border: 1px solid rgba(255,255,255,.6);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    z-index: 200;
}

.pf-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,.92);
    border-top: 1px solid rgba(255,255,255,.6);
    border-left: 1px solid rgba(255,255,255,.6);
    border-radius: 3px 0 0 0;
}

.pf-nav-dropdown:hover .pf-dropdown-menu,
.pf-nav-dropdown:focus-within .pf-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.pf-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    font-size: .84rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    border-radius: 10px;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

.pf-dropdown-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,77,62,.04), rgba(201,168,76,.03));
    opacity: 0;
    transition: opacity .2s;
    border-radius: 10px;
}

.pf-dropdown-item:hover {
    color: var(--mbs-primary);
    transform: translateX(3px);
}

.pf-dropdown-item:hover::before {
    opacity: 1;
}

.pf-dropdown-item.active {
    color: var(--mbs-primary);
    background: rgba(27,77,62,.06);
    font-weight: 600;
}

.pf-dd-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--mbs-secondary);
    font-size: .8rem;
    opacity: .7;
    transition: all .2s;
    position: relative;
    z-index: 1;
}

.pf-dropdown-item:hover .pf-dd-icon {
    opacity: 1;
    color: var(--mbs-accent);
    transform: scale(1.15);
}

/* ===== Mobile Nav - Glass Panel ===== */
.pf-mobile-nav {
    display: none;
    border-top: 1px solid rgba(27,77,62,.06);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-height: 0;
    overflow-y: auto;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
}

.pf-mobile-nav.open {
    display: block;
    max-height: 85vh;
}

.pf-mobile-link {
    display: flex;
    align-items: center;
    padding: 13px 18px;
    font-size: .9rem;
    color: #475569;
    text-decoration: none;
    border-radius: 12px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}

.pf-mobile-link:hover,
.pf-mobile-link.active {
    color: var(--mbs-primary);
    background: rgba(27,77,62,.05);
    font-weight: 600;
}

.pf-mob-icon {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: .85rem;
    color: var(--mbs-secondary);
    opacity: .7;
}

/* Mobile Accordion Group */
.pf-mob-group {
    border-radius: 12px;
    overflow: hidden;
    transition: background .3s;
}

.pf-mob-group.open {
    background: rgba(27,77,62,.02);
}

.pf-mob-trigger {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    position: relative;
}

.pf-mob-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .65rem;
    color: #94a3b8;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.pf-mob-group.open .pf-mob-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--mbs-accent);
}

.pf-mob-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s cubic-bezier(.4,0,.2,1);
    padding-left: 16px;
}

.pf-mob-group.open .pf-mob-submenu {
    max-height: 200px;
}

.pf-mobile-sublink {
    display: flex;
    align-items: center;
    padding: 10px 16px 10px 34px;
    font-size: .84rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all .2s;
    position: relative;
}

.pf-mobile-sublink::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mbs-secondary), var(--mbs-accent));
    transform: translateY(-50%);
    opacity: .4;
    transition: all .2s;
}

.pf-mobile-sublink:hover,
.pf-mobile-sublink.active {
    color: var(--mbs-primary);
    background: rgba(27,77,62,.04);
    font-weight: 600;
}

.pf-mobile-sublink:hover::before,
.pf-mobile-sublink.active::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.3);
}

/* ===== Hero Carousel - Premium ===== */
.pf-hero {
    position: relative;
    height: 80vh;
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
}

.pf-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
    background-size: cover;
    background-position: center;
}

.pf-hero-slide.active {
    opacity: 1;
}

.pf-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(15,46,36,.82) 0%,
        rgba(27,77,62,.55) 40%,
        rgba(46,125,91,.45) 70%,
        rgba(201,168,76,.15) 100%);
}

/* Aurora mesh overlay on hero */
.pf-hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201,168,76,.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(46,125,91,.1) 0%, transparent 60%);
    animation: pfAuroraHero 8s ease-in-out infinite alternate;
}

@keyframes pfAuroraHero {
    0% { opacity: .5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.pf-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.pf-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,.25);
    letter-spacing: -.02em;
}

.pf-hero-subtitle {
    font-size: clamp(.95rem, 2vw, 1.25rem);
    color: rgba(255,255,255,.88);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.pf-hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.pf-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    border: 2px solid rgba(255,255,255,.2);
    cursor: pointer;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(4px);
}

.pf-hero-dot:hover {
    background: rgba(255,255,255,.5);
}

.pf-hero-dot.active {
    background: var(--mbs-accent);
    border-color: var(--mbs-accent);
    width: 36px;
    border-radius: 6px;
    box-shadow: 0 0 16px rgba(201,168,76,.5);
}

/* ===== Stats Section - Premium Glass Strip ===== */
.pf-stats-section {
    background: linear-gradient(135deg, var(--mbs-dark) 0%, var(--mbs-primary) 50%, var(--mbs-secondary) 100%);
    padding: 18px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle mesh overlay */
.pf-stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 42%, rgba(201,168,76,.02) 50%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, rgba(255,255,255,.01) 50%, transparent 58%);
    background-size: 40px 40px;
    animation: pfMeshShimmer 4s linear infinite;
    pointer-events: none;
}

@keyframes pfMeshShimmer {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 50px 50px, -50px 50px; }
}

/* Shimmer sweep across stats */
.pf-stats-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.03), transparent);
    transform: skewX(-20deg);
    animation: pfStatsShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pfStatsShimmer {
    0%, 100% { left: -150%; }
    50% { left: 150%; }
}

.pf-stat-item {
    text-align: center;
    padding: 10px 16px;
    position: relative;
    z-index: 2;
}

.pf-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--mbs-accent);
    line-height: 1;
    text-shadow: 0 0 30px rgba(201,168,76,.3);
}

.pf-stat-label {
    color: rgba(255,255,255,.7);
    margin-top: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .75rem;
}

/* ===== Section Styles - Premium ===== */
.pf-section {
    padding: 45px 0;
    position: relative;
}

.pf-section-alt {
    background: linear-gradient(180deg, var(--mbs-light) 0%, rgba(240,247,244,.3) 100%);
    position: relative;
}

/* Subtle mesh on alt sections */
.pf-section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(27,77,62,.02) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 70%, rgba(201,168,76,.015) 0%, transparent 60%);
    pointer-events: none;
}

.pf-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--mbs-primary);
    text-align: center;
    margin-bottom: 8px;
    position: relative;
}

/* Gradient eyebrow text */
.pf-section-title::before {
    content: attr(data-eyebrow);
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--mbs-accent), var(--mbs-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.pf-section-subtitle {
    font-size: .92rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 25px;
}

.pf-section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--mbs-accent), var(--mbs-secondary));
    margin: 14px auto 22px;
    border-radius: 3px;
    position: relative;
}

/* Animated glow on divider */
.pf-section-divider::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, var(--mbs-accent), var(--mbs-secondary));
    border-radius: 3px;
    filter: blur(6px);
    opacity: .3;
    animation: pfDividerGlow 3s ease-in-out infinite alternate;
}

@keyframes pfDividerGlow {
    0% { opacity: .2; transform: scaleX(.8); }
    100% { opacity: .5; transform: scaleX(1.2); }
}

/* ===== Cards - Frosted Glass ===== */
.pf-card {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15,46,36,.06);
    transition: all .4s cubic-bezier(.4,0,.2,1);
    border: 1px solid rgba(255,255,255,.5);
    position: relative;
}

/* Animated gradient border glow on hover */
.pf-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(27,77,62,.15), rgba(201,168,76,.2), rgba(46,125,91,.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s;
}

.pf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(15,46,36,.12), 0 4px 12px rgba(0,0,0,.04);
}

.pf-card:hover::before {
    opacity: 1;
}

.pf-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--mbs-light), #e2e8f0);
    transition: transform .5s;
}

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

.pf-card-body {
    padding: 22px;
}

.pf-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.pf-card-text {
    font-size: .85rem;
    color: #64748b;
    line-height: 1.65;
}

.pf-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-size: .75rem;
    color: #94a3b8;
}

/* ===== Community Card - Glass ===== */
.pf-community-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.pf-community-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.pf-community-card:hover img {
    transform: scale(1.08);
}

.pf-community-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(15,46,36,.92));
}

.pf-community-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
}

.pf-community-location {
    font-size: .8rem;
    color: rgba(255,255,255,.7);
    margin-top: 3px;
}

/* ===== Gallery - Enhanced Masonry ===== */
.pf-gallery-grid {
    columns: 3;
    column-gap: 16px;
}

.pf-gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: all .35s cubic-bezier(.4,0,.2,1);
}

.pf-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.pf-gallery-item img {
    width: 100%;
    display: block;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.pf-gallery-item:hover img {
    transform: scale(1.06);
}

/* Gallery overlay caption */
.pf-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(15,46,36,.8));
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.pf-gallery-item:hover .pf-gallery-overlay { opacity: 1; }

.pf-gallery-caption {
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
}

@media (max-width: 1024px) { .pf-gallery-grid { columns: 3; } }
@media (max-width: 768px) { .pf-gallery-grid { columns: 2; } }
@media (max-width: 480px) { .pf-gallery-grid { columns: 1; } }

/* ===== Lightbox - Premium ===== */
.pf-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.94);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.pf-lightbox.open {
    display: flex;
}

.pf-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.pf-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.pf-lightbox-close:hover {
    background: rgba(255,255,255,.2);
    transform: rotate(90deg);
}

.pf-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.pf-lightbox-nav:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-50%) scale(1.1);
}

.pf-lightbox-prev { left: 24px; }
.pf-lightbox-next { right: 24px; }

/* ===== News List ===== */
.pf-news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.pf-news-featured-img {
    border-radius: 20px;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 768px) {
    .pf-news-featured { grid-template-columns: 1fr; }
}

/* ===== Brother Card - Glass ===== */
.pf-brother-card {
    text-align: center;
    padding: 28px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.5);
    transition: all .4s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

.pf-brother-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(201,168,76,.03), transparent, rgba(27,77,62,.03), transparent);
    animation: pfCardShine 6s linear infinite;
    opacity: 0;
    transition: opacity .4s;
}

.pf-brother-card:hover::after { opacity: 1; }

@keyframes pfCardShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pf-brother-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(15,46,36,.1);
}

.pf-brother-photo {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 3px solid var(--mbs-light);
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    transition: all .3s;
}

.pf-brother-card:hover .pf-brother-photo {
    border-color: var(--mbs-accent);
    box-shadow: 0 0 20px rgba(201,168,76,.2);
}

.pf-brother-name {
    font-size: .92rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
    position: relative;
    z-index: 1;
}

.pf-brother-role {
    font-size: .76rem;
    color: var(--mbs-secondary);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.pf-brother-community {
    font-size: .72rem;
    color: #94a3b8;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* ===== Events - Glass Cards ===== */
.pf-event-card {
    display: flex;
    gap: 18px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.4);
    margin-bottom: 12px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.pf-event-card:hover {
    border-color: rgba(27,77,62,.12);
    box-shadow: 0 8px 25px rgba(15,46,36,.08);
    transform: translateX(4px);
}

.pf-event-date-box {
    min-width: 64px;
    text-align: center;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--mbs-light), rgba(27,77,62,.06));
    border: 1px solid rgba(27,77,62,.08);
}

.pf-event-day {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--mbs-primary);
    line-height: 1;
}

.pf-event-month {
    font-size: .7rem;
    font-weight: 700;
    color: var(--mbs-accent);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ===== Contact Form - Glass ===== */
.pf-form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(226,232,240,.6);
    border-radius: 14px;
    font-size: .88rem;
    color: #334155;
    outline: none;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(8px);
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.pf-form-input:focus {
    border-color: var(--mbs-secondary);
    box-shadow: 0 0 0 4px rgba(27,77,62,.06), 0 4px 15px rgba(27,77,62,.06);
    background: rgba(255,255,255,.9);
}

/* ===== Buttons - Glass with Inner Glow ===== */
.pf-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--mbs-primary), var(--mbs-secondary));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Inner glow */
.pf-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s;
}

.pf-btn-primary:hover {
    box-shadow: 0 8px 28px rgba(27,77,62,.35), inset 0 1px 0 rgba(255,255,255,.15);
    transform: translateY(-2px);
}

.pf-btn-primary:hover::before {
    left: 100%;
}

.pf-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(8px);
    color: var(--mbs-primary);
    border: 2px solid rgba(27,77,62,.2);
    border-radius: 14px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.pf-btn-outline:hover {
    background: var(--mbs-primary);
    color: white;
    border-color: var(--mbs-primary);
    box-shadow: 0 8px 25px rgba(27,77,62,.25);
    transform: translateY(-2px);
}

/* ===== Filter Tabs - Glass Pills ===== */
.pf-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.pf-filter-tab {
    padding: 9px 22px;
    border-radius: 24px;
    font-size: .82rem;
    font-weight: 500;
    color: #64748b;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,.04);
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.pf-filter-tab:hover {
    color: var(--mbs-primary);
    background: rgba(27,77,62,.06);
    border-color: rgba(27,77,62,.1);
    transform: translateY(-1px);
}

.pf-filter-tab.active {
    color: white;
    background: linear-gradient(135deg, var(--mbs-primary), var(--mbs-secondary));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(27,77,62,.25);
}

/* ===== Breadcrumb - Glass Pills ===== */
.pf-breadcrumb {
    padding: 16px 0;
    font-size: .8rem;
    color: #94a3b8;
}

.pf-breadcrumb a {
    color: var(--mbs-secondary);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(27,77,62,.04);
    transition: all .2s;
}

.pf-breadcrumb a:hover {
    background: rgba(27,77,62,.08);
    color: var(--mbs-primary);
}

/* ===== Page Banner - Aurora ===== */
.pf-page-banner {
    background: linear-gradient(135deg, var(--mbs-dark) 0%, var(--mbs-primary) 50%, var(--mbs-secondary) 100%);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Aurora mesh on page banner */
.pf-page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(46,125,91,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(255,255,255,.03) 0%, transparent 50%);
    animation: pfBannerAurora 10s ease-in-out infinite alternate;
}

@keyframes pfBannerAurora {
    0% { opacity: .6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05) translateY(-2%); }
}

/* Grid overlay */
.pf-page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                       linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.pf-page-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 15px rgba(0,0,0,.2);
}

.pf-page-banner-subtitle {
    font-size: .92rem;
    color: rgba(255,255,255,.75);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* ===== Pagination ===== */
.pf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pf-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(226,232,240,.5);
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(6px);
    color: #64748b;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
}

.pf-page-btn:hover {
    border-color: var(--mbs-primary);
    color: var(--mbs-primary);
    background: rgba(27,77,62,.04);
}

.pf-page-btn.active {
    background: linear-gradient(135deg, var(--mbs-primary), var(--mbs-secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(27,77,62,.25);
}

/* ===== Scroll Reveal Animations - Enhanced ===== */
.pf-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

.pf-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal variants */
.pf-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

.pf-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.pf-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

.pf-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.pf-reveal-scale {
    opacity: 0;
    transform: scale(.9);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

.pf-reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== Loading Skeleton - Enhanced ===== */
.pf-skeleton {
    background: linear-gradient(90deg, rgba(241,245,249,.7) 25%, rgba(226,232,240,.5) 50%, rgba(241,245,249,.7) 75%);
    background-size: 200% 100%;
    animation: pfShimmer 1.8s ease infinite;
    border-radius: 10px;
}

@keyframes pfShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Commission Cards - Glass ===== */
.pf-commission-card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.4);
    transition: all .35s cubic-bezier(.4,0,.2,1);
}

.pf-commission-card:hover {
    box-shadow: 0 12px 35px rgba(15,46,36,.1);
    transform: translateY(-3px);
}

.pf-commission-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

/* ===== Document Card - Glass ===== */
.pf-doc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.3);
    margin-bottom: 10px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    color: inherit;
}

.pf-doc-card:hover {
    border-color: rgba(27,77,62,.12);
    background: rgba(255,255,255,.85);
    box-shadow: 0 8px 20px rgba(15,46,36,.06);
    transform: translateX(4px);
}

.pf-doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(239,68,68,.06);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===== Video Section ===== */
.pf-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.pf-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

/* ===== Map ===== */
.pf-map-embed {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* ===== Photos/Videos Tab ===== */
.pf-tab-photos.active,
.pf-tab-videos.active {
    color: #fff;
    background: linear-gradient(135deg, var(--mbs-primary), var(--mbs-secondary));
    border-color: transparent;
}

/* ===== Video Card ===== */
.pf-video-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.4);
    transition: all .35s cubic-bezier(.4,0,.2,1);
}

.pf-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .pf-hero {
        height: 55vh;
        min-height: 380px;
    }
    .pf-hero-title { font-size: 1.6rem; }
    .pf-section { padding: 30px 0; }
    .pf-section-title { font-size: 1.4rem; }
    .pf-stat-number { font-size: 1.8rem; }
    .pf-page-banner { padding: 28px 0; }
    .pf-page-banner-title { font-size: 1.4rem; }
    .pf-stats-section { padding: 14px 0; }
}

@media (max-width: 480px) {
    .pf-hero {
        height: 55vh;
        min-height: 350px;
    }
}

/* ===== Knowledge Card ===== */
.pf-knowledge-card {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.4);
    transition: all .35s cubic-bezier(.4,0,.2,1);
}

.pf-knowledge-card:hover {
    box-shadow: 0 12px 35px rgba(15,46,36,.08);
    transform: translateY(-3px);
}
