/*
Theme Name: NFREU Portal
Theme URI: https://portal.nfreu.org
Author: NFREU
Description: Official WordPress theme for the National Federation of Railway Employees Union v4. Premium redesign with modern UI, professional header/footer, newsletter, animated counters, single event pages, full admin control.
Version: 4.0.0
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:       #003366;
  --primary-dark:  #001e40;
  --primary-light: #0a4a8c;
  --primary-mid:   #004080;
  --accent:        #dc143c;
  --accent-hover:  #b01030;
  --accent-light:  rgba(220,20,60,.1);
  --white:         #ffffff;
  --off-white:     #f8fafc;
  --gray-50:       #f8fafc;
  --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:          #1a2b4a;
  --text-muted:    #5a6a82;
  --border:        #dde5ee;
  --secondary:     #e8f0f7;
  --ribbon-bg:     #002244;
  --shadow-sm:  0 1px 3px rgba(0,51,102,.08);
  --shadow-md:  0 4px 16px rgba(0,51,102,.12);
  --shadow-lg:  0 8px 32px rgba(0,51,102,.15);
  --shadow-xl:  0 20px 60px rgba(0,51,102,.18);
  --r:    8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --font: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: all .3s cubic-bezier(.4,0,.2,1);
  --header-h: 112px; /* topribbon(34) + navbar(78) */
}

/* ================================================
   RESET
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: #fff; 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-weight: 700; line-height: 1.2; color: var(--primary); letter-spacing: -.02em; }
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  { 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 — TOP RIBBON
   ================================================ */
#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); }

/* Top Ribbon — blue bar, desktop only */
.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); }

/* Hide top ribbon on mobile */
@media(max-width:767px) { .nfreu-topribbon { display: none; } }

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

/* Logo */
.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; }

/* Desktop nav — all items flat */
.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); }

/* Nav actions */
.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); }

/* Hamburger */
.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); }

/* ================================================
   MOBILE DRAWER — Redesigned
   ================================================ */
.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); }

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

/* ================================================
   PAGE HERO BANNER (all inner pages)
   ================================================ */
.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;
  transform: scale(1.05); transition: transform 8s ease;
}
.nfreu-page-hero:hover .nfreu-page-hero-bg { transform: scale(1); }
.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%);
}
/* Glassmorphism pattern overlay */
.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: .5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.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 { min-height: 280px; } }

/* ================================================
   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; }

/* Hero slider */
.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; }

/* Quick Access — right panel */
.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; }

/* Responsive hero */
@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
   ================================================ */
.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; }
.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-hero { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/6; margin-bottom: 2rem; }
.nfreu-event-hero img { width: 100%; height: 100%; object-fit: cover; }
.nfreu-event-meta-bar { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.nfreu-event-meta-tag { display: flex; align-items: center; gap: .4rem; background: var(--secondary); color: var(--primary); padding: .4rem .9rem; border-radius: 100px; font-size: .8rem; font-weight: 600; }
.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 — Redesigned equal-height cards
   ================================================ */
.nfreu-quick-access-section { padding: 4rem 0; background: var(--gray-50); }
.nfreu-quick-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.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; }
.nfreu-gallery-item { position: relative; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 4/3; cursor: pointer; background: var(--gray-100); }
.nfreu-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nfreu-gallery-item:hover img { transform: scale(1.08); }
.nfreu-gallery-overlay { position: absolute; inset: 0; background: rgba(0,20,51,.5); opacity: 0; transition: opacity .3s ease; display: flex; align-items: center; justify-content: center; }
.nfreu-gallery-item:hover .nfreu-gallery-overlay { opacity: 1; }
.nfreu-gallery-zoom { color: #fff; font-size: 1.75rem; }

/* ================================================
   ACHIEVEMENTS
   ================================================ */
.nfreu-achievement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }
.nfreu-achievement-card { padding: 1.75rem; }
.nfreu-achievement-year { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .5rem; }
.nfreu-achievement-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.nfreu-achievement-desc { font-size: .85rem; color: var(--text-muted); }

/* ================================================
   CIRCULARS
   ================================================ */
.nfreu-circulars-list { display: flex; flex-direction: column; gap: .6rem; }
.nfreu-circular-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--border); transition: var(--ease); }
.nfreu-circular-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.nfreu-circular-icon { width: 42px; height: 42px; border-radius: var(--r); background: var(--accent-light); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.nfreu-circular-body { flex: 1; min-width: 0; }
.nfreu-circular-title { font-size: .9rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nfreu-circular-date { font-size: .74rem; color: var(--text-muted); margin-top: .15rem; }
.nfreu-circular-size { font-size: .72rem; color: var(--gray-400); flex-shrink: 0; }

/* ================================================
   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 SECTION
   ================================================ */
.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
   ================================================ */
.nfreu-footer { background: var(--gray-900); color: rgba(255,255,255,.75); }
.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; filter: brightness(0) invert(1); opacity: .9; }
.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,.45); margin-top: .2rem; margin-bottom: 1rem; }
.nfreu-footer-about-text { font-size: .84rem; color: rgba(255,255,255,.6); 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,.1); color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; font-size: .8rem; 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,.1); }
.nfreu-footer-links { display: flex; flex-direction: column; gap: .4rem; }
.nfreu-footer-links a { color: rgba(255,255,255,.6); font-size: .84rem; transition: var(--ease); display: flex; align-items: center; gap: .4rem; }
.nfreu-footer-links a i { font-size: .6rem; 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: 28px; height: 28px; border-radius: var(--r); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: .75rem; flex-shrink: 0; margin-top: .05rem; }
.nfreu-footer-contact-item div a { color: rgba(255,255,255,.6); 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,.6); line-height: 1.5; }
.nfreu-footer-bottom { background: rgba(0,0,0,.3); padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.06); }
.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,.4); }
.nfreu-footer-bottom-links { display: flex; gap: 1.5rem; }
.nfreu-footer-bottom-links a { font-size: .78rem; color: rgba(255,255,255,.45); transition: color .2s; }
.nfreu-footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

