/* =========================
   Member Logos Grid
========================= */
.member-logo-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.member-logo-grid.large-logos { justify-content: center; }
.member-logo-grid.large-logos .member-logo-item img { max-width: 180px; height: auto; display: block; }
.member-logo-grid:not(.large-logos) .member-logo-item img { max-width: 140px; height: auto; display: block; }
@media screen and (max-width:1024px) {
   .member-logo-grid { justify-content: flex-start; }
   .member-logo-grid .member-logo-item { flex: 1 1 15%; max-width: 15.9%; }
   .member-logo-grid:not(.large-logos) .member-logo-item img { max-width: 100%; }
   .member-logo-grid.large-logos .member-logo-item img { max-width: 100%; }
}
@media screen and (max-width:767px) {
   .member-logo-grid .member-logo-item { flex: 1 1 20%; max-width: 23.9%; }
}
@media screen and (max-width:600px) {
   .member-logo-grid .member-logo-item { flex: 1 1 25%; max-width: 32.9%; }
}

/* =========================
   Podcast Buttons
========================= */
.awd-podcast-buttons { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; line-height: 0; }
.awd-align-left { justify-content: flex-start; }
.awd-align-center { justify-content: center; }
.awd-align-right { justify-content: flex-end; }
.awd-podcast-button svg, .awd-podcast-button img { width: 232px; height: 58px; display: inline-block; object-fit: cover; border-radius: 5px; transition: transform 0.3s ease; }
.awd-podcast-button svg rect, .awd-podcast-button svg path { transition: fill 0.3s ease; }
.awd-podcast-button:hover svg rect { fill: var(--ast-global-color-0); }
.awd-podcast-button:hover svg path, .awd-podcast-button:hover path.svg-hover-color { fill: var(--ast-global-color-7); }
body .awd-podcast-button.text-only { display: inline-flex; justify-content: center; align-items: center; width: 232px; height: 58px; background-color: var(--ast-global-color-0); color: #fff; font-weight: 600; font-size: 20px; border-radius: 5px; text-decoration: none; transition: background-color 0.3s ease; text-align: center; }
.awd-podcast-button.text-only:hover { background-color: var(--ast-global-color-7); color: var(--ast-global-color-8); }
.awd-button-fallback { display: inline-block; line-height: 1; padding: 0 10px; }

/* Responsive */
@media (max-width:480px) {
   .awd-podcast-button svg, .awd-podcast-button img { width: 100%; max-width: 232px; height: auto; }
}

/* =========================
   Team Members (List + Grid)
========================= */
.team-members-list { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; row-gap: 30px; }
.team-member-item { display: flex; align-items: flex-start; flex-wrap: wrap; padding: 35px; gap: 15px; border: 2px solid var(--ast-global-color-1); }
.team-members-list .team-member-photo { flex: 0 0 25%; margin-right: 1.5rem; }
.team-member-info { flex: 1 1 0; min-width: 0; }
.team-member-name { margin: 0 0 0.25em 0; }
.team-member-title, .team-member-email { margin: 0 0 0.5em 0; }
p.team-member-title { color: var(--ast-global-color-0); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 6px; }
.team-member-info p:last-child { margin-bottom: 0; }
.team-member-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; row-gap: 2em; column-gap: 1.5em; width: 100%; max-width: 968px; }
a.team-member-grid-item { flex: 0 0 48%; text-align: center; }
.team-member-grid img { width: 100%; height: auto; margin-bottom: 20px; aspect-ratio: 4 / 5; object-fit: cover; }
.team-member-grid .team-member-name { margin-bottom: 7px; }
@media screen and (max-width:976px) {
   body .team-members-list .team-member-photo { width: 100%; flex: 0 0 100%; margin-right: 0; margin-bottom: 15px; }
   body .team-members-list .team-member-photo img { max-width: 300px; }
}
@media screen and (max-width:640px) {
   body .team-members-list .team-member-photo img { max-width: 100%; }
   .team-member-item { padding: 25px; }
}

