/* ============================================
   Embassy of the Republic of Liberia, Japan
   Main Stylesheet
   Colors: Red #BF0A30 | Blue #002868
   ============================================ */

/* --- Twenty Twenty-Five Theme Overrides --- */
/* Break free from TT5 content constraints */
.wp-site-blocks,
.wp-site-blocks > *,
.entry-content,
.entry-content > *,
.wp-block-post-content,
.wp-block-post-content > *,
.page .entry-content,
.is-layout-constrained > *,
.is-layout-flow > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Remove TT5 default padding/margins/gaps on page wrapper */
.wp-site-blocks {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  gap: 0 !important;
}

.wp-site-blocks > *:first-child {
  margin-top: 0 !important;
}

/* Kill ALL TT5 block gaps and spacing */
.is-layout-constrained,
.is-layout-flow,
.is-layout-flex,
.wp-block-group,
.wp-block-post-content {
  gap: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Hide TT5 default header, footer, and page title (we use our own) */
.wp-block-template-part:has(header),
.wp-block-template-part:has(nav),
.wp-block-template-part:has(footer),
header.wp-block-template-part,
footer.wp-block-template-part,
.wp-block-site-title,
.wp-block-site-tagline,
.wp-block-navigation,
.wp-block-post-title,
.entry-title,
h1.wp-block-post-title,
.page .wp-block-post-title,
.page-title,
h1.entry-title {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Hidden template parts should take zero space */
.wp-block-template-part[style],
.wp-block-template-part {
  margin: 0 !important;
  padding: 0 !important;
}

.wp-block-template-part:empty,
.wp-block-template-part:has(.wp-block-site-title),
.wp-block-template-part:has(.wp-block-navigation) {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Remove WP admin bar spacing conflict */
body.admin-bar .header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

/* Ensure full-width for our sections */
.top-bar,
.header,
.nav-bar,
.hero,
.quick-services,
.section,
.section-gray,
.section-blue,
.section-beige,
.section-red,
.facts-strip,
.leadership-carousel,
.ambassador-section,
.breadcrumb,
.footer,
.page-content {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  position: relative;
}

/* --- CSS Custom Properties --- */
:root {
  --red: #BF0A30;
  --red-text: #A00828;
  --blue: #002868;
  --blue-light: #003580;
  --blue-dark: #001a4a;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --light-gray: #e8e8e8;
  --gray: #666666;
  --dark-gray: #333333;
  --beige: #f4efe4;
  --gold: #c9a84c;
  --font-heading: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 110px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--dark-gray);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* --- Focus States (Accessibility) --- */
a:focus-visible,
.btn:focus-visible,
.service-item:focus-visible,
.menu-toggle:focus-visible,
.back-to-top:focus-visible,
.gallery-item:focus-visible {
  outline: 3px solid #c9a84c;
  outline-offset: 2px;
}

.main-nav > li > a:focus-visible,
.dropdown li a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -3px;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--blue);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

/* --- Top Bar --- */
.top-bar {
  background: var(--red);
  color: var(--white);
  padding: 6px 0;
  font-size: 0.85rem;
  margin: 0;
}

/* Remove all spacing between header sections */
.top-bar + .header,
.header + .nav-bar,
#embassy-header > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--white);
  margin-left: 15px;
}

.top-bar a:hover {
  opacity: 0.8;
}

.top-bar .social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar .social-links a {
  font-size: 1rem;
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Header --- */
.header {
  background: var(--white);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0;
  padding: 0;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin: 0;
}

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

.logo img {
  height: 180px;
  width: auto;
}

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

.logo-text .embassy-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}

.logo-text .embassy-country {
  font-size: 1.15rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Navigation --- */
.nav-bar {
  background: var(--blue);
  margin: 0;
  padding: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 20px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav > li > a:hover,
.main-nav > li.active > a {
  background: var(--red);
  color: var(--white);
}

.main-nav > li > a .arrow {
  font-size: 0.65rem;
  transition: transform 0.3s;
}

/* --- Dropdown --- */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

@media (min-width: 769px) {
  .main-nav > li:hover > .dropdown,
  .main-nav > li:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav > li:hover > a .arrow {
    transform: rotate(180deg);
  }
}

.dropdown li a {
  display: block;
  padding: 12px 20px;
  color: var(--dark-gray);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition);
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background: var(--off-white);
  color: var(--red);
  padding-left: 25px;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

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

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* --- Hero Banner --- */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 104, 0.7);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 40px 20px;
  max-width: 800px;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

.hero-small {
  min-height: 280px;
}

.hero-small h1 {
  font-size: 2.5rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--off-white);
  padding: 12px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--light-gray);
}

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

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

