/* Apply a floating effect to your image */
.floating-image {
	background-color: #ffffff;
	border-radius: 234px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	transition: transform .3s ease, box-shadow .3s ease;
	width: 1000px;
	height: 500px;
}

/* Optional: Enhances the float effect when hovering */
.floating-image:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 3. Style your 3 columns so they float completely on their own */
.custom-wp-card {
	background-color: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	padding: 32px 24px !important;
	border-radius: 8px !important;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

/* =========================
   FOCUS AREAS SECTION
========================= */
.focus-areas {
	padding: 80px 20px;
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	font-family: inherit;
}

.focus-areas h2 {
	font-size: 2.4rem;
	margin-bottom: 15px;
	font-weight: 700;
	color: #0b1f3a;
/* deep aerospace navy */
	letter-spacing: -.5px;
}

.focus-areas p {
	max-width: 750px;
	margin: 0 auto 50px;
	font-size: 1.05rem;
	line-height: 1.7;
	color: #4a5568;
}

/* =========================
   GRID LAYOUT
========================= */
.focus-areas .grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background-color:#ffffff !important;
	gap: 25px;
}

/* =========================
   CARD DESIGN
========================= */
.focus-areas .card {
	background: #ffffff;
	padding: 30px 25px;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	transition: all .3s ease;
	text-align: left;
	border: 1px solid rgba(0, 0, 0, 0.04);
	position: relative;
}

/* Hover effect */
.focus-areas .card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
	border-color: rgba(11, 31, 58, 0.15);
}

/* =========================
   ICON STYLE
========================= */
.focus-areas .card i {
	font-size: 28px;
	color: #0b1f3a;
	margin-bottom: 15px;
	display: inline-block;
}

/* =========================
   CARD TEXT
========================= */
.focus-areas .card h3 {
	font-size: 1.2rem;
	margin-bottom: 12px;
	color: #0b1f3a;
	font-weight: 600;
}

.focus-areas .card p {
	font-size: .95rem;
	line-height: 1.6;
	color: #4a5568;
	margin: 0;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 1024px) {
	.focus-areas .grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.focus-areas {
		padding: 60px 15px;
	}
	
	.focus-areas .grid {
		grid-template-columns: 1fr;
	}
	
	.focus-areas h2 {
		font-size: 1.9rem;
	}
	
	.focus-areas p {
		font-size: 1rem;
	}
}
.focus-areas svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.focus-areas .card:hover svg {
  transform: scale(1.1);
}
 /* =========================
   AGP LEADERSHIP PAGE STYLING
========================= */

/* Global page spacing */
.wp-block-heading {
  scroll-margin-top: 100px;
}

/* =========================
   SECTION TITLES (H2)
========================= */
h2.wp-block-heading {
  color: #121458;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 50px 0 25px;
  letter-spacing: -0.5px;
}

/* =========================
   MEDIA + TEXT BLOCKS
========================= */
.wp-block-media-text {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin: 30px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for leadership cards */
.wp-block-media-text:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.15);
}

/* Image styling */
.wp-block-media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   DARK BACKGROUND SECTIONS
========================= */
.wp-block-media-text.has-background {
  background-color: #121458 !important;
  color: #ffffff !important;
}

/* Text inside dark blocks */
.wp-block-media-text.has-background p,
.wp-block-media-text.has-background h3,
.wp-block-media-text.has-background h4,
.wp-block-media-text.has-background h5 {
  color: #ffffff !important;
}

/* =========================
   HEADINGS INSIDE CARDS
========================= */
.wp-block-media-text h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* =========================
   PARAGRAPH STYLING
========================= */
.wp-block-media-text p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* =========================
   SEPARATORS
========================= */
.wp-block-separator {
  margin: 40px 0;
  border-color: rgba(18, 20, 88, 0.2);
}

/* =========================
   LIST STYLING (PMO + ROLES)
========================= */
.wp-block-list {
  padding-left: 18px;
  margin-top: 10px;
	text-wrap:after-white-space;
}

.wp-block-list li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #2b2b2b;
}

/* Dark section lists */
.wp-block-media-text.has-background .wp-block-list li {
  color: #ffffff !important;
  opacity: 0.9;
}

/* =========================
   PMO SECTION EMPHASIS
========================= */
h2:contains("Programme management office") {
  text-transform: none;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 900px) {

  h2.wp-block-heading {
    font-size: 1.8rem;
  }

  .wp-block-media-text {
    margin: 20px 0;
  }

  .wp-block-media-text__content {
    padding: 20px !important;
  }
}

/* =========================
   EXTRA POLISH (VERY IMPORTANT)
========================= */

/* Smooth section transitions */
.wp-block-group,
.wp-block-media-text {
  scroll-behavior: smooth;
}

