/*
Theme Name: Texas D.U.S.T.
Theme URI: https://texasdust.org
Author: D.U.S.T. Team
Author URI: https://texasdust.org
Description: Modern FSE neobrutalist block theme for Dyakuyu Ukraine Support Team - humanitarian aid nonprofit delivering critical aid directly to Ukraine
Version: 4.1.13
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: texasdust
Tags: nonprofit, charity, ukraine, neobrutalism, block-theme, full-site-editing, custom-colors, block-patterns, block-styles, one-column, wide-blocks, accessibility-ready
*/

/* CSS Variables */
:root {
  --ukraine-blue: #005BBB;
  --ukraine-yellow: #FFD500;
  --cool-steel: #89A7A7;
  --dust-black: #1a1a1a;
  --dust-white: #ffffff;
  --dust-gray: #f5f5f5;
  --donate-coral: #FF6B4A;
  --donate-coral-hover: #E85A3A;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dust-black);
  background-color: var(--dust-white);
  margin: 0;
  padding: 0;
}

/* Only remove spacing from the WordPress site wrapper */
.wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  background: var(--dust-white);
  border-bottom: 4px solid var(--dust-black);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-top: 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ukraine-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  position: relative;
  bottom: 9px;
}

/* Show full name on desktop, short on mobile */
.logo-short {
  display: none !important;
}

.logo-full {
  display: inline !important;
}

/* Navigation */
.main-navigation {
  display: flex !important;
  gap: 2rem;
}

/* Target ALL possible WordPress menu structures */
.main-navigation ul,
.main-navigation ul.menu,
.main-navigation ul.nav-menu,
.main-navigation .menu-horizontal,
.main-navigation div > ul,
#primary-menu ul,
#primary-menu > ul,
nav ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 2rem !important;
  flex-wrap: wrap !important;
}

.main-navigation li,
.main-navigation ul li,
#primary-menu li,
nav li {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  list-style: none !important;
}

.main-navigation a {
  text-decoration: none;
  color: var(--dust-black);
  font-weight: 700;
  font-size: 1.125rem;
  transition: color 0.3s;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  display: inline-block;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a.current,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--ukraine-blue);
  border-bottom-color: var(--ukraine-blue);
}

/* Donate Button - Special CTA Styling - Commented out, using floating button instead */
/* .main-navigation a[href*="donate"],
.main-navigation .menu-item a[href*="/donate"] {
  background: var(--ukraine-blue);
  color: var(--dust-white) !important;
  padding: 0.75rem 1.5rem !important;
  border: 3px solid var(--dust-black);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--dust-black);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 1rem;
  position: relative;
  bottom: 7px;
}

.main-navigation a[href*="donate"]:hover,
.main-navigation .menu-item a[href*="/donate"]:hover {
  background: var(--cool-steel);
  color: var(--dust-white) !important;
  border-bottom: 3px solid var(--dust-black) !important;
  box-shadow: 6px 6px 0 var(--dust-black);
  transform: translate(-2px, -2px);
  animation: shake 0.5s ease-in-out;
}

/* Shake animation for Donate button */
@keyframes shake {
  0%, 100% { transform: translate(-2px, -2px) rotate(0deg); }
  25% { transform: translate(-2px, -2px) rotate(-2deg); }
  50% { transform: translate(-2px, -2px) rotate(2deg); }
  75% { transform: translate(-2px, -2px) rotate(-2deg); }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: var(--ukraine-blue);
  color: var(--dust-white);
  border: 3px solid var(--dust-black);
  padding: 0.75rem 1.5rem;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--dust-black);
}

.menu-toggle:active {
  box-shadow: 2px 2px 0 var(--dust-black);
  transform: translate(2px, 2px);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--dust-white) 0%, var(--dust-gray) 100%);
  border-bottom: 4px solid var(--dust-black);
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  animation: slideInLeft 0.8s ease-out;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 900;
  text-decoration: none;
  border: 3px solid var(--dust-black);
  box-shadow: 6px 6px 0 var(--dust-black);
  transition: all 0.2s;
  cursor: pointer;
  text-transform: uppercase;
}

.btn:active {
  box-shadow: 3px 3px 0 var(--dust-black);
  transform: translate(3px, 3px);
}