.breadcrumb span {
  color: var(--blue);
  font-weight: 600;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: var(--gray);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-red:hover {
  background: #a00828;
  border-color: #a00828;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(191, 10, 48, 0.4);
}

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

.btn-blue:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 40, 104, 0.4);
}

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

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

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

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

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

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

/* --- Quick Services Bar --- */
.quick-services {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--light-gray);
}

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

.service-item {
  text-align: center;
  padding: 20px 10px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--dark-gray);
}

.service-item:hover {
  background: var(--off-white);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  color: var(--red);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-item:hover .service-icon {
  background: var(--red);
}

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

.service-item span {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}

/* --- Leadership & Liberia Carousel --- */
.leadership-carousel {
  background: var(--white);
  padding: 50px 0;
  border-bottom: 1px solid var(--light-gray);
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
}

.carousel-track-container {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  position: relative;
  width: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* Trio grid: 3 images side by side */
.carousel-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.carousel-trio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel-trio-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.carousel-trio-item:hover img {
  transform: scale(1.03);
}

.carousel-trio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 26, 74, 0.92) 0%, rgba(0, 40, 104, 0.6) 60%, transparent 100%);
  padding: 35px 15px 15px;
  text-align: center;
}

.carousel-trio-caption h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 2px;
  line-height: 1.3;
}

.carousel-trio-caption p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  margin: 0;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.carousel-arrow:hover {
  background: var(--blue);
  color: var(--white);
}

.carousel-arrow:hover svg {
  fill: var(--white);
}

.carousel-arrow svg {
  fill: var(--blue);
  transition: var(--transition);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--red);
  border-color: var(--red);
}

.carousel-dot:hover {
  background: var(--blue);
  border-color: var(--blue);
}

@media (max-width: 768px) {
  .carousel-wrapper {
    gap: 10px;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
  }

  .carousel-trio-caption h4 {
    font-size: 0.85rem;
  }

  .carousel-trio-caption p {
    font-size: 0.7rem;
  }

  .carousel-trio {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .carousel-arrow svg {
    width: 18px;
    height: 18px;
  }

  .carousel-trio {
    gap: 8px;
  }

  .carousel-trio-caption {
    padding: 20px 8px 8px;
  }

  .carousel-trio-caption h4 {
    font-size: 0.7rem;
  }

  .carousel-trio-caption p {
    display: none;
  }
}

/* --- Section Styles --- */
.section {
  padding: 70px 0;
}

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

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

.section-blue h2,
.section-blue h3 {
  color: var(--white);
}

.section-beige {
  background: var(--beige);
}

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

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

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--red);
}

.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 20px auto 0;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-body {
  padding: 25px;
}

.card-body h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red-text);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 10px;
}

.card-link:hover {
  gap: 10px;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* --- Home: Three Column Section --- */
.home-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}

.info-card-header {
  background: var(--blue);
  padding: 15px 20px;
}

.info-card-header h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin: 0;
}

.info-card-body {
  padding: 20px;
}

.info-card-body img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 15px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}

.schedule-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.schedule-dot.red { background: var(--red); }
.schedule-dot.blue { background: var(--blue); }

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red-text);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 15px;
}

