/*
Theme Name: NFREU Portal
Theme URI: https://portal.nfreu.org
Author: NFREU
Description: Official WordPress theme for the N.F. Railway Employees Union v4.1
Version: 5.8.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: nfreu
*/

/* ================================================
   DESIGN TOKENS
   ================================================ */
:root {
  --primary:       #0A1628; /* Deep Navy */
  --primary-dark:  #060E1A; /* Dark Luxury Navy */
  --primary-light: #1E3A5F; /* Secondary Navy */
  --primary-mid:   #152A4A; /* Medium Navy */
  --accent:        #C9A84C; /* Gold */
  --accent-hover:  #E8C87A; /* Light Gold */
  --accent-light:  rgba(201,168,76,0.12);
  --white:         #ffffff;
  --off-white:     #F8F5EF; /* Cream */
  --gray-50:       #F8F5EF; /* Cream */
  --gray-100:      #f1f5f9;
  --gray-200:      #e2e8f0;
  --gray-300:      #cbd5e1;
  --gray-400:      #94a3b8;
  --gray-500:      #64748b;
  --gray-600:      #475569;
  --gray-700:      #334155;
  --gray-800:      #1e293b;
  --gray-900:      #0f172a;
  --text:          #1A2B3C; /* Dark Blue Text */
  --text-muted:    #5A7A96; /* Muted Blue Gray */
  --border:        rgba(201,168,76,0.15); /* Elegant gold-tinged border */
  --secondary:     #1E3A5F;
  --ribbon-bg:     #0A1628;
  --shadow-sm:  0 2px 8px rgba(10,22,40,.04);
  --shadow-md:  0 8px 24px rgba(10,22,40,.08);
  --shadow-lg:  0 16px 48px rgba(10,22,40,.12);
  --shadow-xl:  0 24px 64px rgba(10,22,40,.16);
  --r:    10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 26px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font: var(--font-sans);
  --ease: all .32s cubic-bezier(.4,0,.2,1);
  --header-h: 112px;
}

/* ================================================
   RESET
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: var(--font); color: var(--text); background: var(--off-white); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--ease); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; color: var(--primary); letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
p  { font-family: var(--font-sans); color: var(--text-muted); line-height: 1.75; }

/* ================================================
   LAYOUT
   ================================================ */
.nfreu-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media(min-width:640px)  { .nfreu-container { padding: 0 1.5rem; } }
@media(min-width:1024px) { .nfreu-container { padding: 0 2rem; } }
.nfreu-section { padding: 4rem 0; }
@media(min-width:768px)  { .nfreu-section { padding: 5rem 0; } }

/* ================================================
   BUTTONS
   ================================================ */
.nfreu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .75rem 1.5rem; border-radius: var(--r);
  font-weight: 600; font-size: .9rem; transition: var(--ease);
  border: 2px solid transparent; white-space: nowrap; cursor: pointer; text-decoration: none;
}
.nfreu-btn:hover { transform: translateY(-1px); }
.nfreu-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.nfreu-btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color:#fff; box-shadow: var(--shadow-md); }
.nfreu-btn-accent  { background: var(--accent); color: #fff; border-color: var(--accent); }
.nfreu-btn-accent:hover  { background: var(--accent-hover); border-color: var(--accent-hover); color:#fff; box-shadow: 0 4px 12px rgba(220,20,60,.3); }
.nfreu-btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.nfreu-btn-outline:hover { background: var(--primary); color: #fff; }
.nfreu-btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.nfreu-btn-outline-white:hover { background: #fff; color: var(--primary); border-color:#fff; }
.nfreu-btn-sm { padding: .45rem 1rem; font-size: .8rem; }
.nfreu-btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ================================================
   CARDS
   ================================================ */
.nfreu-card {
  background: #fff; border-radius: var(--r-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: var(--ease); overflow: hidden;
}
.nfreu-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ================================================
   HEADER
   ================================================ */
#nfreu-header {
  position: sticky; top: 0; z-index: 1000; background: #fff;
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
#nfreu-header.scrolled { box-shadow: var(--shadow-md); }

.nfreu-topribbon {
  background: var(--ribbon-bg);
  color: rgba(255,255,255,.8);
  padding: 0 0;
  font-size: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nfreu-topribbon-inner {
  display: flex; align-items: stretch; justify-content: space-between;
  min-height: 36px;
}
.nfreu-topribbon-left,
.nfreu-topribbon-right { display: flex; align-items: center; gap: .75rem; }
.nfreu-topribbon-item {
  color: rgba(255,255,255,.8); font-size: .73rem; font-weight: 500;
  transition: color .2s; display: flex; align-items: center; gap: .35rem;
  padding: .5rem 0;
}
.nfreu-topribbon-item:hover { color: #fff; }
.nfreu-topribbon-item i { font-size: .7rem; opacity: .7; }
.nfreu-topribbon-divider { color: rgba(255,255,255,.2); font-size: .9rem; }
.nfreu-topribbon-social {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  font-size: .72rem; transition: var(--ease);
}
.nfreu-topribbon-social:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
@media(max-width:767px) { .nfreu-topribbon { display: none; } }

.nfreu-navbar { padding: .7rem 0; }
.nfreu-navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nfreu-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; max-width: 55%; }
.nfreu-logo-img { height: 50px; width: auto; max-width: 180px; object-fit: contain; }
.nfreu-logo-fallback {
  width: 46px; height: 46px; background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: .85rem; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,51,102,.3);
}
.nfreu-logo-text { min-width: 0; }
.nfreu-logo-name { display: block; font-size: 1.15rem; font-weight: 900; color: var(--primary); line-height: 1.1; white-space: nowrap; letter-spacing: -.01em; }
.nfreu-logo-tagline { display: block; font-size: .58rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; text-transform: uppercase; }

.nfreu-desknav { display: flex; align-items: center; gap: .05rem; }
.nfreu-desknav a {
  display: flex; align-items: center; gap: .3rem; padding: .5rem .75rem;
  border-radius: var(--r); font-size: .84rem; font-weight: 600; color: var(--text);
  transition: var(--ease); white-space: nowrap; position: relative;
}
.nfreu-desknav a::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--primary); border-radius: 2px;
  transition: left .25s ease, right .25s ease;
}
.nfreu-desknav a:hover::after, .nfreu-desknav a.active::after { left: 10px; right: 10px; }
.nfreu-desknav a:hover, .nfreu-desknav a.active { color: var(--primary); }

.nfreu-nav-actions { display: flex; align-items: center; gap: .5rem; }
.nfreu-search-btn {
  width: 38px; height: 38px; border-radius: var(--r);
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; color: var(--gray-600);
  border: 1px solid var(--border); cursor: pointer; transition: var(--ease); flex-shrink: 0;
}
.nfreu-search-btn:hover { background: var(--secondary); color: var(--primary); border-color: var(--primary); }

.nfreu-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: var(--r); background: var(--primary); cursor: pointer;
  border: none; transition: var(--ease); flex-shrink: 0;
}
.nfreu-hamburger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: var(--ease); }
.nfreu-hamburger:hover { background: var(--primary-dark); }
.nfreu-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nfreu-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nfreu-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width:1023px) { .nfreu-desknav { display: none; } .nfreu-hamburger { display: flex; } }
@media(min-width:1024px) { .nfreu-hamburger { display: none; } }

/* Mobile Drawer */
.nfreu-mobile-drawer {
  position: fixed; inset: 0; z-index: 1100; pointer-events: none;
}
.nfreu-mobile-backdrop {
  position: absolute; inset: 0; background: rgba(0,20,51,.6);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.nfreu-mobile-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 88vw);
  background: #fff; transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; display: flex; flex-direction: column;
  pointer-events: none; box-shadow: var(--shadow-xl);
}
.nfreu-mobile-drawer.open .nfreu-mobile-backdrop { opacity: 1; pointer-events: all; }
.nfreu-mobile-drawer.open .nfreu-mobile-panel { transform: translateX(0); pointer-events: all; }
.nfreu-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; background: var(--primary);
  border-bottom: 2px solid rgba(255,255,255,.1);
}
.nfreu-mobile-header .nfreu-logo-name { color: #fff !important; }
.nfreu-mobile-header .nfreu-logo-tagline { color: rgba(255,255,255,.6) !important; }
.nfreu-mobile-close {
  width: 36px; height: 36px; border-radius: var(--r);
  background: rgba(255,255,255,.15); display: flex; align-items: center;
  justify-content: center; border: 1px solid rgba(255,255,255,.2);
  cursor: pointer; color: #fff; transition: var(--ease);
}
.nfreu-mobile-close:hover { background: rgba(255,255,255,.25); }
.nfreu-mobile-nav { flex: 1; padding: .75rem; display: flex; flex-direction: column; gap: .2rem; }
.nfreu-mobile-link {
  display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem;
  border-radius: var(--r); font-size: .9rem; font-weight: 600;
  color: var(--text); text-decoration: none; transition: var(--ease);
  border-left: 3px solid transparent;
}
.nfreu-mobile-icon { width: 22px; flex-shrink: 0; color: var(--gray-400); }
.nfreu-mobile-link:hover { background: var(--secondary); color: var(--primary); border-left-color: var(--primary); }
.nfreu-mobile-link:hover .nfreu-mobile-icon { color: var(--primary); }
.nfreu-mobile-link.active { background: var(--primary); color: #fff; border-left-color: var(--accent); }
.nfreu-mobile-link.active .nfreu-mobile-icon { color: rgba(255,255,255,.8); }
.nfreu-mobile-footer { padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--border); background: var(--gray-50); }
.nfreu-mob-social {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; transition: var(--ease);
}
.nfreu-mob-social:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ================================================
   PAGE HERO BANNER — Cinematic effect
   ================================================ */
.nfreu-page-hero {
  position: relative; min-height: 240px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  display: flex; align-items: center; overflow: hidden;
}
.nfreu-page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  animation: nfreu-cinematic 12s ease-in-out infinite alternate;
}
@keyframes nfreu-cinematic {
  0% { transform: scale(1.08) translate(0%, 0%); }
  50% { transform: scale(1.02) translate(-0.5%, -0.3%); }
  100% { transform: scale(1.05) translate(0.3%, 0.2%); }
}
.nfreu-page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,20,60,.88) 0%, rgba(0,51,102,.75) 60%, rgba(0,80,140,.6) 100%);
}
.nfreu-page-hero-pattern {
  position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.2) 0%, transparent 40%);
}
.nfreu-page-hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: 3rem 0;
}
.nfreu-page-hero h1 {
  color: #fff; font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800; margin-bottom: .25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  /* FIX: very long post/event titles used to overflow the hero banner and
     break the layout on mobile. Clamp to 2 lines with an ellipsis so the
     hero always keeps its shape — the full title is still shown lower
     down in the page content. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
.nfreu-page-hero-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 500; margin-top: .5rem;
}
.nfreu-page-hero-breadcrumb a { color: rgba(255,255,255,.7); }
.nfreu-page-hero-breadcrumb a:hover { color: #fff; }
.nfreu-page-hero-breadcrumb span { color: rgba(255,255,255,.4); }
@media(min-width:768px) {
  .nfreu-page-hero {
    height: 350px;
  }
}

/* ================================================
   SEARCH OVERLAY
   ================================================ */
.nfreu-search-overlay {
  position: fixed; inset: 0; background: rgba(0,20,51,.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 2000; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8vh; opacity: 0; visibility: hidden; transition: var(--ease);
}
.nfreu-search-overlay.open { opacity: 1; visibility: visible; }
.nfreu-search-box {
  background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 620px;
  margin: 0 1rem; box-shadow: var(--shadow-xl); overflow: hidden;
  transform: translateY(-20px); transition: transform .3s ease;
}
.nfreu-search-overlay.open .nfreu-search-box { transform: translateY(0); }
.nfreu-search-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.nfreu-search-input { flex: 1; border: none; outline: none; font-size: 1.05rem; font-family: var(--font); color: var(--text); }
.nfreu-search-input::placeholder { color: var(--gray-400); }
.nfreu-search-close { width: 30px; height: 30px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; color: var(--gray-500); font-size: .9rem; transition: var(--ease); }
.nfreu-search-close:hover { background: var(--gray-200); }
.nfreu-search-results { padding: .75rem; max-height: 400px; overflow-y: auto; }
.nfreu-search-empty { text-align: center; color: var(--gray-400); font-size: .88rem; padding: 2rem; }
.nfreu-search-result-item { display: block; padding: .75rem 1rem; border-radius: var(--r); border: 1px solid transparent; transition: var(--ease); }
.nfreu-search-result-item:hover { background: var(--secondary); border-color: var(--border); }
.nfreu-search-result-type { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .15rem; }
.nfreu-search-result-title { font-size: .9rem; font-weight: 600; color: var(--text); }
.nfreu-search-result-excerpt { font-size: .8rem; color: var(--text-muted); margin-top: .15rem; }

/* ================================================
   HERO SECTION (front page)
   ================================================ */
.nfreu-hero {
  display: grid; grid-template-columns: 1fr 1.6fr 1fr;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  min-height: 480px; position: relative; overflow: hidden;
}
.nfreu-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}
.nfreu-hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 2rem 3rem 0; color: #fff;
  animation: heroFadeIn .8s ease both;
}
@keyframes heroFadeIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
.nfreu-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.9); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 100px; margin-bottom: 1.5rem;
  width: fit-content;
}
.nfreu-hero-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem); color: #fff; font-weight: 800;
  line-height: 1.2; margin-bottom: 1.25rem; letter-spacing: -.025em;
}
.nfreu-hero-desc { color: rgba(255,255,255,.78); font-size: .9rem; margin-bottom: 2rem; line-height: 1.7; }
.nfreu-hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.nfreu-slider {
  position: relative; overflow: hidden; background: var(--primary-dark);
  border-left: 1px solid rgba(255,255,255,.08); border-right: 1px solid rgba(255,255,255,.08);
}
.nfreu-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.nfreu-slide.active { opacity: 1; position: relative; min-height: 480px; }
.nfreu-slide img { width: 100%; height: 100%; object-fit: cover; }
.nfreu-slide-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,20,50,.2) 0%, rgba(0,20,50,.6) 100%); }
.nfreu-slide-caption { position: absolute; bottom: 2.5rem; left: 1.5rem; right: 1.5rem; }
.nfreu-slide-caption h3 { color: #fff; font-size: 1.1rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.nfreu-slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; transition: var(--ease); }
.nfreu-slide-arrow:hover { background: rgba(255,255,255,.25); }
.nfreu-slide-arrow.prev { left: .75rem; }
.nfreu-slide-arrow.next { right: .75rem; }
.nfreu-slide-dots { position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 5; }
.nfreu-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: var(--ease); padding: 0; }
.nfreu-dot.active { background: #fff; width: 22px; border-radius: 4px; }
.nfreu-slide-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 480px; gap: 1rem; }
.nfreu-hero-right {
  display: flex; flex-direction: column; padding: 2rem 0 2rem 2rem; overflow: hidden;
  animation: heroFadeIn .8s .3s ease both;
}
.nfreu-quick-title { color: rgba(255,255,255,.9); font-size: 1rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: .05em; text-transform: uppercase; font-size: .8rem; }
.nfreu-quick-links { display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.nfreu-quick-link {
  display: flex; align-items: center; gap: .85rem; padding: .75rem 1rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r); color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 600;
  transition: var(--ease); text-decoration: none; backdrop-filter: blur(6px);
}
.nfreu-quick-link:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateX(4px); border-color: rgba(255,255,255,.25); }
.nfreu-quick-icon { font-size: 1.1rem; flex-shrink: 0; width: 24px; text-align: center; }
@media(max-width:1023px) {
  .nfreu-hero { grid-template-columns: 1fr; min-height: auto; }
  .nfreu-hero-left { padding: 2.5rem 1.5rem 1.5rem; text-align: center; align-items: center; }
  .nfreu-slider { min-height: 260px; }
  .nfreu-slide.active { min-height: 260px; }
  .nfreu-hero-right { padding: 1.5rem; flex-direction: column; }
  .nfreu-quick-links { flex-direction: grid; display: grid; grid-template-columns: 1fr 1fr; }
}
@media(max-width:639px) { .nfreu-quick-links { grid-template-columns: 1fr; } }

/* ================================================
   TICKER STRIP
   ================================================ */
.nfreu-ticker-strip { background: var(--secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .65rem 0; }
.nfreu-ticker-strip-inner { display: flex; align-items: center; gap: 1rem; overflow: hidden; }
.nfreu-ticker-label { background: var(--accent); color: #fff; padding: .2rem .65rem; border-radius: 4px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; }
.nfreu-ticker-content { flex: 1; overflow: hidden; }
.nfreu-ticker { display: inline-block; white-space: nowrap; animation: nfreu-ticker 40s linear infinite; }
.nfreu-ticker:hover { animation-play-state: paused; }
.nfreu-ticker-item { margin-right: 3rem; color: var(--text); font-size: .82rem; }
.nfreu-ticker-item::before { content: '● '; color: var(--accent); font-size: .5rem; vertical-align: middle; margin-right: .3rem; }
@keyframes nfreu-ticker { 0%{transform:translateX(100vw)} 100%{transform:translateX(-100%)} }

/* ================================================
   SECTION TITLES
   ================================================ */
.nfreu-section-title { margin-bottom: 2.5rem; }
.nfreu-section-title h2 { margin-bottom: .5rem; }
.nfreu-section-title p { color: var(--text-muted); font-size: .95rem; max-width: 560px; }
.nfreu-section-title.centered { text-align: center; }
.nfreu-section-title.centered p { margin: 0 auto; }
.nfreu-section-label {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .5rem;
  padding: .2rem .75rem; background: var(--accent-light); border-radius: 100px;
}
.nfreu-section-divider { width: 50px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; margin-top: .75rem; }
.nfreu-section-title.centered .nfreu-section-divider { margin: .75rem auto 0; }

/* ================================================
   NEWS CARDS
   ================================================ */
.nfreu-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.nfreu-news-card { display: flex; flex-direction: column; }
.nfreu-news-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.nfreu-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nfreu-news-card:hover .nfreu-news-thumb img { transform: scale(1.05); }
.nfreu-news-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.nfreu-news-cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .4rem; }
.nfreu-news-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; line-height: 1.4; }
.nfreu-news-title a { color: inherit; }
.nfreu-news-title a:hover { color: var(--primary); }
.nfreu-news-excerpt { font-size: .83rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; }
.nfreu-news-meta { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--gray-400); border-top: 1px solid var(--border); padding-top: .75rem; }
.nfreu-news-meta a { color: var(--primary); font-weight: 600; font-size: .78rem; }

/* ================================================
   COUNTERS SECTION
   ================================================ */
.nfreu-counters { background: var(--primary); padding: 4rem 0; }
.nfreu-counters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1.5rem; }
.nfreu-counter-item { text-align: center; padding: 1.5rem 1rem; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: var(--ease); }
.nfreu-counter-item:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.nfreu-counter-icon { font-size: 2rem; margin-bottom: .75rem; opacity: .8; }
.nfreu-counter-num { font-size: 2.5rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: .3rem; letter-spacing: -.03em; }
.nfreu-counter-label { font-size: .78rem; color: rgba(255,255,255,.65); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ================================================
   EVENTS (legacy)
   ================================================ */
.nfreu-events-list { display: flex; flex-direction: column; gap: 1rem; }
.nfreu-event-item {
  display: flex; align-items: stretch; gap: 1.25rem;
  border-radius: var(--r-md); background: #fff;
  border: 1px solid var(--border); overflow: hidden;
  transition: var(--ease); text-decoration: none; color: inherit;
}
.nfreu-event-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: var(--primary); }
.nfreu-event-date-box {
  background: var(--primary); color: #fff; min-width: 70px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem .5rem; flex-shrink: 0; text-align: center;
}
.nfreu-event-day { font-size: 1.8rem; font-weight: 900; line-height: 1; color: var(--accent); }
.nfreu-event-month { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-top: .2rem; }
.nfreu-event-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.nfreu-event-type { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .3rem; }
.nfreu-event-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; line-height: 1.3; }
.nfreu-event-location { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }

/* Single Event Page */
.nfreu-single-event { padding: 3rem 0; }
.nfreu-event-body-grid.nfreu-has-poster {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
@media(max-width:991px) {
  .nfreu-event-body-grid.nfreu-has-poster {
    grid-template-columns: 260px 1fr;
    gap: 2rem;
  }
}
@media(max-width:767px) {
  .nfreu-event-body-grid.nfreu-has-poster {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.nfreu-event-hero {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 550px;
}
@media(max-width:767px) {
  .nfreu-event-hero {
    max-height: 400px;
  }
}
.nfreu-event-hero img {
  max-width: 100%;
  max-height: 550px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@media(max-width:767px) {
  .nfreu-event-hero img {
    max-height: 400px;
  }
}
.nfreu-event-poster-link {
  display: block;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: rgba(10, 22, 40, 0.02);
  border: 1px solid rgba(10, 22, 40, 0.05);
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: zoom-in;
  max-height: 550px;
}
@media(max-width:767px) {
  .nfreu-event-poster-link {
    border-radius: var(--r-lg);
    max-height: 400px;
  }
}
.nfreu-event-poster-link:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 20px 40px rgba(10, 22, 40, 0.12), 0 4px 15px rgba(0, 0, 0, 0.05);
}
.nfreu-event-poster-link:hover img {
  transform: scale(1.025);
}
.nfreu-event-meta-bar { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2rem; }
.nfreu-event-meta-tag { display: flex; align-items: center; gap: .35rem; background: var(--secondary); color: var(--primary); padding: .35rem .75rem; border-radius: 100px; font-size: .75rem; font-weight: 600; }
@media(max-width:480px) {
  .nfreu-event-meta-tag { font-size:.7rem; padding:.3rem .6rem; }
  .nfreu-event-meta-bar { gap:.45rem; margin-bottom:1.25rem; }
}
.nfreu-event-content { max-width: 760px; }
.nfreu-event-content p { margin-bottom: 1rem; }
.nfreu-event-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: .75rem; margin-top: 1.5rem; }
.nfreu-event-gallery-grid img { border-radius: var(--r); aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; transition: var(--ease); }
.nfreu-event-gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.nfreu-related-events { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--border); }

/* ================================================
   QUICK ACCESS
   ================================================ */
.nfreu-quick-access-section { padding: 4rem 0; background: var(--gray-50); }
.nfreu-quick-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
@media(max-width:1100px) { .nfreu-quick-cards { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:640px) { .nfreu-quick-cards { grid-template-columns: repeat(2, 1fr); } }
.nfreu-quick-card {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border);
  padding: 1.75rem 1.25rem; text-align: center; transition: var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.nfreu-quick-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0; transition: opacity .3s ease;
}
.nfreu-quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.nfreu-quick-card:hover::before { opacity: 1; }
.nfreu-quick-card-icon {
  width: 58px; height: 58px; border-radius: var(--r-lg);
  background: var(--secondary); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: var(--ease); position: relative; z-index: 1;
  border: 2px solid var(--border);
}
.nfreu-quick-card:hover .nfreu-quick-card-icon { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.3); }
.nfreu-quick-card-label { font-size: .88rem; font-weight: 700; color: var(--text); position: relative; z-index: 1; transition: color .3s; line-height: 1.3; }
.nfreu-quick-card:hover .nfreu-quick-card-label { color: #fff; }
.nfreu-quick-card-arrow { font-size: .75rem; color: var(--gray-400); position: relative; z-index: 1; transition: var(--ease); }
.nfreu-quick-card:hover .nfreu-quick-card-arrow { color: rgba(255,255,255,.7); transform: translateX(3px); }

/* ================================================
   GALLERY GRID
   ================================================ */
.nfreu-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; }

/* ================================================
   LIGHTBOX
   ================================================ */
.nfreu-lightbox-bg { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--ease); }
.nfreu-lightbox-bg.open { opacity: 1; visibility: visible; }
.nfreu-lb-img { max-width: 90vw; max-height: 85vh; }
.nfreu-lb-img img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--r); }
.nfreu-lb-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--ease); }
.nfreu-lb-close:hover { background: rgba(255,255,255,.25); }
.nfreu-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 1.25rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--ease); }
.nfreu-lb-nav:hover { background: rgba(255,255,255,.22); }
.nfreu-lb-prev { left: 1.5rem; }
.nfreu-lb-next { right: 1.5rem; }
.nfreu-video-lb-bg { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--ease); }
.nfreu-video-lb-bg.open { opacity: 1; visibility: visible; }
.nfreu-video-lb-wrap { width: min(90vw, 900px); aspect-ratio: 16/9; }
.nfreu-video-lb-wrap iframe { width: 100%; height: 100%; border-radius: var(--r-md); }

/* ================================================
   NEWSLETTER
   ================================================ */
.nfreu-newsletter-bar { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); padding: 3rem 0; }
.nfreu-newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.nfreu-newsletter-text { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.nfreu-newsletter-icon { width: 52px; height: 52px; border-radius: var(--r-lg); background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; flex-shrink: 0; }
.nfreu-newsletter-text h3 { color: #fff; font-size: 1.15rem; margin-bottom: .2rem; }
.nfreu-newsletter-text p { color: rgba(255,255,255,.75); font-size: .85rem; margin: 0; }
.nfreu-newsletter-form { flex: 1; min-width: 280px; }
.nfreu-newsletter-field { display: flex; gap: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.nfreu-newsletter-field input { flex: 1; padding: .9rem 1.25rem; border: none; font-size: .9rem; font-family: var(--font); outline: none; }
.nfreu-newsletter-btn { background: var(--accent); color: #fff; border: none; padding: .9rem 1.5rem; font-size: .88rem; font-weight: 700; cursor: pointer; font-family: var(--font); transition: background .2s; white-space: nowrap; }
.nfreu-newsletter-btn:hover { background: var(--accent-hover); }
.nfreu-newsletter-msg { margin-top: .6rem; font-size: .82rem; font-weight: 600; min-height: 1.2rem; }
.nfreu-newsletter-msg.success { color: #86efac; }
.nfreu-newsletter-msg.error { color: #fca5a5; }

/* ================================================
   FOOTER — Premium Redesign
   ================================================ */
.nfreu-footer { background: var(--gray-900); color: rgba(255,255,255,.8); }
.nfreu-footer-top { padding: 4rem 0 3rem; }
.nfreu-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.nfreu-footer-logo { height: 48px; width: auto; object-fit: contain; margin-bottom: .75rem; }
.nfreu-footer-brand-name { font-size: 1.4rem; font-weight: 900; color: #fff; line-height: 1; }
.nfreu-footer-brand-sub { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-top: .2rem; margin-bottom: 1rem; }
.nfreu-footer-about-text { font-size: .84rem; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 1.25rem; }
.nfreu-footer-socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.nfreu-footer-social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .82rem; transition: var(--ease); }
.nfreu-footer-social-icon:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.nfreu-footer-heading { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1.25rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.nfreu-footer-links { display: flex; flex-direction: column; gap: .35rem; }
.nfreu-footer-links a { color: rgba(255,255,255,.75); font-size: .84rem; transition: var(--ease); display: flex; align-items: center; gap: .4rem; }
.nfreu-footer-links a i { font-size: .55rem; color: var(--accent); }
.nfreu-footer-links a:hover { color: #fff; padding-left: 4px; }
.nfreu-footer-contact-list { display: flex; flex-direction: column; gap: .85rem; }
.nfreu-footer-contact-item { display: flex; gap: .75rem; align-items: flex-start; }
.nfreu-footer-contact-icon { width: 30px; height: 30px; border-radius: var(--r); background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .78rem; flex-shrink: 0; margin-top: .05rem; }
.nfreu-footer-contact-item div a { color: rgba(255,255,255,.75); font-size: .84rem; }
.nfreu-footer-contact-item div a:hover { color: #fff; }
.nfreu-footer-contact-item div { font-size: .84rem; color: rgba(255,255,255,.75); line-height: 1.5; }
.nfreu-footer-bottom { background: rgba(0,0,0,.35); padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.nfreu-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nfreu-footer-copy { font-size: .78rem; color: rgba(255,255,255,.55); }
.nfreu-footer-bottom-links { display: flex; gap: 1.5rem; }
.nfreu-footer-bottom-links a { font-size: .78rem; color: rgba(255,255,255,.55); transition: color .2s; }
.nfreu-footer-bottom-links a:hover { color: #fff; }
@media(max-width:1023px) { .nfreu-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media(max-width:767px) { .nfreu-footer-grid { grid-template-columns: 1fr; } }
@media(max-width:639px) {
  .nfreu-footer-bottom-inner { flex-direction: column; text-align: center; }
  .nfreu-newsletter-inner { flex-direction: column; }
}
/* Mobile: Quick Links + Organisation side by side */
@media(max-width:767px) {
  .nfreu-footer-grid { display:flex; flex-wrap:wrap; gap:2rem; }
  .nfreu-footer-brand { width:100%; }
  .nfreu-footer-col { width:calc(50% - 1rem); }
  .nfreu-footer-col:nth-child(4) { width:100%; }
}

/* ================================================
   BACK TO TOP
   ================================================ */
#nfreu-back-top {
  position: fixed; bottom: 2rem; right: 1.5rem; z-index: 500;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: var(--ease);
  opacity: 0; visibility: hidden; transform: translateY(10px);
}
#nfreu-back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#nfreu-back-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ================================================
   ANIMATIONS — Scroll reveal
   ================================================ */
.nfreu-reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.nfreu-reveal.visible { opacity: 1; transform: translateY(0); }
.nfreu-reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity .6s ease, transform .6s ease; }
.nfreu-reveal-left.visible { opacity: 1; transform: translateX(0); }
.nfreu-reveal-right { opacity: 0; transform: translateX(28px); transition: opacity .6s ease, transform .6s ease; }
.nfreu-reveal-right.visible { opacity: 1; transform: translateX(0); }
.nfreu-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.nfreu-stagger.visible > * { opacity: 1; transform: none; }
.nfreu-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.nfreu-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .08s; }
.nfreu-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .16s; }
.nfreu-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .24s; }
.nfreu-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .32s; }
.nfreu-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .40s; }

/* ================================================
   ABOUT PAGE
   ================================================ */
.nfreu-about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media(max-width:767px) { .nfreu-about-intro { grid-template-columns: 1fr; } }
.nfreu-mvg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.5rem; margin: 3rem 0; }

/* About Key Metrics Section */
.nfreu-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.nfreu-metric-card {
  background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary-dark) 100%);
  border-radius: var(--r-lg);
  border: 1px solid rgba(201, 168, 76, 0.15);
  padding: 2.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: opacity 0.5s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease !important;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.nfreu-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--accent) 100%);
  opacity: 0.8;
}
.nfreu-metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(6, 14, 26, 0.4), 0 0 16px rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.45);
}
.nfreu-metric-num {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.nfreu-metric-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.nfreu-metric-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}
.nfreu-metrics-grid > .nfreu-metric-card {
  transition-delay: 0s !important;
}

@media (min-width: 1025px) {
  .nfreu-metric-card.featured {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 1px solid rgba(201, 168, 76, 0.3);
  }
  .nfreu-metric-card.featured .nfreu-metric-num {
    font-size: 3rem;
  }
}
@media (max-width: 1024px) {
  .nfreu-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nfreu-metric-card.featured {
    grid-column: span 3;
  }
}
@media (max-width: 767px) {
  .nfreu-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nfreu-metric-card.featured {
    grid-column: span 2;
  }
}
@media (max-width: 480px) {
  .nfreu-metrics-grid {
    grid-template-columns: 1fr;
  }
  .nfreu-metric-card.featured {
    grid-column: span 1;
  }
}

.nfreu-mvg-card { padding: 2rem 1.75rem; border-radius: var(--r-lg); border: 2px solid var(--border); background: #fff; transition: opacity 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease !important; }
.nfreu-mvg-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.nfreu-mvg-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.nfreu-mvg-title { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: .75rem; }
.nfreu-mvg-text { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }

/* Other Objectives Section on About Us page */
.nfreu-obj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.nfreu-obj-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
              border-color 0.3s ease;
  transition-delay: 0s !important;
}
.nfreu-obj-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 24px rgba(0, 51, 102, 0.08);
  border-color: rgba(0, 51, 102, 0.15);
}
.nfreu-obj-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  font-size: 1.35rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 8px;
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.nfreu-obj-card:hover .nfreu-obj-icon {
  transform: scale(1.15) rotate(-5deg);
  color: var(--accent-hover);
  background: rgba(245, 158, 11, 0.15);
}
.nfreu-obj-info {
  flex: 1;
}
.nfreu-obj-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}
.nfreu-obj-card:hover .nfreu-obj-title {
  color: var(--primary-light);
}
.nfreu-obj-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 480px) {
  .nfreu-obj-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }
  .nfreu-obj-icon {
    margin-bottom: 0.5rem;
  }
}

.nfreu-leadership-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.75rem; }
.nfreu-leader-card { text-align: center; padding: 2rem 1.5rem; }
.nfreu-leader-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid var(--border); background: var(--gray-100); }
.nfreu-leader-photo-placeholder { width: 100px; height: 100px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1rem; border: 4px solid var(--border); }
.nfreu-leader-name { font-size: 1rem; font-weight: 800; color: var(--primary); }
.nfreu-leader-designation { font-size: .78rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: .25rem; }
.nfreu-leader-desc { font-size: .82rem; color: var(--text-muted); margin-top: .6rem; line-height: 1.6; }
.nfreu-timeline { position: relative; padding-left: 2rem; }
.nfreu-timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary) 0%, var(--border) 100%); border-radius: 2px; }
.nfreu-timeline-item { position: relative; padding: 0 0 2.5rem 2rem; }
.nfreu-timeline-dot { position: absolute; left: -2rem; top: .2rem; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); transform: translateX(calc(-50% + 1px)); }
.nfreu-timeline-year { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .3rem; }
.nfreu-timeline-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.nfreu-timeline-text { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }

/* ================================================
   CONTACT PAGE
   ================================================ */
.nfreu-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
@media(max-width:767px) { .nfreu-contact-grid { grid-template-columns: 1fr; } }
.nfreu-contact-form-wrap { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--border); padding: 2rem; box-shadow: var(--shadow-sm); }
.nfreu-form-group { margin-bottom: 1.25rem; }
.nfreu-form-group label { display: block; font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.nfreu-form-group input,
.nfreu-form-group select,
.nfreu-form-group textarea { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--r); font-size: .9rem; font-family: var(--font); color: var(--text); background: #fff; transition: border-color .2s; outline: none; }
.nfreu-form-group input:focus,
.nfreu-form-group select:focus,
.nfreu-form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,51,102,.08); }
.nfreu-form-group textarea { resize: vertical; min-height: 140px; }

/* ================================================
   MISC
   ================================================ */
.nfreu-page-wrap { padding: 3rem 0 4rem; }
.nfreu-content-block { max-width: 820px; }
.nfreu-content-block h2 { margin: 2rem 0 1rem; }
.nfreu-content-block h3 { margin: 1.5rem 0 .75rem; }
.nfreu-content-block p  { margin-bottom: 1rem; }
.nfreu-content-block ul { list-style: disc; padding-left: 1.5rem; color: var(--text-muted); margin-bottom: 1rem; }
.nfreu-content-block ul li { margin-bottom: .3rem; }
.nfreu-404 { text-align: center; padding: 6rem 2rem; }
.nfreu-404-num { font-size: 8rem; font-weight: 900; color: var(--primary); opacity: .12; line-height: 1; }
.nfreu-404-msg { font-size: 1.5rem; font-weight: 700; margin-top: -3rem; }

/* ================================================
   PAGINATION
   ================================================ */
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 .5rem; border-radius: var(--r); font-size: .85rem; font-weight: 600; color: var(--text); border: 1px solid var(--border); transition: var(--ease); text-decoration: none; }
.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-numbers.dots { border-color: transparent; }

/* ================================================
   NEWS PAGE
   ================================================ */
.nfreu-news-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: var(--primary);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
  border: none;
}
.nfreu-news-page { background: linear-gradient(180deg, var(--off-white) 0%, #fff 120px); padding-top: 2.5rem; }
.nfreu-news-toolbar { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem 1.35rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); transition: box-shadow .35s ease, transform .35s ease; }
.nfreu-news-toolbar:hover { box-shadow: var(--shadow-md); }
.nfreu-news-search-wrap { display: flex; align-items: center; gap: .65rem; background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--r-md); padding: .55rem .85rem; margin-bottom: 1rem; transition: border-color .25s ease, box-shadow .25s ease; }
.nfreu-news-search-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,51,102,.08); }
.nfreu-news-search-wrap > i { color: var(--gray-400); font-size: .9rem; flex-shrink: 0; }
.nfreu-news-search-wrap input { flex: 1; border: none; background: transparent; outline: none; font-size: .92rem; color: var(--text); min-width: 0; }
.nfreu-news-search-btn { background: var(--primary); color: #fff; border: none; padding: .55rem 1.1rem; border-radius: var(--r); font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; }
.nfreu-news-search-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nfreu-news-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.nfreu-news-filter-label { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-right: .35rem; }
.nfreu-news-filter-label i { color: var(--accent); margin-right: .2rem; }
.nfreu-news-filter-sep { width: 1px; height: 20px; background: var(--border); margin: 0 .25rem; }
.nfreu-news-chip { display: inline-flex; align-items: center; padding: .35rem .85rem; border-radius: 100px; font-size: .78rem; font-weight: 600; color: var(--text-muted); background: var(--gray-50); border: 1px solid var(--border); text-decoration: none; transition: var(--ease); }
.nfreu-news-chip:hover { border-color: var(--primary); color: var(--primary); }
.nfreu-news-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.nfreu-news-layout { display: grid; grid-template-columns: 240px 1fr 280px; gap: 2rem; align-items: start; }
.nfreu-news-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); transition: box-shadow .35s ease, transform .35s ease; }
.nfreu-news-panel:hover { box-shadow: var(--shadow-md); }
.nfreu-news-panel + .nfreu-news-panel { margin-top: 1.25rem; }
.nfreu-news-panel-title { font-size: .92rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; padding-bottom: .65rem; border-bottom: 2px solid #87ceeb; display: flex; align-items: center; gap: .45rem; }
.nfreu-news-panel-title i { color: #0099cc; font-size: .85rem; }
.nfreu-news-panel-empty { font-size: .82rem; color: var(--text-muted); }
.nfreu-news-cat-list li + li { margin-top: .25rem; }
.nfreu-news-cat-list a { display: flex; align-items: center; justify-content: space-between; padding: .55rem .75rem; border-radius: var(--r); font-size: .84rem; font-weight: 600; color: var(--text); text-decoration: none; transition: var(--ease); }
.nfreu-news-cat-list a:hover { background: var(--secondary); color: var(--primary); }
.nfreu-news-cat-list a.active { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; box-shadow: 0 4px 12px rgba(0,51,102,.2); }
.nfreu-news-cat-list a em { font-style: normal; font-size: .72rem; font-weight: 700; background: rgba(0,0,0,.06); padding: .12rem .45rem; border-radius: 100px; }
.nfreu-news-cat-list a.active em { background: rgba(255,255,255,.2); color: #fff; }
.nfreu-news-results-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; font-size: .82rem; color: var(--text-muted); margin-bottom: 1.25rem; padding: .65rem 1rem; background: var(--secondary); border-radius: var(--r); border-left: 3px solid var(--accent); }
.nfreu-news-feed { display: flex; flex-direction: column; gap: 1.35rem; transition: opacity .3s ease; }
.nfreu-news-item { display: grid; grid-template-columns: 220px 1fr; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--ease); }
.nfreu-news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,51,102,.15); }
.nfreu-news-item-thumb-wrap { position: relative; overflow: hidden; background: var(--secondary); }
.nfreu-news-item-thumb { display: block; height: 100%; }
.nfreu-news-item-thumb img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; display: block; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.nfreu-news-item:hover .nfreu-news-item-thumb img { transform: scale(1.06); }
.nfreu-news-item-ph { width: 100%; min-height: 160px; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: rgba(0,51,102,.15); background: linear-gradient(135deg, var(--secondary), var(--gray-200)); }
.nfreu-news-item-cat {
  position: absolute; top: .65rem; left: .65rem; z-index: 2;
  background: var(--accent); color: #fff; font-size: .58rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; padding: .18rem .55rem; border-radius: 100px;
}
/* FIX: the category badge ("tag") is now a real link to the filtered
   news list, instead of a non-functional <span> that did nothing when
   tapped/clicked. */
