/*
Theme Name: pixetiq-child
Template: pixetiq
Author: nn
Description: A child theme for the Pixetiq parent theme
Version: 1.0
*/

/*--------------------------------------------------
  1. Import Parent Theme Styles
--------------------------------------------------*/
@import url("../pixetiq/style.css");

/*--------------------------------------------------
  2. CSS Variables
  - Define global variables for fonts, containers, border radii, and shadows.
--------------------------------------------------*/
:root {
  /* Font Sizes */
  --font-size-small: 0.875rem;   /* 14px */
  --font-size-base: 1rem;        /* 16px */
  --font-size-large: 1.5rem;     /* 24px */
  --font-size-x-large: 2rem;     /* 32px */
  
  /* Container Sizes */
  --container-width: 98%;
  --container-max-width: 1400px;
  --container-width-mobile: 98%;
  
  /* Border Radii */
  --border-radius-small: 4px;
  --border-radius-medium: 10px;
  --border-radius-large: 16px;
  --border-radius-pixel: 21px;
  
  /* Shadows */
  --shadow-subtle: 6px 6px 9px 0 rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------
  3. Base Styles & Typography
  - Set default typography and container styles.
--------------------------------------------------*/
body {
  font-size: var(--font-size-base);
  font-family: "Inter", sans-serif;
  color: var(--contrast-color); /* Note: Ensure --contrast-color is defined if needed */
}

h1 {
  font-size: var(--font-size-x-large);
  font-weight: 600;
}

h2 {
  font-size: var(--font-size-large);
  font-weight: 500;
}

p {
  font-size: var(--font-size-base);
}

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

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

/*--------------------------------------------------
  4. Responsive Typography
  - Adjust font sizes and container width on tablet and desktop.
--------------------------------------------------*/
/* Mobile */

@media (min-width: 540px) {
	body	{font-size:0.813;}
	h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
}


/* Tablet: 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  body { font-size: 0.9rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .container { width: var(--container-width-mobile); }
}

/* Desktop: >1024px */
@media (min-width: 1024px) {
  body { font-size: 1rem; }
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.25rem; }
}

/*--------------------------------------------------
  5. Grid Systems & Layouts
  - General grid containers and item scaling.
--------------------------------------------------*/

/* 5.1 General Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for Desktop */
  gap: 20px;
  margin: 0 auto;
}

/* Center overflow cells in grid rows */
.grid-row-center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* 5.2 Responsive Grid Container Adjustments */
@media (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr); /* Tablet: 3 columns */
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr); /* Mobile: 3 columns */
  }
  /* Adjust specific grid items for centering on second row */
  .grid-container .grid-item:nth-child(n+4):nth-child(-n+5) {
    grid-column: span 1;
  }
  .grid-container .grid-item:nth-child(n+4) {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr; /* Extra small screens: single column */
  }
}

/* 5.3 Scaling Grid Items */
@media (max-width: 1024px) {
  .grid-item { transform: scale(0.9); }
}
@media (max-width: 768px) {
  .grid-item { transform: scale(0.8); }
}

/* Utility: Span two grid columns */
.span-2 {
  grid-column: span 2;
}

/*--------------------------------------------------
  6. Logo Grid
  - Consolidated duplicate definitions.
  - Displays logos in a grid with responsive adjustments.
--------------------------------------------------*/
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Default: 5 columns for Desktop */
  gap: 20px;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.logo-grid img {
  width: auto;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .logo-grid img { max-height: 70px; }
}

@media (max-width: 768px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .logo-grid img { max-height: 60px; }
}

@media (max-width: 480px) {
  .logo-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .logo-grid img { max-height: 50px; }
}

/*--------------------------------------------------
  7. Responsive Grid Utilities
--------------------------------------------------*/

/* 7.1 General Responsive Grid */
.responsive-grid {
  display: grid;
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
}

