/* ========================================
   DESIGN SYSTEM - Viatorians International
   UPDATED: RED BUTTONS (#C0392B), Gold Accents
   ======================================== */

:root {
  /* Primary palette */
  --primary: #1B3A5C;
  --primary-light: #2A5A8C;
  --primary-dark: #0F2440;

  /* Button - RED (not gold) */
  --btn: #C0392B;
  --btn-hover: #E74C3C;

  /* Decorative accents - Gold/Yellow */
  --accent: #C8923C;
  --accent-light: #E8B86A;
  --accent-dark: #A0742E;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8F6F3;
  --cream: #F0EDE8;
  --gray-100: #E8E5E0;
  --gray-200: #D0CDC8;
  --gray-400: #9A9590;
  --gray-600: #6B6560;
  --gray-800: #3D3835;
  --dark: #1A1715;

  /* Semantic */
  --success: #4A8C6A;
  --text: #2D2926;
  --text-light: #6B6560;
  --text-inverse: #FFFFFF;

  /* Spacing */
  --section-padding: 100px;
  --container-width: 1200px;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(27,58,92,0.08);
  --shadow-md: 0 8px 30px rgba(27,58,92,0.12);
  --shadow-lg: 0 20px 60px rgba(27,58,92,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Page transition effects */
.page-content {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.page-content.fade-out {
  opacity: 0;
  display: none;
}

/* ========================================
   TOPBAR - Language & Utility
   ======================================== */
.topbar {
  background: var(--primary-dark);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
}

.lang-switcher a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
}

.lang-switcher a:hover { color: white; background: rgba(255,255,255,0.1); }
.lang-switcher a.active { color: white; background: var(--accent); }

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
  background: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 22px;
  font-family: var(--font-body);
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .name {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text .tagline {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

nav ul li { position: relative; }

nav ul li a {
  text-decoration: none;
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

nav ul li a:hover {
  color: var(--primary);
  background: var(--cream);
}

nav ul li a .arrow {
  font-size: 10px;
  opacity: 0.4;
  transition: var(--transition);
}

nav ul li:hover a .arrow { opacity: 1; transform: rotate(180deg); }

nav ul li .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

nav ul li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav ul li .dropdown a {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
  color: var(--gray-600);
  display: block;
}

nav ul li .dropdown a:hover {
  background: var(--cream);
  color: var(--primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1920&q=80') center/cover;
  opacity: 0.15;
  mix-blend-mode: luminosity;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23FFFFFF' d='M0,80 C360,120 720,40 1440,80 L1440,120 L0,120 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 146, 60, 0.2);
  border: 1px solid rgba(200, 146, 60, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 72px);
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .accent {
  color: var(--accent-light);
  font-style: italic;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.8);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--btn);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.4);
}

.btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(192, 57, 43, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--btn);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.4);
}

.btn-secondary:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
}

/* Stats bar */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-number {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
}

.hero-stats .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ========================================
   SECTION STYLES (reusable)
   ======================================== */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
  opacity: 0.4;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb .separator { color: var(--gray-400); }

/* Page title with accent */
.page-title-section {
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  padding-bottom: 30px;
}

.page-title-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--primary);
  margin-bottom: 20px;
}

