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

:root {
  --navy: #0d2137;
  --navy-light: #183352;
  --navy-dark: #091825;
  --blue-accent: #2a6496;
  --teal: #1a8a7d;
  --gold: #c8952e;
  --white: #ffffff;
  --gray-100: #f4f6f8;
  --gray-200: #e2e6ea;
  --gray-300: #c5cbd3;
  --gray-600: #6b7a8d;
  --text: #1e2a38;
  --max-width: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ===== Header / Navbar ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: .75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-200);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  text-decoration: none;
}

.nav-links a.active { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* Language switcher */
.lang-switch {
  color: var(--gold);
  font-size: .85rem;
  font-weight: 700;
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: .2rem .5rem;
  margin-left: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}

.lang-switch:hover {
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid var(--navy-light);
  }

  .nav-links.open { display: flex; }
}

/* ===== Hero Section ===== */
.hero {
  color: var(--white);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--home {
  min-height: calc(100vh - 74px);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(180deg, rgba(9,24,37,.1) 0%, rgba(9,24,37,.42) 100%);
}

/* ===== Section Styles ===== */
.section { padding: 4rem 0; }

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

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  max-width: 640px;
}

/* ===== Feature Cards (Landing) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: .5rem;
}

.feature-card p {
  color: var(--gray-600);
  font-size: .95rem;
}

/* ===== Services Cards with Images ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: box-shadow .2s, transform .2s;
}

.service-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

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

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

.service-card-body h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: .4rem;
}

.service-card-body p {
  color: var(--gray-600);
  font-size: .93rem;
}

/* ===== Image Banner ===== */
.image-banner {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(13,33,55,.7), rgba(13,33,55,.3));
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.image-banner-overlay .container {
  color: var(--white);
}

.image-banner-overlay h2 {
  font-size: 1.6rem;
  margin-bottom: .5rem;
}

.image-banner-overlay p {
  font-size: 1rem;
  opacity: .9;
  max-width: 500px;
}

/* ===== Mission Page ===== */
.mission-block {
  margin-bottom: 3rem;
}

.mission-block h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
}

.mission-block p,
.mission-block li {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
}

.mission-block--sub {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.mission-block--sub h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: .5rem;
  border-left: 3px solid var(--teal);
  padding-left: .75rem;
}

.mission-block ul {
  list-style: none;
  padding: 0;
  margin-top: .75rem;
}

.mission-block ul li {
  padding: .4rem 0 .4rem 1.5rem;
  position: relative;
}

.mission-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.value-card {
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.value-card h4 {
  font-size: 1.1rem;
  margin-bottom: .25rem;
}

.value-card p {
  font-size: .9rem;
  opacity: .8;
}

/* What LFC is / is not */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
}

.col-is, .col-not {
  padding: 1.5rem;
  border-radius: 8px;
}

.col-is {
  background: #eaf6f0;
  border: 1px solid #b8e0cc;
}

.col-not {
  background: #fdf2f0;
  border: 1px solid #e8c9c4;
}

.col-is h3, .col-not h3 {
  font-size: 1.15rem;
  margin-bottom: .75rem;
}

.col-is h3 { color: var(--teal); }
.col-not h3 { color: #c0392b; }

.col-is ul, .col-not ul {
  list-style: none;
  padding: 0;
}

.col-is li, .col-not li {
  padding: .35rem 0;
  font-size: .95rem;
  color: var(--text);
}

/* ===== News Page ===== */
.news-list { display: flex; flex-direction: column; gap: 1.5rem; }

.news-card {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow .2s;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  text-decoration: none;
}

.news-card-img {
  width: 160px;
  min-width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.news-card-body { flex: 1; min-width: 0; }

.news-date {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: .35rem;
  display: block;
}

.news-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: .4rem;
  line-height: 1.4;
}

.news-card p {
  color: var(--gray-600);
  font-size: .93rem;
  line-height: 1.55;
}

.news-read-more {
  display: inline-block;
  margin-top: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue-accent);
}

@media (max-width: 600px) {
  .news-card { flex-direction: column; }
  .news-card-img { width: 100%; height: 160px; min-width: auto; }
}

/* Pagination */
.pagination {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: .95rem;
  color: var(--navy);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.pagination a:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

.pagination .current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== Article Detail Page ===== */
.article-detail {
  max-width: 780px;
  margin: 0 auto;
}

.article-detail .article-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.article-detail .news-date {
  font-size: .9rem;
  margin-bottom: 1rem;
}

.article-detail h1 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.article-detail p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--blue-accent);
  margin-bottom: 2rem;
}

.article-back:hover { text-decoration: underline; }

/* ===== Members Page ===== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.member-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.member-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.member-card-header {
  background: var(--gray-100);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.member-card-header img {
  max-height: 70px;
  max-width: 220px;
  object-fit: contain;
}

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

.member-card-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: .25rem;
}

.member-card-body .member-country {
  font-size: .9rem;
  color: var(--blue-accent);
  font-weight: 600;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.member-card-body .member-country img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
}

.member-card-body p {
  color: var(--gray-600);
  font-size: .93rem;
  line-height: 1.6;
  margin-bottom: .5rem;
}

.member-services {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}

.member-services span {
  background: var(--gray-100);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 4px;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.contact-card {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 2rem;
}

.contact-card-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-card-header img {
  max-height: 48px;
  max-width: 180px;
  object-fit: contain;
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: .5rem;
}

.contact-card p {
  font-size: .95rem;
  color: var(--gray-600);
  margin-bottom: .5rem;
  line-height: 1.6;
}

.contact-card a { color: var(--blue-accent); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: var(--gray-300);
  padding: 2rem 0;
  text-align: center;
  font-size: .9rem;
}

.site-footer p { margin: .25rem 0; }
.site-footer a { color: var(--gray-200); }

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header--with-bg {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-header .page-header-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: .2;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.page-header p {
  margin-top: .5rem;
  opacity: .8;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { min-height: 100vh; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .image-banner { height: 200px; }
  .members-grid { grid-template-columns: 1fr; }
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: .5rem;
}

.cta-banner p {
  opacity: .8;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, transform .1s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--white {
  background: var(--white);
  color: var(--navy);
}

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

.btn--gold {
  background: var(--gold);
  color: var(--white);
}

.btn--gold:hover { background: #b5842a; }