/* --- Home: CTA Section --- */
.cta-section {
  padding: 70px 0;
}

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

/* --- Incentive Boxes --- */
.incentives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.incentive-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 25px;
  border-top: 4px solid var(--blue);
  transition: var(--transition);
}

.incentive-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--red);
}

.incentive-box h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--blue);
}

.incentive-box p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

.incentive-box ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.incentive-box ul li {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .incentives-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .incentives-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.cta-card {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.cta-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.cta-card:hover .cta-card-bg {
  transform: scale(1.05);
}

.cta-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 40, 104, 0.9) 0%, rgba(0, 40, 104, 0.3) 100%);
}

.cta-card-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  color: var(--white);
}

.cta-card-content h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.cta-card-content p {
  opacity: 0.9;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Flat CTA card variant — grey background, no photo */
.cta-card.cta-card-flat {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  align-items: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
  transition: var(--transition);
}

.cta-card.cta-card-flat:hover {
  background: #ececec;
  border-color: #d4d4d4;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cta-card.cta-card-flat .cta-card-content {
  color: var(--dark-gray);
  position: static;
  padding: 28px 26px;
}

.cta-card.cta-card-flat .cta-card-content h3 {
  color: var(--blue);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.cta-card.cta-card-flat .cta-card-content p {
  color: var(--gray);
  opacity: 1;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* --- Ambassador Message Section --- */
.ambassador-section {
  background: var(--beige);
  padding: 70px 0;
}

.ambassador-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  align-items: center;
}

.ambassador-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ambassador-img img {
  width: 100%;
}

.ambassador-text h2 {
  margin-bottom: 5px;
}

.ambassador-text .title {
  color: var(--red-text);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
  display: block;
}

.ambassador-text blockquote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gray);
  border-left: 4px solid var(--red);
  padding-left: 20px;
  margin: 20px 0;
}

/* --- Fun Facts / Highlights --- */
.facts-strip {
  background: var(--blue);
  padding: 30px 0;
}

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

.fact-item {
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.fact-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.fact-item h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 5px;
}

.fact-item p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* --- Page Content --- */
.page-content {
  padding: 60px 0;
}

.page-content h2 {
  margin-bottom: 20px;
}

.page-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-content ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-content ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-content ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-content ol li {
  margin-bottom: 8px;
}

/* --- Content with Sidebar --- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.sidebar {
  position: sticky;
  top: 130px;
  align-self: start;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  margin-bottom: 25px;
}

.sidebar-card h4 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}

.sidebar-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}

.sidebar-card ul li:last-child {
  border-bottom: none;
}

.sidebar-card ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.sidebar-card ul li a:hover {
  color: var(--red);
  padding-left: 5px;
}

/* --- Staff Grid --- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.staff-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.staff-info {
  padding: 20px;
}

.staff-photo {
  width: 100%;
  overflow: hidden;
  background: var(--off-white);
}

.staff-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Placeholder card for upcoming staff members */
.staff-card.staff-card-placeholder {
  border: 2px dashed var(--light-gray);
  box-shadow: none;
  background: var(--off-white);
}

.staff-card.staff-card-placeholder .staff-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
}

.staff-card.staff-card-placeholder .staff-photo::after {
  content: 'Photo Coming Soon';
  color: var(--gray);
  font-size: 0.85rem;
  font-style: italic;
}

.staff-card.staff-card-placeholder .staff-info h4 {
  color: var(--gray);
}

/* "Diplomatic Staff" divider bar */
.staff-divider {
  background: var(--blue);
  color: var(--white);
  padding: 14px 25px;
  border-radius: var(--radius);
  margin: 40px 0 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 6px solid var(--red);
}

.staff-divider h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.staff-info h4 {
  margin-bottom: 5px;
}