.page-title-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.page-content-area {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.page-content-area h2 {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
  margin-top: 30px;
}

.page-content-area h2:first-child { margin-top: 0; }

.page-content-area h3 {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 24px;
}

.page-content-area p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content-area ul,
.page-content-area ol {
  margin-left: 24px;
  margin-bottom: 20px;
}

.page-content-area li {
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-content-area a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.page-content-area a:hover { color: var(--primary); }

/* ========================================
   COMMUNIQUES / ANNOUNCEMENTS
   ======================================== */
.communiques {
  background: var(--off-white);
}

.communiques-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.communique-featured {
  grid-row: 1 / 3;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.communique-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.communique-featured .thumb {
  height: 300px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.communique-featured .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1445019980597-93fa8acb246c?w=800&q=80') center/cover;
  opacity: 0.3;
}

.communique-featured .thumb .date-badge {
  position: relative;
  z-index: 2;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
}

.communique-featured .content {
  padding: 30px;
}

.communique-featured .content h3 {
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.communique-featured .content p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.communique-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  align-items: flex-start;
}

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

.communique-card .date {
  min-width: 60px;
  text-align: center;
  background: var(--cream);
  padding: 12px 8px;
  border-radius: 10px;
}

.communique-card .date .month {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}

.communique-card .date .day {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

.communique-card .info h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
  font-weight: 600;
}

.communique-card .info p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.link-arrow:hover { gap: 12px; color: var(--accent-dark); }

/* ========================================
   PROVINCES / MAP
   ======================================== */
.provinces {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.provinces::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,146,60,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.provinces-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.province-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.province-card:hover {
  border-color: var(--accent);
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.province-card .flag {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 20px;
  transition: var(--transition);
}

.province-card:hover .flag {
  background: var(--accent);
  transform: scale(1.1);
}

.province-card h4 {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.province-card .url {
  font-size: 12px;
  color: var(--gray-400);
}

/* ========================================
   ACTUALITES / NEWS GRID
   ======================================== */
.actualites {
  background: var(--off-white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.news-card .image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.news-card .image .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}

.news-card .image .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-card .body {
  padding: 24px;
}

.news-card .meta {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.news-card .body h3 {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-card .body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ========================================
   LEADERSHIP / COUNCIL
   ======================================== */
.leadership {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.leadership::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}

.leadership .section-label { color: var(--accent-light); }
.leadership .section-label::before,
.leadership .section-label::after { background: var(--accent-light); }
.leadership .section-title { color: var(--white); }
.leadership .section-subtitle { color: rgba(255,255,255,0.7); }

.council-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.council-member {
  text-align: center;
  transition: var(--transition);
}

.council-member:hover { transform: translateY(-6px); }

.council-member .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  border: 3px solid rgba(255,255,255,0.15);
  transition: var(--transition);
}

.council-member:hover .avatar {
  border-color: var(--accent-light);
  box-shadow: 0 0 30px rgba(200,146,60,0.3);
}

.council-member .name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.council-member .role {
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 500;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  background: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h3 {
  font-family: var(--font-body);
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail .icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail .text {
  font-size: 15px;
  color: var(--gray-600);
}

.contact-detail .text strong {
  display: block;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-100);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200,146,60,0.1);
}

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

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

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--btn);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-submit:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 57, 43, 0.35);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text .name { color: white; }
.footer-brand .logo-text .tagline { color: rgba(255,255,255,0.4); }

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  max-width: 300px;
}

.footer h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
}

.footer ul li { margin-bottom: 10px; }

.footer ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

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

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .provinces-grid { grid-template-columns: repeat(3, 1fr); }
  .council-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px; }

  .header .container { height: 64px; }
  nav { display: none; }

  .hero { min-height: 70vh; }
  .hero-stats { gap: 30px; flex-wrap: wrap; }
  .hero-stats .stat-number { font-size: 28px; }

  .communiques-grid { grid-template-columns: 1fr; }
  .communique-featured { grid-row: auto; }
  .provinces-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .council-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Translation pending badge */
.translation-pending {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #FFC107;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #F57F17;
  font-style: italic;
}

/* ========================================
   WORDPRESS CHILD THEME COMPATIBILITY
   Aliases for v-prefixed classes used in
   header.php, footer.php, functions.php
   ======================================== */

/* Container alias */
.v-container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

/* Topbar alias */
.v-topbar { background: var(--primary-dark); padding: 8px 0; font-size: 13px; color: rgba(255,255,255,0.7); }
.v-topbar .v-container { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }

/* Language switcher */
.v-lang-switcher { display: flex; gap: 4px; }
.v-lang-switcher a { color: rgba(255,255,255,0.5); text-decoration: none; padding: 4px 10px; border-radius: 4px; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition); }
.v-lang-switcher a:hover { color: white; background: rgba(255,255,255,0.1); }
.v-lang-switcher .trp-language-dropdown,
.v-lang-switcher .trp-switcher-container { color: var(--white); }

/* Header alias */
.v-header { background: var(--white); padding: 0; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
.v-header .v-container { display: flex; align-items: center; justify-content: space-between; height: 80px; width: 100%; }
.admin-bar .v-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .v-header { top: 46px; } }

/* Logo aliases */
.v-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; cursor: pointer; transition: transform 0.3s ease; }
.v-logo:hover { transform: translateY(-2px); }
.v-logo-icon { width: 50px; height: 50px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent-light); font-size: 22px; font-family: var(--font-body); font-weight: 700; flex-shrink: 0; }
.v-logo-text { display: flex; flex-direction: column; }
.v-logo-name { font-family: var(--font-body); font-size: 20px; font-weight: 700; color: var(--primary); line-height: 1.2; display: block; }
.v-logo-tagline { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 2px; font-weight: 500; display: block; }