a.nfreu-news-item-cat {
  text-decoration: none; cursor: pointer; transition: var(--ease);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
a.nfreu-news-item-cat:hover { background: var(--primary); color: #fff; text-decoration: none; transform: translateY(-1px); }
.nfreu-news-item-body { padding: 1.25rem 1.4rem; display: flex; flex-direction: column; }
.nfreu-news-item-date { font-size: .72rem; color: var(--text-muted); font-weight: 600; margin-bottom: .4rem; display: flex; align-items: center; gap: .3rem; }
.nfreu-news-item-body h2 {
  font-size: 1.05rem; font-weight: 800; line-height: 1.35; margin-bottom: .55rem; color: var(--primary);
  /* FIX: extremely long headlines used to stretch the card and break the
     grid on mobile. Clamp to 2 lines and show "…" — readers can always
     open the article for the full title. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
.nfreu-news-item-body h2 a { color: inherit; text-decoration: none; transition: color .2s; }
.nfreu-news-item-body h2 a:hover { color: var(--accent); }
.nfreu-news-item-body p { font-size: .84rem; line-height: 1.65; flex: 1; margin-bottom: .85rem; }
.nfreu-news-item-more { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; transition: gap .2s, color .2s; }
.nfreu-news-item:hover .nfreu-news-item-more { gap: .65rem; color: var(--accent); }
.nfreu-news-empty { text-align: center; padding: 3.5rem 2rem; background: #fff; border: 1px dashed var(--border); border-radius: var(--r-lg); }
.nfreu-news-empty i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 1rem; display: block; }
.nfreu-news-empty h3 { color: var(--text-muted); margin-bottom: .5rem; }
.nfreu-news-empty p { margin-bottom: 1.25rem; }
.nfreu-trending-list { list-style: none; padding: 0; margin: 0; }
.nfreu-trending-item { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--gray-100); transition: transform .25s ease; }
.nfreu-trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.nfreu-trending-item:hover { transform: translateX(4px); }
.nfreu-trending-rank { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--secondary); color: var(--primary); font-size: .72rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.nfreu-trending-item:first-child .nfreu-trending-rank { background: var(--accent); color: #fff; }
.nfreu-trending-thumb { flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--r); overflow: hidden; display: block; }
.nfreu-trending-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nfreu-trending-info { flex: 1; min-width: 0; }
.nfreu-trending-info a { display: block; font-size: .82rem; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: .25rem; text-decoration: none; transition: color .2s; }
.nfreu-trending-info a:hover { color: var(--accent); }
.nfreu-trending-info span { font-size: .68rem; color: var(--text-muted); }
.nfreu-trending-info span i { margin-right: .2rem; color: var(--accent); font-size: .62rem; }

/* News CTA panel - FIXED spacing */
.nfreu-news-panel--cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-color: transparent; color: #fff; padding: 0;
}
.nfreu-news-cta-inner {
  text-align: center; padding: 1.5rem 1.25rem;
}
.nfreu-news-panel--cta > .nfreu-news-cta-inner > i,
.nfreu-news-cta-inner > i { font-size: 1.6rem; color: rgba(255,255,255,.7); margin-bottom: .65rem; display: block; }
.nfreu-news-cta-inner h4 { color: #fff; font-size: 1rem; margin-bottom: .4rem; }
.nfreu-news-cta-inner p { color: rgba(255,255,255,.75); font-size: .82rem; margin-bottom: 1rem; line-height: 1.55; }

/* News Subscribe Form inside CTA panel */
.nfreu-news-subscribe-form { margin-top: .25rem; }
.nfreu-news-subscribe-field { display:flex; gap:.35rem; }
.nfreu-news-subscribe-field input {
  flex:1; padding:.6rem .75rem; border:1px solid rgba(255,255,255,.25);
  border-radius:8px; font-size:.8rem; font-family:var(--font);
  background:rgba(255,255,255,.12); color:#fff; outline:none;
  transition:border-color .2s,background .2s; min-width:0;
}
.nfreu-news-subscribe-field input::placeholder { color:rgba(255,255,255,.5); }
.nfreu-news-subscribe-field input:focus {
  border-color:rgba(255,255,255,.5);
  background:rgba(255,255,255,.18);
}
.nfreu-news-subscribe-btn {
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.6rem .85rem; border:none; border-radius:8px;
  background:var(--accent); color:#fff; font-size:.78rem;
  font-weight:700; cursor:pointer; font-family:var(--font);
  white-space:nowrap; transition:background .2s,transform .2s;
  flex-shrink:0;
}
.nfreu-news-subscribe-btn:hover { background:var(--accent-hover); transform:translateY(-1px); }
.nfreu-news-subscribe-msg { margin-top:.5rem; font-size:.72rem; font-weight:600; min-height:1.1rem; text-align:center; }
.nfreu-news-subscribe-msg.success { color:#86efac; }
.nfreu-news-subscribe-msg.error { color:#fca5a5; }
@media(max-width:480px) {
  .nfreu-news-subscribe-field { flex-direction:column; }
  .nfreu-news-subscribe-field input { width:100%; text-align:center; padding:.65rem .75rem; }
  .nfreu-news-subscribe-btn { width:100%; justify-content:center; padding:.65rem .75rem; }
}

/* News Live Search (Events-style inline) */
.nfreu-news-panel--search .nfreu-news-search-wrap-inline { display: flex; align-items: center; gap: .5rem; background: linear-gradient(135deg, #e0f6ff 0%, #d0f0fe 100%); border: 1px solid #87ceeb; border-radius: var(--r-md); padding: .55rem .75rem; transition: border-color .25s, box-shadow .25s; box-shadow: inset 0 1px 3px rgba(135, 206, 235, 0.1); }
.nfreu-news-panel--search .nfreu-news-search-wrap-inline:focus-within { border-color: #0099cc; box-shadow: inset 0 1px 3px rgba(135, 206, 235, 0.1), 0 0 0 3px rgba(0, 153, 204, 0.15); }
.nfreu-news-panel--search .nfreu-news-search-wrap-inline > i { color: var(--gray-400); font-size: .85rem; flex-shrink: 0; }
.nfreu-news-panel--search .nfreu-news-search-wrap-inline input { flex: 1; border: none; background: transparent; outline: none; font-size: .88rem; color: var(--text); min-width: 0; }
.nfreu-news-search-clear-btn { width: 24px; height: 24px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; color: var(--gray-500); font-size: .65rem; flex-shrink: 0; transition: var(--ease); }
.nfreu-news-search-clear-btn:hover { background: var(--gray-300); }
.nfreu-news-live-count { font-size: .78rem; color: var(--primary); font-weight: 700; margin-top: .5rem; }
.nfreu-news-filters { margin-top: .85rem; }

/* News Mini Stats */
.nfreu-news-panel--stats { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); border-color: transparent; }
.nfreu-news-panel--stats .nfreu-news-panel-title { color: #fff; border-bottom-color: rgba(255,255,255,.15); }
.nfreu-news-panel--stats .nfreu-news-panel-title i { color: #fbbf24; }
.nfreu-news-mini-stats { display: flex; flex-direction: column; gap: .65rem; }
.nfreu-news-mini-stat { display: flex; align-items: center; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.nfreu-news-mini-stat:last-child { border-bottom: none; }
.nfreu-news-mini-num { font-size: 1.05rem; font-weight: 900; color: #fff; }
.nfreu-news-mini-lbl { font-size: .75rem; color: rgba(255,255,255,.6); font-weight: 600; }

/* News responsive */
@media(max-width:1100px) {
  .nfreu-news-layout { grid-template-columns: 220px 1fr; }
  .nfreu-news-sidebar--right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .nfreu-news-sidebar--right .nfreu-news-panel { margin-top: 0; }
}
@media(max-width:860px) {
  .nfreu-news-layout { grid-template-columns: 1fr; }
  .nfreu-news-sidebar--left { order: 2; }
  .nfreu-news-main { order: 1; }
  .nfreu-news-sidebar--right { order: 3; display: block; padding-top:1.25rem; margin-top:.5rem; }
  .nfreu-news-sidebar--right .nfreu-news-panel + .nfreu-news-panel { margin-top: 1.5rem; }
  .nfreu-news-item { grid-template-columns: 1fr; }
  .nfreu-news-item-thumb img, .nfreu-news-item-ph { min-height: 180px; }
}
@media(max-width:640px) {
  .nfreu-news-toolbar { padding: 1rem; }
  .nfreu-news-search-wrap { flex-wrap: wrap; }
  .nfreu-news-search-btn { width: 100%; text-align: center; }
  .nfreu-news-sidebar--right { display: block; padding-top:1.5rem; }
}

/* ================================================
   CIRCULARS PAGE — 3-column layout
   ================================================ */
.nfreu-circulars-page {
  padding-top: 2.5rem;
  /* FIX: use the same soft gradient background as the News page instead
     of the plain off-white, for a consistent look across News, Events
     and Circulars. */
  background: linear-gradient(155deg, #e8f4fd 0%, #d4e9f8 30%, #f0e6ff 70%, #f8fafc 100%);
}
.nfreu-circulars-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 2rem; align-items: start; }
.nfreu-circulars-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.nfreu-circulars-panel-title { font-size: .92rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; padding-bottom: .65rem; border-bottom: 2px solid var(--gray-100); display: flex; align-items: center; gap: .45rem; }
.nfreu-circulars-panel-title i { color: var(--accent); font-size: .85rem; }
.nfreu-circulars-panel-empty { font-size: .82rem; color: var(--text-muted); }
.nfreu-circulars-search-wrap { display: flex; align-items: center; gap: .5rem; background: linear-gradient(135deg, #e0f6ff 0%, #d0f0fe 100%); border: 1px solid #87ceeb; border-radius: var(--r-md); padding: .5rem .65rem; transition: border-color .25s, box-shadow .25s; }
.nfreu-circulars-search-wrap:focus-within { border-color: #0099cc; box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.15); }
.nfreu-circulars-search-icon { color: var(--gray-400); font-size: .85rem; flex-shrink: 0; }
.nfreu-circulars-search-wrap input { flex: 1; border: none; background: transparent; outline: none; font-size: .85rem; color: var(--text); min-width: 0; }
.nfreu-circulars-search-clear { width: 20px; height: 20px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; color: var(--gray-500); font-size: .6rem; flex-shrink: 0; transition: var(--ease); }
.nfreu-circulars-search-clear:hover { background: var(--gray-300); }
.nfreu-circulars-search-hint { font-size: .68rem; color: var(--gray-400); margin-top: .35rem; }
.nfreu-circulars-count { font-size: .78rem; color: var(--primary); font-weight: 700; margin-top: .5rem; }
.nfreu-circulars-cat-list { display: flex; flex-direction: column; gap: .25rem; }
.nfreu-circulars-cat-item { display: flex; align-items: center; justify-content: space-between; padding: .5rem .75rem; border-radius: var(--r); font-size: .82rem; font-weight: 600; color: var(--text); text-decoration: none; transition: var(--ease); }
.nfreu-circulars-cat-item:hover { background: var(--secondary); color: var(--primary); }
.nfreu-circulars-cat-item.active { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; box-shadow: 0 4px 12px rgba(0,51,102,.2); }
.nfreu-circulars-cat-item em { font-style: normal; font-size: .7rem; font-weight: 700; background: rgba(0,0,0,.06); padding: .1rem .4rem; border-radius: 100px; }
.nfreu-circulars-cat-item.active em { background: rgba(255,255,255,.2); color: #fff; }
.nfreu-circulars-list { display: flex; flex-direction: column; gap: .75rem; transition: opacity .3s ease; }
.nfreu-circular-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--border); transition: var(--ease); position: relative; }
.nfreu-circular-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.nfreu-circular-card.featured { border-left: 3px solid var(--accent); }
.nfreu-circular-card-badge { position: absolute; top: .4rem; right: .5rem; font-size: .62rem; font-weight: 700; color: var(--accent); }
.nfreu-circular-card-icon { width: 44px; height: 44px; border-radius: var(--r); background: var(--accent-light); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.nfreu-circular-card-body { flex: 1; min-width: 0; }
.nfreu-circular-card-title { font-size: .9rem; font-weight: 700; color: var(--text); }
.nfreu-circular-card-desc { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; line-height: 1.45; }
.nfreu-circular-card-meta { display: flex; gap: .85rem; margin-top: .3rem; font-size: .72rem; color: var(--gray-400); }
.nfreu-circular-card-meta span { display: flex; align-items: center; gap: .25rem; }
.nfreu-circular-card-meta i { font-size: .62rem; }
.nfreu-circular-card-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.nfreu-circulars-empty { text-align: center; padding: 3rem 2rem; background: #fff; border: 1px dashed var(--border); border-radius: var(--r-lg); }
.nfreu-circulars-empty i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 1rem; display: block; }
.nfreu-circulars-empty h3 { color: var(--text-muted); margin-bottom: .5rem; }
.nfreu-circulars-empty p { margin-bottom: 1.25rem; }
.nfreu-circulars-featured-list { display: flex; flex-direction: column; gap: .45rem; }
.nfreu-circulars-feat-item { display: flex; align-items: center; gap: .65rem; padding: .65rem .75rem; border-radius: var(--r); border: 1px solid var(--border); text-decoration: none; transition: var(--ease); }
.nfreu-circulars-feat-item:hover { background: var(--secondary); border-color: var(--primary); transform: translateX(3px); }
.nfreu-circulars-feat-icon { width: 32px; height: 32px; border-radius: var(--r); background: var(--accent-light); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: .85rem; flex-shrink: 0; }
.nfreu-circulars-feat-info { flex: 1; min-width: 0; }
.nfreu-circulars-feat-title { font-size: .8rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfreu-circulars-feat-date { font-size: .68rem; color: var(--text-muted); }
.nfreu-circulars-feat-ext { font-size: .65rem; color: var(--gray-400); flex-shrink: 0; }
.nfreu-circulars-panel--cta { text-align: center; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); border-color: transparent; color: #fff; }
.nfreu-circulars-panel--cta > i { font-size: 1.4rem; color: rgba(255,255,255,.7); margin-bottom: .5rem; display: block; }
.nfreu-circulars-panel--cta h4 { color: #fff; font-size: .95rem; margin-bottom: .4rem; }
.nfreu-circulars-panel--cta p { color: rgba(255,255,255,.75); font-size: .78rem; margin-bottom: .85rem; line-height: 1.55; }

@media(max-width:1100px) {
  .nfreu-circulars-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .nfreu-circulars-sidebar--right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media(max-width:860px) {
  .nfreu-circulars-layout { grid-template-columns: minmax(0, 1fr); }
  /* FIX: "slim search box for mobile ... same like in news" */
  .nfreu-mobile-search-bar { display: block; }
  .nfreu-circulars-sidebar--left { display: none; }
}
@media(max-width:640px) {
  .nfreu-circular-card { flex-wrap: wrap; }
  .nfreu-circular-card-actions { width: 100%; justify-content: flex-end; padding-top: .5rem; border-top: 1px solid var(--border); margin-top: .25rem; }
  .nfreu-circulars-sidebar--right { display: block; }
}

/* ================================================
   UNIFIED PREMIUM PANEL STYLES (News, Events, Circulars)
   ================================================ */
.nfreu-premium-panel {
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 32px rgba(0,51,102,.1);
  border:1px solid rgba(0,51,102,.08);
  margin-bottom:1.25rem;
  transition:transform .3s ease,box-shadow .3s ease;
}
.nfreu-premium-panel:hover { box-shadow:0 12px 40px rgba(0,51,102,.14); }
.nfreu-premium-panel-header {
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.95rem 1.2rem;
  background:linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 100%);
  color:#fff;
  font-size:.82rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.nfreu-premium-panel-header i { font-size:.85rem; }
.nfreu-premium-panel-header--accent { background:linear-gradient(135deg,var(--accent) 0%,var(--accent-hover) 100%); }
.nfreu-premium-panel-header--gold i { color:#fbbf24; }
.nfreu-premium-panel-header--green i { color:#34d399; }
.nfreu-premium-panel-body { padding:.9rem 1rem 1.15rem; }

/* Premium search bar inside panel — matching News page design */
.nfreu-premium-search-wrap {
  display:flex; align-items:center; gap:.5rem;
  background:linear-gradient(135deg,#e0f6ff 0%,#d0f0fe 100%);
  border:1px solid #87ceeb; border-radius:12px;
  padding:.5rem .65rem;
  transition:border-color .25s,box-shadow .25s;
}
.nfreu-premium-search-wrap:focus-within {
  border-color:#0099cc;
  box-shadow:0 0 0 3px rgba(0,153,204,.15);
}
.nfreu-premium-search-wrap > i { color:var(--gray-400); font-size:.85rem; flex-shrink:0; }
.nfreu-premium-search-wrap input {
  flex:1; border:none; background:transparent; outline:none;
  font-size:.85rem; color:var(--text); min-width:0;
}
.nfreu-premium-search-clear {
  width:20px; height:20px; border-radius:50%;
  background:var(--gray-200); display:flex; align-items:center; justify-content:center;
  border:none; cursor:pointer; color:var(--gray-500); font-size:.6rem; flex-shrink:0; transition:var(--ease);
}
.nfreu-premium-search-clear:hover { background:var(--gray-300); }
.nfreu-premium-search-hint { font-size:.68rem; color:var(--gray-400); margin-top:.35rem; }
.nfreu-premium-search-count { font-size:.7rem; color:var(--primary); font-weight:700; margin-top:.45rem; }

/* Premium filter selects */
.nfreu-premium-filter { margin-top:.85rem; }
.nfreu-premium-filter-label {
  display:block; font-size:.7rem; font-weight:700;
  color:var(--text-muted); margin-bottom:.3rem;
  text-transform:uppercase; letter-spacing:.05em;
}
.nfreu-premium-select {
  width:100%; padding:.5rem .75rem;
  border:1px solid var(--border); border-radius:10px;
  font-size:.82rem; color:var(--text);
  background:#fff; outline:none; cursor:pointer; font-family:var(--font);
  transition:border-color .2s,box-shadow .2s;
}
.nfreu-premium-select:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(0,51,102,.08); }

/* Premium Dark Stats Panel */
.nfreu-premium-stats-panel { background:linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 100%); }
.nfreu-premium-stats-panel .nfreu-premium-panel-header { background:transparent; border-bottom:1px solid rgba(255,255,255,.08); }
.nfreu-premium-stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.4rem; }
.nfreu-premium-stat-item { text-align:center; padding:.4rem 0; }
.nfreu-premium-stat-num { display:block; font-size:1.3rem; font-weight:900; color:#fff; line-height:1.2; }
.nfreu-premium-stat-lbl { font-size:.6rem; color:rgba(255,255,255,.55); text-transform:uppercase; letter-spacing:.06em; font-weight:600; }
.nfreu-premium-stat-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:.4rem 0; border-bottom:1px solid rgba(255,255,255,.07);
}
.nfreu-premium-stat-row:last-child { border-bottom:none; }

/* Premium category list */
.nfreu-premium-cat-list { display:flex; flex-direction:column; gap:.2rem; }
.nfreu-premium-cat-item {
  display:flex; align-items:center; justify-content:space-between;
  padding:.5rem .75rem; border-radius:10px;
  font-size:.82rem; font-weight:600; color:var(--text);
  text-decoration:none; transition:all .25s ease;
}
.nfreu-premium-cat-item:hover { background:var(--secondary); color:var(--primary); }
.nfreu-premium-cat-item.active {
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
  color:#fff; box-shadow:0 4px 12px rgba(0,51,102,.2);
}
.nfreu-premium-cat-item em {
  font-style:normal; font-size:.68rem; font-weight:700;
  background:rgba(0,0,0,.06); padding:.1rem .4rem; border-radius:100px;
}
.nfreu-premium-cat-item.active em { background:rgba(255,255,255,.2); color:#fff; }

/* Premium trending list */
.nfreu-premium-trending-list { list-style:none; padding:0; margin:0; }
.nfreu-premium-trending-item {
  display:flex; align-items:flex-start; gap:.7rem;
  padding:.7rem 0; border-bottom:1px solid var(--gray-100);
  transition:transform .25s ease;
}
.nfreu-premium-trending-item:last-child { border-bottom:none; padding-bottom:0; }
.nfreu-premium-trending-item:hover { transform:translateX(4px); }
.nfreu-premium-trending-rank {
  flex-shrink:0; width:24px; height:24px; border-radius:50%;
  background:var(--secondary); color:var(--primary);
  font-size:.72rem; font-weight:900;
  display:flex; align-items:center; justify-content:center;
}
.nfreu-premium-trending-item:first-child .nfreu-premium-trending-rank { background:var(--accent); color:#fff; }
.nfreu-premium-trending-thumb {
  flex-shrink:0; width:52px; height:52px;
  border-radius:10px; overflow:hidden; display:block;
}
.nfreu-premium-trending-thumb img { width:100%; height:100%; object-fit:cover; }
.nfreu-premium-trending-info { flex:1; min-width:0; }
.nfreu-premium-trending-info a {
  display:block; font-size:.82rem; font-weight:700;
  color:var(--text); line-height:1.35; margin-bottom:.2rem;
  text-decoration:none; transition:color .2s;
}
.nfreu-premium-trending-info a:hover { color:var(--accent); }
.nfreu-premium-trending-info span { font-size:.66rem; color:var(--text-muted); display:flex; align-items:center; gap:.3rem; }
.nfreu-premium-trending-info span i { font-size:.6rem; color:var(--accent); }

/* Premium CTA panel */
.nfreu-premium-cta-panel {
  background:linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 100%);
  border-radius:18px; padding:1.5rem 1.25rem; text-align:center; color:#fff;
  box-shadow:0 8px 32px rgba(0,51,102,.1);
}
.nfreu-premium-cta-icon {
  width:48px; height:48px; border-radius:14px;
  background:rgba(255,255,255,.12); display:flex;
  align-items:center; justify-content:center;
  font-size:1.2rem; margin:0 auto .65rem;
}
.nfreu-premium-cta-panel h4 { color:#fff; font-size:.92rem; margin-bottom:.35rem; }
.nfreu-premium-cta-panel p {
  color:rgba(255,255,255,.72); font-size:.78rem;
  margin-bottom:1rem; line-height:1.55;
}
.nfreu-premium-cta-btn {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.5rem 1.1rem; background:var(--accent); color:#fff;
  border-radius:8px; font-size:.78rem; font-weight:700;
  text-decoration:none; transition:all .3s ease;
  box-shadow:0 4px 12px rgba(220,20,60,.3);
}
.nfreu-premium-cta-btn:hover { background:var(--accent-hover); color:#fff; transform:translateY(-2px); box-shadow:0 6px 18px rgba(220,20,60,.4); }

/* ================================================
   SHARED SECTION TOPBAR (title + "Sort by") — News, Events
   FIX: "Latest News"/"Upcoming Events" heading + "Sort by" used to wrap
   onto separate rows on mobile and looked broken. Sort is already
   available inside the mobile filter collapse, so this bar is hidden on
   small screens instead of being squeezed into one row.
   ================================================ */
.nfreu-news-topbar {
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem;
  padding:.85rem 1.25rem;background:#fff;
  border-radius:14px;border:1px solid rgba(0,51,102,.08);box-shadow:0 4px 16px rgba(0,51,102,.06);
}
.nfreu-news-topbar-title {
  font-size:1.05rem;font-weight:800;color:var(--primary);
  display:flex;align-items:center;gap:.45rem;margin:0;
}
.nfreu-news-topbar-title i { color:var(--accent); font-size:.85rem; }
.nfreu-news-topbar-sort { display:flex;align-items:center;gap:.45rem; }
.nfreu-news-sort-lbl { font-size:.72rem;font-weight:700;color:var(--text-muted); }
.nfreu-news-sort-sel {
  padding:.35rem .65rem;border:1.5px solid var(--border);border-radius:8px;
  font-size:.8rem;color:var(--text);background:#fff;cursor:pointer;
  font-family:var(--font);outline:none;
}
.nfreu-news-sort-sel:focus { border-color:var(--primary); }
@media(max-width:767px) {
  .nfreu-news-topbar { display:none; }
}

/* ================================================
   SHARED MOBILE SEARCH BAR — News, Events, Circulars
   FIX: "slim search box for mobile on both pages same like in news" —
   reused across the three section pages so the mobile filter UI is
   consistent everywhere.
   ================================================ */
.nfreu-mobile-search-bar { display: none; margin-bottom: 1rem; }
.nfreu-mobile-search-row {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: .5rem .75rem; box-shadow: 0 2px 8px rgba(0,51,102,.06);
}
.nfreu-mobile-search-row > i { color: var(--gray-400); font-size: .85rem; flex-shrink: 0; }
.nfreu-mobile-search-row input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: .88rem; color: var(--text); min-width: 0;
}
.nfreu-mobile-search-toggle {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--secondary); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--primary); font-size: .75rem; flex-shrink: 0; transition: var(--ease);
}
.nfreu-mobile-search-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.nfreu-mobile-search-collapse {
  display: none; margin-top: .6rem; padding: .75rem .85rem;
  background: #fff; border-radius: 12px; border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,51,102,.06);
}
.nfreu-mobile-search-collapse.open { display: block; }
.nfreu-mob-filter-row { margin-bottom: .5rem; }
.nfreu-mob-filter-row:last-child { margin-bottom: 0; }
.nfreu-mob-filter-row label {
  display: block; font-size: .65rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .15rem;
}
.nfreu-mob-filter-row select {
  width: 100%; padding: .4rem .6rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: .8rem; color: var(--text); background: #fff;
  font-family: var(--font); outline: none;
}
.nfreu-mobile-search-clear {
  width: 24px; height: 24px; border-radius: 50%; background: var(--gray-200);
  display: flex; align-items: center; justify-content: center; border: none;
  cursor: pointer; color: var(--gray-500); font-size: .65rem; flex-shrink: 0;
}
.nfreu-mobile-search-clear:hover { background: var(--gray-300); }

/* ================================================
   SHARED PAGINATION ("1, 2, … Next") — News, Events, Circulars
   FIX: centered on every screen size; reused so Events/Circulars get
   the same "page scrolling" controls as the News page.
   ================================================ */
.nfreu-pagination { margin-top: 1.5rem; width: 100%; }
.nfreu-pagination ul,
.nfreu-pagination .page-numbers {
  list-style: none; display: flex; flex-wrap: wrap; gap: .3rem;
  padding: 0; margin: 0; justify-content: center; width: 100%;
}
.nfreu-pagination li { margin: 0; }
.nfreu-pagination .page-numbers a,
.nfreu-pagination .page-numbers span,
.nfreu-pagination button.nfreu-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .45rem;
  border-radius: 10px; font-size: .82rem; font-weight: 700;
  color: var(--text); border: 1.5px solid var(--border);
  transition: var(--ease); text-decoration: none; background: #fff;
  cursor: pointer; font-family: var(--font);
}
.nfreu-pagination .page-numbers a:hover,
.nfreu-pagination button.nfreu-page-btn:hover {
  border-color: var(--primary); color: var(--primary); box-shadow: 0 2px 8px rgba(0,51,102,.1);
}
.nfreu-pagination .page-numbers .current,
.nfreu-pagination button.nfreu-page-btn.current {
  background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(0,51,102,.25);
}
.nfreu-pagination .page-numbers .dots,
.nfreu-pagination button.nfreu-page-btn.dots {
  border-color: transparent; background: transparent; min-width: auto; padding: 0 .15rem; color: var(--gray-400); cursor: default;
}
.nfreu-pagination button.nfreu-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.nfreu-pagination .page-numbers .fas,
.nfreu-pagination button.nfreu-page-btn .fas { font-size: .68rem; }

/* ================================================
   EVENTS PAGE — 3-column layout
   ================================================ */
.nfreu-events-page {
  padding-top: 2.5rem;
  /* FIX: same gradient background as News/Circulars for a consistent look. */
  background: linear-gradient(155deg, #e8f4fd 0%, #d4e9f8 30%, #f0e6ff 70%, #f8fafc 100%);
}
.nfreu-events-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 2rem; align-items: start; }
.nfreu-events-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.nfreu-events-panel-title { font-size: .92rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; padding-bottom: .65rem; border-bottom: 2px solid var(--gray-100); display: flex; align-items: center; gap: .45rem; }
.nfreu-events-panel-title i { color: var(--accent); font-size: .85rem; }
.nfreu-events-panel-empty { font-size: .82rem; color: var(--text-muted); }
.nfreu-events-search-wrap { display: flex; align-items: center; gap: .5rem; background: linear-gradient(135deg, #e0f6ff 0%, #d0f0fe 100%); border: 1px solid #87ceeb; border-radius: var(--r-md); padding: .5rem .65rem; transition: border-color .25s, box-shadow .25s; }
.nfreu-events-search-wrap:focus-within { border-color: #0099cc; box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.15); }
.nfreu-events-search-icon { color: var(--gray-400); font-size: .85rem; flex-shrink: 0; }
.nfreu-events-search-wrap input { flex: 1; border: none; background: transparent; outline: none; font-size: .85rem; color: var(--text); min-width: 0; }
.nfreu-events-search-clear { width: 20px; height: 20px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; color: var(--gray-500); font-size: .6rem; flex-shrink: 0; }
.nfreu-events-search-clear:hover { background: var(--gray-300); }
.nfreu-events-search-hint { font-size: .68rem; color: var(--gray-400); margin-top: .35rem; }
.nfreu-events-count { font-size: .78rem; color: var(--primary); font-weight: 700; margin-top: .5rem; }
.nfreu-events-filters { margin-top: .85rem; }
.nfreu-events-filter-label { display: block; font-size: .72rem; font-weight: 700; color: var(--text-muted); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .05em; }
.nfreu-events-select { width: 100%; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--r); font-size: .82rem; color: var(--text); background: #fff; outline: none; cursor: pointer; font-family: var(--font); }
.nfreu-events-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,51,102,.08); }
.nfreu-events-panel--stats { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); border-color: transparent; }
.nfreu-events-panel--stats .nfreu-events-panel-title { color: #fff; border-bottom-color: rgba(255,255,255,.15); }
.nfreu-events-panel--stats .nfreu-events-panel-title i { color: #34d399; }
.nfreu-events-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.nfreu-events-stat-item { text-align: center; padding: .4rem 0; }
.nfreu-events-stat-num { display: block; font-size: 1.3rem; font-weight: 900; color: #fff; line-height: 1.2; }
.nfreu-events-stat-lbl { font-size: .62rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.nfreu-events-live-list { display: flex; flex-direction: column; gap: 1rem; }
.nfreu-event-card { display: flex; align-items: stretch; gap: 0; border-radius: var(--r-md); background: #fff; border: 1px solid var(--border); overflow: hidden; transition: var(--ease); }
.nfreu-event-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-2px); }
.nfreu-event-card-thumb { flex-shrink: 0; width: 120px; overflow: hidden; background: var(--secondary); }
.nfreu-event-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nfreu-event-card:hover .nfreu-event-card-thumb img { transform: scale(1.07); }
.nfreu-event-card-date-box { flex-shrink: 0; width: 68px; background: var(--primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .85rem .4rem; text-align: center; }
.nfreu-event-card-day { font-size: 1.6rem; font-weight: 900; line-height: 1; display: block; color: var(--accent); }
.nfreu-event-card-month { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; display: block; margin-top: .08rem; }
.nfreu-event-card-year { font-size: .52rem; opacity: .5; display: block; }
.nfreu-event-card-body { flex: 1; padding: .9rem 1rem; display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow: hidden; }
.nfreu-event-card-type { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .2rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfreu-event-card-title { font-size: .92rem; font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: .25rem; word-break: break-word; overflow-wrap: break-word; }
.nfreu-event-card-title a { color: inherit; text-decoration: none; }
.nfreu-event-card-title a:hover { color: var(--accent); }
.nfreu-event-card-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.5; margin-bottom: .3rem; word-break: break-word; overflow-wrap: break-word; }
.nfreu-event-card-meta { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .7rem; color: var(--text-muted); }
.nfreu-event-card-meta span { display: flex; align-items: center; gap: .25rem; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.nfreu-event-card-meta i { font-size: .6rem; flex-shrink: 0; }
.nfreu-event-card-actions { display: flex; flex-direction: column; gap: .35rem; padding: .75rem .85rem; justify-content: center; flex-shrink: 0; }
.nfreu-events-empty { text-align: center; padding: 3rem 2rem; background: #fff; border: 1px dashed var(--border); border-radius: var(--r-lg); }
.nfreu-events-empty i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 1rem; display: block; }
.nfreu-events-empty h3 { color: var(--text-muted); margin-bottom: .5rem; }
.nfreu-events-empty p { margin-bottom: 1.25rem; }
.nfreu-event-past-card { text-decoration: none; }
.nfreu-events-past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.25rem; }
.nfreu-events-past-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media(max-width: 1024px) {
  .nfreu-events-past-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media(max-width: 768px) {
  .nfreu-events-past-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.85rem;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .nfreu-events-past-row .nfreu-event-past-card {
    flex: 0 0 170px;
    width: 170px;
  }
}
/* FIX: "reduce past event card / more focus on upcoming events" — the
   archive section gets a quieter heading and slightly smaller, lower-
   contrast cards so the Upcoming Events list above remains the focus. */
.nfreu-events-past-section .nfreu-section-title h2 { font-size: 1.15rem; }
.nfreu-events-past-section .nfreu-event-past-card { opacity: .85; transition: var(--ease); box-shadow: none; }
.nfreu-events-past-section .nfreu-event-past-card:hover { opacity: 1; }
.nfreu-events-featured-list { display: flex; flex-direction: column; gap: .35rem; }
.nfreu-events-feat-item { display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; border-radius: var(--r); border: 1px solid var(--border); text-decoration: none; transition: var(--ease); }
.nfreu-events-feat-item:hover { background: var(--secondary); border-color: var(--primary); transform: translateX(3px); }
.nfreu-events-feat-date { flex-shrink: 0; text-align: center; width: 40px; }
.nfreu-events-feat-d { display: block; font-size: 1rem; font-weight: 900; color: var(--primary); line-height: 1; }
.nfreu-events-feat-m { font-size: .55rem; text-transform: uppercase; color: var(--accent); font-weight: 700; letter-spacing: .03em; }
.nfreu-events-feat-info { flex: 1; min-width: 0; }
.nfreu-events-feat-title { font-size: .78rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfreu-events-feat-type { font-size: .65rem; color: var(--text-muted); }
.nfreu-events-feat-arr { font-size: .65rem; color: var(--gray-400); flex-shrink: 0; }
.nfreu-events-panel--cta { text-align: center; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); border-color: transparent; color: #fff; }
.nfreu-events-panel--cta > i { font-size: 1.4rem; color: rgba(255,255,255,.7); margin-bottom: .5rem; display: block; }
.nfreu-events-panel--cta h4 { color: #fff; font-size: .95rem; margin-bottom: .4rem; }
.nfreu-events-panel--cta p { color: rgba(255,255,255,.75); font-size: .78rem; margin-bottom: .85rem; line-height: 1.55; }

@media(max-width:1100px) {
  .nfreu-events-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .nfreu-events-sidebar--right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media(max-width:860px) {
  .nfreu-events-layout { grid-template-columns: minmax(0, 1fr); }
  .nfreu-event-card-thumb { width: 80px; }
  /* FIX: "slim search box for mobile ... same like in news" — replace the
     full desktop search/filter/stats sidebar with the slim mobile search
     bar, same as the News page. */
  .nfreu-mobile-search-bar { display: block; }
  .nfreu-events-sidebar--left { display: none; }
}
@media(max-width:640px) {
  .nfreu-event-card-thumb { display: none; }
  /* FIX: the card used to stay in row layout with the actions column set
     to width:100%, which fought the date-box/body for space and produced
     a huge empty "Details" button area. Now the card wraps so the date
     box + body share the top row and the actions become a full-width
     row underneath, sized to their content. */
  .nfreu-event-card { flex-wrap: wrap; }
  .nfreu-event-card-date-box { width: 56px; min-width: 56px; flex-shrink: 0; padding: .65rem .3rem; }
  .nfreu-event-card-body { flex: 1 1 0%; min-width: 0; max-width: calc(100% - 56px); padding: .75rem .85rem; overflow: hidden; }
  .nfreu-event-card-title { font-size: .86rem; word-break: break-word; overflow-wrap: break-word; }
  .nfreu-event-card-actions {
    flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: .35rem; width: 100%;
    padding: .6rem .85rem; border-top: 1px solid var(--border);
    justify-content: flex-end;
  }
  .nfreu-event-card-actions .nfreu-btn { flex: 0 0 auto; }
  .nfreu-events-sidebar--right { display: block; }

  /* FIX: "reduce past event card / more focus on upcoming events" — past
     event cards get a smaller image and tighter padding on mobile so the
     upcoming events above stay the visual focus. */
  .nfreu-events-past-grid { grid-template-columns: 1fr; gap: 1rem; }
  .nfreu-event-past-card .nfreu-card-img,
  .nfreu-event-past-card .nfreu-achievement-enhanced-img,
  .nfreu-event-past-card img { aspect-ratio: 16/9; max-height: 160px; }
  .nfreu-event-past-card .nfreu-card-body,
  .nfreu-event-past-card .nfreu-achievement-enhanced-body { padding: .85rem 1rem; }
  .nfreu-event-past-card h3,
  .nfreu-event-past-card .nfreu-card-title { font-size: .92rem; }

  /* FIX: "hide event stats for mobile" — the Event Stats panel (Upcoming /
     Past / Total counters) is decorative and takes up space better used
     for the events list on small screens. */
  .nfreu-premium-stats-panel { display: none; }
}

/* ================================================
   ACHIEVEMENTS PAGE — Enhanced
   ================================================ */
.nfreu-achievement-stats-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 2.5rem 0; border-bottom: 3px solid var(--accent); }
.nfreu-achievement-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.nfreu-achievement-stat-card { text-align: center; padding: 1.5rem 1rem; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); position: relative; overflow: hidden; transition: var(--ease); }
.nfreu-achievement-stat-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.nfreu-achievement-stat-icon { width: 44px; height: 44px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin: 0 auto .65rem; transition: transform .3s; }
.nfreu-achievement-stat-card:hover .nfreu-achievement-stat-icon { transform: scale(1.12) rotate(-4deg); }
.nfreu-achievement-stat--primary .nfreu-achievement-stat-icon { background: rgba(96,165,250,.2); color: #60a5fa; }
.nfreu-achievement-stat--gold .nfreu-achievement-stat-icon { background: rgba(251,191,36,.2); color: #fbbf24; }
.nfreu-achievement-stat--silver .nfreu-achievement-stat-icon { background: rgba(148,163,184,.2); color: #94a3b8; }
.nfreu-achievement-stat--bronze .nfreu-achievement-stat-icon { background: rgba(248,113,113,.2); color: #f87171; }
.nfreu-achievement-stat--blue .nfreu-achievement-stat-icon { background: rgba(56,189,248,.2); color: #38bdf8; }
.nfreu-achievement-stat-num { font-size: 1.6rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: .3rem; }
.nfreu-achievement-stat-lbl { font-size: .68rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.nfreu-achievement-stat-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.nfreu-achievement-stat--primary .nfreu-achievement-stat-bar { background: #60a5fa; }
.nfreu-achievement-stat--gold .nfreu-achievement-stat-bar { background: #fbbf24; }
.nfreu-achievement-stat--silver .nfreu-achievement-stat-bar { background: #94a3b8; }
.nfreu-achievement-stat--bronze .nfreu-achievement-stat-bar { background: #f87171; }
.nfreu-achievement-stat--blue .nfreu-achievement-stat-bar { background: #38bdf8; }
.nfreu-achievement-enhanced-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }
.nfreu-achievement-enhanced-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow .35s ease, border-color .35s ease;
  position: relative;
  cursor: pointer;
}
.nfreu-achievement-enhanced-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.nfreu-achievement-enhanced-card:hover h3 {
  color: var(--accent) !important;
}
.nfreu-achievement-enhanced-card.featured { border-color: var(--accent); }
.nfreu-achievement-enhanced-badge { position: absolute; top: .65rem; right: .65rem; z-index: 2; background: var(--accent); color: #fff; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 100px; display: flex; align-items: center; gap: .3rem; box-shadow: 0 2px 8px rgba(220,20,60,.3); }
.nfreu-achievement-enhanced-img { position: relative; overflow: hidden; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--secondary), var(--gray-200)); }
.nfreu-achievement-enhanced-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.nfreu-achievement-enhanced-card:hover .nfreu-achievement-enhanced-img img { transform: scale(1.07); }
.nfreu-achievement-enhanced-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(0,51,102,.12); }
.nfreu-achievement-enhanced-year-badge { position: absolute; bottom: .65rem; left: .65rem; background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; font-weight: 700; padding: .25rem .65rem; border-radius: 100px; display: flex; align-items: center; gap: .3rem; backdrop-filter: blur(4px); }
.nfreu-achievement-enhanced-body { padding: 1.25rem 1.35rem 1.35rem; }
.nfreu-achievement-enhanced-body h3 { font-size: 1rem; font-weight: 800; color: var(--primary); margin-bottom: .35rem; line-height: 1.3; }
.nfreu-achievement-enhanced-by { font-size: .75rem; color: var(--accent); font-weight: 700; margin-bottom: .4rem; display: flex; align-items: center; gap: .3rem; }
.nfreu-achievement-enhanced-body p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: .75rem; }
.nfreu-achievement-enhanced-footer { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; }
.nfreu-achievement-enhanced-year { color: var(--text-muted); display: flex; align-items: center; gap: .3rem; font-weight: 600; }
.nfreu-achievement-enhanced-year i { color: var(--accent); font-size: .65rem; }
.nfreu-achievement-enhanced-icon { color: var(--gray-400); transition: var(--ease); }
.nfreu-achievement-enhanced-card:hover .nfreu-achievement-enhanced-icon { color: var(--accent); transform: translateX(3px); }
.nfreu-achievement-empty { text-align: center; padding: 3rem 2rem; background: #fff; border: 1px dashed var(--border); border-radius: var(--r-lg); }
.nfreu-achievement-empty i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 1rem; display: block; }
.nfreu-achievement-empty h3 { color: var(--text-muted); margin-bottom: .5rem; }
.nfreu-achievement-empty p { margin-bottom: 0; font-size: .88rem; }

@media(max-width:1023px) {
  .nfreu-achievement-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:640px) {
  .nfreu-achievement-stats-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .nfreu-achievement-stat-card { padding: 1rem .75rem; }
  .nfreu-achievement-stat-num { font-size: 1.2rem; }
  .nfreu-achievement-enhanced-grid { grid-template-columns: 1fr; }
}

/* ================================================
   IMPORTANT LINKS — Enhanced
   ================================================ */
.nfreu-links-page { padding-top: 2.5rem; }
.nfreu-links-tabs { margin-bottom: 2rem; }
.nfreu-links-tabs-scroll { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.nfreu-links-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 100px; font-size: .82rem; font-weight: 700; color: var(--text-muted); background: var(--gray-50); border: 1px solid var(--border); cursor: pointer; transition: var(--ease); font-family: var(--font); white-space: nowrap; }
.nfreu-links-tab:hover { border-color: var(--primary); color: var(--primary); }
.nfreu-links-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(0,51,102,.2); }
.nfreu-links-tab-count { font-size: .68rem; font-weight: 700; background: rgba(0,0,0,.08); padding: .05rem .4rem; border-radius: 100px; }
.nfreu-links-tab.active .nfreu-links-tab-count { background: rgba(255,255,255,.2); color: #fff; }
.nfreu-links-cat-section { margin-bottom: 2.5rem; }
.nfreu-links-cat-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: .65rem; border-bottom: 2px solid var(--gray-100); }
.nfreu-links-cat-icon { width: 42px; height: 42px; border-radius: var(--r); background: var(--secondary); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.nfreu-links-cat-header h3 { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin: 0; }
.nfreu-links-cat-sub { font-size: .72rem; color: var(--text-muted); }
.nfreu-links-enhanced-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .85rem; }
.nfreu-link-enhanced-card { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border-radius: var(--r-md); border: 1px solid var(--border); background: #fff; text-decoration: none; transition: var(--ease); }
.nfreu-link-enhanced-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.nfreu-link-enhanced-icon { width: 38px; height: 38px; border-radius: var(--r); background: var(--secondary); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: .9rem; flex-shrink: 0; transition: var(--ease); }
.nfreu-link-enhanced-card:hover .nfreu-link-enhanced-icon { background: var(--primary); color: #fff; }
.nfreu-link-enhanced-info { flex: 1; min-width: 0; }
.nfreu-link-enhanced-title { font-size: .85rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfreu-link-enhanced-url { font-size: .68rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfreu-link-enhanced-action { font-size: .7rem; color: var(--gray-400); flex-shrink: 0; transition: var(--ease); }
.nfreu-link-enhanced-card:hover .nfreu-link-enhanced-action { color: var(--primary); transform: translateX(2px); }
.nfreu-links-empty { text-align: center; padding: 3rem 2rem; background: #fff; border: 1px dashed var(--border); border-radius: var(--r-lg); }
.nfreu-links-empty i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 1rem; display: block; }
.nfreu-links-empty h3 { color: var(--text-muted); margin-bottom: .5rem; }
.nfreu-links-empty p { margin-bottom: 0; font-size: .88rem; }

/* ================================================
   SINGLE EVENT PAGE — Premium Summary + Responsive
   ================================================ */
.nfreu-event-hero-badge {
  display:inline-block;
  background:rgba(220,20,60,.9);
  color:#fff;
  padding:.3rem .9rem;
  border-radius:100px;
  font-size:.72rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:.75rem;
}
.nfreu-meta-time {
  display:inline-block;
  margin-left:.3rem;
  padding:.1rem .5rem;
  background:rgba(255,255,255,.15);
  border-radius:4px;
  font-size:.72rem;
}
.nfreu-event-layout {
  display:grid;
  grid-template-columns:1fr 320px;
  gap:2.5rem;
}
@media(max-width:1023px) {
  .nfreu-event-layout { grid-template-columns:1fr; gap:2rem; }
}
.nfreu-event-main-col { min-width:0; }
.nfreu-event-sidebar-col { min-width:0; }

/* Premium Event Summary Card */
.nfreu-event-summary-card {
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 32px rgba(0,51,102,.1);
  border:1px solid rgba(0,51,102,.08);
  margin-bottom:1.5rem;
  transition:transform .3s ease,box-shadow .3s ease;
}
.nfreu-event-summary-card:hover {
  transform:translateY(-2px);
  box-shadow:0 12px 40px rgba(0,51,102,.14);
}
.nfreu-event-summary-header {
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:1rem 1.25rem;
  background:linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 100%);
  color:#fff;
  font-size:.88rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.nfreu-event-summary-header i { font-size:.95rem; }
.nfreu-event-summary-body { padding:1rem 1.25rem .5rem; }
.nfreu-event-summary-row {
  display:flex;
  align-items:center;
  gap:.85rem;
  padding:.7rem 0;
  border-bottom:1px solid rgba(0,51,102,.06);
}
.nfreu-event-summary-row:last-of-type { border-bottom:none; }
.nfreu-event-summary-icon-wrap {
  width:40px;
  height:40px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.9rem;
  flex-shrink:0;
}
.nfreu-event-summary-info {
  display:flex;
  flex-direction:column;
  gap:.08rem;
}
.nfreu-event-summary-label {
  font-size:.68rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--text-muted);
}
.nfreu-event-summary-value {
  font-size:.9rem;
  font-weight:700;
  color:var(--text);
  line-height:1.3;
}
.nfreu-event-summary-footer {
  padding:.75rem 1.25rem 1.25rem;
}
.nfreu-event-summary-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  width:100%;
  padding:.72rem 1rem;
  background:linear-gradient(135deg,var(--accent),var(--accent-hover));
  color:#fff;
  border-radius:12px;
  font-size:.85rem;
  font-weight:700;
  text-decoration:none;
  transition:all .3s ease;
  box-shadow:0 4px 14px rgba(220,20,60,.25);
}
.nfreu-event-summary-btn:hover {
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(220,20,60,.35);
  color:#fff;
}

/* Registration CTA Box */
.nfreu-event-reg-box {
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  margin-top:2rem;
  padding:1.5rem;
  background:linear-gradient(135deg,var(--secondary),#e0eef9);
  border-radius:var(--r-lg);
  border:1px solid var(--border);
}
.nfreu-event-reg-icon {
  width:48px;
  height:48px;
  border-radius:14px;
  background:var(--primary);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.15rem;
  flex-shrink:0;
}
.nfreu-event-reg-text { flex:1; min-width:200px; }
.nfreu-event-reg-text h3 {
  font-size:.95rem;
  font-weight:800;
  color:var(--primary);
  margin-bottom:.2rem;
}
.nfreu-event-reg-text p {
  font-size:.8rem;
  color:var(--text-muted);
  margin:0;
  line-height:1.5;
}

/* Share Card */
.nfreu-event-share-card {
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 32px rgba(0,51,102,.1);
  border:1px solid rgba(0,51,102,.08);
}
.nfreu-event-share-header {
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:1rem 1.25rem;
  background:linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 100%);
  color:#fff;
  font-size:.88rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.nfreu-event-share-header i { color:var(--accent); font-size:.85rem; }
.nfreu-event-share-actions {
  display:flex;
  flex-direction:column;
  gap:.65rem;
  padding:1.25rem;
}
.nfreu-event-share-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding:.75rem 1rem;
  border-radius:12px;
  font-size:.85rem;
  font-weight:700;
  text-decoration:none;
  transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space:nowrap;
  border:1px solid transparent;
}
.nfreu-event-share--whatsapp {
  background:rgba(37, 211, 102, 0.06);
  color:#16a34a;
  border-color:rgba(37, 211, 102, 0.2);
}
.nfreu-event-share--whatsapp:hover {
  background:#25d366;
  color:#fff;
  border-color:#25d366;
  box-shadow:0 4px 14px rgba(37, 211, 102, 0.25);
  transform:translateY(-2px);
}
.nfreu-event-share--facebook {
  background:rgba(24, 119, 242, 0.06);
  color:#2563eb;
  border-color:rgba(24, 119, 242, 0.2);
}
.nfreu-event-share--facebook:hover {
  background:#1877f2;
  color:#fff;
  border-color:#1877f2;
  box-shadow:0 4px 14px rgba(24, 119, 242, 0.25);
  transform:translateY(-2px);
}
.nfreu-event-share--print {
  background:rgba(201, 168, 76, 0.08);
  color:var(--primary);
  border-color:rgba(201, 168, 76, 0.25);
  cursor:pointer;
}
.nfreu-event-share--print:hover {
  background:var(--accent);
  color:var(--primary);
  border-color:var(--accent);
  box-shadow:0 4px 14px rgba(201, 168, 76, 0.3);
  transform:translateY(-2px);
}

/* ================================================
   NEWSLETTER MOBILE FIX — button/subscribe layout
   ================================================ */
@media(max-width:480px) {
  .nfreu-newsletter-inner { flex-direction:column; align-items:stretch; text-align:center; }
  .nfreu-newsletter-text { justify-content:center; }
  .nfreu-newsletter-form { min-width:0; width:100%; }
  .nfreu-newsletter-field { flex-direction:column; border-radius:var(--r); overflow:hidden; }
  .nfreu-newsletter-field input {
    border-radius:var(--r) var(--r) 0 0;
    text-align:center;
    width:100%;
  }
  .nfreu-newsletter-btn {
    border-radius:0 0 var(--r) var(--r);
    width:100%;
    justify-content:center;
    padding:.85rem 1rem;
  }
}

/* ================================================
   RESPONSIVE — Tablet & Mobile
   ================================================ */
@media(max-width:767px) {
  .nfreu-section { padding: 3rem 0; }
  .nfreu-news-grid { grid-template-columns: 1fr; }
  .nfreu-counters-grid { grid-template-columns: repeat(2,1fr); }
  .nfreu-single-wrap { grid-template-columns: 1fr; }
  .nfreu-footer-grid { grid-template-columns: 1fr; }
  .nfreu-contact-grid { grid-template-columns: 1fr; }
  .nfreu-quick-cards { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:480px) {
  .nfreu-quick-cards { grid-template-columns: 1fr 1fr; }
  .nfreu-counters-grid { grid-template-columns: 1fr 1fr; }
  .nfreu-gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* Legacy circular styles */
.nfreu-circular-item { position: relative; }
.nfreu-circular-item.featured { border-left: 3px solid var(--accent); }
.nfreu-achievement-card.feat { border-color: var(--accent); }
.nfreu-achievement-card.feat::before { content:'📌'; position:absolute; top:.75rem; right:.75rem; font-size:.85rem; }
.nfreu-achievement-card { position: relative; }

/* ================================================
   ELEMENTOR COMPATIBILITY
   ================================================ */
.elementor-section { max-width: 100%; }
.elementor-page .nfreu-page-hero { display: none; }
.e-con-inner { max-width: 1280px; }
body.elementor-page .site-main { padding: 0; }

body.page-template-elementor_canvas .nfreu-page-hero,
body.page-template-elementor_header-footer .nfreu-page-hero { display: none; }

/* ================================================
   SINGLE POST
   ================================================ */
.nfreu-single-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; padding: 3rem 0; }
@media(max-width:1023px) { .nfreu-single-wrap { grid-template-columns: 1fr; } }

/* ================================================
   GALLERY PAGE — Tabs + Videos
   ================================================ */
.nfreu-gallery-tabs-bar { background: #fff; border-bottom: 2px solid var(--border); position: sticky; top: var(--header-h, 112px); z-index: 50; }
.nfreu-gallery-tabs { display: flex; gap: 0; overflow-x: auto; }
.nfreu-gallery-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; font-size: .88rem; font-weight: 700; color: var(--text-muted); background: transparent; border: none; border-bottom: 3px solid transparent; cursor: pointer; transition: var(--ease); font-family: var(--font); white-space: nowrap; }
.nfreu-gallery-tab:hover { color: var(--primary); background: var(--gray-50); }
.nfreu-gallery-tab.active { color: var(--primary); border-bottom-color: var(--accent); }
.nfreu-gallery-tab-count { font-size: .7rem; font-weight: 700; background: var(--gray-100); padding: .05rem .4rem; border-radius: 100px; }
.nfreu-gallery-tab.active .nfreu-gallery-tab-count { background: var(--accent-light); color: var(--accent); }
.nfreu-gallery-album-block { margin-bottom: 3rem; }
.nfreu-gallery-album-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .5rem; }
.nfreu-gallery-album-header h2 { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.nfreu-gallery-album-header span { font-size: .75rem; color: var(--text-muted); }
.nfreu-gallery-album-header span i { color: var(--accent); margin-right: .25rem; }
.nfreu-gallery-album-count { font-size: .75rem; color: var(--text-muted); background: var(--secondary); padding: .2rem .7rem; border-radius: 100px; }
.nfreu-gallery-album-empty { padding: 2rem; background: var(--gray-50); border-radius: var(--r-md); text-align: center; color: var(--text-muted); font-size: .85rem; }
.nfreu-gallery-empty { text-align: center; padding: 4rem; }
.nfreu-gallery-empty i { font-size: 3rem; opacity: .2; margin-bottom: 1rem; display: block; }
.nfreu-gallery-empty h3 { color: var(--text-muted); }
.nfreu-gallery-empty p { font-size: .88rem; }

/* Video Grid */
.nfreu-video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media(max-width:1100px) {
  .nfreu-video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media(max-width:850px) {
  .nfreu-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width:550px) {
  .nfreu-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .nfreu-video-card {
    border-radius: 10px;
  }
  .nfreu-video-body {
    padding: 0.75rem;
  }
  .nfreu-video-title {
    font-size: 0.8rem;
    line-height: 1.35;
    margin-bottom: 0;
  }
  .nfreu-video-desc {
    display: none;
  }
  .nfreu-video-play {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}
.nfreu-video-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; transition: var(--ease); }
.nfreu-video-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.nfreu-video-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--gray-100); cursor: pointer; }
.nfreu-video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nfreu-video-card:hover .nfreu-video-thumb img { transform: scale(1.06); }
.nfreu-video-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(0,51,102,.15); background: linear-gradient(135deg, var(--secondary), var(--gray-200)); }
.nfreu-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(220,20,60,.9); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; transition: var(--ease); box-shadow: 0 4px 16px rgba(220,20,60,.4); }
.nfreu-video-card:hover .nfreu-video-play { transform: translate(-50%, -50%) scale(1.1); }
.nfreu-video-platform { position: absolute; top: .6rem; right: .6rem; background: rgba(0,0,0,.6); color: #fff; font-size: .6rem; font-weight: 700; text-transform: uppercase; padding: .15rem .5rem; border-radius: 100px; letter-spacing: .04em; backdrop-filter: blur(4px); }
.nfreu-video-feat { position: absolute; top: .6rem; left: .6rem; background: var(--accent); color: #fff; font-size: .58rem; font-weight: 700; padding: .15rem .5rem; border-radius: 100px; }
.nfreu-video-body { padding: 1rem 1.15rem 1.15rem; }
.nfreu-video-title { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.nfreu-video-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }

/* ================================================
   LINKS PAGE — Left categories layout (like Events)
   ================================================ */
.nfreu-links-page-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.nfreu-links-sidebar { position: sticky; top: calc(var(--header-h, 112px) + 1rem); }
.nfreu-links-cat-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.nfreu-links-cat-panel-title { font-size: .92rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; padding-bottom: .65rem; border-bottom: 2px solid var(--gray-100); display: flex; align-items: center; gap: .45rem; }
.nfreu-links-cat-panel-title i { color: var(--accent); font-size: .85rem; }
.nfreu-links-cat-menu { display: flex; flex-direction: column; gap: .2rem; }
.nfreu-links-cat-menu-item { display: flex; align-items: center; justify-content: space-between; padding: .55rem .75rem; border-radius: var(--r); font-size: .84rem; font-weight: 600; color: var(--text); text-decoration: none; transition: var(--ease); cursor: pointer; border: none; background: none; font-family: var(--font); text-align: left; width: 100%; }
.nfreu-links-cat-menu-item:hover { background: var(--secondary); color: var(--primary); }
.nfreu-links-cat-menu-item.active { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; box-shadow: 0 4px 12px rgba(0,51,102,.2); }
.nfreu-links-cat-menu-item em { font-style: normal; font-size: .7rem; font-weight: 700; background: rgba(0,0,0,.06); padding: .1rem .4rem; border-radius: 100px; }
.nfreu-links-cat-menu-item.active em { background: rgba(255,255,255,.2); color: #fff; }
.nfreu-links-content { min-width: 0; }
@media(max-width:860px) { .nfreu-links-page-layout { grid-template-columns: 1fr; } }

/* ================================================
   RESPONSIVE — Tablet & Mobile
   ================================================ */

/* Animation delay vars */
.nfreu-reveal { --d: 0s; }
.nfreu-reveal.visible { transition-delay: var(--d); }

/* Premium Gallery Styling */
.nfreu-gallery-item { position: relative; overflow: hidden; border-radius: 12px; cursor: pointer; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.nfreu-gallery-item:hover { transform: translateY(-8px); box-shadow: 0 12px 32px rgba(0,0,0,0.16); }
.nfreu-gallery-item:hover .nfreu-gallery-overlay { opacity: 1; }
.nfreu-gallery-item:hover img { transform: scale(1.08); }
.nfreu-gallery-item img { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nfreu-gallery-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,51,102,0.7) 0%, rgba(220,20,60,0.5) 100%); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nfreu-gallery-zoom { color: white; font-size: 1.5rem; }

/* Premium Gallery Tab Styling */
.nfreu-gallery-tab { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nfreu-gallery-tab:hover { color: #fff !important; opacity: 0.8; }
.nfreu-gallery-tab.active { border-bottom-color: #fff; color: #fff; }
.nfreu-gallery-tab-count { display: inline-block; background: rgba(255,255,255,0.2); padding: 0.2rem 0.5rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; }

/* Gallery Album Header */
.nfreu-gallery-album-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.nfreu-gallery-album-header h2 { margin: 0; color: var(--primary); font-size: 1.35rem; font-weight: 800; }
.nfreu-gallery-album-header span { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.nfreu-gallery-album-count { background: linear-gradient(135deg, #e0f6ff 0%, #d0f0fe 100%); color: var(--primary); padding: 0.4rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }

/* Gallery Grid */
.nfreu-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
/* Article / Single Post Improvements */
.nfreu-single-article { padding: 2rem; background: #fff; border-radius: var(--r-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.nfreu-article-header { margin-bottom: 1rem; }
.nfreu-article-title { font-size: 1.6rem; color: var(--primary); margin: 0 0 .5rem; }
.nfreu-article-excerpt { color: var(--text-muted); font-size: 1rem; margin: 0 0 .75rem; }
.nfreu-article-meta { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; margin-bottom: 1.25rem; color: var(--text-muted); }
.nfreu-article-meta span { font-size: .9rem; }
.nfreu-article-content { font-size:1rem; color:var(--text-muted); line-height:1.85; }
.nfreu-article-content p { margin-bottom:1rem; }
.nfreu-article-content img { border-radius:8px; box-shadow: var(--shadow-sm); }

/* Premium Sidebar Cards */
.nfreu-sidebar { margin-left: 2rem; width: 320px; }
.nfreu-sidebar-widget { background:#fff;border:1px solid rgba(0,51,102,.08);border-radius:18px;overflow:hidden;box-shadow:0 18px 60px rgba(0,51,102,.08);margin-bottom:1.5rem; }
.nfreu-sidebar-widget--premium .nfreu-sidebar-widget-title { display:block; padding:1rem 1.25rem; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color:#fff; font-weight:800; font-size:1rem; letter-spacing:.02em; text-transform:uppercase; }
.nfreu-sidebar-widget-body { padding:1rem 1.2rem 1.25rem; }
.nfreu-sidebar-widget-title { font-weight:800;color:var(--primary);margin-bottom:.75rem;font-size:1rem; }
.nfreu-sidebar-widget .nfreu-recent-item { padding:.75rem 0; border-bottom:1px solid var(--border); }
.nfreu-sidebar-widget .nfreu-recent-item:last-child { border-bottom:none; }
.nfreu-sidebar-item { padding:.85rem 0; border-bottom:1px solid rgba(0,51,102,.08); }
.nfreu-sidebar-item:last-child { border-bottom:none; }
.nfreu-sidebar-link { display:block; font-size:.92rem; font-weight:700; color: var(--text); line-height:1.4; margin-bottom:.25rem; text-decoration:none; }
.nfreu-sidebar-link:hover { color: var(--accent); }
.nfreu-sidebar-meta { font-size:.78rem; color: var(--gray-500); }
.nfreu-sidebar-event-card { display:flex; gap:.9rem; align-items:flex-start; padding:.8rem 0; border-bottom:1px solid rgba(0,51,102,.08); }
.nfreu-sidebar-event-card:last-child { border-bottom:none; }
.nfreu-event-date { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color:#fff; border-radius: 14px; padding:.55rem .7rem; text-align:center; min-width:46px; box-shadow: 0 8px 20px rgba(0,51,102,.08); }
.nfreu-event-date .day { font-weight:900; font-size:1rem; line-height:1; }
.nfreu-event-date .mon { font-size:.7rem; text-transform:uppercase; opacity:.9; }
.nfreu-event-info { flex:1; }
.nfreu-article-category { background:var(--accent); color:#fff; padding:.2rem .65rem; border-radius:100px; font-size:.72rem; font-weight:700; text-transform:uppercase; }
.nfreu-article-meta { display:flex; flex-wrap:wrap; gap:.8rem; align-items:center; margin-bottom: 1.6rem; color: var(--text-muted); }
.nfreu-article-meta span { font-size: .9rem; display:flex; align-items:center; gap:.35rem; }
.nfreu-article-rating { margin-bottom: 1.8rem; padding: 1rem 1.15rem; background: linear-gradient(135deg, rgba(0,51,102,.04), rgba(220,20,60,.04)); border: 1px solid rgba(0,51,102,.08); border-radius: 14px; }
.nfreu-rating-summary { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; font-size:.95rem; margin-bottom:.9rem; }
.nfreu-rating-average { font-size:1.25rem; font-weight:800; color:var(--primary); }
.nfreu-rating-stars { color:#ffc107; font-size:1rem; letter-spacing:.04em; }
.nfreu-rating-count { color:var(--gray-600); font-size:.8rem; }
.nfreu-rating-input { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.nfreu-rating-input span { font-size:.85rem; font-weight:700; color:var(--text-muted); }
.nfreu-rating-star { border:none; background:transparent; cursor:pointer; font-size:1.25rem; color:#d1d5db; transition: color .2s, transform .2s; }
.nfreu-rating-star:hover, .nfreu-rating-star.active { color:#ffc107; transform: translateY(-1px); }
.nfreu-rating-note { margin-top:.75rem; font-size:.82rem; color:var(--green); }
.nfreu-rating-feedback { margin-top:.65rem; font-size:.82rem; color:var(--text-muted); }
.nfreu-gallery-album-card { background: #fff; border:1px solid rgba(0,51,102,.08); border-radius: 20px; box-shadow: 0 16px 40px rgba(0,51,102,0.08); overflow:hidden; margin-bottom: 2rem; }
.nfreu-gallery-album-preview { display:grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; padding: 1rem; }
.nfreu-gallery-album-cover, .nfreu-gallery-album-thumb { position: relative; overflow:hidden; border-radius: 18px; background: var(--gray-50); }
.nfreu-gallery-album-cover img, .nfreu-gallery-album-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .35s ease; }
.nfreu-gallery-album-cover:hover img, .nfreu-gallery-album-thumb:hover img { transform: scale(1.05); }
.nfreu-gallery-album-cover:before, .nfreu-gallery-album-thumb:before { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.32) 100%); opacity: .3; }
.nfreu-gallery-album-thumb-row { display:grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }
.nfreu-gallery-album-thumb:nth-child(1) { min-height: 120px; }
.nfreu-gallery-album-thumb { min-height: 120px; }
.nfreu-gallery-album-meta { padding: 1rem 1rem 1.35rem; }
.nfreu-gallery-album-meta h2 { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.nfreu-gallery-album-meta span { display: inline-flex; align-items:center; gap:.4rem; color: var(--text-muted); font-size:.85rem; }
.nfreu-gallery-album-meta .nfreu-gallery-album-count { background: var(--secondary); color: var(--primary); padding:.35rem .75rem; border-radius:100px; font-size:.78rem; margin-top:.75rem; display:inline-flex; align-items:center; }
.nfreu-gallery-album-meta .nfreu-gallery-album-count i { color: var(--accent); }

@media(max-width:980px){ .nfreu-gallery-album-preview { grid-template-columns: 1fr; } }

@media(max-width:1023px){ .nfreu-sidebar{ width:100%; margin-left:0; order:2; } .nfreu-single-article{ padding:1rem; } }

/* =====================================================
   ADDITIONAL BRAND & PRINT SYSTEM ENHANCEMENTS
   ===================================================== */

/* Dynamic Search Highlight */
mark.nfreu-search-match {
  background: rgba(220, 20, 60, 0.12);
  color: var(--accent);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
  border-bottom: 1px solid rgba(220, 20, 60, 0.25);
}

/* Premium Gallery Folders Grid */
.nfreu-gallery-folders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}
@media(max-width:1100px) {
  .nfreu-gallery-folders-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media(max-width:850px) {
  .nfreu-gallery-folders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width:550px) {
  .nfreu-gallery-folders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .nfreu-gallery-folder-card {
    padding: 0.75rem;
    margin-top: 12px;
  }
  .nfreu-gallery-folder-card::before {
    top: -5px;
    left: 4%;
    width: 92%;
  }
  .nfreu-gallery-folder-card::after {
    top: -10px;
    left: 8%;
    width: 84%;
  }
  .nfreu-gallery-folder-preview {
    margin-bottom: 0.75rem;
  }
  .nfreu-gallery-folder-info h3 {
    font-size: 0.85rem;
  }
  .nfreu-gallery-folder-meta {
    font-size: 0.65rem;
    gap: 0.25rem;
  }
}

.nfreu-gallery-folder-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 51, 102, 0.06);
  padding: 1.15rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 30, 64, 0.04);
  margin-top: 15px;
}

/* Stack Effect - Layer 1 (behind card) */
.nfreu-gallery-folder-card::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 4%;
  width: 92%;
  height: 100%;
  background: #f8fafc;
  border: 1px solid rgba(0, 51, 102, 0.05);
  border-radius: 16px;
  z-index: -1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Stack Effect - Layer 2 (further behind) */
.nfreu-gallery-folder-card::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 8%;
  width: 84%;
  height: 100%;
  background: #f1f5f9;
  border: 1px solid rgba(0, 51, 102, 0.03);
  border-radius: 16px;
  z-index: -2;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.93);
}

/* Hover state stack expansion animations */
.nfreu-gallery-folder-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 51, 102, 0.1);
}

.nfreu-gallery-folder-card:hover::before {
  top: -10px;
  transform: scale(0.99);
}

.nfreu-gallery-folder-card:hover::after {
  top: -18px;
  transform: scale(0.96);
}

.nfreu-gallery-folder-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1; /* Premium square cover images */
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  margin-bottom: 1rem;
  z-index: 2;
}

.nfreu-gallery-folder-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nfreu-gallery-folder-card:hover .nfreu-gallery-folder-preview img {
  transform: scale(1.05);
}

/* Premium Photo Count Badge on top-right of cover image */
.nfreu-gallery-folder-icon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  color: var(--primary, #003366);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.nfreu-gallery-folder-icon-badge i {
  color: var(--accent, #dc143c);
}

.nfreu-gallery-folder-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #1e293b);
  margin: 0 0 0.25rem 0;
  word-break: break-word;
}

.nfreu-gallery-folder-card:hover .nfreu-gallery-folder-info h3 {
  color: var(--accent);
}

.nfreu-gallery-folder-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--gray-400, #94a3b8);
}

/* Album Details Transition & Headers */
#nfreuGalleryAlbumsGrid, .nfreu-gallery-album-details {
  transition: opacity 0.3s ease;
}

.nfreu-gallery-details-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.nfreu-gallery-back-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15);
}

.nfreu-gallery-back-btn:hover {
  background: var(--accent);
  transform: translateX(-4px);
  box-shadow: 0 6px 16px rgba(220, 20, 60, 0.25);
}

.nfreu-gallery-album-title-area h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 0.25rem 0;
}

.nfreu-gallery-album-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Clean Gallery Tabs styles (replacing inline styles) */
.nfreu-gallery-tabs-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light, #0a4a8c) 100%);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,51,102,0.15);
  position: sticky;
  top: var(--header-h, 112px);
  z-index: 50;
}

.nfreu-gallery-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nfreu-gallery-tab {
  flex: 0 0 auto;
  padding: 0.65rem 1.25rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
}

.nfreu-gallery-tab:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  opacity: 1;
  text-decoration: none;
}

.nfreu-gallery-tab.active {
  color: #fff !important;
  background: transparent !important;
  border-bottom-color: #fff !important;
  opacity: 1;
  text-decoration: none;
}

.nfreu-gallery-tab-count {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

/* Circular Download Badge & Count styling */
.nfreu-circular-premium-downloads {
  background: rgba(0, 51, 102, 0.05);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nfreu-circular-trending-downloads {
  background: rgba(220, 20, 60, 0.08);
  color: var(--accent);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.62rem;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.25rem;
}

/* Circular Action Buttons Global Styles */
.nfreu-circular-premium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.nfreu-circular-premium-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.nfreu-circular-premium-btn--download {
  background: var(--primary) !important;
  color: #fff !important;
  padding: .55rem .85rem;
  box-shadow: 0 4px 12px rgba(0,51,102,.2);
}
.nfreu-circular-premium-btn--download:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0,51,102,.3);
}

/* Copy button check state styling */
.nfreu-circular-premium-btn--copy {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* ================================================
   GLOBAL MOBILE TEXT-OVERFLOW SAFETY
   Prevents long event/circular/news titles from
   breaking card and page layouts at any screen size.
   ================================================ */

/* All flex containers that hold text should never let children grow
   wider than the container's own width */
.nfreu-event-card,
.nfreu-circular-premium-card,
.nfreu-circular-card,
.nfreu-news-item,
.nfreu-card {
  /* Block-level, never grow past viewport */
  max-width: 100%;
  box-sizing: border-box;
}

/* Text nodes inside card bodies: always wrap, never overflow */
.nfreu-event-card-title,
.nfreu-event-card-desc,
.nfreu-circular-premium-title,
.nfreu-circular-premium-desc,
.nfreu-circular-card-title,
.nfreu-circular-card-desc,
.nfreu-news-title,
.nfreu-card-title {
  word-break: break-word;
  overflow-wrap: break-word;
  /* Prevent grid blowout */
  min-width: 0;
}

/* Featured sidebar titles (right column): single-line ellipsis for long titles */
.nfreu-circular-premium-trending-title,
.nfreu-events-feat-title,
.nfreu-circulars-feat-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Page hero breadcrumb: wrap gracefully on tiny phones */
.nfreu-page-hero-breadcrumb {
  flex-wrap: wrap;
  row-gap: .2rem;
}

/* Section title headings: clamp for extremely long names */
.nfreu-section-title h2,
.nfreu-events-main .nfreu-section-title h2,
.nfreu-circulars-main h2 {
  word-break: break-word;
  overflow-wrap: break-word;
}

@media(max-width:480px) {
  /* Circular card: keep download button text label visible */
  .nfreu-circular-premium-btn--download span { display: inline !important; }
  .nfreu-circular-premium-btn--download { padding: .55rem .65rem; }

  /* Event card: slightly smaller title font on phones < 480px */
  .nfreu-event-card-title { font-size: .83rem; }

  /* Circular trending sidebar title: allow 2-line wrap on small phones */
  .nfreu-circular-premium-trending-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* Prevent grid items and list containers from expanding beyond their boundaries */
.nfreu-events-main,
.nfreu-circulars-main,
.nfreu-events-layout,
.nfreu-circulars-layout,
.nfreu-events-live-list,
.nfreu-circulars-list,
#nfreuEventsList,
#nfreuCircularList {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media(max-width:860px) {
  .nfreu-events-main,
  .nfreu-circulars-main,
  .nfreu-events-layout,
  .nfreu-circulars-layout {
    overflow-x: hidden !important;
  }
}

/* Unify page background colors with the Events/News/Circulars soft gradient */
.page-template-page-about .nfreu-section,
.page-template-page-contact .nfreu-section,
.page-template-page-gallery .nfreu-section,
.page-template-page-achievements .nfreu-section,
.page-template-page-links .nfreu-section {
  background: linear-gradient(155deg, #e8f4fd 0%, #d4e9f8 30%, #f0e6ff 70%, #f8fafc 100%) !important;
}

/* Print Notice media queries */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt !important;
  }
  #nfreu-header, .nfreu-newsletter-bar, .nfreu-footer, #nfreu-back-top,
  .nfreu-page-hero-overlay, .nfreu-page-hero-pattern, .nfreu-page-hero-breadcrumb,
  .nfreu-event-share-card, .nfreu-related-events, .nfreu-event-reg-box,
  .nfreu-circulars-sidebar, .nfreu-pagination, .nfreu-circular-premium-actions,
  .nfreu-mobile-search-bar, .nfreu-topribbon, .nfreu-navbar, .nfreu-newsletter-form,
  .nfreu-gallery-tabs-bar, .nfreu-gallery-back-btn, .nfreu-circulars-main-header button {
    display: none !important;
  }
  .nfreu-page-hero {
    height: auto !important;
    padding: 2rem 0 !important;
    background: none !important;
    color: #000 !important;
    border-bottom: 2px solid #000 !important;
  }
  .nfreu-page-hero-content h1 {
    color: #000 !important;
    font-size: 24pt !important;
    margin: 0 !important;
  }
  .nfreu-event-hero-badge {
    color: #000 !important;
    border: 1px solid #000 !important;
    background: none !important;
  }
  .nfreu-single-event, .nfreu-container, .nfreu-circulars-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .nfreu-event-layout, .nfreu-circulars-layout {
    display: block !important;
  }
  .nfreu-event-main-col, .nfreu-circulars-main {
    width: 100% !important;
    float: none !important;
  }
  .nfreu-event-sidebar-col {
    width: 100% !important;
    margin-top: 2rem !important;
    border-top: 1px dashed #ccc !important;
    padding-top: 1rem !important;
  }
  .nfreu-circular-premium-card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
    margin-bottom: 1rem !important;
    page-break-inside: avoid !important;
  }
}

/* ================================================
   GALLERY NAVIGATION SEARCH & MOBILE ALIGNMENTS
   ================================================ */
.nfreu-gallery-tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.nfreu-gallery-search-wrap {
  position: relative;
  width: 280px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff !important;
  border: 1px solid var(--border, #cbd5e1) !important;
  border-radius: 10px !important;
  padding: 0.45rem 0.75rem !important;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.08) !important;
}

.nfreu-gallery-search-wrap input {
  width: 100% !important;
  padding: 0 1.5rem 0 1.25rem !important;
  font-size: 0.88rem !important;
  border: none !important;
  background: transparent !important;
  color: var(--text, #1e293b) !important;
  border-radius: 0 !important;
  outline: none !important;
  font-family: var(--font) !important;
}

.nfreu-gallery-search-wrap input::placeholder {
  color: var(--gray-400, #94a3b8) !important;
}

.nfreu-gallery-search-icon {
  position: absolute !important;
  left: 0.75rem !important;
  color: var(--gray-400, #94a3b8) !important;
  font-size: 0.82rem !important;
  pointer-events: none !important;
}

#nfreuGallerySearchClear {
  position: absolute !important;
  right: 0.75rem !important;
  background: transparent !important;
  border: none !important;
  color: var(--gray-400, #94a3b8) !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.82rem !important;
}

#nfreuGallerySearchClear:hover {
  color: var(--primary, #003366) !important;
}

/* Mobile search trigger button */
.nfreu-gallery-mob-search-trigger {
  display: none;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  flex: 0 0 auto;
}

.nfreu-gallery-mob-search-trigger:hover {
  color: #fff;
}

/* Mobile slide-down search bar */
.nfreu-gallery-mob-search-bar {
  background: rgba(0, 30, 64, 0.95);
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}

.nfreu-gallery-mob-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.nfreu-gallery-mob-search-inner input {
  width: 100%;
  padding: 0.6rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

.nfreu-gallery-mob-search-inner i {
  position: absolute;
  left: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

#nfreuGalleryMobSearchClear {
  position: absolute !important;
  right: 0.85rem !important;
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.85rem !important;
  transition: color 0.2s ease !important;
}

#nfreuGalleryMobSearchClear:hover {
  color: #fff !important;
}

/* Responsive queries */
@media (max-width: 767px) {
  .nfreu-gallery-search-wrap {
    display: none !important;
  }
  .nfreu-gallery-mob-search-trigger {
    display: inline-flex !important;
    margin-left: auto !important; /* Push mobile search icon trigger to the right */
  }
}

/* Mobile Gallery Photo Album details grid: 2 in a row below 640px */
@media (max-width: 640px) {
  .nfreu-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
}

/* Natively animate reveal elements on single pages load instead of waiting for scroll intersect */
.nfreu-single-v42-layout .nfreu-reveal,
.nfreu-single-event .nfreu-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: nfreuFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes nfreuFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ════════════════════════════════════════════════════
   NFREU PREMIUM REDESIGN OVERRIDES
   ════════════════════════════════════════════════════ */

/* Global Body Background & Fonts */
body {
  background: var(--off-white) !important;
  color: var(--text) !important;
}

/* Glassmorphism Header Override */
.nfreu-topribbon {
  display: none !important; /* Hide ribbon to match mockup nav */
}

#nfreu-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(10, 22, 40, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
  transition: background 0.3s, box-shadow 0.3s ease !important;
}

#nfreu-header.scrolled {
  background: rgba(10, 22, 40, 0.98) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.nfreu-navbar {
  padding: 0.8rem 0 !important;
}

/* Header Spacing Compensation on Inner Pages */
.nfreu-page-hero {
  padding-top: 100px !important;
}
body:not(.home) .nfreu-page-wrap {
  padding-top: 100px;
}
.nfreu-page-hero + .nfreu-page-wrap {
  padding-top: 0 !important;
}

/* Logo overrides to match mockup */
.nfreu-logo-fallback {
  width: 40px !important;
  height: 40px !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

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

.nfreu-logo-name {
  color: var(--white) !important;
  font-family: var(--font-sans) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  background: linear-gradient(
    120deg,
    #fff 0%,
    #fff 40%,
    rgba(255, 215, 0, 0.8) 48%,
    #fff 50%,
    rgba(255, 215, 0, 0.8) 52%,
    #fff 60%,
    #fff 100%
  ) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: textShine 6s linear infinite !important;
}

.nfreu-logo-name span {
  color: var(--accent) !important;
  background: linear-gradient(
    120deg,
    var(--accent) 0%,
    var(--accent) 40%,
    #fff 48%,
    var(--accent) 50%,
    #fff 52%,
    var(--accent) 60%,
    var(--accent) 100%
  ) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: textShine 6s linear infinite !important;
}

.nfreu-logo-tagline {
  color: rgba(255, 255, 255, 0.5) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  margin-top: 0.1rem !important;
}

/* Desktop Navigation Link Styling */
.nfreu-desknav a {
  color: rgba(255, 255, 255, 0.75) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.nfreu-desknav a::after {
  display: none !important; /* Hide old underline bar */
}

.nfreu-desknav a:hover,
.nfreu-desknav a.active {
  color: var(--accent) !important;
  background: rgba(201, 168, 76, 0.1) !important;
}

/* Desktop Navigation CTA Link */
.nfreu-desknav a[href*="contact-us"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px !important;
  margin-left: 0.5rem !important;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.2) !important;
}

.nfreu-desknav a[href*="contact-us"]:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4) !important;
  color: var(--navy) !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
}

/* Search Button */
.nfreu-search-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.nfreu-search-btn:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* Mobile Hamburger Menu */
.nfreu-hamburger {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.nfreu-hamburger span {
  background: var(--white) !important;
}

.nfreu-hamburger:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Mobile Drawer Overlay */
.nfreu-mobile-drawer .nfreu-mobile-panel {
  background: rgba(10, 22, 40, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  border-left: 1px solid rgba(201, 168, 76, 0.15) !important;
}

.nfreu-mobile-link {
  color: rgba(255, 255, 255, 0.75) !important;
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
}

.nfreu-mobile-link:hover,
.nfreu-mobile-link.active {
  color: var(--accent) !important;
  background: rgba(201, 168, 76, 0.08) !important;
}

.nfreu-mobile-link .nfreu-mobile-icon {
  color: var(--accent) !important;
}

/* PREMIUM FOOTER REDESIGN */
.nfreu-footer {
  background: #060e1a !important;
  padding: 4rem 1.5rem 2rem !important;
  border-top: 1px solid rgba(201,168,76,0.1) !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.nfreu-footer-top {
  padding: 0 0 3rem !important;
}

.nfreu-footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr !important;
  gap: 3rem !important;
}

.nfreu-footer-logo-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-bottom: 1rem !important;
}

.nfreu-footer-logo-fallback {
  width: 44px !important;
  height: 44px !important;
  background: linear-gradient(135deg,var(--accent),var(--accent-hover)) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  color: var(--primary) !important;
  flex-shrink: 0 !important;
}

.nfreu-footer-brand-text {
  line-height: 1.3 !important;
}

.nfreu-footer-brand-name {
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  display: block !important;
}

.nfreu-footer-brand-sub {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
  display: block !important;
  font-weight: 400 !important;
  margin-top: 0.1rem !important;
}

.nfreu-footer-about-text {
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 0.85rem !important;
  line-height: 1.7 !important;
  max-width: 320px !important;
  margin-bottom: 1.25rem !important;
}

.nfreu-footer-contact-email {
  margin-top: 1.25rem !important;
  color: var(--accent) !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  display: block !important;
  transition: opacity 0.2s !important;
}

.nfreu-footer-contact-email:hover {
  opacity: 0.85 !important;
  color: var(--accent-hover) !important;
}

.nfreu-footer-heading {
  color: var(--white) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  margin-bottom: 1.25rem !important;
  letter-spacing: 0.04em !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.nfreu-footer-links {
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
  padding-left: 0 !important;
}

.nfreu-footer-links a {
  color: rgba(255, 255, 255, 0.35) !important;
  text-decoration: none !important;
  font-size: 0.82rem !important;
  transition: color 0.2s !important;
  display: block !important;
}

.nfreu-footer-links a:hover {
  color: var(--accent) !important;
  padding-left: 0 !important;
}

.nfreu-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 1.5rem 0 0 !important;
  background: transparent !important;
}

.nfreu-footer-bottom-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

.nfreu-footer-copy {
  color: rgba(255, 255, 255, 0.2) !important;
  font-size: 0.78rem !important;
}

.nfreu-footer-badge {
  color: var(--accent) !important;
  font-size: 0.78rem !important;
  font-family: 'JetBrains Mono', monospace !important;
}

/* Responsive Footer grid */
@media (max-width: 900px) {
  .nfreu-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}
@media (max-width: 600px) {
  .nfreu-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .nfreu-footer-bottom-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* Premium News/Blog Cards Layout & Hover overrides */
.nfreu-news-item {
  border-radius: var(--r-md) !important;
  background: #ffffff !important;
  border: 1px solid rgba(201, 168, 76, 0.1) !important;
  box-shadow: 0 4px 18px rgba(10, 22, 40, 0.03) !important;
  transition: var(--ease) !important;
}

.nfreu-news-item:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 36px rgba(10, 22, 40, 0.09) !important;
  border-color: rgba(201, 168, 76, 0.25) !important;
}

.nfreu-news-item-body h2 a {
  font-family: var(--font-serif) !important;
  color: var(--primary) !important;
}

.nfreu-news-item-body h2 a:hover {
  color: var(--accent) !important;
}

.nfreu-news-item-cat {
  background: var(--primary) !important;
  color: var(--accent) !important;
  border-radius: 50px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
}

.nfreu-news-item-more {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

.nfreu-news-item-more:hover {
  color: var(--accent-hover) !important;
}

/* Dynamic News Fallback Placeholders */
.nfreu-news-item-ph {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: var(--accent) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  min-height: 180px !important;
  position: relative !important;
  overflow: hidden !important;
  opacity: 0.95 !important;
}

.nfreu-news-item-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  pointer-events: none;
}

.nfreu-news-item-ph i {
  font-size: 3.5rem !important;
  color: var(--accent) !important;
  opacity: 0.75 !important;
  filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.35)) !important;
  transition: transform 0.4s ease !important;
}

.nfreu-news-item:hover .nfreu-news-item-ph i {
  transform: scale(1.08) rotate(2deg) !important;
}

/* Premium News Page Styling */
.nfreu-news-cat-item {
  border-radius: 100px !important;
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
}

.nfreu-news-cat-item:hover,
.nfreu-news-cat-item.active {
  background: var(--primary) !important;
  color: var(--accent) !important;
  border-color: var(--primary) !important;
}

/* Premium Circular Cards Override */
.nfreu-circular-premium-card {
  border-radius: var(--r-md) !important;
  border: 1px solid rgba(201, 168, 76, 0.12) !important;
  box-shadow: 0 4px 16px rgba(10, 22, 40, 0.02) !important;
  background: #ffffff !important;
}

.nfreu-circular-premium-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(201, 168, 76, 0.3) !important;
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.08) !important;
}

.nfreu-circular-premium-card--feat {
  background: linear-gradient(135deg, #ffffff 0%, var(--off-white) 100%) !important;
  border-left: 3px solid var(--accent) !important;
}

.nfreu-circular-premium-icon {
  background: linear-gradient(155deg, var(--accent), var(--accent-hover)) !important;
  color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.25) !important;
}

.nfreu-circular-premium-icon i {
  color: var(--primary) !important;
}

.nfreu-circular-premium-ext {
  color: var(--accent) !important;
}

.nfreu-circular-premium-title {
  font-family: var(--font-sans) !important;
  color: var(--primary) !important;
}

/* Sidebar Widgets Redesign */
.nfreu-sidebar-widget {
  background: #ffffff !important;
  border-radius: var(--r-md) !important;
  border: 1px solid rgba(201, 168, 76, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02) !important;
  padding: 1.75rem !important;
  margin-bottom: 2rem !important;
}

.nfreu-sidebar-widget h3 {
  font-family: var(--font-serif) !important;
  font-size: 1.15rem !important;
  color: var(--primary) !important;
  margin-bottom: 1.25rem !important;
  border-bottom: 2px solid var(--accent) !important;
  padding-bottom: 0.5rem !important;
}

.nfreu-sidebar-ql {
  border-radius: 8px !important;
  background: var(--off-white) !important;
  border: 1px solid rgba(201, 168, 76, 0.08) !important;
  color: var(--primary) !important;
}

.nfreu-sidebar-ql:hover {
  background: var(--primary) !important;
  color: var(--accent) !important;
  border-color: var(--primary) !important;
}

.nfreu-sidebar-ql i {
  color: var(--accent) !important;
}

.nfreu-sidebar-ql:hover i {
  color: var(--accent) !important;
}

/* Premium Sidebar Newsletter form */
.nfreu-sidebar-widget--sub {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
  color: var(--white) !important;
  border: none !important;
}

.nfreu-sidebar-widget--sub h3 {
  color: var(--white) !important;
  border-bottom: 2px solid var(--accent) !important;
}

.nfreu-sidebar-sub-field input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  color: var(--white) !important;
  font-family: var(--font-sans) !important;
}

.nfreu-sidebar-sub-field button {
  background: var(--accent) !important;
  color: var(--primary) !important;
}

/* 404 Page Styling */
.nfreu-404-wrap {
  text-align: center;
  padding: 6rem 1.5rem;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 4rem auto;
}

.nfreu-404-num {
  font-family: var(--font-mono);
  font-size: 6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.nfreu-404-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary);
  margin-top: 1rem;
}

/* Dark Search Modal */
.nfreu-search-overlay {
  background: rgba(10, 22, 40, 0.95) !important;
  backdrop-filter: blur(10px) !important;
}

.nfreu-search-box {
  background: #ffffff !important;
  border: 1px solid rgba(201, 168, 76, 0.25) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5) !important;
}

.nfreu-search-result-item:hover {
  background: var(--off-white) !important;
}

.nfreu-search-result-type {
  background: rgba(201, 168, 76, 0.12) !important;
  color: var(--accent) !important;
}

/* General Layout spacing optimizations */
.nfreu-section {
  padding: 5rem 0 !important;
}
@media (max-width: 768px) {
  .nfreu-section {
    padding: 3.5rem 0 !important;
  }
}

/* Cream gradient backgrounds for inner pages (News, Events, Circulars, Achievements, Links) */
.nfreu-circulars-page,
.nfreu-events-page,
.page-template-page-news .nfreu-section,
.page-template-page-achievements .nfreu-section,
.page-template-page-links .nfreu-section,
.nfreu-news-v42 {
  background: linear-gradient(155deg, #F8F5EF 0%, #F4EEE1 30%, #ECE3CF 70%, #F8F5EF 100%) !important;
}

/* Page Hero Overlay Override */
.nfreu-page-hero-overlay {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.8) 60%, rgba(30, 58, 95, 0.65) 100%) !important;
}
.nfreu-page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.75) !important;
}
.nfreu-page-hero-breadcrumb a:hover {
  color: var(--accent) !important;
}

/* Ensure premium SVGs render correctly inside cards and lists */
.premium-svg {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
}
.quick-icon .premium-svg {
  width: 24px;
  height: 24px;
}
.pillar-icon .premium-svg {
  width: 24px;
  height: 24px;
}
.nfreu-mvg-icon .premium-svg {
  width: 28px;
  height: 28px;
}

/* =====================================================
   RESTORED 4-COLUMN FOOTER & NEWSLETTER STYLING
   ===================================================== */
.nfreu-newsletter-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1) !important;
  padding: 2.5rem 0 !important;
}

.nfreu-newsletter-icon {
  background: rgba(201, 168, 76, 0.1) !important;
  color: var(--accent) !important;
}

.nfreu-newsletter-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
}

.nfreu-newsletter-btn:hover {
  opacity: 0.9 !important;
}

.nfreu-newsletter-field input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(201, 168, 76, 0.15) !important;
  border-right: none !important;
  color: #fff !important;
  font-family: var(--font-sans) !important;
  padding: 0.75rem 1.25rem !important;
}

.nfreu-newsletter-field input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.nfreu-footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1fr !important;
  gap: 2.5rem !important;
}

@media (max-width: 900px) {
  .nfreu-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 600px) {
  .nfreu-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

.nfreu-footer-social-icon:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
  color: var(--navy) !important;
  border-color: var(--accent) !important;
  transform: translateY(-2px);
}

.nfreu-footer-contact-item a {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nfreu-footer-contact-item a:hover {
  color: var(--accent) !important;
}

/* =====================================================
   INNER PAGES SEARCH & Contrast Overrides
   ===================================================== */

/* Force search bars to match gold/navy theme */
.nfreu-circulars-search-wrap,
.nfreu-events-search-wrap,
.nfreu-premium-search-wrap,
.nfreu-news-panel--search .nfreu-news-search-wrap-inline {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  box-shadow: inset 0 1px 3px rgba(10, 22, 40, 0.02) !important;
  border-radius: 8px !important;
}

.nfreu-circulars-search-wrap:focus-within,
.nfreu-events-search-wrap:focus-within,
.nfreu-premium-search-wrap:focus-within,
.nfreu-news-panel--search .nfreu-news-search-wrap-inline:focus-within {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15) !important;
}

.nfreu-circulars-search-wrap input,
.nfreu-events-search-wrap input,
.nfreu-premium-search-wrap input,
.nfreu-news-panel--search .nfreu-news-search-wrap-inline input {
  color: var(--text) !important;
  font-family: var(--font-sans) !important;
}

/* Fix title border sky blue color */
.nfreu-news-panel-title,
.nfreu-circulars-panel-title,
.nfreu-events-panel-title {
  border-bottom: 2px solid rgba(201, 168, 76, 0.2) !important;
  color: var(--primary) !important;
}

/* Fix gallery album count badge */
.nfreu-gallery-album-count {
  background: rgba(201, 168, 76, 0.12) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(201, 168, 76, 0.1) !important;
}

/* Fix inner page container background colors if wrappers block them */
.nfreu-circulars-page,
.nfreu-events-page,
.page-template-page-news,
.page-template-page-circulars,
.page-template-page-events,
.page-template-page-gallery,
.page-template-page-achievements,
.page-template-page-links,
.page-template-page-about,
.page-template-page-contact {
  background: var(--off-white) !important;
}

/* Ensure body wrap inherits off-white */
#page, .site, .site-content {
  background: transparent !important;
}

/* =====================================================
   RESTORE HERO SECTIONS ON DEDICATED TEMPLATE PAGES
   ===================================================== */
body.page-template-page-about .nfreu-page-hero,
body.page-template-page-contact .nfreu-page-hero,
body.page-template-page-gallery .nfreu-page-hero,
body.page-template-page-achievements .nfreu-page-hero,
body.page-template-page-links .nfreu-page-hero,
body.page-template-page-circulars .nfreu-page-hero,
body.page-template-page-news .nfreu-page-hero {
  display: block !important;
}

/* Force section background to transparent/cream on custom templates */
.page-template-page-about .nfreu-section,
.page-template-page-contact .nfreu-section,
.page-template-page-gallery .nfreu-section,
.page-template-page-achievements .nfreu-section,
.page-template-page-links .nfreu-section {
  background: var(--off-white) !important;
}

/* Button text contrast fixes for gold accent buttons */
.nfreu-btn-accent {
  background: var(--accent) !important;
  color: var(--primary) !important;
  border-color: var(--accent) !important;
}
.nfreu-btn-accent:hover {
  background: var(--accent-hover) !important;
  color: var(--primary) !important;
  border-color: var(--accent-hover) !important;
}

/* Search box colors and placeholder contrast optimization */
.nfreu-premium-search-wrap,
.nfreu-news-search-box,
.nfreu-news-search-wrap,
.nfreu-circulars-search-wrap,
.nfreu-events-search-wrap {
  background: var(--off-white) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: inset 0 1px 3px rgba(10, 22, 40, 0.03) !important;
  transition: all 0.25s ease !important;
}
.nfreu-premium-search-wrap:focus-within,
.nfreu-news-search-box:focus-within,
.nfreu-news-search-wrap:focus-within,
.nfreu-circulars-search-wrap:focus-within,
.nfreu-events-search-wrap:focus-within {
  background: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15) !important;
}
.nfreu-premium-search-wrap input,
.nfreu-news-search-box input,
.nfreu-news-search-wrap input,
.nfreu-circulars-search-wrap input,
.nfreu-events-search-wrap input {
  color: var(--text) !important;
}
.nfreu-premium-search-wrap input::placeholder,
.nfreu-news-search-box input::placeholder,
.nfreu-news-search-wrap input::placeholder,
.nfreu-circulars-search-wrap input::placeholder,
.nfreu-events-search-wrap input::placeholder {
  color: rgba(26, 43, 60, 0.5) !important;
}
.nfreu-premium-search-wrap i,
.nfreu-news-search-box i,
.nfreu-news-search-wrap i,
.nfreu-circulars-search-wrap i,
.nfreu-events-search-wrap i {
  color: var(--accent) !important;
}

/* ════════════════════════════════════════════════
   THEME REDESIGN STYLING OVERRIDES & CORRECTIONS
   ════════════════════════════════════════════════ */

/* Footer Brand Name gold span color */
.nfreu-footer-brand-name span {
  color: var(--accent) !important;
}

/* Mobile Header Tagline Visibility Overrides */
@media (max-width: 767px) {
  .nfreu-logo {
    max-width: 85% !important;
  }
  .nfreu-logo-tagline {
    display: block !important;
    white-space: normal !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.65rem !important;
    line-height: 1.25 !important;
  }
}

/* Dark theme contact form overrides */
.page-template-page-contact .nfreu-contact-form-wrap {
  background: 
    radial-gradient(circle at left bottom, rgba(201, 168, 76, 0.28) 0%, rgba(201, 168, 76, 0.08) 35%, transparent 70%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  box-shadow: 0 10px 40px rgba(10, 22, 40, 0.25) !important;
  position: relative;
  overflow: hidden;
}
.page-template-page-contact .nfreu-contact-form-wrap h2 {
  color: #fff !important;
}
.page-template-page-contact .nfreu-contact-form-wrap .nfreu-form-group label {
  color: rgba(255, 255, 255, 0.9) !important;
}
.page-template-page-contact .nfreu-contact-form-wrap input,
.page-template-page-contact .nfreu-contact-form-wrap select,
.page-template-page-contact .nfreu-contact-form-wrap textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
.page-template-page-contact .nfreu-contact-form-wrap input::placeholder,
.page-template-page-contact .nfreu-contact-form-wrap textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}
.page-template-page-contact .nfreu-contact-form-wrap input:focus,
.page-template-page-contact .nfreu-contact-form-wrap select:focus,
.page-template-page-contact .nfreu-contact-form-wrap textarea:focus {
  border-color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25) !important;
}
.page-template-page-contact .nfreu-contact-form-wrap select option {
  background: var(--primary-dark) !important;
  color: #fff !important;
}
/* Glowing gold button in contact form */
.page-template-page-contact .nfreu-contact-form-wrap button[type="submit"] {
  background: var(--accent) !important;
  color: var(--primary) !important;
  border: none !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.4) !important;
  transition: all 0.3s ease !important;
}
.page-template-page-contact .nfreu-contact-form-wrap button[type="submit"]:hover {
  background: var(--accent-hover) !important;
  box-shadow: 0 0 25px rgba(201, 168, 76, 0.7) !important;
  transform: translateY(-2px) !important;
}
.page-template-page-contact .nfreu-contact-form-wrap .nfreu-form-msg {
  margin-top: 1.25rem;
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  display: none;
  text-align: center;
  line-height: 1.4;
}
.page-template-page-contact .nfreu-contact-form-wrap .nfreu-form-msg.success {
  display: block !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1.5px solid #10b981 !important;
  color: #34d399 !important;
}
.page-template-page-contact .nfreu-contact-form-wrap .nfreu-form-msg.error {
  display: block !important;
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1.5px solid #ef4444 !important;
  color: #f87171 !important;
}

/* Achievements page counters centering */
@media (max-width: 1023px) {
  .nfreu-achievement-stats-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.25rem !important;
  }
  .nfreu-achievement-stat-card {
    flex: 0 1 calc(33.333% - 1.25rem) !important;
    min-width: 180px !important;
  }
}
@media (max-width: 640px) {
  .nfreu-achievement-stats-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.75rem !important;
  }
  .nfreu-achievement-stat-card {
    flex: 0 1 calc(50% - 0.75rem) !important;
    min-width: 140px !important;
    padding: 1rem 0.75rem !important;
  }
}

/* Trending widgets rankings contrast fixes */
.nfreu-trending-v42-rank,
.nfreu-trending-rank,
.nfreu-circular-premium-trending-rank {
  color: #fff !important;
  background: var(--secondary) !important;
}
.nfreu-trending-v42-item:first-child .nfreu-trending-v42-rank,
.nfreu-trending-item:first-child .nfreu-trending-rank,
.nfreu-circular-premium-trending-item:first-child .nfreu-circular-premium-trending-rank {
  color: var(--primary) !important;
  background: var(--accent) !important;
}
/* Hover color fixes for trending widgets to prevent navy-on-navy */
.nfreu-trending-v42-item:hover .nfreu-trending-v42-title,
.nfreu-trending-item:hover .nfreu-trending-title,
.nfreu-circular-premium-trending-item:hover .nfreu-circular-premium-trending-title {
  color: #fff !important;
}
.nfreu-trending-v42-item:hover .nfreu-trending-v42-date,
.nfreu-trending-item:hover .nfreu-trending-date,
.nfreu-circular-premium-trending-item:hover .nfreu-circular-premium-trending-meta {
  color: rgba(255, 255, 255, 0.7) !important;
}
.nfreu-circular-premium-trending-item:hover .nfreu-circular-premium-trending-arrow {
  color: #fff !important;
}

/* Circular view button styling */
.nfreu-circular-premium-btn--view {
  background: #c9a84c !important;
  color: #0a1628 !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(201,168,76,.18) !important;
}
.nfreu-circular-premium-btn--view:hover {
  background: #e8c87a !important;
  color: #0a1628 !important;
  box-shadow: 0 6px 16px rgba(201,168,76,.28) !important;
}

/* Tag and category badge contrast fixes */
.nfreu-single-tag {
  background: var(--accent-light) !important;
  color: var(--primary) !important;
  border: 1px solid var(--border) !important;
}
.nfreu-single-tag:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* Event Page meta tags high contrast */
.nfreu-event-meta-tag {
  background: var(--primary) !important;
  color: #fff !important;
}
.nfreu-event-meta-tag i {
  color: var(--accent) !important;
}

/* Links Page category and item icons */
.nfreu-links-cat-icon {
  background: var(--primary) !important;
  color: var(--accent) !important;
}
.nfreu-link-enhanced-icon {
  background: var(--accent-light) !important;
  color: var(--accent) !important;
}
.nfreu-link-enhanced-card:hover .nfreu-link-enhanced-icon {
  background: var(--accent) !important;
  color: var(--primary) !important;
}

/* Accent button hover glow color fix (gold instead of crimson) */
.nfreu-btn-accent:hover {
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.4) !important;
}

/* Mobile: Quick Links + Organisation side by side in footer */
@media (max-width: 767px) {
  .nfreu-footer {
    padding: 3rem 0 1.5rem !important;
  }
  .nfreu-footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
  }
  .nfreu-footer-brand {
    grid-column: span 2 !important;
    margin-bottom: 1rem !important;
  }
  .nfreu-footer-col {
    width: 100% !important;
  }
  .nfreu-footer-grid > .nfreu-footer-col:last-child {
    grid-column: span 2 !important;
    margin-top: 0.5rem !important;
  }
}

/* Mobile Drawer Footer dark contrast styling */
.nfreu-mobile-drawer .nfreu-mobile-footer {
  background: rgba(10, 22, 40, 0.98) !important;
  border-top: 1px solid rgba(201, 168, 76, 0.15) !important;
}
.nfreu-mobile-drawer .nfreu-mobile-footer div {
  color: rgba(255, 255, 255, 0.6) !important;
}
.nfreu-mobile-drawer .nfreu-mobile-footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}
.nfreu-mobile-drawer .nfreu-mobile-footer a:hover {
  color: var(--accent) !important;
}
.nfreu-mobile-drawer .nfreu-mobile-footer i {
  color: var(--accent) !important;
}

/* ==========================================================================
   ABOUT PAGE SLIDER (Shared from front page but mapped to theme tokens)
   ========================================================================== */
.about-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--primary);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.about-visual-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(201,168,76,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}
.about-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem 2.25rem;
  z-index: 1;
}
.about-slide.active {
  opacity: 1;
  z-index: 2;
}
.about-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.about-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.15) 0%, rgba(10,22,40,0.85) 100%);
  z-index: 1;
}
.about-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.about-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--accent) !important;
  line-height: 1.45;
  margin-bottom: 0.5rem;
  font-style: normal;
  text-align: center;
}
.about-slide-btn {
  display: inline-block;
  background: var(--accent) !important;
  color: var(--primary) !important;
  padding: 0.55rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 0.85rem;
  width: fit-content;
  border: 1px solid var(--accent) !important;
  margin-left: auto;
  margin-right: auto;
}
.about-slide-btn:hover {
  background: transparent !important;
  color: var(--accent) !important;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
  transform: translateY(-1px);
}

