/* ============================================================
   FederNetwork – style.css
   Main stylesheet for the FederNetwork institutional website
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ------------------------------------------------------------ */
:root {
  --primary:        #1a3a6b;   /* institutional blue */
  --secondary:      #0077cc;   /* azure */
  --accent:         #f0a500;   /* orange / gold */
  --bg:             #f5f7fa;
  --text:           #222;
  --white:          #fff;
  --gray-100:       #f0f2f5;
  --gray-300:       #d1d5db;
  --gray-500:       #6b7280;
  --gray-700:       #374151;
  --footer-bg:      #0d2244;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.10);
  --shadow-md:      0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.16);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --transition:     0.3s ease;
  --max-width:      1200px;
  --navbar-height:  70px;
}

/* ------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}

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

img, svg { display: block; max-width: 100%; }

ul { list-style: none; }

/* ------------------------------------------------------------
   3. Scroll Progress Bar
   ------------------------------------------------------------ */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ------------------------------------------------------------
   4. Navbar – Sticky with Glassmorphism
   ------------------------------------------------------------ */
.navbar {
  position: sticky;
  top: 4px; /* sit just below progress bar */
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.4);
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-logo img,
.navbar-logo svg {
  height: 42px;
  width: auto;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .875rem;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: .3px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--secondary);
  background: rgba(0, 119, 204, 0.07);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover { background: var(--gray-100); }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .9375rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: .3px;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  box-shadow: 0 4px 14px rgba(0,119,204,.35);
}

.btn-primary:hover {
  background: #005fa3;
  border-color: #005fa3;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0,119,204,.50);
  transform: translateY(-2px);
}

/* Pulse glow animation on primary CTA */
.btn-primary:focus,
.btn-primary.pulse {
  animation: pulse-glow 1.8s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(0,119,204,.35); }
  50%       { box-shadow: 0 4px 28px rgba(0,119,204,.65); }
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  color:var(--primary);border-color:var(--primary);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(240,165,0,.30);
}

.btn-accent:hover {
  background: #d99200;
  border-color: #d99200;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: .8125rem;
  padding: 8px 18px;
}

/* ------------------------------------------------------------
   6. Section Utilities
   ------------------------------------------------------------ */
.section {
  padding: 88px 24px;
}

.section-alt {
  background: var(--white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}

.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(0,119,204,.08);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray-500);
  font-size: 1.0625rem;
}

/* Divider accent */
.section-divider {
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ------------------------------------------------------------
   7. Hero Section
   ------------------------------------------------------------ */
.hero {
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, #0d2244 0%, #1a3a6b 40%, #0077cc 80%, #004e99 100%);
  background-size: 300% 300%;
  animation: hero-gradient 12s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes hero-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Decorative circles in hero */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .12;
}

.hero::before {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -150px;
}

.hero::after {
  width: 400px; height: 400px;
  background: var(--secondary);
  bottom: -120px; left: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid rgba(240,165,0,.4);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,.82);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #0d2244 0%, #1a3a6b 60%, #0077cc 100%);
  padding: 80px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.125rem;
}

/* ------------------------------------------------------------
   8. Cards
   ------------------------------------------------------------ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,.05);
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,119,204,.12), rgba(26,58,107,.08));
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.card p {
  color: var(--gray-500);
  font-size: .9375rem;
  line-height: 1.65;
}

/* News cards */
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.05);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.news-card-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 24px 24px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.news-date {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: .5px;
}

.news-category {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--accent);
  color: var(--primary);
}

.news-card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
  color: var(--primary);
  line-height: 1.4;
}

.news-card-body p {
  color: var(--gray-500);
  font-size: .9rem;
  flex: 1;
  margin-bottom: 18px;
}

.news-read-more {
  font-family: 'Montserrat', sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition), color var(--transition);
}

.news-read-more:hover {
  color: var(--accent);
  gap: 10px;
}

/* Person cards */
.person-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.05);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.person-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.person-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.person-role {
  font-size: .875rem;
  color: var(--secondary);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 12px;
}

.person-card p {
  font-size: .875rem;
  color: var(--gray-500);
}

/* Value cards */
.value-card {
  background: linear-gradient(135deg, var(--primary), #1e4a87);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-md);
}

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

.value-card .card-icon {
  background: rgba(255,255,255,.12);
  margin: 0 auto 22px;
}

.value-card .card-icon svg { color: var(--white); }

.value-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.value-card p {
  color: rgba(255,255,255,.78);
  font-size: .9375rem;
}

/* ------------------------------------------------------------
   9. Grids
   ------------------------------------------------------------ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ------------------------------------------------------------
   10. About / Chi Siamo section on homepage
   ------------------------------------------------------------ */
.about-section {
  padding: 88px 24px;
}

.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.about-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray-500);
  font-size: 1.0625rem;
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-visual {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

.about-visual h3 {
  color: var(--white);
  font-size: 1.375rem;
  margin-bottom: 24px;
  text-align: center;
}

/* ------------------------------------------------------------
   11. History (Chi Siamo page)
   ------------------------------------------------------------ */
.history-section {
  padding: 88px 24px;
  background: var(--white);
}

.history-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.history-text p {
  color: var(--gray-500);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), var(--accent));
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding: 0 0 28px 52px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--secondary);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,119,204,.25);
}

.timeline-item:last-child .timeline-dot { background: var(--accent); }

.timeline-year {
  font-family: 'Montserrat', sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--secondary);
  display: block;
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--gray-500);
  font-size: .9375rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   12. Contact Page
   ------------------------------------------------------------ */