.btn-primary {
  background: var(--ukraine-blue);
  color: var(--dust-white);
}

.btn-primary:hover {
  background: var(--cool-steel);
}

.btn-secondary {
  background: var(--ukraine-yellow);
  color: var(--dust-black);
}

.btn-secondary:hover {
  background: var(--ukraine-blue);
  color: var(--dust-white);
}

/* Stats Grid */
.stats-section {
  background: var(--ukraine-blue);
  padding: 4rem 0;
  border-bottom: 4px solid var(--dust-black);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: var(--dust-white);
  padding: 2rem;
  border: 4px solid var(--dust-black);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--ukraine-blue);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dust-black);
}

/* Content Section */
.content-section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--dust-white);
  border: 4px solid var(--dust-black);
  box-shadow: 8px 8px 0 var(--dust-black);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--dust-black);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--ukraine-blue);
  margin-bottom: 1rem;
}

.card p {
  color: var(--dust-black);
  line-height: 1.6;
}

/* Donation Cards */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.donation-card {
  background: var(--ukraine-yellow);
  border: 4px solid var(--dust-black);
  box-shadow: 8px 8px 0 var(--dust-black);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.donation-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--dust-black);
}

.donation-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--ukraine-blue);
  margin-bottom: 1rem;
}

.donation-description {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dust-black);
}

/* Footer */
.site-footer {
  background: var(--dust-black);
  color: var(--dust-white);
  padding: 3rem 0 1.5rem;
  border-top: 4px solid var(--ukraine-blue);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--ukraine-yellow);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-section p,
.footer-section a {
  color: var(--dust-white);
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--ukraine-yellow);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* WordPress Specific */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Responsive - Force ALL columns to stack on mobile */
@media (max-width: 781px) {
  /* Ultra-high specificity to override ALL WordPress inline container styles */
  /* Target every possible combination of column classes */
  .wp-block-columns,
  .wp-block-columns.is-layout-flex,
  .wp-block-columns.wp-block-columns-is-layout-flex,
  div.wp-block-columns[class*="wp-container-"],
  div.wp-block-columns.is-layout-flex[class*="wp-container-"],
  div.is-layout-flex.wp-block-columns.wp-block-columns-is-layout-flex[class*="wp-container-"] {
    flex-wrap: wrap !important;
    display: flex !important;
  }

  /* Force all column children to full width */
  .wp-block-columns > .wp-block-column,
  .wp-block-columns.is-layout-flex > .wp-block-column,
  .wp-block-columns[class*="wp-container-"] > .wp-block-column {
    flex-basis: 100% !important;
    flex-grow: 1 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

  .menu-toggle {
    display: block !important;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--ukraine-blue);
  }

  .menu-toggle:active {
    box-shadow: none;
    transform: none;
  }

  .main-navigation {
    display: none !important;
    flex-direction: column !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dust-white);
    border-bottom: 4px solid var(--dust-black);
    padding: 1rem 2rem;
    gap: 1rem;
    width: 100%;
    z-index: 999;
  }

  .main-navigation.active {
    display: flex !important;
  }

  .main-navigation ul,
  .main-navigation .menu-horizontal {
    flex-direction: column !important;
    width: 100%;
  }

  .main-navigation li {
    width: 100%;
    display: block !important;
  }

  .main-navigation a {
    width: 100%;
    padding: 1rem !important;
    text-align: left;
    border-bottom: 1px solid #eee;
  }

  /* Donate button on mobile - full width - Commented out, using floating button instead */
  /* .main-navigation a[href*="donate"],
  .main-navigation .menu-item a[href*="/donate"] {
    margin-left: 0 !important;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    border-bottom: 3px solid var(--dust-black);
  } */

  .header-container {
    flex-wrap: nowrap !important;
    position: relative;
    justify-content: space-between;
    align-items: center;
  }

  .site-logo {
    font-size: 1.5rem;
  }

  /* Switch to short logo on mobile */
  .logo-full {
    display: none !important;
  }

  .logo-short {
    display: inline !important;
  }

  .hero {
    padding: 3rem 0;
  }

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

  .card-grid,
  .donation-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .card,
  .donation-card,
  .stat-card {
    box-shadow: 4px 4px 0 var(--dust-black);
  }

  .card:hover,
  .donation-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--dust-black);
  }
}