/* Improve readability spacing */
.wp-block-media-text__content {
  padding: 30px;
}
/* =========================
   AGP COUNCIL PAGE GLOBAL
========================= */
.agp-council-page {
	background: #ffffff;
	color: #121458;
	font-family: inherit;
	line-height: 1.7;
}

/* Ensure clean typography baseline */
.agp-council-page h1,
.agp-council-page h2,
.agp-council-page h3 {
	color: #121458;
	font-weight: 700;
	letter-spacing: -0.3px;
}

.agp-council-page p {
	color: #121458;
	font-size: 1rem;
	margin-bottom: 16px;
}

/* =========================
   HERO / TOP IMAGE
========================= */
.agp-council-page figure.wp-block-image {
	margin-bottom: 40px;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.agp-council-page figure.wp-block-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* =========================
   SECTION HEADINGS
========================= */
.agp-council-page h2 {
	font-size: 2rem;
	margin-top: 50px;
	margin-bottom: 18px;
	position: relative;
}

.agp-council-page h2::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background: #121458;
	margin-top: 10px;
	border-radius: 2px;
}

/* Sub headings */
.agp-council-page h3 {
	font-size: 1.3rem;
	margin-top: 25px;
	margin-bottom: 10px;
}

/* =========================
   LIST STYLING
========================= */
.agp-council-page ul.wp-block-list {
	padding-left: 20px;
	margin-bottom: 25px;
}

.agp-council-page ul.wp-block-list li {
	margin-bottom: 10px;
	color: #121458;
	line-height: 1.6;
	position: relative;
}

/* Custom bullet */
.agp-council-page ul.wp-block-list li::marker {
	color: #121458;
}

/* =========================
   MEDIA TEXT BLOCKS (CARDS)
========================= */
.agp-council-page .wp-block-media-text {
	background: #121458;
	color: #ffffff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0,0,0,0.15);
	margin: 40px 0;
	padding: 0;
}

/* Image side */
.agp-council-page .wp-block-media-text__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Content side */
.agp-council-page .wp-block-media-text__content {
	padding: 40px;
}

.agp-council-page .wp-block-media-text__content h3 {
	color: #ffffff;
	margin-bottom: 10px;
}

.agp-council-page .wp-block-media-text__content p {
	color: rgba(255,255,255,0.9);
}

/* =========================
   SEPARATORS
========================= */
.agp-council-page hr.wp-block-separator {
	margin: 40px 0;
	border: none;
	height: 1px;
	background: rgba(11, 31, 58, 0.1);
}

/* =========================
   LIST BLOCK SPACING
========================= */
.agp-council-page .wp-block-list {
	margin-top: 10px;
}

/* =========================
   STRONG TEXT HIGHLIGHT
========================= */
.agp-council-page strong {
	color: #121459;
	font-weight: 700;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
	.agp-council-page h2 {
		font-size: 1.7rem;
	}

	.agp-council-page .wp-block-media-text__content {
		padding: 25px;
	}
}

@media (max-width: 600px) {
	.agp-council-page h2 {
		font-size: 1.5rem;
	}

	.agp-council-page .wp-block-media-text {
		display: block !important;
	}

	.agp-council-page .wp-block-media-text__content {
		padding: 20px;
	}
}
/* =========================
   AGP BOARD PAGE WRAPPER
========================= */
.agp-board-page {
	background: #ffffff;
	color: #121458;
	font-family: inherit;
	line-height: 1.75;
}