/* Nav aliases */
.v-nav { display: flex; align-items: center; }
.v-nav-list { display: flex; list-style: none; gap: 8px; margin: 0; padding: 0; }
.v-nav-list > li { position: relative; }
.v-nav-list > li > a { text-decoration: none; color: var(--gray-800); font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 8px; transition: var(--transition); display: flex; align-items: center; gap: 4px; }
.v-nav-list > li > a:hover { color: var(--primary); background: var(--cream); }
.v-nav-list ul { position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 100; list-style: none; margin: 0; }
.v-nav-list li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.v-nav-list ul li a { padding: 10px 16px; font-size: 14px; border-radius: 8px; color: var(--gray-600); display: block; text-decoration: none; }
.v-nav-list ul li a:hover { background: var(--cream); color: var(--primary); }

/* Mobile toggle */
.v-mobile-toggle { display: none; flex-direction: column; gap: 6px; width: 32px; height: 32px; background: none; border: none; padding: 0; cursor: pointer; z-index: 1001; }
.v-mobile-toggle span { width: 100%; height: 3px; background-color: var(--primary); border-radius: 2px; transition: var(--transition); }
@media (max-width: 768px) {
  .v-mobile-toggle { display: flex; }
  .v-nav { position: fixed; top: 80px; right: 0; width: 100%; max-height: calc(100vh - 80px); background: var(--white); flex-direction: column; padding: 24px 0; border-top: 1px solid var(--gray-100); transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; z-index: 999; }
  .v-nav.active { transform: translateX(0); }
  .v-nav-list { flex-direction: column; width: 100%; gap: 0; }
  .v-nav-list > li { width: 100%; border-bottom: 1px solid var(--gray-100); }
  .v-nav-list > li > a { display: block; padding: 16px 24px; border-radius: 0; }
  .v-nav-list ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: var(--off-white); max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .v-nav-list li:hover > ul { max-height: 0; }
  .v-nav-list > li.open > ul { max-height: 500px; }
  .v-header .v-container { height: 64px; }
}

/* Footer aliases */
.v-footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; margin-top: var(--section-padding); }
.v-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.v-footer-brand { display: flex; flex-direction: column; gap: 16px; }
.v-footer-brand .v-logo-icon { background: var(--accent); color: var(--primary); }
.v-footer-brand .v-logo-name { color: white; }
.v-footer-brand .v-logo-tagline { color: rgba(255,255,255,0.4); }
.v-footer-brand p { margin-top: 0; font-size: 14px; line-height: 1.8; max-width: 300px; color: rgba(255,255,255,0.7); margin-bottom: 0; }
.v-footer-column h5 { color: var(--white); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.v-footer-column ul { list-style: none; padding: 0; margin: 0; }
.v-footer-column ul li { margin-bottom: 10px; }
.v-footer-column a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: var(--transition); }
.v-footer-column a:hover { color: var(--accent-light); padding-left: 4px; }
.v-footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }
.v-footer-bottom p { margin: 0; }
@media (max-width: 1024px) { .v-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .v-footer { padding: 40px 0 0; }
  .v-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* WordPress Admin Bar offset */
.admin-bar body { padding-top: 0; }
.admin-bar .v-topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .v-topbar { top: 46px; } }

/* Elementor overrides */
.elementor-widget-html { overflow: hidden; }
.elementor-section { padding: 0; }

/* Print styles */
@media print {
  .v-header, .v-footer, .v-topbar, .header, .footer, .topbar, button, .btn { display: none; }
  body { font-size: 12pt; color: black; }
}


/* ========================================
   PAGE BANNER (non-homepage pages)
   ======================================== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #2A5A8C 100%);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 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%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.page-banner .container {
  position: relative;
  z-index: 1;
}
.page-banner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.page-breadcrumb {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}
.page-breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.page-breadcrumb a:hover {
  color: #fff;
}
.page-breadcrumb .sep {
  margin: 0 8px;
  color: rgba(255,255,255,0.4);
}
.page-breadcrumb .current {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .page-banner { padding: 40px 0 30px; }
  .page-banner-title { font-size: 2rem; }
}

/* ========================================
   HIDE ELEMENTOR DUPLICATE BREADCRUMB
   On non-homepage pages, the first Elementor
   section contains a breadcrumb that duplicates
   the custom .page-banner. Hide it.
   ======================================== */
body:not(.home) .elementor[data-elementor-type="wp-page"] > .elementor-top-section:first-child {
  display: none !important;
}

/* Hide duplicate page title heading in Elementor content
   (the custom .page-banner already shows it) */
