/*
Theme Name: NFREU - NF Railway Employees Union
Theme URI: https://nfreu.org.in
Author: NFREU Web Team
Author URI: https://nfreu.org.in
Description: Official theme for N.F. Railway Employees Union website. Features dark navy blue and red color scheme, fully compatible with Elementor Free page builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nfreu
Tags: elementor, union, government, railway, india, blog, two-columns, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready

== Color Palette ==
Primary (Dark Navy Blue): #003366
Secondary (Light Blue): #E8F0F7
Accent (Red): #DC143C
Background: #FFFFFF
Text: #001A33

== Typography ==
Font: Outfit (Google Fonts)
Weights: 300, 400, 500, 600, 700, 800
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --primary:    #003366;
  --secondary:  #E8F0F7;
  --accent:     #DC143C;
  --bg:         #ffffff;
  --text:       #001A33;
  --muted:      #6B7A8D;
  --border:     #D1DCE8;
  --radius:     8px;
  --font-main:  'Outfit', sans-serif;
  --container:  1280px;
  --shadow-sm:  0 1px 3px rgba(0,51,102,0.08);
  --shadow-md:  0 4px 16px rgba(0,51,102,0.12);
  --shadow-lg:  0 8px 32px rgba(0,51,102,0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== LAYOUT ===== */
.container, .container-max-width {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container, .container-max-width {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container, .container-max-width {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-spacing {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .section-spacing {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* ===== UTILITY BAR ===== */
.nfreu-utility-bar {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 0;
}

.nfreu-utility-bar a {
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}

.nfreu-utility-bar a:hover {
  color: var(--accent);
}

.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.utility-bar-tagline {
  opacity: 0.9;
  letter-spacing: 0.05em;
  font-style: italic;
}

.utility-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.utility-contact-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
}

.utility-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.utility-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}

.utility-social-links a:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== HEADER ===== */
.nfreu-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

@media (min-width: 1024px) {
  .nfreu-header-inner {
    height: 90px;
  }
}

/* Logo */
.nfreu-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nfreu-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nfreu-logo-text .site-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.nfreu-logo-text .site-tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Desktop Nav */
.nfreu-main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .nfreu-main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
}

.nfreu-main-nav li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}

.nfreu-main-nav li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s;
  border-radius: 2px;
}

.nfreu-main-nav li a:hover,
.nfreu-main-nav li.current-menu-item a {
  color: var(--accent);
}

.nfreu-main-nav li a:hover::after,
.nfreu-main-nav li.current-menu-item a::after {
  width: 70%;
}

/* Mobile Menu Toggle */
.nfreu-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
  border-radius: 6px;
  transition: background 0.2s;
}

.nfreu-mobile-toggle:hover {
  background: var(--secondary);
}

@media (min-width: 1024px) {
  .nfreu-mobile-toggle {
    display: none;
  }
}

/* Mobile Menu */
.nfreu-mobile-menu {
  display: none;
  background: var(--primary);
  padding: 1rem 0;
}

.nfreu-mobile-menu.is-open {
  display: block;
}

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

.nfreu-mobile-menu ul li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s;
}

.nfreu-mobile-menu ul li a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--accent);
  padding-left: 2rem;
}

/* ===== TICKER STRIP ===== */
.nfreu-ticker {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 600;
}

.nfreu-ticker-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticker-label {
  background: #fff;
  color: var(--accent);
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-scroll-wrapper {
  overflow: hidden;
  flex: 1;
}

.ticker-scroll {
  display: flex;
  gap: 3rem;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-scroll:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HERO SECTION ===== */
.nfreu-hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 420px;
}

@media (min-width: 1024px) {
  .nfreu-hero {
    grid-template-columns: 1fr 1.2fr 1fr;
    min-height: 500px;
  }
}

.hero-left {
  background: var(--primary);
  color: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-left p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  align-self: flex-start;
}

.hero-cta:hover {
  background: #b01030;
  color: #fff;
  transform: translateY(-1px);
}

.hero-center {
  position: relative;
  min-height: 300px;
}

.hero-center img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-right {
  background: #F5F5F5;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.quick-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-links-list li a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.quick-links-list li a:hover {
  background: rgba(0,0,0,0.05);
  color: var(--primary);
  transform: translateX(3px);
}

.quick-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1rem;
}

/* ===== STATISTICS CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--secondary);
  border-radius: 12px;
  margin: 0 auto 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== CARDS (General) ===== */
.modern-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
  overflow: hidden;
}

.modern-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ===== NEWS CARDS ===== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.news-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.news-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-category {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  line-height: 1.4;
  flex: 1;
}

.news-card-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.news-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.read-more-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

.read-more-link:hover {
  gap: 0.6rem;
  color: var(--accent);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header .section-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ===== FEATURE CARDS (Latest Circulars, Achievements, Events) ===== */
.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .feature-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-card-icon.primary-bg {
  background: var(--secondary);
  color: var(--primary);
}

.feature-card-icon.accent-bg {
  background: rgba(220,20,60,0.1);
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #fff !important;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #002244;
  border-color: #002244;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--primary) !important;
  padding: 0.7rem 1.65rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff !important;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-accent:hover {
  background: #b01030;
  border-color: #b01030;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,51,102,0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

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

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

.gallery-item-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

/* ===== PAGE HERO / BANNER ===== */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600294800211-95832a6df337');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ===== ABOUT PAGE ===== */
.about-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .about-section-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-section-grid img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.icon-label-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.icon-box.primary { background: var(--secondary); color: var(--primary); }
.icon-box.accent { background: rgba(220,20,60,0.1); color: var(--accent); }

/* Core Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 10px;
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

/* Org Structure */
.org-item {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.org-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.org-item p {
  font-size: 0.875rem;
  margin: 0;
}

/* ===== CIRCULARS / DOCUMENTS PAGE ===== */
.circulars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .circulars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.circular-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.circular-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.circular-icon {
  width: 44px;
  height: 44px;
  background: var(--secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.circular-info {
  flex: 1;
}

.circular-category {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

.circular-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.circular-info p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.circular-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.2s;
  font-size: 1rem;
}

.circular-download:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.achievement-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.achievement-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.achievement-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.achievement-card-body {
  padding: 1.25rem 1.5rem;
}

.achievement-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.achievement-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-card:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-info-text p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  white-space: pre-line;
  line-height: 1.6;
}

/* Contact Form */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,51,102,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== FOOTER ===== */
.nfreu-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand .footer-logo img {
  height: 50px;
  width: auto;
}

.footer-brand .footer-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.footer-links li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ===== IMPORTANT LINKS ===== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.link-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  text-decoration: none;
}

.link-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.link-card-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.link-card span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== PAGINATION ===== */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.page-btn:hover,
.page-btn.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== EVENTS WIDGET ===== */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.event-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.event-date-box {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  text-align: center;
  min-width: 52px;
  flex-shrink: 0;
}

.event-date-box .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.event-date-box .month {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.event-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.event-info p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* ===== ELEMENTOR COMPATIBILITY ===== */
.elementor-widget-container {
  font-family: var(--font-main) !important;
}

.elementor-section {
  font-family: var(--font-main) !important;
}

/* ===== WORDPRESS CORE ===== */
.wp-block-image img {
  border-radius: var(--radius);
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

/* ===== SCREEN READER TEXT ===== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  font-size: 1.1rem;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .utility-bar-tagline { display: none; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}