/* =========================
   HERO IMAGE
========================= */
.agp-board-page figure.wp-block-image {
	margin: 0 0 40px 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.agp-board-page figure.wp-block-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* =========================
   HEADINGS
========================= */
.agp-board-page h2 {
	font-size: 2rem;
	margin-top: 50px;
	margin-bottom: 18px;
	color: #121458;
	letter-spacing: -0.4px;
	position: relative;
}

.agp-board-page h2::after {
	content: "";
	display: block;
	width: 55px;
	height: 3px;
	background: #121458;
	margin-top: 10px;
	border-radius: 2px;
}

.agp-board-page h3 {
	font-size: 1.3rem;
	margin-top: 25px;
	margin-bottom: 10px;
	color: #121458;
}

/* H3 accent line */
.agp-board-page h3.wp-block-heading {
	border-left: 4px solid #121458;
	padding-left: 12px;
}

/* =========================
   BODY TEXT
========================= */
.agp-board-page p {
	color: #4a5568;
	font-size: 1rem;
	margin-bottom: 16px;
	max-width: 900px;
}

.agp-board-page strong {
	color: #121458;
	font-weight: 700;
}

/* =========================
   LISTS
========================= */
.agp-board-page ul.wp-block-list {
	padding-left: 22px;
	margin: 15px 0 25px 0;
}

.agp-board-page ul.wp-block-list li {
	margin-bottom: 10px;
	color: #2d3748;
	line-height: 1.6;
}

.agp-board-page ul.wp-block-list li::marker {
	color: #121458;
}

/* =========================
   CONTENT BLOCKS
========================= */
.agp-board-page .wp-block-group {
	background: #ffffff;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(18, 20, 88, 0.06);
	border: 1px solid rgba(18, 20, 88, 0.10);
	margin-bottom: 40px;
}

/* =========================
   DIVIDER
========================= */
.agp-board-page hr.wp-block-separator {
	margin: 40px 0;
	border: none;
	height: 1px;
	background: rgba(18, 20, 88, 0.15);
}

/* =========================
   LINKS (optional consistency)
========================= */
.agp-board-page a {
	color: #121458;
	text-decoration: none;
	border-bottom: 1px solid rgba(18, 20, 88, 0.3);
}

.agp-board-page a:hover {
	border-bottom: 1px solid #121458;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
	.agp-board-page h2 {
		font-size: 1.7rem;
	}

	.agp-board-page .wp-block-group {
		padding: 22px;
	}
}

@media (max-width: 600px) {
	.agp-board-page h2 {
		font-size: 1.5rem;
	}

	.agp-board-page h3 {
		font-size: 1.1rem;
	}

	.agp-board-page p {
		font-size: 0.98rem;
	}
}
/* =========================
   AGP CONTACT FORM WRAPPER
========================= */
.agp-contact-form {
	max-width: 850px;
	margin: 0 auto;
	padding: 40px;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid rgba(0,0,0,0.06);
	box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* =========================
   FIELD WRAPPER
========================= */
.agp-contact-form .agp-form-field {
	margin-bottom: 22px;
}

/* Labels */
.agp-contact-form label {
	color: #121458;
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 8px;
	display: block;
}

/* =========================
   INPUT BASE STYLES
========================= */
.agp-contact-form input,
.agp-contact-form textarea,
.agp-contact-form select {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid #d6d9e6;
	font-size: 1rem;
	color: #121458;
	background: #fff;
	transition: all 0.25s ease;
}

/* Focus state */
.agp-contact-form input:focus,
.agp-contact-form textarea:focus,
.agp-contact-form select:focus {
	outline: none;
	border-color: #121458;
	box-shadow: 0 0 0 3px rgba(18,20,88,0.15);
}

/* =========================
   DROPDOWN STYLE
========================= */
.agp-contact-form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

	background-image:
		linear-gradient(45deg, transparent 50%, #121458 50%),
		linear-gradient(135deg, #121458 50%, transparent 50%);
	background-position:
		calc(100% - 18px) calc(1em + 2px),
		calc(100% - 13px) calc(1em + 2px);
	background-size: 5px 5px;
	background-repeat: no-repeat;
}

/* =========================
   BUTTON
========================= */
.agp-form-button {
	margin-top: 10px;
}

.agp-contact-form button {
	background: #121458;
	color: #ffffff;
	padding: 14px 26px;
	border-radius: 8px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all 0.25s ease;
}

.agp-contact-form button:hover {
	background: #0e103f;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(18,20,88,0.25);
}

/* =========================
   INLINE VALIDATION STATES
   (Jetpack / WP Forms compatible)
========================= */

/* Invalid field */
.agp-contact-form .is-error input,
.agp-contact-form .is-error textarea,
.agp-contact-form .is-error select,
.agp-contact-form input:invalid,
.agp-contact-form textarea:invalid,
.agp-contact-form select:invalid {
	border-color: #d64545 !important;
	box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12) !important;
}

/* Error message text */
.agp-contact-form .contact-form__error,
.agp-contact-form .wp-block-jetpack-contact-form .error {
	color: #d64545;
	font-size: 0.85rem;
	margin-top: 6px;
}

/* Valid field (when browser marks valid) */
.agp-contact-form input:valid,
.agp-contact-form textarea:valid,
.agp-contact-form select:valid {
	border-color: #2e7d32;
}

/* Focus + invalid override (priority clean UX) */
.agp-contact-form input:invalid:focus,
.agp-contact-form textarea:invalid:focus,
.agp-contact-form select:invalid:focus {
	box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.18);
}

/* =========================
   SUCCESS MESSAGE (Jetpack)
========================= */
.agp-contact-form .contact-form__success {
	background: #eaf7ee;
	color: #2e7d32;
	border: 1px solid #bfe5c8;
	padding: 14px 16px;
	border-radius: 8px;
	font-weight: 500;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
	.agp-contact-form {
		padding: 25px;
	}
}


/* =========================
   DASHBOARD WRAPPER
========================= */
.resources-page {
  display: flex !important;
  flex-direction: row ;
  align-items: flex-start;
  width: 100%;
  gap: 0;
}

/* =========================
   LEFT SIDEBAR (20%)
========================= */
.resources-page .wp-block-buttons {
  flex: 0 0 20%;
  max-width: 20%;
  min-width: 180px;

  display: flex !important;
  flex-direction: column !important;

  margin: 0 !important;
  padding: 0 !important;

}

/* remove WP block spacing */
.resources-page .wp-block-button {
  width: 100% !important;
  margin: 0 !important;
}

/* BUTTON LOOK */
.resources-page .wp-block-button a {
  display: block !important;
  width: 100%;
  padding: 14px 16px !important;

  font-size: 14px;
  text-decoration: none !important;

  color: #fff !important;
  background: #121458 !important;

  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-sizing: border-box;
	border-radius:96px;
}

/* HOVER (darker) */
.resources-page .wp-block-button a:hover {
  background: #080826 !important;
}

/* ACTIVE STATE (optional) */
.resources-page .wp-block-button a.active {
  background: #e13131 !important;
}

/* =========================
   RIGHT CONTENT (80%)
========================= */
.resources-page .agp-dashboard {
  flex: 0 0 80%;
  max-width: 80%;

  padding: 30px 40px;
  box-sizing: border-box;
}

/* CONTENT BOX STYLE */
.resources-page .agp-dashboard p {
  background: #fff;
  padding: 14px 16px;
  margin: 0 0 10px 0;

  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* LINKS */
.resources-page .agp-dashboard a {
  color: #e13131;
  font-weight: 500;
}
.entry-content ul,
.wp-block-post-content ul,
.wp-block-group ul {
  padding-left: 1.2em;
  margin-left: 0;
}

.entry-content li,
.wp-block-post-content li,
.wp-block-group li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* KEY FIX: align wrapped text with first line */
.entry-content li,
.wp-block-post-content li,
.wp-block-group li {
  list-style-position: outside;
  padding-left: 0.4em;
}

/* force proper hanging indent behaviour */
.entry-content li::marker,
.wp-block-post-content li::marker,
.wp-block-group li::marker {
  color: #121458; /* optional GOV-style dark blue bullet */
}
 @media (max-width: 768px) {

  /* Submenu hidden by default */
  .wp-block-navigation__submenu-container {
    display: none !important;
    flex-direction: column;
    padding-left: 16px;
    margin-top: 8px;
    border-left: 2px solid rgba(18, 20, 88, 0.2);
  }

  /* WordPress actually uses aria-expanded */
  .wp-block-navigation-item.has-child[aria-expanded="true"] > .wp-block-navigation__submenu-container {
    display: flex !important;
  }

  /* Parent layout */
  .wp-block-navigation-item.has-child > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Clean submenu items */
  .wp-block-navigation__submenu-container .wp-block-navigation-item {
    padding: 6px 0;
    list-style: none;
  }
}
/* =========================
   RESOURCES PAGE MOBILE FIX
========================= */
/* =========================
   DESKTOP (unchanged)
========================= */

/* =========================
   MOBILE: TOP BUTTON BAR (NO SCROLL)
========================= */
@media (max-width: 767px) {

  .resources-page {
    display: flex !important;
    flex-direction: column !important;
  }

  /* turn sidebar into compact grid bar */
  .resources-page .wp-block-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
    gap: 8px;

    width: 100%;
    padding: 10px;
    margin-bottom: 15px;

    border-bottom: 1px solid rgba(18,20,88,0.1);
  }

  /* button styling */
  .resources-page .wp-block-button a {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 8px 10px;
    font-size: 12px;

    background: #121458;
    color: #fff;
    text-decoration: none;

    border-radius: 999px;
    white-space: nowrap;
  }

  /* content */
  .resources-page .agp-dashboard {
    padding: 18px 14px;
  }
}
/* =====================================================
   MOBILE MENU SYSTEM (FIXED)
===================================================== */

@media (max-width: 768px) {

  /* RESET */

.mobile-menu li,
.mobile-menu ul,
.mobile-menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mobile-menu li::marker,
.mobile-menu li::before {
  content: none !important;
}
  /* MENU */
  .mobile-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  /* ITEMS */
  .mobile-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  /* LINKS (NO ARROW POSITIONING AT ALL) */
  .mobile-menu a {
    display: block;
    padding: 14px 18px;
    text-decoration: none;
    color: #121458;
    font-size: 1rem;
    font-weight: 500;
  }

  /* SUBMENU */
/* hidden by default */
.mobile-menu .sub-menu a{
  display: none;
}

/* show ONLY when parent is open */

}
@media (max-width: 768px) {

  .floating-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: transform .3s ease, box-shadow .3s ease;
  }
	.floating-image img{
		height: auto !important;
	}
  .floating-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
  }
}