/* Slider Dots */
.about-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}
.about-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-slider-dot.active {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.about-slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   PREMIUM DARK & GOLD THEME FOR MISSION, VISION & VALUES SECTION
   ========================================================================== */
.page-template-page-about #objectives {
  background: linear-gradient(135deg, #0a1628 0%, #050d1a 100%) !important;
  color: #ffffff !important;
}

/* Section labels, titles, descriptions */
.page-template-page-about #objectives .nfreu-section-label {
  color: var(--accent) !important;
}
.page-template-page-about #objectives h2 {
  color: #ffffff !important;
}
.page-template-page-about #objectives .nfreu-section-divider {
  background: linear-gradient(90deg, var(--accent), var(--accent-hover)) !important;
}

/* Objectives (Mission, Vision, Values) Card Overrides */
.page-template-page-about #objectives .nfreu-mvg-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s ease !important;
}
.page-template-page-about #objectives .nfreu-mvg-card:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.15) !important;
  transform: translateY(-4px) !important;
}
.page-template-page-about #objectives .nfreu-mvg-title {
  color: var(--accent) !important;
}
.page-template-page-about #objectives .nfreu-mvg-icon {
  color: var(--accent) !important;
}
.page-template-page-about #objectives .nfreu-mvg-text {
  color: rgba(255, 255, 255, 0.7) !important;
}