@media (min-width: 1024px) {
  .responsive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .responsive-grid > :nth-last-child(1):nth-child(odd) {
    grid-column: auto;
    justify-self: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .responsive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .responsive-grid > :nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .responsive-grid {
    grid-template-columns: 1fr;
  }
  .responsive-grid > :nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* 7.2 Front Page Grid */
.front-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

@media (max-width: 767px) {
  .front-page-grid { grid-template-columns: 1fr; }
}

/*--------------------------------------------------
  8. Flexbox Layouts
--------------------------------------------------*/

/* 8.1 Row Layout using Flexbox */
.row-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.row-item {
  flex: 1 1 30%;
  background-color: #f0f0f0;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .row-item { flex: 1 1 45%; }
}
@media (max-width: 767px) {
  .row-item { flex: 1 1 100%; }
}

/* Example: Change order of third item */
.row-item:nth-child(3) { order: -1; }
@media (min-width: 768px) and (max-width: 1023px) {
  .row-item:nth-child(3) { order: 0; }
}

/* Align items within row container */
.row-container {
  align-items: center;
  justify-content: space-between;
}

/* 8.2 Grid-Flex Utility
   - Consolidated duplicate definitions for elements that switch from grid (mobile) to flex (tablet/desktop).
*/
.grid-flex {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px;
  align-items: center;
  justify-items: center;
}
.grid-flex > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}
@media (min-width: 768px) {
  .grid-flex {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
  }
  .grid-flex figure { margin: 0 10px; }
}

/* 8.3 Column Layouts */
.column-grid {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: var(--wp--preset--spacing--10);
  margin: 0 auto;
  width: 100%;
}
.column-grid img {
  object-fit: cover;
  border-radius: var(--border-radius-medium);
}
@media (min-width: 768px) {
  .column-grid {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: var(--wp--preset--spacing--20);
  }
}

/* 8.4 Column Row Layout */
.column-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  width: 100%;
}
.column-row img {
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
@media (min-width: 768px) {
  .column-row {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
  }
  .column-row img { max-width: 300px; }
}
@media (min-width: 1200px) {
  .column-row img {
    max-width: 400px;
    max-height: 400px;
    min-width: 400px;
    min-height: 400px;
  }
}

/* 8.5 One-Two Grid Layout */
.one-two-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  grid-gap: 10px;
  align-items: start;
}
@media (min-width: 768px) {
  .one-two-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    object-fit: fill !important;
  }
}
.one-two-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.one-two-grid h2,
.one-two-grid p {
  margin-top: 0;
  margin-bottom: 10px;
}
.one-two-grid .wp-block-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 400px;
}

/* 8.6 Column-to-Row Layout */
.column-to-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 768px) {
  .column-to-row {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
  }
}

/*--------------------------------------------------
  9. Embedded Media
  - Responsive container for embedded iframes (e.g., YouTube videos).
--------------------------------------------------*/
.responsive-embed-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}
.responsive-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
@media screen and (max-width: 768px) {
  .responsive-embed-container { padding-top: 177.78%; /* 9:16 Aspect Ratio */ }
}

/*--------------------------------------------------
  10. Buttons & Back-to-Top
--------------------------------------------------*/
.wp-block-buttons .wp-block-button__link {
  padding: 10px 15px;
  font-size: 14px;
  text-align: center;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1100;
  text-decoration: none;
  transition: opacity 0.3s;
}
#back-to-top svg {
  width: 20px;
  height: 20px;
  fill: #000;
}
#back-to-top.hidden {
  pointer-events: none;
}

/*--------------------------------------------------
  11. Navigation & Search Dropdown
  - Consolidated duplicate styles for search dropdown and toggle button.
--------------------------------------------------*/
.nav-search-wrapper {
  position: relative;
}
.nav-search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  padding: 10px;
  margin-top: 10px;
  z-index: 1000;
}
.nav-search-dropdown.active {
  display: block;
}

/* Toggle Button Styling */
#nav-search-toggle {
  background-color: #fff !important;
  border: none !important;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
#nav-search-toggle svg {
  width: 32px;
  height: 32px;
}

/* Mobile adjustments for search dropdown */
@media (max-width: 768px) {
  .nav-search-dropdown {
  height: 80vh;
    width: 90vw;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-search-dropdown .asl_w_container {
    width: 100% !important;
  }
}

/* Remove extra styling from ASL container */
.nav-search-dropdown .asl_w_container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.nav-search-dropdown .asl_w_container .probox {
  border-radius: 10px !important;
}

/* Show dropdown on hover of toggle or dropdown itself */
#nav-search-toggle:hover + .nav-search-dropdown,
.nav-search-dropdown:hover {
  display: block;
}

/* Always show the magnifying glass; always hide the close icon */
#nav-search-toggle .icon-magnify {
  display: inline-block !important;
}
#nav-search-toggle .icon-close {
  display: none !important;
}