@media(max-width:1023px) { .nfreu-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media(max-width:639px) { .nfreu-footer-grid { grid-template-columns: 1fr; } .nfreu-footer-bottom-inner { flex-direction: column; text-align: center; } .nfreu-newsletter-inner { flex-direction: column; } }

/* ================================================
   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); }

/* Staggered children */
.nfreu-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.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; }
.nfreu-mvg-card { padding: 2rem 1.75rem; border-radius: var(--r-lg); border: 2px solid var(--border); background: #fff; transition: var(--ease); }
.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; }

/* Leadership */
.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; }

/* Timeline / Journey */
.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; }
.nfreu-form-msg { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--r); font-size: .88rem; font-weight: 600; display: none; }
.nfreu-form-msg.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; display: block; }
.nfreu-form-msg.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; display: block; }
.nfreu-contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.nfreu-contact-info-icon { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--secondary); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }

/* ================================================
   MISC PAGES
   ================================================ */
.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; }

/* 404 */
.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; }

/* Important Links */
.nfreu-links-cat { margin-bottom: 3rem; }
.nfreu-links-cat-title { font-size: 1rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.nfreu-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1rem; }
.nfreu-link-card { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.1rem; border-radius: var(--r-md); border: 1px solid var(--border); background: #fff; text-decoration: none; color: var(--text); transition: var(--ease); font-size: .88rem; font-weight: 600; }
.nfreu-link-card i { color: var(--primary); font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nfreu-link-card:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); padding-left: 1.3rem; }
.nfreu-link-card .ext-icon { margin-left: auto; font-size: .7rem; color: var(--gray-400); flex-shrink: 0; }

/* ================================================
   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; } }
.nfreu-single-article { min-width: 0; }
.nfreu-single-thumb { border-radius: var(--r-xl); overflow: hidden; margin-bottom: 2rem; }
.nfreu-single-thumb img { width: 100%; max-height: 460px; object-fit: cover; }
.nfreu-article-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.nfreu-article-meta span { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }
.nfreu-article-content { font-size: .96rem; line-height: 1.85; color: var(--text); }
.nfreu-article-content h2,h3,h4 { margin: 1.5rem 0 .75rem; }
.nfreu-article-content p { margin-bottom: 1.1rem; color: var(--text-muted); }
.nfreu-article-content img { border-radius: var(--r-md); margin: 1.5rem 0; }
.nfreu-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.nfreu-sidebar-widget { border-radius: var(--r-lg); border: 1px solid var(--border); padding: 1.5rem; background: #fff; }
.nfreu-sidebar-widget-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 1rem; }

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

/* ================================================
   RESPONSIVE — Tablet
   ================================================ */
@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; }
}

/* ================================================
   CIRCULAR ITEM — featured pinned variant
   ================================================ */
.nfreu-circular-item { position: relative; }
.nfreu-circular-item.featured { border-left: 3px solid var(--accent); }

/* ================================================
   ACHIEVEMENT — featured variant
   ================================================ */
.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; }

/* ================================================
   CONTACT FORM — v4 grid
   ================================================ */
@media(max-width:639px) {
  .nfreu-contact-form-wrap form > div[style*="grid-template-columns:1fr 1fr"] { 
    grid-template-columns: 1fr !important; 
  }
}

/* ================================================
   SINGLE EVENT — responsive sidebar
   ================================================ */
@media(max-width:767px) {
  .nfreu-single-event > .nfreu-container > div[style*="grid-template-columns:1fr 300px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================
   FOOTER NEWSLETTER — mobile
   ================================================ */
@media(max-width:639px) {
  .nfreu-newsletter-field { flex-direction: column; border-radius: var(--r); }
  .nfreu-newsletter-field input { border-radius: var(--r) var(--r) 0 0; }
  .nfreu-newsletter-btn { border-radius: 0 0 var(--r) var(--r); }
}

/* ================================================
   SEARCH overlay — keyboard shortcut hint
   ================================================ */
.nfreu-search-kbd {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gray-100); border: 1px solid var(--gray-300);
  border-radius: 4px; font-size: .65rem; font-weight: 700;
  padding: .1rem .4rem; color: var(--gray-500); font-family: monospace;
  flex-shrink: 0;
}

/* ================================================
   ADMIN JS upload button for media  
   ================================================ */
.nfreu-upload-leader-photo { margin-top: 4px !important; }

/* ================================================
   TIMELINE — left border gradient fix
   ================================================ */
@media(max-width:639px) {
  .nfreu-timeline { padding-left: 1.5rem; }
}

/* ================================================
   PAGE HERO — reduced height on short content pages
   ================================================ */
.nfreu-page-hero.compact { min-height: 180px; }

/* ================================================
   ELEMENTOR FULL WIDTH PAGES
   ================================================ */
body.page-template-elementor_canvas .nfreu-page-hero,
body.page-template-elementor_header-footer .nfreu-page-hero { display: none; }

/* ================================================
   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; }

/* ================================================
   SMOOTH PAGE LOAD
   ================================================ */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageFadeIn .3s ease; }