/* ==========================================================================
   PREMIUM DARK & GOLD THEME FOR LEADERSHIP SECTION
   ========================================================================== */
.page-template-page-about #leadership {
  background: linear-gradient(135deg, #0a1628 0%, #050d1a 100%) !important;
  color: #ffffff !important;
}

/* Section labels, titles, descriptions */
.page-template-page-about #leadership .nfreu-section-label {
  color: var(--accent) !important;
}
.page-template-page-about #leadership h2 {
  color: #ffffff !important;
}
.page-template-page-about #leadership p {
  color: rgba(255, 255, 255, 0.7) !important;
}
.page-template-page-about #leadership .nfreu-section-divider {
  background: linear-gradient(90deg, var(--accent), var(--accent-hover)) !important;
}

/* Leadership Card Overrides */
.page-template-page-about #leadership .nfreu-leader-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}
.page-template-page-about #leadership .nfreu-leader-card:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.15) !important;
  transform: translateY(-4px) !important;
}
.page-template-page-about #leadership .nfreu-leader-name {
  color: #ffffff !important;
}
.page-template-page-about #leadership .nfreu-leader-designation {
  color: var(--accent) !important;
}
.page-template-page-about #leadership .nfreu-leader-desc {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Golden circular border and glow around leader image */
.page-template-page-about #leadership .nfreu-leader-photo,
.page-template-page-about #leadership .nfreu-leader-photo-placeholder {
  border: 3px solid var(--accent) !important;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.35) !important;
  background: var(--primary) !important;
}