/*--------------------------------------------------
  12. Text Effects & Shadows
--------------------------------------------------*/
.text-shadow {
  text-shadow: -5px 10px 10px rgba(0, 0, 0, 0.2) !important;
}
.shadow-glow {
  text-shadow: 0 0 2px white;
}
.text-shadow-close {
  text-shadow: -1.5px 1.2px 0.5px rgba(255, 255, 255, 0.3);
}
.text-shadow-medium {
  text-shadow: -3px 2.5px 2px rgba(0, 0, 0, 0.3);
}
.text-shadow-far {
  text-shadow: -5px 4.3px 4px rgba(0, 0, 0, 0.2);
}
.shadow-white {
  text-shadow: -2px 1.7px 1px rgba(255, 255, 255, 0.5);
}
.shadow-black {
  text-shadow: -4px 3px 3px rgba(0, 0, 0, 0.4);
}
.drop-shadow {
  filter: drop-shadow(-4px 4px 10px rgba(0, 0, 0, 0.3));
}

/* Fix opacity syntax */
.opacity-30 {
  opacity: 0.3;
}

/* Correct rotate utility */
.rotate-45 {
  transform: rotate(45deg);
}

/* SVG Effects */
.svg-shadow svg {
  filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.5));
}
.svg-stroke path {
  stroke: rgba(0,0,0,0.2);
  stroke-width: 1.2px;
}

/*--------------------------------------------------
  13. Background & Outline Effects
--------------------------------------------------*/
.tile-bg {
  background-image: url('tile.png');
  background-repeat: repeat;
  background-size: 75px 75px;
  background-position: -20px -10px;
}

.outlined-text {
  color: white;
  -webkit-text-stroke: 2px black;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.outlined-text-black {
  color: black;
  -webkit-text-stroke: 2px black;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.img-outline {
  filter: drop-shadow(2px 0 black) drop-shadow(-2px 0 black) drop-shadow(0 2px black) drop-shadow(0 -2px black);
}

/*--------------------------------------------------
  14. Element Positioning
--------------------------------------------------*/
.element {
  position: relative;
  z-index: 100;
}

/*--------------------------------------------------
  15. Auto Grid & Miscellaneous Layout Components
--------------------------------------------------*/

/* Auto Grids */
.auto-grid {
  --auto-grid-min-size: 50rem;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
  grid-row-gap: 0.5rem;
}

.auto-grid1 {
  --auto-grid-min-size: 12rem;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
  grid-row-gap: 0.5rem;
  margin: 0 auto;
}
.auto-grid1 > :nth-last-child(1):nth-child(odd) {
  grid-column: auto;
  justify-self: center;
}

.auto-grid2 {
  --auto-grid-min-size: 50rem;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(var(--auto-grid-min-size), 1fr));
  grid-row-gap: 0.5rem;
  margin: 0 auto;
}

.auto-grid3 {
  --auto-grid-min-size: 50rem;
  display: grid;
  justify-content: center;
  justify-items: center;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(var(--auto-grid-min-size), 1fr));
  grid-row-gap: 0.5rem;
  margin: 0 auto;
}

@media (max-width: 1400px) {
  .auto-grid1 { --auto-grid-min-size: 60rem; }
}
@media (max-width: 768px) {
  .auto-grid1 { --auto-grid-min-size: 30rem; }
}

.auto-grid-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* More Video Grid */
.more-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-gap: 10px;
  align-items: start;
}
@media (min-width: 768px) {
  .more-video-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
.more-video-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.more-video-grid h2,
.more-video-grid p {
  margin-top: 0;
  margin-bottom: 10px;
}
.more-video-grid .wp-block-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 400px;
}

/* Logo Display (Mobile-first grid then flex on Tablet) */
.logo-display {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px;
  align-items: center;
  justify-items: center;
}
.logo-display > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}
@media (min-width: 768px) {
  .logo-display {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
  }
  .logo-display figure { margin: 0 10px; }
}