/* ============================================
   FSE Block Theme Enhancements
   ============================================ */

/* Floating Donation Button */
.floating-donate-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--donate-coral);
  color: var(--dust-white);
  padding: 1rem 1.5rem;
  border: 4px solid var(--dust-black);
  box-shadow: 6px 6px 0 var(--dust-black);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.floating-donate-btn:hover {
  background: var(--donate-coral-hover);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--dust-black);
  animation: shake 0.5s ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Mobile floating button */
@media (max-width: 768px) {
  .floating-donate-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }

  .floating-donate-text {
    display: inline;
  }
}

@media (max-width: 480px) {
  .floating-donate-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Block Editor Enhancements */
.wp-block-button__link {
  border-radius: 0 !important;
  box-shadow: 6px 6px 0 var(--dust-black);
  transition: all 0.2s ease;
}

.wp-block-button__link:hover {
  box-shadow: 8px 8px 0 var(--dust-black);
  transform: translate(-2px, -2px);
}

.wp-block-button__link:active {
  box-shadow: 3px 3px 0 var(--dust-black);
  transform: translate(3px, 3px);
}

/* Card hover effects for FSE blocks */
.wp-block-group.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 8px 8px 0 var(--dust-black);
}

.wp-block-group.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--dust-black);
}

.wp-block-group.stat-card,
.wp-block-group.donation-card {
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wp-block-group.donation-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3);
}

/* Navigation Block Styling */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--dust-white);
  border: 4px solid var(--dust-black);
  padding: 2rem;
}

/* Mobile Hamburger Menu - Reset to default styling */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--dust-black) !important;
}

.wp-block-navigation__responsive-container-open:hover,
.wp-block-navigation__responsive-container-close:hover {
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
  color: var(--ukraine-blue) !important;
}

.wp-block-navigation-item__content {
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__content {
  color: var(--ukraine-blue);
  border-bottom-color: var(--ukraine-blue);
}

/* Donate Navigation Item - Coral Text Standout */
.wp-block-navigation-item a[href*="donate"],
.wp-block-navigation-link a[href*="donate"],
.wp-block-navigation a[href*="/donate"] {
  color: var(--donate-coral) !important;
  font-weight: 900 !important;
}

.wp-block-navigation-item a[href*="donate"]:hover,
.wp-block-navigation-link a[href*="donate"]:hover,
.wp-block-navigation a[href*="/donate"]:hover {
  color: var(--donate-coral-hover) !important;
  border-bottom-color: var(--donate-coral) !important;
}

/* ============================================
   GiveWP Donation Plugin Styling
   ============================================ */

/* GiveWP Donate Buttons - Coral Standout */
.give-btn,
.give-submit,
[class*="give"] button,
[class*="give"] input[type="submit"],
.give-donation-submit,
.give-btn-modal {
  background: var(--donate-coral) !important;
  color: var(--dust-white) !important;
  padding: 1rem 2rem !important;
  border: 3px solid var(--dust-black) !important;
  border-radius: 0 !important;
  box-shadow: 6px 6px 0 var(--dust-black);
  font-weight: 900 !important;
  font-size: 1.125rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease !important;
}

.give-btn:hover,
.give-submit:hover,
[class*="give"] button:hover,
[class*="give"] input[type="submit"]:hover,
.give-donation-submit:hover,
.give-btn-modal:hover {
  background: var(--donate-coral-hover) !important;
  color: var(--dust-white) !important;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--dust-black);
}

.give-btn:active,
.give-submit:active,
[class*="give"] button:active,
[class*="give"] input[type="submit"]:active {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--dust-black);
}

/* GiveWP Form Container */
[id*="give-form"],
.give-form-wrap,
.give-embed-form {
  border: 4px solid var(--dust-black);
  box-shadow: 8px 8px 0 var(--dust-black);
  padding: 2rem;
  background: var(--dust-white);
}

/* GiveWP Donation Amount Buttons */
.give-donation-levels-wrap .give-donation-level-btn,
.give-donation-amount .give-text-input {
  border: 3px solid var(--dust-black) !important;
  border-radius: 0 !important;
  font-weight: 700;
  transition: all 0.2s ease;
}