/* Unique card styling for General Secretary and President (Core Leadership) */
.page-template-page-about #leadership .nfreu-leader-card.leader-featured {
  border: 2px solid var(--accent) !important;
  background: rgba(201, 168, 76, 0.03) !important;
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.08) !important;
}
.page-template-page-about #leadership .nfreu-leader-card.leader-featured:hover {
  background: rgba(201, 168, 76, 0.06) !important;
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.25) !important;
  transform: translateY(-6px) scale(1.02) !important;
}
.page-template-page-about #leadership .nfreu-leader-card.leader-featured .nfreu-leader-photo,
.page-template-page-about #leadership .nfreu-leader-card.leader-featured .nfreu-leader-photo-placeholder {
  border: 4px solid var(--accent) !important;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.5) !important;
}
.page-template-page-about #leadership .nfreu-leader-card.leader-featured .nfreu-leader-name {
  font-size: 1.12rem !important;
  font-weight: 900 !important;
}

/* ================================================
   VISUAL AND CONTRAST ENHANCEMENTS (v4.6.5)
   ================================================ */

/* Contact Page Social Icons */
.nfreu-contact-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary) !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  transition: var(--ease);
}
.nfreu-contact-social-icon:hover {
  background: var(--accent) !important;
  color: var(--primary) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.35) !important;
}