/* Column & Row Layouts (Additional) */
.wp-block-social-link a {
  padding: 5px !important;
}
.title-tagline-box h1,
.title-tagline-box p {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.wp-block-social-links li {
  margin: 0 !important;
}

/*--------------------------------------------------
  16. Team Section
--------------------------------------------------*/
.team-columns {
  display: flex;
  gap: 20px;
}
.team-columns .wp-block-column:first-child {
  flex: 0 0 30%;
  text-align: center;
}
.team-columns .wp-block-column:last-child {
  flex: 1;
  text-align: left;
}
@media (max-width: 768px) {
  .team-columns { flex-direction: column; }
  /* For odd rows: image/title on top */
  .team-columns:nth-child(odd) .wp-block-column:first-child { order: 1; }
  .team-columns:nth-child(odd) .wp-block-column:last-child { order: 2; }
  /* For even rows: bio on top */
  .team-columns:nth-child(even) .wp-block-column:first-child { order: 2; }
  .team-columns:nth-child(even) .wp-block-column:last-child { order: 1; }
}

/*--------------------------------------------------
  17. Statement Cover Block
--------------------------------------------------*/
.statement-cover-block {
  position: relative;
  overflow: hidden;
  padding: 4vw;
}
.statement-cover-block .wp-block-column:last-child {
  position: relative;
}
.statement-cover-block .wp-block-column:last-child img {
  position: absolute;
  top: 0;
  right: 0;
  object-fit: cover;
  height: 100%;
  max-width: 231px;
}
.statement-cover-block .wp-block-column:first-child {
  position: relative;
  z-index: 2;
}
@media (max-width: 1024px) {
  .statement-cover-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .statement-cover-block .wp-block-column:last-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  .statement-cover-block .wp-block-column:last-child img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    opacity: 0.3;
  }
  .statement-cover-block .wp-block-column:first-child {
    text-align: center;
  }
}

/*--------------------------------------------------
  18. Flex Logo Display
--------------------------------------------------*/
.flex-logo-display {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.flex-logo-display > div {
  flex: 1 1 calc(25% - 20px);
  box-sizing: border-box;
  max-width: calc(25% - 20px);
  text-align: center;
}
@media (max-width: 1024px) {
  .flex-logo-display > div {
    flex: 1 1 calc(33% - 20px);
    max-width: calc(33% - 20px);
  }
}
@media (max-width: 768px) {
  .flex-logo-display .icon-container {
    width: 36px;
    height: 36px;
    margin-bottom: 5px;
  }
  .flex-logo-display p { font-size: 0.7rem; }
  .flex-logo-display > div {
    flex: 1 1 calc(50% - 5px);
    max-width: calc(50% - 5px);
  }
  .flex-logo-display { gap: 10px; }
}
@media (max-width: 480px) {
  .flex-logo-display .icon-container svg {
    margin-bottom: -3px;
  }
}

/*--------------------------------------------------
  19. Footer Section
--------------------------------------------------*/
.footer-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  text-align: center;
}
.footer-flex p {
  margin: 1rem;
  font-size: var(--font-size-base);
}
.apt-logo {
  width: 200px;
  height: auto;
}
@media (max-width: 768px) {
  .footer-flex {
    flex-direction: column;
    gap: 5px;
  }
  .apt-logo { width: 150px; }
}

/*--------------------------------------------------
  20. Accessibility Section
--------------------------------------------------*/
.accessibility-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.accessibility-icon img {
  width: 25%;
  max-width: 300px;
  border-radius: 50%;
  object-fit: cover;
}
.accessibility-text {
  font-size: var(--font-size-base);
  margin: 0;
}
@media (min-width: 768px) {
  .accessibility-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: center;
  }
  .accessibility-icon img {
    width: 150px;
    margin-right: 20px;
  }
  .accessibility-text { text-align: left; }
}
@media (max-width: 767px) {
  .accessibility-icon img {
    width: 25vw;
    max-width: none;
  }
  .accessibility-text { text-align: center; }
}

/*--------------------------------------------------
  21. Site Title & Logo Mobile Adjustments
--------------------------------------------------*/
@media (max-width: 600px) {
  .wp-block-site-title a { font-size: 1.4rem; }
  .wp-block-site-logo img {
    max-width: 120px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .wp-block-site-title a { font-size: 1.2rem; }
  .wp-block-site-logo img {
    max-width: 120px;
    height: auto;
  }
}
@media (max-width:480) {
	.radical-text p{font-size: .6rem !important;}
}
/*--------------------------------------------------
  22. Custom Logo Grid
--------------------------------------------------*/
.custom-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1023px) {
  .custom-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Logos 4 and 5 span all columns and are centered */
  .custom-logo-grid > :nth-child(4),
  .custom-logo-grid > :nth-child(5) {
    grid-column: 1 / 4;
    justify-self: center;
  }
}
@media (max-width: 768px) {
  .custom-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* First logo spans two columns */
  .custom-logo-grid > :nth-child(1) {
    grid-column: 1 / 3;
  }
  .custom-logo-grid > :nth-child(2) { grid-column: 1; }
  .custom-logo-grid > :nth-child(3) { grid-column: 2; }
  .custom-logo-grid > :nth-child(4) { grid-column: 1; }
  .custom-logo-grid > :nth-child(5) { grid-column: 2; }
}