.give-donation-levels-wrap .give-donation-level-btn:hover,
.give-donation-levels-wrap .give-donation-level-btn.give-default-level {
  background: var(--ukraine-yellow) !important;
  color: var(--dust-black) !important;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--dust-black);
}

/* GiveWP Input Fields */
.give-input,
[class*="give"] input[type="text"],
[class*="give"] input[type="email"],
[class*="give"] input[type="tel"],
[class*="give"] select,
[class*="give"] textarea {
  border: 3px solid var(--dust-black) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.give-input:focus,
[class*="give"] input:focus,
[class*="give"] select:focus,
[class*="give"] textarea:focus {
  outline: none !important;
  border-color: var(--ukraine-blue) !important;
  box-shadow: 4px 4px 0 var(--ukraine-blue);
}

/* GiveWP Progress Bar */
.give-progress-bar {
  border: 3px solid var(--dust-black);
  border-radius: 0 !important;
  overflow: hidden;
  background: var(--dust-gray);
}

.give-progress-bar > span {
  background: var(--donate-coral) !important;
}

/* GiveWP Goal Amount */
.give-goal-progress .income,
.give-goal-progress .goal-text {
  color: var(--ukraine-blue);
  font-weight: 900;
}

/* ============================================
   Footer Navigation Links Fix
   ============================================ */

/* Make footer Quick Links visible (white on dark background) */
.site-footer .wp-block-navigation a,
.site-footer .wp-block-navigation-item__content,
.site-footer .wp-block-navigation-link a {
  color: var(--dust-white) !important;
}

.site-footer .wp-block-navigation a:hover,
.site-footer .wp-block-navigation-item__content:hover {
  color: var(--ukraine-yellow) !important;
  border-bottom-color: var(--ukraine-yellow) !important;
}

/* Footer Donate link - white like other links, yellow on hover */
.site-footer .wp-block-navigation-item a[href*="donate"],
.site-footer .wp-block-navigation a[href*="/donate"] {
  color: var(--dust-white) !important;
}

.site-footer .wp-block-navigation-item a[href*="donate"]:hover,
.site-footer .wp-block-navigation a[href*="/donate"]:hover {
  color: var(--ukraine-yellow) !important;
}

/* ============================================
   Donation Card Buttons - Coral Override
   ============================================ */

/* Make donate buttons in donation cards coral instead of blue */
.donation-card .wp-block-button__link,
.wp-block-group.donation-card .wp-block-button__link,
.donation-card .wp-element-button,
.wp-block-group.donation-card .wp-element-button {
  background: var(--donate-coral) !important;
  color: var(--dust-white) !important;
  border: 3px solid var(--dust-black) !important;
  margin-top: auto;
}

.donation-card .wp-block-button__link:hover,
.wp-block-group.donation-card .wp-block-button__link:hover,
.donation-card .wp-element-button:hover,
.wp-block-group.donation-card .wp-element-button:hover {
  background: var(--donate-coral-hover) !important;
}

/* ============================================
   Nested Group Padding Fix
   ============================================ */

/* Remove default padding from nested groups to prevent alignment issues */
.wp-block-group .wp-block-group {
  padding: 0;
}

/* Restore padding for groups that explicitly need it (cards, stat-cards, etc.) */
.wp-block-group .wp-block-group.card,
.wp-block-group .wp-block-group.stat-card,
.wp-block-group .wp-block-group.donation-card,
.wp-block-group .wp-block-group[style*="padding"] {
  /* Let inline styles take precedence */
}

/* Site Title in Header */
.wp-block-site-title a {
  text-decoration: none;
}

/* Post Featured Images with neo-brutalist borders */
.wp-block-post-featured-image img {
  border: 3px solid var(--dust-black);
}

/* Query Loop Grid Improvements */
.wp-block-post-template.is-flex-container {
  gap: 2rem;
}

/* Latest Posts / Query Loop - Individual Post Styling */
.wp-block-post {
  background: var(--dust-white);
  border: 4px solid var(--dust-black);
  box-shadow: 8px 8px 0 var(--dust-black);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.wp-block-post:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--dust-black);
}

