/* ============================================================
   SIFI GHRIEB — PRIME MINISTER OF ALGERIA
   Premium Executive Leadership Design System
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Core Palette */
  --emerald:        #0B6B3A;
  --emerald-deep:   #064D29;
  --emerald-light:  #0E8A4C;
  --sand:           #D4C5A9;
  --sand-light:     #E8DEC8;
  --sand-pale:      #F5F1E8;
  --bronze:         #B8860B;
  --bronze-light:   #D4A017;
  --gold:           #C9A84C;
  --gold-soft:      #E2C97D;
  --charcoal:       #1E1E1E;
  --charcoal-light: #2D2D2D;
  --midnight:       #0A1628;
  --navy:           #132744;
  --white:          #FFFFFF;
  --off-white:      #FAFAF7;
  --cream:          #F7F4ED;
  --grey-100:       #F4F4F4;
  --grey-200:       #E5E5E5;
  --grey-300:       #CCCCCC;
  --grey-500:       #777777;
  --grey-700:       #444444;
  --red-error:      #C0392B;

  /* Typography */
  --font-display:   'Cinzel', serif;
  --font-editorial: 'Playfair Display', serif;
  --font-body:      'Inter', sans-serif;
  --font-ui:        'Manrope', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.18);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.15);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-base: 0.35s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-out);

  /* Layout */
  --max-width: 1320px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--off-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: var(--font-body); }

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: var(--space-3xl) 0;
}

.section-padding-sm {
  padding: var(--space-xl) 0;
}

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }

/* ---------- Typography ---------- */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}

.heading-md {
  font-family: var(--font-editorial);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--charcoal);
}

.heading-sm {
  font-family: var(--font-editorial);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--charcoal);
}

.subheading {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--grey-700);
}

.body-md {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--grey-700);
}

/* ---------- Section Decorators ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--bronze);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header .heading-lg {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--bronze), var(--gold-soft));
  margin: 1.5rem 0;
}

.gold-divider-center {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--bronze), var(--gold-soft));
  margin: 1.5rem auto;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
}

.header-logo .logo-sub {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-top: -2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--midnight);
  z-index: 999;
  padding: 100px 2rem 2rem;
  transition: right var(--transition-slow);
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-nav-overlay.visible {
  opacity: 1;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--gold);
  padding-left: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--midnight);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid rgba(201,168,76,0.15);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer-brand .footer-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--midnight);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-contact-info {
  text-align: right;
}

.footer-contact-info p {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.25rem;
}

.footer-contact-info a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-fast);
}

.footer-contact-info a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
}

.footer-credit {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.footer-credit a {
  color: var(--gold);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-credit a:hover {
  color: var(--gold-soft);
}

.footer-right-info {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.footer-right-info a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

.footer-right-info a:hover {
  color: var(--gold);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3xl) 0 var(--space-xl);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.page-hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,0.3) 0%,
    rgba(10,22,40,0.6) 50%,
    rgba(10,22,40,0.92) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.page-hero-content .subheading {
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-hero-content .heading-xl {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero-content .body-lg {
  color: rgba(255,255,255,0.75);
  max-width: 650px;
}

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.premium-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition-base);
}

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

.premium-card .card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.premium-card .card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.premium-card h3 {
  font-family: var(--font-editorial);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.premium-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--grey-500);
}

/* Dark Card Variant */
.premium-card-dark {
  background: var(--midnight);
  border: 1px solid rgba(201,168,76,0.1);
}

.premium-card-dark:hover {
  border-color: rgba(201,168,76,0.25);
}

.premium-card-dark h3 { color: var(--white); }
.premium-card-dark p { color: rgba(255,255,255,0.6); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald));
  box-shadow: 0 6px 25px rgba(11,107,58,0.25);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--bronze), var(--gold));
  color: var(--midnight);
}

.btn-gold:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--bronze);
  color: var(--bronze);
  background: transparent;
}

.btn-outline:hover {
  background: var(--bronze);
  color: var(--white);
}

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