/* Mobile Side Filter Search Toggle (News, Circulars, Events) */
.nfreu-mobile-search-toggle {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}
.nfreu-mobile-search-toggle:hover,
.nfreu-mobile-search-toggle:focus {
  background: var(--accent) !important;
  color: var(--primary) !important;
  border-color: var(--accent) !important;
}

/* Premium Focus glow for mobile search input and select elements */
.nfreu-mobile-search-row input:focus,
.nfreu-mob-filter-row select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2) !important;
}

/* Gallery Page - Remove bottom border line on mobile tabs bar */
@media (max-width: 767px) {
  .nfreu-gallery-tabs-bar {
    border-bottom: none !important;
    box-shadow: none !important;
  }
}

/* Gallery Mobile Search Bar styling overrides */
.nfreu-gallery-mob-search-bar {
  background: rgba(10, 22, 40, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: none !important;
}
.nfreu-gallery-mob-search-inner input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 30px !important;
}
.nfreu-gallery-mob-search-inner input:focus {
  border-color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25) !important;
}

/* ================================================
   APPS PAGE STYLING (Google Play Store Style)
   ================================================ */
.nfreu-apps-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 1rem;
}

.nfreu-app-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}

.nfreu-app-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transition: var(--ease);
}

.nfreu-app-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.nfreu-app-item:hover::before {
  background: var(--accent);
  width: 6px;
}