.staff-info .role {
  color: var(--red-text);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Country Sections (Co-Accreditations) --- */
.country-card {
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-left: none;
  border-bottom: 1px solid var(--light-gray);
}

.country-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.country-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}

.country-card-header {
  background: none;
  padding: 0;
  margin-bottom: 15px;
}

.country-card-header h3 {
  color: var(--blue);
  margin: 0;
  font-size: 1.4rem;
}

.country-card-body {
  padding: 0;
}

/* --- Investment Sector Cards --- */
.sector-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid var(--red);
  display: flex;
  flex-direction: column;
}

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

.sector-card-img {
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.sector-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sector-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sector-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.sector-card-body p {
  font-size: 0.88rem;
  color: var(--gray);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 104, 0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0, 40, 104, 0.5);
}

.gallery-item-overlay svg {
  width: 40px;
  height: 40px;
  fill: white;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* --- Video Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.video-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
}

.video-item-info {
  padding: 15px 20px;
}

.video-item-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.video-item-info p {
  color: var(--gray);
  font-size: 0.85rem;
}

/* --- News List --- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-item {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 25px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-lg);
}

.news-item-img {
  height: 100%;
  min-height: 180px;
  overflow: hidden;
}

.news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-body {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date {
  color: var(--red-text);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.news-item-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.news-item-body p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.contact-details h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-details p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

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

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Form Placeholder --- */
.form-placeholder {
  background: var(--off-white);
  border: 2px dashed var(--light-gray);
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
  margin: 30px 0;
}

.form-placeholder p {
  color: var(--gray);
  font-size: 0.9rem;
}

.form-placeholder code {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 5px 15px;
  border-radius: 4px;
  margin-top: 10px;
  font-family: 'Courier New', monospace;
  color: var(--red);
}

/* --- Key Facts List --- */
.key-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.key-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.key-fact strong {
  color: var(--blue);
  white-space: nowrap;
}

/* --- Resources List --- */
.resources-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.resource-link:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.resource-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --- Consular Steps --- */
.steps {
  counter-reset: step;
  margin: 30px 0;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 5px;
}

.step-content p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