.btn-white-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* ============================================================
   COUNTERS / STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--emerald);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--gold);
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey-500);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   QUOTE BANNER
   ============================================================ */
.quote-banner {
  background: var(--midnight);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.quote-banner::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 5%;
  font-family: var(--font-editorial);
  font-size: 18rem;
  color: rgba(201,168,76,0.04);
  line-height: 1;
}

.quote-text {
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-attribution {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  margin-top: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.grid-asymmetric-reverse {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.40s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.48s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.56s; }
.stagger-children .reveal:nth-child(9) { transition-delay: 0.64s; }
.stagger-children .reveal:nth-child(10) { transition-delay: 0.72s; }
.stagger-children .reveal:nth-child(11) { transition-delay: 0.80s; }
.stagger-children .reveal:nth-child(12) { transition-delay: 0.88s; }
.stagger-children .reveal:nth-child(13) { transition-delay: 0.96s; }
.stagger-children .reveal:nth-child(14) { transition-delay: 1.04s; }
.stagger-children .reveal:nth-child(15) { transition-delay: 1.12s; }
.stagger-children .reveal:nth-child(16) { transition-delay: 1.20s; }
.stagger-children .reveal:nth-child(17) { transition-delay: 1.28s; }
.stagger-children .reveal:nth-child(18) { transition-delay: 1.36s; }
.stagger-children .reveal:nth-child(19) { transition-delay: 1.44s; }
.stagger-children .reveal:nth-child(20) { transition-delay: 1.52s; }

/* ============================================================
   GALLERY
   ============================================================ */
.masonry-grid {
  columns: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
  object-fit: cover;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.masonry-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--charcoal);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(11,107,58,0.08);
}

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

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--emerald), var(--gold));
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 2rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold);
  z-index: 2;
}

.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  width: 100%;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.7;
}

/* ============================================================
   NEWS / ARTICLES
   ============================================================ */
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition-base);
}

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

.news-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

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

.news-card-body {
  padding: 1.5rem;
}

.news-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.news-card-body h3 {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card-body p {
  font-size: 0.88rem;
  color: var(--grey-500);
  line-height: 1.6;
}

/* ============================================================
   PASSWORD GATE
   ============================================================ */
.gate-page {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow: hidden;
}

.gate-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.gate-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.gate-bg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(6,77,41,0.7) 100%);
}

.gate-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.gate-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-emblem svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.gate-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.gate-subheading {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.gate-input-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.gate-input-wrap input {
  width: 100%;
  padding: 1rem 3.2rem 1rem 1.2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  transition: all var(--transition-fast);
}

.gate-input-wrap input::placeholder {
  color: rgba(255,255,255,0.35);
}

.gate-input-wrap input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.gate-input-wrap .toggle-pw {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 1.1rem;
}

.gate-submit {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.gate-submit:hover {
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald));
  box-shadow: 0 6px 25px rgba(11,107,58,0.3);
  transform: translateY(-2px);
}

.gate-error {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--red-error);
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: all var(--transition-fast);
}

.gate-error.show {
  opacity: 1;
  transform: translateY(0);
}

.gate-input-wrap input.error-shake {
  animation: shake 0.4s ease-in-out;
  border-color: var(--red-error);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* Gate success transition */
.gate-page.unlocking {
  animation: gateUnlock 0.8s var(--ease-out) forwards;
}

@keyframes gateUnlock {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); pointer-events: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-asymmetric,
  .grid-asymmetric-reverse { grid-template-columns: 1fr; }
  .masonry-grid { columns: 2; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .header-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .page-hero { min-height: 55vh; }

  .section-padding { padding: var(--space-xl) 0; }

  .timeline::before { left: 20px; }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-right: 0;
    padding-left: 3rem;
  }
  .timeline-dot { left: 20px; }

  .masonry-grid { columns: 1; }

  .footer-main { flex-direction: column; text-align: center; }
  .footer-contact-info { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .gate-panel { margin: 1rem; padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .container { padding: 0 1.25rem; }
  .page-hero-content { padding: 0 1.25rem; }
}