/* Post Title */
.wp-block-post-title {
  color: var(--ukraine-blue);
  margin-bottom: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.wp-block-post-title a {
  color: var(--ukraine-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.wp-block-post-title a:hover {
  color: var(--cool-steel);
}

/* Post Excerpt */
.wp-block-post-excerpt {
  margin-bottom: 1rem;
  flex-grow: 1;
}

.wp-block-post-excerpt__excerpt {
  color: var(--dust-black);
  line-height: 1.6;
}

/* Post Date */
.wp-block-post-date {
  color: var(--cool-steel);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Post Author */
.wp-block-post-author {
  color: var(--cool-steel);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Post Categories/Terms - Hidden by default */
.wp-block-post-terms {
  display: none;
}

/* Read More Link */
.wp-block-post-excerpt__more-link {
  display: inline-block;
  background: var(--ukraine-blue);
  color: var(--dust-white);
  padding: 0.75rem 1.5rem;
  border: 3px solid var(--dust-black);
  box-shadow: 4px 4px 0 var(--dust-black);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.wp-block-post-excerpt__more-link:hover {
  background: var(--cool-steel);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--dust-black);
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Hero Section Animation */
.hero .wp-block-heading,
.hero .wp-block-paragraph {
  animation: slideInLeft 0.8s ease-out;
}

/* Section Title Decoration - Removed */

/* Ensure proper spacing in FSE templates */
.wp-block-group:not(.site-header):not(.site-footer) {
  min-height: auto;
}

/* Cover Block Background Gradient Support */
.wp-block-cover.hero {
  background: linear-gradient(180deg, var(--dust-white) 0%, var(--dust-gray) 100%);
}

/* Social Links Styling */
.wp-block-social-links .wp-block-social-link {
  border: 2px solid var(--dust-white);
  transition: all 0.3s ease;
}

.wp-block-social-links .wp-block-social-link:hover {
  background: var(--ukraine-yellow);
  border-color: var(--ukraine-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--dust-white);
}

/* Search Block Styling */
.wp-block-search__button {
  background: var(--ukraine-blue);
  color: var(--dust-white);
  border: 3px solid var(--dust-black);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--dust-black);
  transition: all 0.2s ease;
}

.wp-block-search__button:hover {
  background: var(--cool-steel);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--dust-black);
}

/* Pagination Styling */
.wp-block-query-pagination {
  font-weight: 700;
}

.wp-block-query-pagination a {
  color: var(--ukraine-blue);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 3px solid var(--dust-black);
  background: var(--dust-white);
  transition: all 0.2s ease;
  display: inline-block;
}

.wp-block-query-pagination a:hover {
  background: var(--ukraine-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--dust-black);
}

.wp-block-query-pagination .current {
  background: var(--ukraine-blue);
  color: var(--dust-white);
  padding: 0.5rem 1rem;
  border: 3px solid var(--dust-black);
  box-shadow: 4px 4px 0 var(--dust-black);
}

/* Equal Height Cards in Columns */
.wp-block-columns {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 1fr !important;
  align-items: stretch !important;
}

.wp-block-column {
  display: grid !important;
  grid-template-rows: 1fr !important;
  align-items: stretch !important;
}

.wp-block-column > .wp-block-group {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Ensure card content stretches properly */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

/* News Page - Convoy Header Styling */
/* Target ONLY the post titles in Latest Posts block */
.wp-block-latest-posts__post-title,
.wp-block-latest-posts li > a,
.wp-block-latest-posts li h2,
.wp-block-latest-posts li h3 {
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  font-weight: 900 !important;
  color: var(--ukraine-blue) !important;
  margin-top: 4rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 4px solid var(--ukraine-yellow) !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  display: block !important;
}

/* Style the link inside post titles */
.wp-block-latest-posts__post-title a,
.wp-block-latest-posts li h2 a,
.wp-block-latest-posts li h3 a {
  color: var(--ukraine-blue) !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* First post title shouldn't have top margin */
.wp-block-latest-posts li:first-child .wp-block-latest-posts__post-title,
.wp-block-latest-posts li:first-child > a,
.wp-block-latest-posts li:first-child h2,
.wp-block-latest-posts li:first-child h3 {
  margin-top: 0 !important;
}

/* Accessibility Improvements */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--dust-white);
  border: 3px solid var(--ukraine-blue);
  box-shadow: 4px 4px 0 var(--dust-black);
  clip: auto !important;
  color: var(--dust-black);
  display: block;
  font-size: 1rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 1rem 1.5rem;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