/*--------------------------------------------------
  23. Logos Flex Layout
--------------------------------------------------*/
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
}
.logos > div {
  flex: 0 0 auto;
}
@media (min-width: 1025px) {
  .logos > div {
    width: calc(100% / 5 - 20px);
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .logos > div {
    width: calc(100% / 3 - 20px);
  }
}
@media (max-width: 767px) {
  .logos > div {
    width: calc(100% / 2 - 20px);
  }
}


iframe[src*="youtube.com"], iframe[src*="youtu.be"] {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  border: none;
  border-radius: 10px;
}


/* 
  Grid layout for Mailchimp form fields.
  On mobile: single column.
  On desktop (min-width: 768px): two columns.
*/
/* Reduce the spacing between form fields */
.mc4wp-form-fields p {
  margin: 0.5rem 0; /* Tighter vertical spacing */
}

/* By default, labels stack above inputs on narrow screens */
.mc4wp-form-fields p label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* Inputs: make them 100% width, smaller vertical padding for compact look */
.mc4wp-form-fields p input[type="text"],
.mc4wp-form-fields p input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Submit button styling */
.mc4wp-form-fields p input[type="submit"] {
  background-color: var(--primary-color, #ff7e5f);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Hover effect for the button */
.mc4wp-form-fields p input[type="submit"]:hover {
  background-color: #e06d53;
}

/* 
  At larger breakpoints (>=768px), put label and input on the same line.
  Adjust min-width as needed for the label to keep it from overlapping input text.
*/
@media (min-width: 768px) {
  .mc4wp-form-fields p {
    display: flex;
    align-items: center;
    margin: 0.75rem 0; /* Slightly more space on desktop */
  }
  .mc4wp-form-fields p label {
    display: inline-block;
    margin-bottom: 0; 
    margin-right: 1rem;
    min-width: 120px; /* Enough space so label text doesn't wrap */
  }
  .mc4wp-form-fields p input[type="text"],
  .mc4wp-form-fields p input[type="email"] {
    width: auto;       /* Let them shrink or grow */
    flex: 1;           /* Fill remaining space */
  }
}




/* --- Responsive Adjustments for Header Text (.radical-text) --- */
/* @media (max-width: 600px) {
  .wp-block-site-title a { font-size: 1.4rem; }
  .wp-block-site-logo img {
    max-width: 120px;
    height: auto;
  }
}
@media (max-width: 480px) {
  .wp-block-site-title a { font-size: 1.3rem; }
  .wp-block-site-logo img {
    max-width: 120px;
    height: auto;
  }
  .radical-text {
    font-size: 2rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
 */

/* 1. Disable flex-grow on the container so its width is determined by its content */
.wp-container-content-12 {
  flex-grow: 0 !important;
  /* Alternatively you can force the flex shorthand to prevent growth: */
/*   flex: 0 0 auto !important; */
}

/* 2. Ensure the navigation block and its items are tightly spaced and centered */
.wp-block-navigation {
  margin: 0; /* remove extra margin */
  padding-top: 0.2rem; /* adjust top padding as needed */
  padding-bottom: 0.2rem; /* adjust bottom padding as needed */
  line-height: 1; /* tighten up the line-height */
  align-items: center; /* centers icons and text vertically */
}

/* 3. Target individual navigation items to reduce extra spacing */
.wp-block-navigation .wp-block-navigation-item__content {
  padding: 0 0.5rem; /* adjust horizontal spacing between nav items */
  margin: 0; /* reset any margins if applied */
}

/* 4. Ensure icon containers (like for the magnifying glass) are sized consistently and centered */
.icon-magnify,
.nav-search-wrapper button,
.wp-block-navigation button {
  width: 32px; /* or your preferred width */
  height: 32px; /* enforce a square container */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

/* Optionally, if your SVG icon appears off-center, explicitly set its dimensions */
.icon-magnify svg {
  width: 24px; /* control icon size inside the container */
  height: 24px;
  display: block;
}

/* 5. Adjust the spacing for the tagline (Radical, independent, solutions-driven media.) */
/* If the paragraph’s margins are still causing extra space, force them to be smaller: */
.title-tagline-box p.radical-text {
  margin: 0.2rem 0 !important; /* tweak as needed */
}

/* 6. As a final check, ensure the flex parent that holds your menu group also centers its children */
.wp-block-group.title-tagline-box {
  align-items: center;
}

/* 7. If necessary, use your browser’s inspector (right-click → Inspect) to see if any additional styles are applying extra margin or padding,
   then add targeted overrides with !important as needed. */

/* Outer container (optional additional styling already in your inline styles) */
.map-container {
  width: 100%;
  max-width: 1280px; /* maximum width for larger screens */
  margin: 0 auto;
}

/* Responsive container: This container uses a padding-bottom to set an aspect ratio */
.responsive-map {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625 or 56.25%) */
  overflow: hidden;
  border-radius: 5px; /* match with iframe if desired */
}

/* The iframe is positioned absolutely to cover the whole container */
.responsive-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid #D0D5DD;
  border-radius: 10px;
}

/* Target the main navigation container */
.site-header .main-navigation {
    position: relative; /* Ensure the element creates a new stacking context */
    z-index: 1000;      /* A high z-index value to place it above other content */
}

/* Target the drop-down menu, if necessary */
.site-header .main-navigation ul.sub-menu {
    position: absolute; /* Needed for proper dropdown positioning */
    z-index: 1100;      /* Even higher to ensure they float on top */
}

.multi-column-text {
  column-count: 2;         /* or column-width: 300px; */
  column-gap: 2rem;        /* spacing between columns */
}

/* Ensure the submenu appears above subsequent content */
.wp-block-navigation__submenu-container {
  position: relative;  /* or absolute if you need it to float over others */
  z-index: 1000;       /* a higher value places it above lower-index items */
}

/* If the cover block is clipping its children, allow overflow: */
.wp-block-cover {
  overflow: visible;
}

/* Increase vertical space for submenu items */
.wp-block-navigation-submenu li {
  line-height: 1.8 !important;
  /* Optionally add some vertical padding */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}



/* 1. Make columns more balanced */
.team-columns .wp-block-column:first-child {
  flex-basis: 50% !important;
}
.team-columns .wp-block-column:last-child {
  flex-basis: 50% !important;
}

/* 2. Reduce vertical spacing between rows */
/*.team-columns[style*="margin-top:var(--wp--preset--spacing--20)"] {
  margin-top: 1rem !important;
}
*/
/* 3. Remove extra padding in nested groups */
/*.team-columns .wp-block-group.has-global-padding {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}*/

/* 4. Let images fill the left column more naturally */
.team-columns figure img {
  width: 100% !important;
  height: auto !important;
  max-width: 400px; /* Adjust as needed */
  object-fit: cover;

}

/* 5. Use a gap or manual column spacing if needed */
.team-columns.is-layout-flex {
  gap: 2rem; 
}

/*--------------------------------------------------
  Team Member Adjustments
  - Increase bio text font size to 1.3rem
  - Ensure team images remain square (1:1), fixed at 250px by 250px
--------------------------------------------------*/

/*
  Increase the font size for all paragraphs within team-columns.
  If you’d like to narrow the increase to only longer bio texts (and not names),
  consider refining the selectors—for example, excluding paragraphs with the name classes.
  For a broad application:
*/
.team-columns .wp-block-column p {
  font-size: 1.3rem !important;
}

/*
  Force all images within figures inside team-columns to remain square.
  This rule overrides any inline width/height so that the images are kept as 250px by 250px,
  while using object-fit: cover to fill the square without distorting the aspect ratio.
*/
.team-columns figure img {
  width: 250px !important;
  height: 250px !important;
  object-fit: cover;
}


.team-columns .wp-block-column[style*="flex-basis:70%"] p {
  font-size: 1.3rem !important;

  /* Make each team column a flex container with centered content */
.team-columns .wp-block-column {
  display: flex;
  flex-direction: column;
  align-items: center;   /* horizontally center children */
  justify-content: center; /* vertically center children */
  text-align: center;    /* center text within each element */
}
}