/* =========================
   Reports (Annual/Economic)
========================= */
.issuu-embed { max-width: 1170px; margin: 0 auto 45px; }
.current-report-meta { text-align: center; padding: 0 0 50px; }
.current-report-meta.no-embed { padding-bottom: 60px; }
.past-reports { background: #efefef; padding: 45px; max-width: 1170px; margin: 0 auto; }
.past-reports-heading h3 { text-align: center; margin-bottom: 45px; line-height: 1; }
.past-reports > ul.past-report-list { column-count: 2; row-gap: 1em; padding: 0; list-style: none; font-size: 24px; text-align: center; }
.current-report-meta a.uagb-buttons-repeater.wp-block-button__link, .current-report-meta a.uagb-buttons-repeater.wp-block-button__link:hover, .current-report-meta a.uagb-buttons-repeater.wp-block-button__link:focus { background: transparent; max-width: 242px; margin: 0 auto; height: auto; }
@media screen and (max-width:640px) {
   .past-reports > ul.past-report-list { column-count: 1; display: flex; flex-direction: column; }
}

/* =========================
   Impact Spotlight Layout
========================= */
.impact-spotlight-feature { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; color: #fff; }
.impact-left { flex: 1 1 37.3%; position: relative; overflow: hidden; }
.impact-featured-image { width: 100%; height: auto; object-fit: cover; border-radius: 0; aspect-ratio: 592 / 372; min-height: 200px; }
.impact-right { flex: 1 1 50%; display: flex; flex-direction: column; justify-content: flex-start; padding-left: 77px; padding-right: 170px; }
.impact-category { text-transform: uppercase; font-size: 14px; letter-spacing: 2px; margin-bottom: 7px; }
.impact-title { color: #fff; margin-bottom: 10px; }
.impact-excerpt { margin-bottom: 45px; }
.impact-buttons.wp-block-uagb-button { display: flex; column-gap: 70px; flex-wrap: wrap; }
.impact-buttons.wp-block-uagb-button a.uagb-button__link { color: #fff; font-size: 20px; font-weight: 600; }
body .impact-buttons .uagb-button__link:hover::after { transform: rotate3d(1, 1, 5, 45deg); }
.impact-right a { color: #fff; }
.impact-slider-wrapper .slick-dots { bottom: -25px; }
.impact-slider-wrapper .slick-prev, .impact-slider-wrapper .slick-next { z-index: 10; }
.impact-slider-wrapper .slick-dots { display: flex !important; justify-content: center; margin: 20px 0 0; padding: 0; list-style: none; position: relative; bottom: -30px; }
.impact-slider-wrapper .slick-dots li { margin: 0 6px; }
.impact-slider-wrapper .slick-dots li button { position: relative; width: 10px; height: 10px; padding: 0; background: rgba(255, 255, 255, 0.5); border: none; border-radius: 50%; text-indent: -9999px; overflow: hidden; cursor: pointer; transition: background 0.3s ease, transform 0.3s ease; }
.impact-slider-wrapper .slick-dots li button::before { content: ''; }
.impact-slider-wrapper .slick-dots li.slick-active button { background: #ffffff; transform: scale(1.2); }
.impact-slider-wrapper .slick-dots li button:hover { background: rgba(255, 255, 255, 0.8); }
.impact-buttons.wp-block-uagb-button a::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 12px; vertical-align: middle; background: url('/wp-content/themes/awd-child/images/arrow-btn.svg') no-repeat center / contain; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); transform: rotate(0deg); transform-origin: center center; }

/* If your background is light and you want dark dots instead, you can override colors:
.impact-slider-wrapper .slick-dots li button { background: rgba(0,0,0,0.3); }
.impact-slider-wrapper .slick-dots li.slick-active button { background: rgba(0,0,0,0.8); }
*/
@media screen and (max-width:1400px) {
   .impact-right { padding-left: 60px; padding-right: 60px; }
}
@media screen and (max-width:1024px) {
   .impact-spotlight-feature { flex-direction: column; gap: 20px; max-width: 767px; width: 100%; margin: 0 auto; }
   .impact-left, .impact-right { flex: 0 0 100%; width: 100%; padding: 10px; }
}

/* =========================
   Video Popup Shortcode
========================= */
body .entry-content .awd-fancybox-video-wrap { position: relative; display: block; width: 100%; max-width: 768px; line-height: 0; margin-left: auto; margin-right: auto; }
.awd-fancybox-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; text-decoration: none; color: inherit; }
.awd-fancybox-video img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Overlay */
.awd-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); pointer-events: none; }
.awd-overlay-content { display: flex; align-items: center; padding: 10px 20px 34px 25px; }

/* Play icon */
.awd-play-icon { width: 52px; height: 52px; margin-right: 1rem; transform: scale(1); transition: transform 0.3s ease; }
.awd-fancybox-video:hover .awd-play-icon { transform: scale(1.15); }

/* Title */
.awd-overlay-title { color: #fff; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }

/* === AWD: Force Fancybox iframe video size (applies even if slide classes differ) === */

/* Target iframe content boxes containing Fancybox iframes */
.fancybox__content:has(> .fancybox__iframe) { width: min(960px, 92vw) !important; aspect-ratio: 16 / 9 !important; height: auto !important; padding: 0 !important; }

/* Make the iframe fill the box */
.fancybox__content > .fancybox__iframe { width: 100% !important; height: 100% !important; display: block; }

/* Responsive font sizing */
@media (max-width:976px) {
   body .entry-content .awd-fancybox-video-wrap { max-width: 544px; }
}
@media (max-width:768px) {
   .awd-overlay-title { font-size: 1.25rem; }
   .awd-play-icon { width: 44px; height: 44px; }
}