/* --- Notice Box --- */
.notice {
  padding: 20px 25px;
  border-radius: var(--radius);
  margin: 25px 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.notice-info {
  background: #f2f2f2;
  border-left: 4px solid #051e3b;
}

.notice-warning {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
}

.notice-important {
  background: #fce4ec;
  border-left: 4px solid var(--red);
}

.notice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* --- Table --- */
.table-wrap {
  overflow-x: auto;
  margin: 25px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th {
  background: var(--blue);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
}

table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}

table td:first-child {
  white-space: nowrap;
}

table tr:hover {
  background: var(--off-white);
}

/* --- Footer --- */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.footer-about .logo {
  margin-bottom: 15px;
}

.footer-about .logo img {
  height: 70px;
}

.footer-about p {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.8;
}

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

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

.footer-links ul li a::before {
  content: '\203A';
  color: var(--red);
  font-weight: bold;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-contact li svg {
  width: 18px;
  height: 18px;
  fill: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact li a:hover {
  color: var(--white);
}

.footer-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0.8;
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10000;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ambassador-grid {
    grid-template-columns: 280px 1fr;
    gap: 30px;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

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

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero {
    min-height: 350px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-small {
    min-height: 200px;
  }

  .hero-small h1 {
    font-size: 1.8rem;
  }

  /* Mobile Nav */
  .menu-toggle {
    display: block;
  }

  .nav-bar {
    position: relative;
  }

  .nav-bar .container {
    display: flex;
    justify-content: flex-end;
    padding: 0;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue);
    box-shadow: var(--shadow-lg);
    z-index: 998;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav > li > a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    display: none;
    background: rgba(0, 0, 0, 0.15);
  }

  .dropdown.active {
    display: block;
  }

  .dropdown li a {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
    padding-left: 35px;
  }

  .dropdown li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding-left: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .home-info-grid,
  .grid-3,
  .staff-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .cta-grid,
  .cta-grid-3,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .ambassador-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ambassador-img {
    max-width: 300px;
    margin: 0 auto;
  }

  .ambassador-text blockquote {
    text-align: left;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item-img {
    height: 200px;
  }

  .news-item-body {
    padding: 20px;
  }

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

  .key-facts,
  .resources-list {
    grid-template-columns: 1fr;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .logo-text .embassy-name {
    font-size: 1.4rem;
  }

  .logo-text .embassy-country {
    font-size: 0.95rem;
  }

  .logo img {
    height: 120px;
  }

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

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .section {
    padding: 45px 0;
  }

  .container {
    padding: 0 15px;
  }

  .logo img {
    height: 100px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

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

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

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Print Styles --- */
@media print {
  .top-bar, .header, .nav-bar, .breadcrumb, .footer, .back-to-top, .menu-toggle, .lightbox {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 20px;
  }

  body {
    font-size: 12pt;
    color: black;
  }
}

/* ===========================
   SECTION DIVIDERS
   Thin light-gray banner between sectors
   =========================== */
.section-divider {
  height: 2px;
  background: var(--light-gray);
  width: 100%;
  margin: 0;
  border: none;
}

/* ===========================
   PRESIDENT SECTION
   Homepage block — President of Liberia
   Centered 2-column: photo left, details right
   =========================== */
.president-section {
  background: var(--white);
  padding: 70px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.president-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.president-photo {
  width: 320px;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  outline: 3px solid var(--red);
}

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

.president-info {
  text-align: left;
}

.president-name {
  font-size: 1.85rem;
  color: var(--blue);
  margin: 0 0 6px;
  font-weight: 700;
  line-height: 1.2;
}

.president-title {
  color: var(--red-text);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--light-gray);
}

.president-bio {
  color: var(--dark-gray);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 14px;
}

.president-bio + .btn {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .president-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .president-photo {
    width: 260px;
    height: 320px;
    margin: 0 auto;
  }

  .president-info {
    text-align: center;
  }

  .president-bio {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .president-photo {
    width: 220px;
    height: 280px;
  }

  .president-name {
    font-size: 1.4rem;
  }
}

/* ===========================
   HORIZONTAL CONTACT LAYOUT
   For working-hours / contact pages
   =========================== */
.contact-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.contact-horizontal .contact-info-item {
  flex-direction: column;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px 15px;
  margin: 0;
  align-items: center;
  border-top: 3px solid var(--red);
}

.contact-horizontal .contact-icon {
  margin-bottom: 5px;
}

.contact-horizontal .contact-details h4 {
  margin-bottom: 8px;
}

.contact-horizontal .contact-details p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ===========================
   FOOTER SOCIAL ICONS
   Bottom-of-page social links
   =========================== */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

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

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom-bar .footer-social {
  margin: 0;
}

@media (max-width: 600px) {
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ===========================
   HERO KEN BURNS ANIMATION
   Adds an animated/interactive feel
   =========================== */
@keyframes heroPanZoom {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1%, -1%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

.hero-animated .hero-bg {
  animation: heroPanZoom 20s ease-in-out infinite;
}

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

.hero-animated .hero-content {
  animation: heroFadeIn 1.2s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-animated .hero-bg,
  .hero-animated .hero-content {
    animation: none;
  }
}

/* ===========================
   DOCUMENT AUTHENTICATION FORM
   =========================== */
.doc-auth-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
  margin: 30px 0;
  border-top: 4px solid var(--blue);
}

.doc-auth-form h3 {
  margin-bottom: 8px;
}

.doc-auth-form .form-intro {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.doc-auth-form .form-section {
  margin-bottom: 25px;
}

.doc-auth-form .form-section > label {
  display: block;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.doc-auth-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 25px;
}

.doc-auth-checkboxes label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--dark-gray);
  cursor: pointer;
  padding: 6px 0;
}

.doc-auth-checkboxes input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

.doc-auth-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 15px;
}

.doc-auth-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-auth-form .form-field label {
  font-weight: 600;
  color: var(--blue);
  font-size: 0.88rem;
}

.doc-auth-form input[type="text"],
.doc-auth-form input[type="email"],
.doc-auth-form input[type="tel"],
.doc-auth-form textarea {
  padding: 10px 14px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s ease;
}

.doc-auth-form input[type="text"]:focus,
.doc-auth-form input[type="email"]:focus,
.doc-auth-form input[type="tel"]:focus,
.doc-auth-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.1);
}

.doc-auth-form textarea {
  min-height: 110px;
  resize: vertical;
}

.doc-auth-form .form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.doc-auth-form .form-notice {
  background: #e8f0fe;
  border-left: 4px solid var(--blue);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.doc-auth-form-success,
.doc-auth-form-error {
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
}

.doc-auth-form-success {
  background: #e6f4ea;
  border-left: 4px solid #137333;
  color: #137333;
}

.doc-auth-form-error {
  background: #fce8e6;
  border-left: 4px solid var(--red);
  color: var(--red-text);
}

@media (max-width: 600px) {
  .doc-auth-checkboxes,
  .doc-auth-form .form-row {
    grid-template-columns: 1fr;
  }

  .doc-auth-form {
    padding: 25px 20px;
  }
}

/* ===========================================
   HOMEPAGE REFINEMENTS
   Brand colours for these sections:
   red #b40909, blue #051e3b
   =========================================== */
:root {
  --brand-red: #b40909;
  --brand-blue: #051e3b;
}

/* Quick services: larger items, blue icons */
.quick-services {
  padding: 55px 0;
}

.services-grid {
  gap: 24px;
}

.service-item {
  padding: 28px 12px;
}

.service-item svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  display: block;
  color: var(--brand-blue);
  fill: var(--brand-blue);
  transition: var(--transition);
}

.service-item span {
  font-size: 1.05rem;
}

.service-item:hover {
  color: var(--brand-red);
}

.service-item:hover svg {
  color: var(--brand-red);
  fill: var(--brand-red);
}

/* Carousel: single-image slides after the leadership trio */
.carousel-trio.carousel-single {
  grid-template-columns: 1fr;
}

.carousel-single .carousel-trio-item img {
  aspect-ratio: 21 / 9;
  object-position: center;
}

/* CTA cards: centered, equal-width buttons aligned at the bottom */
.cta-card.cta-card-flat .cta-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cta-card.cta-card-flat .cta-card-content .btn {
  align-self: center;
  justify-content: center;
  width: 280px;
  max-width: 100%;
  margin-top: auto;
}

.cta-card.cta-card-flat .btn-red {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.cta-card.cta-card-flat .btn-red:hover {
  background: #8f0707;
  border-color: #8f0707;
  box-shadow: 0 4px 15px rgba(180, 9, 9, 0.35);
}

/* Fun facts strip (homepage): larger text and icons */
.home .facts-strip {
  background: var(--brand-blue);
  padding: 40px 0;
}

.home .fact-item svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: block;
}

.home .fact-item p {
  font-size: 1.1rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* President section: centered button */
.president-info .btn {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
}

.president-info .btn-blue {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.president-info .btn-blue:hover {
  background: #0a2f5a;
  border-color: #0a2f5a;
  box-shadow: 0 4px 15px rgba(5, 30, 59, 0.35);
}

@media (max-width: 768px) {
  .service-item svg {
    width: 48px;
    height: 48px;
  }

  .service-item span {
    font-size: 0.95rem;
  }

  .home .fact-item p {
    font-size: 1rem;
  }
}

/* Working Hours page: map removed, five cards fill the row */
.page-id-77 .contact-horizontal {
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 35px 0 10px;
}

.page-id-77 .contact-horizontal .contact-info-item {
  border-top-color: var(--brand-red);
  padding: 35px 18px;
  height: 100%;
}

.page-id-77 .contact-horizontal .contact-details h4 {
  color: var(--brand-blue);
  font-size: 1.1rem;
}

.page-id-77 .contact-horizontal .contact-details p {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .page-id-77 .contact-horizontal {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-id-77 .contact-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .page-id-77 .contact-horizontal {
    grid-template-columns: 1fr;
  }
}

/* ===========================================
   FOOTER REFINEMENTS
   No description or map, larger logo and text,
   white contact icons
   =========================================== */
.footer-grid {
  grid-template-columns: 1fr 1fr 1.4fr 1fr;
  align-items: start;
}

.footer-about .logo {
  margin-bottom: 0;
}

.footer-about .logo img {
  height: 210px;
  width: auto;
}

.footer h4 {
  font-size: 1.25rem;
  border-bottom-color: var(--brand-red);
}

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

.footer-links ul li a {
  font-size: 1.05rem;
}

.footer-links ul li a::before {
  color: var(--white);
}

.footer-contact li {
  font-size: 1.05rem;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact li svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
  margin-top: 2px;
}

.footer-hours p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .footer-about .logo img {
    height: 150px;
  }
}

.footer-links .footer-contact li a::before {
  content: none;
}

.footer-contact li a:hover {
  padding-left: 0;
}

/* Footer bottom: social icons above a centered copyright line */
.footer-bottom-bar {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-bottom-bar .footer-social {
  justify-content: center;
}

.footer-bottom-bar p {
  margin: 0;
}

/* Investment Incentives: larger, more readable boxes */
.incentives-grid {
  gap: 28px;
}

.incentive-box {
  padding: 36px 30px;
  border-top-color: var(--brand-blue);
}

.incentive-box:hover {
  border-top-color: var(--brand-red);
}

.incentive-box h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--brand-blue);
}

.incentive-box p,
.incentive-box ul li {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

.incentive-box ul li {
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .incentive-box {
    padding: 28px 22px;
  }

  .incentive-box h3 {
    font-size: 1.25rem;
  }

  .incentive-box p,
  .incentive-box ul li {
    font-size: 1.05rem;
  }
}

.page-content .incentive-box h3 {
  margin-top: 0;
}

.incentive-box p,
.incentive-box ul li {
  font-size: 1.15rem;
}

/* Larger registration steps (Business Registry page) */
.steps-large .step {
  gap: 24px;
  padding: 28px 30px;
  margin-bottom: 22px;
  align-items: flex-start;
  border-left: 4px solid var(--brand-blue);
}

.steps-large .step::before {
  width: 56px;
  height: 56px;
  font-size: 1.45rem;
  background: var(--brand-blue);
}

.page-content .steps-large .step-content h4 {
  font-size: 1.4rem;
  margin: 4px 0 10px;
  color: var(--brand-blue);
}

.steps-large .step-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

@media (max-width: 768px) {
  .steps-large .step {
    padding: 22px 18px;
    gap: 16px;
  }

  .steps-large .step::before {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .page-content .steps-large .step-content h4 {
    font-size: 1.2rem;
  }

  .steps-large .step-content p {
    font-size: 1.05rem;
  }
}

/* Investment Sectors: larger, more readable cards */
.sector-card {
  border-bottom-color: var(--brand-red);
}

.sector-card-img {
  height: 200px;
}

.sector-card-body {
  padding: 24px 22px 26px;
}

.page-content .sector-card-body h3 {
  font-size: 1.4rem;
  margin: 0 0 10px;
  color: var(--brand-blue);
}

.sector-card-body p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--dark-gray);
  margin: 0;
}

@media (max-width: 768px) {
  .page-content .sector-card-body h3 {
    font-size: 1.25rem;
  }

  .sector-card-body p {
    font-size: 1.05rem;
  }
}

/* Important notice (Visa Application): clear alert icon */
.notice-important {
  background: #fdf1f1;
  border-left: 5px solid var(--brand-red);
  align-items: center;
  gap: 22px;
  padding: 26px 30px;
}

.notice-icon.notice-icon-alert {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-icon-alert svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.page-content .notice h3 {
  margin: 0 0 8px;
}

.page-content .notice-important h3 {
  color: var(--brand-red);
  font-size: 1.4rem;
}

.notice-important p {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.notice-important p:last-child {
  margin-bottom: 0;
}

/* Larger fee table (Passport Application) */
.page-content h3.table-title-large {
  font-size: 1.75rem;
  color: var(--brand-blue);
}

.table-large {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.table-large table th {
  background: var(--brand-blue);
  font-size: 1.1rem;
  padding: 18px 22px;
}

.table-large table td {
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 18px 22px;
  vertical-align: top;
}

.table-large table td:first-child {
  font-weight: 600;
  color: var(--brand-blue);
}

.table-large table tbody tr:nth-child(even) {
  background: #f7f7f7;
}

@media (max-width: 768px) {
  .notice-important {
    align-items: flex-start;
    padding: 22px 20px;
    gap: 16px;
  }

  .notice-icon.notice-icon-alert {
    width: 44px;
    height: 44px;
  }

  .notice-icon-alert svg {
    width: 22px;
    height: 22px;
  }

  .table-large table th,
  .table-large table td {
    font-size: 1rem;
    padding: 14px 16px;
  }
}

/* Contact page form (replaces the map) */
.contact-form {
  margin: 0;
  border-top-color: var(--brand-blue);
}

.page-content .contact-form h3,
.contact-form h3 {
  font-size: 1.5rem;
  color: var(--brand-blue);
  margin-top: 0;
}

.contact-form .form-intro {
  font-size: 1rem;
}

.contact-form .form-row {
  margin-bottom: 18px;
}

.contact-form .form-field label {
  font-size: 1rem;
  color: var(--brand-blue);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  font-size: 1.05rem;
  padding: 12px 14px;
  border-color: #cfcfcf;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(5, 30, 59, 0.12);
}

.contact-form .form-submit {
  margin-top: 20px;
}

.contact-form .btn-blue {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  width: 100%;
  justify-content: center;
}

.contact-form .btn-blue:hover {
  background: #0a2f5a;
  border-color: #0a2f5a;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Header: name and location on one line, flag on the right */
.logo-text {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 2px;
}

.header-flag {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  margin-left: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .header-flag {
    height: 50px;
    margin-left: 12px;
  }
}

@media (max-width: 480px) {
  .header-flag {
    height: 36px;
  }
}

@media (max-width: 768px) {
  .header-main .logo {
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .header-main .logo {
    gap: 10px;
  }

  .header-main .logo img {
    height: 72px;
  }

  .logo-text .embassy-name {
    font-size: 1.05rem;
  }

  .logo-text .embassy-country {
    font-size: 0.8rem;
  }

  .header-flag {
    height: 30px;
    margin-left: 8px;
  }
}

/* Header title: one line, one size, brand blue */
.logo-text .embassy-name {
  color: var(--brand-blue);
  font-size: 1.8rem;
}

@media (max-width: 1024px) {
  .logo-text .embassy-name {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .logo-text .embassy-name {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .logo-text .embassy-name {
    font-size: 1rem;
  }
}

/* Header: title centered with equal space to the coat of arms and the flag */
.header-main .logo {
  flex: 1 1 auto;
  min-width: 0;
  gap: 24px;
}

.header-main .logo-text {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}

.header-flag {
  margin-left: 24px;
}

@media (max-width: 768px) {
  .header-main .logo {
    gap: 12px;
  }

  .header-flag {
    margin-left: 12px;
  }
}

@media (max-width: 480px) {
  .header-main .logo {
    gap: 8px;
  }

  .header-flag {
    margin-left: 8px;
  }
}