.nfreu-app-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
}

/* Info Column (Left) */
.nfreu-app-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-right: none;
  padding: 2rem !important;
  background: 
    radial-gradient(circle at left bottom, rgba(201, 168, 76, 0.28) 0%, rgba(201, 168, 76, 0.08) 35%, transparent 70%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--r-lg);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.15);
  position: relative;
  overflow: hidden;
}

.nfreu-app-info-col .nfreu-app-title {
  color: #ffffff !important;
}

.nfreu-app-info-col .nfreu-app-developer {
  color: var(--gold2) !important;
}

.nfreu-app-info-col .nfreu-app-logo-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.nfreu-app-info-col .nfreu-app-stats-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nfreu-app-info-col .nfreu-app-stat-box:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nfreu-app-info-col .nfreu-app-stat-value {
  color: #ffffff !important;
}

.nfreu-app-info-col .nfreu-app-stat-label {
  color: rgba(255, 255, 255, 0.7) !important;
}

.nfreu-app-info-col .nfreu-app-specs-table {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nfreu-app-info-col .nfreu-app-spec-row:not(:last-child) {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.15) !important;
}

.nfreu-app-info-col .nfreu-app-spec-lbl {
  color: rgba(255, 255, 255, 0.6) !important;
}

.nfreu-app-info-col .nfreu-app-spec-val {
  color: #ffffff !important;
}

.nfreu-app-info-col .nfreu-app-spec-val code {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--gold2) !important;
}

.nfreu-app-header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nfreu-app-logo-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(10,22,40,0.1);
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.nfreu-app-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nfreu-app-logo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 20px;
}

.nfreu-app-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nfreu-app-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  margin: 0;
}

.nfreu-app-developer {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Play Store Stats strip */
.nfreu-app-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 1rem 0;
  text-align: center;
}

.nfreu-app-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.nfreu-app-stat-box:not(:last-child) {
  border-right: 1px solid var(--gray-200);
}

.nfreu-app-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-sans);
}

.nfreu-app-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.nfreu-app-stat-label i {
  color: var(--accent);
}

/* Download APK Button */
.nfreu-app-download-wrap {
  margin-top: 0.25rem;
}

.nfreu-app-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: #0f766e; /* Deep Teal/Green typical of play store */
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-md);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15,118,110,0.25);
  transition: var(--ease);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.nfreu-app-download-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 80px;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  pointer-events: none;
  animation: nfreu-shimmer-sweep 3.5s infinite ease-in-out;
}

@keyframes nfreu-shimmer-sweep {
  0% {
    left: -100%;
  }
  57% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

.nfreu-app-download-btn:hover {
  background: #0d9488; /* Lighter teal/green */
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15,118,110,0.35);
}

.nfreu-app-download-btn i {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.nfreu-app-download-btn div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.nfreu-app-download-btn div strong {
  font-size: 1.05rem;
}

.nfreu-app-download-btn div span {
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 400;
}

/* Technical specifications table */
.nfreu-app-specs-table {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--gray-50);
  border-radius: var(--r);
  padding: 1rem;
  border: 1px solid var(--gray-200);
}

.nfreu-app-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.nfreu-app-spec-row:not(:last-child) {
  border-bottom: 1px dotted var(--gray-300);
  padding-bottom: 0.5rem;
}

.nfreu-app-spec-lbl {
  color: var(--text-muted);
  font-weight: 600;
}

.nfreu-app-spec-val {
  color: var(--primary);
  font-weight: 700;
}

.nfreu-app-spec-val code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(10,22,40,0.05);
  padding: 2px 5px;
  border-radius: 4px;
}

/* Details Column (Right) */
.nfreu-app-details-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nfreu-app-description h3, 
.nfreu-app-screenshots-wrap h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent-light);
}

.nfreu-app-description h3::after, 
.nfreu-app-screenshots-wrap h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.nfreu-app-desc-content {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.nfreu-app-desc-content p {
  color: var(--gray-700);
  margin-bottom: 0.85rem;
}

/* Screenshot Slider */
.nfreu-app-screenshots-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--gray-100);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

/* Custom Webkit scrollbar for premium feel */
.nfreu-app-screenshots-slider::-webkit-scrollbar {
  height: 6px;
}
.nfreu-app-screenshots-slider::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 3px;
}
.nfreu-app-screenshots-slider::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.nfreu-app-screenshot-slide {
  position: relative;
  flex: 0 0 160px;
  height: 280px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  scroll-snap-align: start;
}

.nfreu-app-screenshot-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.nfreu-screenshot-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,22,40,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  opacity: 0;
  transition: var(--ease);
}

.nfreu-app-screenshot-slide:hover img {
  transform: scale(1.08);
}

.nfreu-app-screenshot-slide:hover .nfreu-screenshot-zoom-overlay {
  opacity: 1;
}

/* Placeholder Screenshots (Pure CSS mock phone screen) */
.nfreu-app-screenshot-slide-placeholder {
  flex: 0 0 160px;
  height: 280px;
  scroll-snap-align: start;
}

.nfreu-screenshot-screen-mock {
  width: 100%;
  height: 100%;
  border-radius: var(--r-md);
  border: 4px solid rgba(10, 22, 40, 0.15);
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
}

.nfreu-mock-nav {
  height: 18px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--white);
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding-left: 6px;
}

.nfreu-mock-card {
  height: 60px;
  background: var(--white);
  border-radius: 4px;
  border-left: 3px solid var(--primary);
  box-shadow: 0 2px 4px rgba(10,22,40,0.02);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .nfreu-app-grid {
    grid-template-columns: 320px 1fr;
    gap: 2rem;
  }
  .nfreu-app-info-col {
    padding-right: 2rem;
  }
  .nfreu-app-logo-wrap {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .nfreu-app-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem;
    width: 100% !important;
  }
  .nfreu-app-info-col {
    border-right: none;
    border-bottom: none;
    padding: 1.25rem !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .nfreu-app-item {
    padding: 1.5rem;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .nfreu-app-stats-strip {
    padding: 0.75rem 0;
    gap: 0.25rem;
  }
  .nfreu-app-stat-value {
    font-size: 0.9rem;
  }
  .nfreu-app-stat-label {
    font-size: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 0.2rem;
  }
  .nfreu-app-specs-table {
    padding: 0.85rem;
  }
  .nfreu-app-spec-row {
    font-size: 0.75rem;
  }
  .nfreu-app-spec-val code {
    font-size: 0.68rem;
    word-break: break-all;
    white-space: normal;
  }
}

/* View All Buttons - Desktop vs Mobile */
.nfreu-view-all-mobile {
  display: none !important;
}

@media (max-width: 767px) {
  .nfreu-view-all-desktop {
    display: none !important;
  }
  .nfreu-view-all-mobile {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .nfreu-app-item {
    padding: 1rem;
  }
  .nfreu-app-info-col {
    padding: 1rem !important;
    gap: 1.25rem;
  }
  .nfreu-app-logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }
  .nfreu-app-logo-placeholder {
    font-size: 1.35rem;
    border-radius: 12px;
  }
  .nfreu-app-title {
    font-size: 1.15rem;
  }
  .nfreu-app-stats-strip {
    gap: 0.15rem;
  }
  .nfreu-app-stat-value {
    font-size: 0.8rem;
  }
  .nfreu-app-stat-label {
    font-size: 0.55rem;
    flex-direction: column;
    gap: 2px;
  }
  .nfreu-app-download-btn {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  .nfreu-app-download-btn div span {
    font-size: 0.65rem;
  }
  .nfreu-app-specs-table {
    padding: 0.75rem;
    gap: 0.4rem;
  }
  .nfreu-app-spec-row {
    font-size: 0.7rem;
  }
  .nfreu-app-screenshot-slide {
    flex: 0 0 130px;
    height: 220px;
  }
  .nfreu-app-screenshot-slide-placeholder {
    flex: 0 0 130px;
    height: 220px;
  }
  .nfreu-mock-card {
    height: 40px;
  }
}