body:not(.home) .elementor[data-elementor-type="wp-page"] h1.v-heading {
  display: none !important;
}
body:not(.home) .elementor[data-elementor-type="wp-page"] h1.v-heading + div {
  display: none !important;
}

/* ========================================
   SUBPAGE CONTENT: Narrow reading width
   Centered, max 800px for comfortable reading
   ======================================== */
body:not(.home) .elementor[data-elementor-type="wp-page"] .elementor-widget-html {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 24px 60px;
}

/* Better readability for body text on subpages */
body:not(.home) .v-content,
body:not(.home) .elementor-widget-html .elementor-widget-container {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-600, #4a5568);
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
}

/* Force white-space to create visual paragraph breaks from raw text */
body:not(.home) .v-content {
  white-space: pre-line;
}

/* Subpage section padding */
body:not(.home) .elementor[data-elementor-type="wp-page"] > .elementor-top-section {
  padding: 0 20px;
}

@media (max-width: 768px) {
  body:not(.home) .elementor[data-elementor-type="wp-page"] .elementor-widget-html {
    max-width: 100%;
    padding: 24px 16px 40px;
  }
}

/* Paragraph spacing for auto-paragraphed content */
body:not(.home) .v-content p {
  margin-bottom: 1.4em;
  line-height: 1.85;
}
body:not(.home) .v-content p:last-child {
  margin-bottom: 0;
}
/* Remove white-space pre-line since we now use real <p> tags */
body:not(.home) .v-content {
  white-space: normal;
}

/* ============================================
   LANGUAGE SWITCHER IN HEADER
   ============================================ */

/* Container positioning in header */
.v-lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 20px;
  position: relative;
  flex-shrink: 0;
}

/* Override TranslatePress default wrapper */
.v-lang-switcher .trp-shortcode-switcher__wrapper {
  display: flex;
  align-items: center;
}

/* TranslatePress dropdown container */
.v-lang-switcher .trp-language-switcher {
  border: 1.5px solid rgba(27, 58, 92, 0.2) !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  padding: 0 !important;
  width: auto !important;
  min-width: unset !important;
  position: relative !important;
  font-family: var(--font-body) !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.v-lang-switcher .trp-language-switcher:hover {
  border-color: var(--primary, #1B3A5C) !important;
  background: rgba(27, 58, 92, 0.05) !important;
}

/* Current language display */
.v-lang-switcher .trp-current-language-item__wrapper {
  padding: 6px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
}

/* Language items (both current and dropdown) */
.v-lang-switcher .trp-language-item,
.v-lang-switcher a.trp-language-item {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--primary, #1B3A5C) !important;
  text-decoration: none !important;
  padding: 6px 12px !important;
  display: block !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  background: transparent !important;
}
.v-lang-switcher a.trp-language-item:hover {
  background: rgba(27, 58, 92, 0.06) !important;
  color: var(--btn, #C0392B) !important;
}

/* Active language indicator */
.v-lang-switcher .trp-language-item__current {
  color: var(--primary, #1B3A5C) !important;
  font-weight: 700 !important;
}

/* Dropdown arrow */
.v-lang-switcher .trp-current-language-item__wrapper::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--primary, #1B3A5C);
  margin-left: 6px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

/* Hide TP default arrow/chevron */
.v-lang-switcher .trp-language-switcher svg,
.v-lang-switcher .trp-ls-dropdown svg {
  display: none !important;
}

/* Dropdown list */
.v-lang-switcher .trp-switcher-dropdown-list {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  background: #fff !important;
  border: 1.5px solid rgba(27, 58, 92, 0.15) !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
  margin-top: 4px !important;
  padding: 4px 0 !important;
  min-width: 100% !important;
  z-index: 10000 !important;
  display: none !important;
}
.v-lang-switcher .trp-shortcode-overlay:hover .trp-switcher-dropdown-list,
.v-lang-switcher .trp-language-switcher:hover .trp-switcher-dropdown-list {
  display: block !important;
}

/* TranslatePress renders two switchers: anchor + overlay.
   Hide the anchor, show the overlay (which has the functional dropdown). */
.v-lang-switcher .trp-shortcode-anchor {
  display: none !important;
}
.v-lang-switcher .trp-shortcode-overlay {
  display: block !important;
  visibility: visible !important;
  overflow: visible !important;
  position: relative !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .v-lang-switcher {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
  .v-lang-switcher .trp-language-item,
  .v-lang-switcher a.trp-language-item {
    font-size: 0.75rem !important;
    padding: 5px 10px !important;
  }
  .v-lang-switcher .trp-current-language-item__wrapper {
    padding: 5px 10px !important;
  }
}