.contact-section {
  padding: 88px 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-form h2 {
  font-size: 1.75rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .875rem;
  color: var(--primary);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0,119,204,.12);
  background: var(--white);
}

.form-group textarea {
  min-height: 150px;
}

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

/* Contact Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary);
}

.contact-info-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 18px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,119,204,.08);
  border-radius: var(--radius-sm);
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
  color: var(--secondary);
}

.contact-info-text {
  font-size: .9375rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.contact-info-text strong {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
  font-size: .875rem;
}

/* Map Placeholder */
.map-placeholder {
  background: linear-gradient(135deg, var(--gray-100), var(--gray-300));
  border-radius: var(--radius-md);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--gray-500);
  font-size: .9rem;
  border: 2px dashed var(--gray-300);
  text-align: center;
  padding: 20px;
}

.map-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--secondary);
  margin-bottom: 6px;
}

/* ------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.72);
  padding: 64px 24px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-logo {
  height: 44px;
  width: 250px;
  margin-bottom: 18px;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: .9;
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 300px;
  color: rgba(255,255,255,.6);
}

.footer-social {
  display: none;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  color: rgba(255,255,255,.7);
}

.social-btn:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  color: var(--white);
}

.social-btn svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color var(--transition), padding-left var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--accent);
  font-size: 1rem;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--white); }

/* ------------------------------------------------------------
   14. Animations
   ------------------------------------------------------------ */

/* Fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Slide from left */
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Slide from right */
@keyframes slideRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Elements animate on scroll with a subtle slide-up (no opacity hiding –
   content is always visible, ensuring no blank sections). */
@keyframes slideUp {
  from { transform: translateY(24px); }
  to   { transform: translateY(0); }
}

.animate-on-scroll.animated {
  animation: slideUp 0.55s ease both;
}

/* Stagger delays for grid children (animation-delay set by JS, these are fallbacks) */
.animate-on-scroll:nth-child(2) { animation-delay: .10s; }
.animate-on-scroll:nth-child(3) { animation-delay: .20s; }
.animate-on-scroll:nth-child(4) { animation-delay: .30s; }
.animate-on-scroll:nth-child(5) { animation-delay: .40s; }
.animate-on-scroll:nth-child(6) { animation-delay: .50s; }

/* Hero animation on load */
.hero-content {
  animation: fadeIn .9s ease both;
}

/* ------------------------------------------------------------
   15. Utility Classes
   ------------------------------------------------------------ */
.text-center  { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent  { color: var(--accent); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* Highlight text */
.highlight {
  color: var(--secondary);
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 3px;
  background: var(--accent);
  border-radius: 1px;
}

/* Tag badge */
.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0,119,204,.1);
  color: var(--secondary);
  letter-spacing: .3px;
}

/* ------------------------------------------------------------
   16. Responsive Breakpoints
   ------------------------------------------------------------ */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .about-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .history-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile: ≤ 640px */
@media (max-width: 640px) {
  :root {
    --navbar-height: 60px;
  }

  .section { padding: 64px 20px; }
  .about-section { padding: 64px 20px; }
  .contact-section { padding: 64px 20px; }
  .history-section { padding: 64px 20px; }

  /* Show hamburger, hide nav links */
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 13px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-menu a::after { display: none; }

  /* Grids collapse to 1 column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  .stat-grid { grid-template-columns: 1fr 1fr; }

  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .page-hero { padding: 60px 20px 50px; }
}

/* ------------------------------------------------------------
   17. Footer Affiliations (CIU badge)
   ------------------------------------------------------------ */
.footer-affiliations {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-affiliations--inline {
  border-top: none;
  padding: 0;
  margin-top: 20px;
}

.footer-affiliations-label {
  color: rgba(255,255,255,.45);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}

.ciu-badge {
  display: flex;
  align-items: center;
  gap: .875rem;
  text-decoration: none;
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  line-height: 1.45;
  transition: color .2s, opacity .2s;
}

.ciu-badge:hover,
.ciu-badge:focus-visible {
  color: #ffffff;
  opacity: .9;
}

.ciu-badge-logo {
  flex-shrink: 0;
}

.ciu-badge-logo svg {
  width: 58px;
  height: 36px;
  border-radius: 4px;
}

.ciu-badge-text strong {
  font-weight: 500;
  font-size: .82rem;
}

/* ------------------------------------------------------------
   18. Section images
   ------------------------------------------------------------ */
.section-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-md);
}

.section-img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.section-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.section-img-wrapper:hover img {
  transform: scale(1.03);
}

.img-banner {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: block;
  margin: -28px -28px 20px;
  width: calc(100% + 56px);
}

@media (max-width: 640px) {
  .footer-affiliations { padding: 1.25rem 1rem; }
}

/* ============================================================
   NOTIFICATION SYSTEM (Contact Form)
   ============================================================ */

.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.notification {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-300);
}

.notification-header strong {
  font-size: 1rem;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color var(--transition);
}

.notification-close:hover {
  background-color: var(--gray-100);
}

.notification-body {
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* Success notification */
.notification-success {
  border-left: 4px solid #10b981;
}

.notification-success .notification-header {
  background-color: #ecfdf5;
  border-left: 4px solid #10b981;
}

.notification-success strong {
  color: #059669;
}

/* Error notification */
.notification-error {
  border-left: 4px solid #ef4444;
}

.notification-error .notification-header {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
}

.notification-error strong {
  color: #dc2626;
}

/* Info notification */
.notification-info {
  border-left: 4px solid #3b82f6;
}

.notification-info .notification-header {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
}

.notification-info strong {
  color: #1d4ed8;
}

@media (max-width: 640px) {
  .notification {
    max-width: calc(100% - 40px);
  }
}

