/* =========================================================
   P.A.R.T. USA HOMEPAGE
   WP CODER 16
   WORDPRESS PAGE ID 257
   ========================================================= */

/* PAGE RESET */
html,
body.page-id-257 {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  background: #06142f !important;
}

/* FORCE WORDPRESS PAGE FULL WIDTH */
body.page-id-257 .wp-site-blocks,
body.page-id-257 main,
body.page-id-257 main.wp-block-group,
body.page-id-257 .wp-block-post-content,
body.page-id-257 .entry-content,
body.page-id-257 .site-content,
body.page-id-257 .content-area,
body.page-id-257 .site-main,
body.page-id-257 .is-layout-constrained,
body.page-id-257 .is-layout-flow,
body.page-id-257 .wp-block-group,
body.page-id-257 .wp-block-shortcode {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* REMOVE CONSTRAINED CHILD WIDTH */
body.page-id-257 .wp-block-post-content > *,
body.page-id-257 .entry-content > *,
body.page-id-257 main > .wp-block-group,
body.page-id-257 .wp-block-shortcode > * {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* REMOVE PAGE TITLE AND FEATURED IMAGE */
body.page-id-257 .wp-block-post-title,
body.page-id-257 h1.entry-title,
body.page-id-257 .entry-title,
body.page-id-257 .wp-block-post-featured-image,
body.page-id-257 .featured-image,
body.page-id-257 .post-thumbnail {
  display: none !important;
}

/* REMOVE WORDPRESS BLOCK GAPS */
body.page-id-257 .wp-block-post-content,
body.page-id-257 .entry-content {
  gap: 0 !important;
  block-gap: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* MAIN HOMEPAGE WRAPPER */
.part-usa-home {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background-color: #06142f;
  font-family: "Footlight MT Light", Georgia, serif;
}

/* APPROVED HOMEPAGE HERO */
.part-approved-hero {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 1000 / 333;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background-image:
    url("https://partusa.org/wp-content/uploads/2026/08/Background-for-homepage-Final.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
  background-color: #04122d;
}

/* HOMEPAGE CONTENT SECTION */
.part-tile-section {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 54px 24px 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #061b43;
  background-image:
    url("https://partusa.org/wp-content/uploads/2026/08/Background-for-homepage-bottom.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
}

/* EXTEND ARTWORK BELOW FINAL TILE ROW */
.part-tile-section::after {
  content: "";
  display: block;
  width: 100%;
  height: 185px;
  margin: 0;
  padding: 0;
  background-image:
    url("https://partusa.org/wp-content/uploads/2026/08/Background-for-homepage-bottom.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
}

/* SUBTLE DARK OVERLAY */
.part-tile-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(3, 16, 42, 0.03) 0%,
      rgba(4, 18, 45, 0.04) 45%,
      rgba(3, 15, 38, 0.08) 100%
    );
}

/* INNER CONTAINER */
.part-tile-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 0 !important;
}

/* =========================================================
   TWO SMALL FEATURED HOMEPAGE ITEMS
   ========================================================= */

.part-featured-highlights {
  display: grid;
  grid-template-columns: repeat(2, 260px);
  justify-content: center;
  align-items: start;
  gap: 34px;
  width: 100%;
  margin: 0 auto 58px;
}

.part-highlight-item {
  width: 260px;
  margin: 0;
  text-align: center;
}

.part-highlight-title {
  min-height: 42px;
  margin: 0 0 9px;
  color: #f4d27b;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.75),
    0 0 12px rgba(214, 177, 92, 0.32);
}

.part-highlight-card {
  display: block;
  position: relative;
  width: 260px;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(214, 177, 92, 0.76);
  border-radius: 16px;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.46),
    0 0 20px rgba(214, 177, 92, 0.16);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.part-highlight-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

.part-highlight-card span {
  display: block;
  padding: 9px 10px;
  color: #fff8e6;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
}

/* PURPLE ADVOCACY FEATURE */
.part-highlight-purple {
  background:
    linear-gradient(
      145deg,
      #57206f 0%,
      #300c49 55%,
      #19082f 100%
    );
}

.part-highlight-purple span {
  border-top: 1px solid rgba(244, 210, 123, 0.52);
  background:
    linear-gradient(
      180deg,
      #702890 0%,
      #400d59 100%
    );
}

/* RED, GOLD AND BLUE VETERANS FEATURE */
.part-highlight-veterans {
  background:
    linear-gradient(
      145deg,
      #081c42 0%,
      #4f080d 58%,
      #16060a 100%
    );
}

.part-highlight-veterans span {
  border-top: 1px solid rgba(244, 210, 123, 0.62);
  background:
    linear-gradient(
      180deg,
      #7a0707 0%,
      #470307 100%
    );
}

/* FEATURED TILE HOVER */
.part-highlight-card:hover,
.part-highlight-card:focus {
  transform: translateY(-6px) scale(1.025);
  border-color: #ffe49a;
  box-shadow:
    0 22px 38px rgba(0, 0, 0, 0.52),
    0 0 17px rgba(255, 228, 154, 0.9),
    0 0 34px rgba(214, 177, 92, 0.68);
}

.part-highlight-card:hover img,
.part-highlight-card:focus img {
  transform: scale(1.025);
  filter: brightness(1.07);
}

.part-highlight-card:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

/* =========================================================
   EXPLORE HEADING
   ========================================================= */

.part-tile-heading {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.part-tile-heading h2 {
  margin: 0 0 10px;
  font-family: "Footlight MT Light", Georgia, serif;
  font-size: clamp(2.3rem, 4.5vw, 3.7rem);
  line-height: 1.05;
  color: #f0c864;
  text-shadow:
    0 0 12px rgba(214, 177, 92, 0.38),
    0 0 25px rgba(160, 31, 53, 0.18);
}

.part-tile-heading p {
  margin: 0;
  color: #f8f2e7;
  font-size: clamp(1rem, 1.65vw, 1.22rem);
  line-height: 1.52;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.68);
}

/* GOLD DIVIDER */
.part-heading-divider {
  display: flex;
  width: 100%;
  max-width: 300px;
  margin: 15px auto 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.part-heading-divider span {
  display: block;
  flex: 1;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #d6b15c
    );
}

.part-heading-divider span:last-child {
  background:
    linear-gradient(
      90deg,
      #d6b15c,
      transparent
    );
}

.part-heading-divider strong {
  color: #f0c55d;
  font-size: 1.12rem;
  line-height: 1;
}

/* PAIN IS NOT A CRIME */
.part-home-slogan {
  margin: 17px auto 0;
  color: #e35a68;
  font-family: "Footlight MT Light", Georgia, serif;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.72),
    0 0 10px rgba(214, 177, 92, 0.28),
    0 0 18px rgba(160, 31, 53, 0.32);
}

/* =========================================================
   MAIN TILE GRID
   ========================================================= */

.part-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
  position: relative !important;
  z-index: 50 !important;
  margin-bottom: 0 !important;
}

/* STANDARD TILE */
.part-tile {
  display: block;
  position: relative !important;
  z-index: 60 !important;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(214, 177, 92, 0.42);
  border-radius: 18px;
  background: rgba(4, 14, 38, 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(214, 177, 92, 0.14);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* TILE SHINE */
.part-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.16),
      transparent 32%,
      rgba(214, 177, 92, 0.12)
    );
  transition: opacity 0.25s ease;
}

/* TILE IMAGES */
.part-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none !important;
  transform: scale(1.01);
  transition: transform 0.25s ease;
}

/* HOW YOU CAN HELP TILE */
.part-help-tile {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  display: block !important;
  overflow: hidden !important;
  background: rgba(4, 14, 38, 0.82) !important;
}

.part-help-tile img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  object-fit: fill !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

/* TILE HOVER */
.part-tile:hover,
.part-tile:focus {
  transform: translateY(-5px);
  border-color: rgba(244, 210, 123, 0.86);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 22px 42px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(214, 177, 92, 0.28);
}

.part-tile:hover::before,
.part-tile:focus::before {
  opacity: 1;
}

.part-tile:hover img,
.part-tile:focus img {
  transform: scale(1.045);
}

.part-help-tile:hover img,
.part-help-tile:focus img {
  transform: scale(1.02) !important;
}

.part-tile:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

/* CENTERED RESOURCES TILE */
.part-resources-tile {
  grid-column: 2;
  width: 100%;
  justify-self: center;
}

/* ABOUT + MEMBER COMMUNITY ROW */
.part-feature-row {
  grid-column: 1 / -1;
  width: 56%;
  max-width: 700px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px auto 0;
  align-items: stretch;
}

/* SMALL FEATURE TILES */
.part-feature-tile {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: auto;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 177, 92, 0.42);
  border-radius: 16px;
  background: transparent;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(214, 177, 92, 0.12);
}

.part-feature-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
  transform: none;
}

.part-feature-tile:hover img,
.part-feature-tile:focus img {
  transform: scale(1.015);
}

.part-feature-row:last-child {
  margin-bottom: 0 !important;
}

/* REMOVE HOMEPAGE/FOOTER GAPS */
body.page-id-257 main,
body.page-id-257 .wp-block-post-content,
body.page-id-257 .entry-content,
body.page-id-257 .site-content,
body.page-id-257 .content-area,
body.page-id-257 .site-main {
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.page-id-257 .part-usa-home {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.page-id-257 .part-tile-section {
  margin-bottom: 0 !important;
}

body.page-id-257 footer,
body.page-id-257 .wp-block-template-part,
body.page-id-257 .site-footer {
  margin-top: 0 !important;
}

body.page-id-257 .wp-block-post-content > .wp-block-spacer:last-child,
body.page-id-257 .entry-content > .wp-block-spacer:last-child {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-257 .wp-site-blocks > * + *,
body.page-id-257 main + footer,
body.page-id-257 main + .wp-block-template-part {
  margin-block-start: 0 !important;
}

body.page-id-257 .wp-site-blocks {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.page-id-257 main,
body.page-id-257 main#wp--skip-link--target,
body.page-id-257 .entry-content,
body.page-id-257 .entry-content.wp-block-post-content,
body.page-id-257 .wp-block-shortcode {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.page-id-257 .wp-block-post-content > *,
body.page-id-257 .wp-site-blocks > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* TABLET */
@media (max-width: 900px) {
  .part-approved-hero {
    aspect-ratio: 1000 / 333;
    background-size: 100% auto;
    background-position: center top;
  }

  .part-tile-section {
    padding: 48px 18px 0;
  }

  .part-featured-highlights {
    grid-template-columns: repeat(2, 240px);
    gap: 24px;
    margin-bottom: 52px;
  }

  .part-highlight-item,
  .part-highlight-card {
    width: 240px;
  }

  .part-tile-section::after {
    height: 130px;
  }

  .part-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .part-resources-tile {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
    justify-self: center;
  }

  .part-feature-row {
    grid-column: 1 / -1;
    width: 70%;
    max-width: 650px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px auto 0;
  }

  .part-feature-tile {
    width: 100%;
    max-width: 310px;
    margin: 0 auto;
  }
}

/* MOBILE */
@media (max-width: 620px) {
  .part-approved-hero {
    aspect-ratio: 1000 / 333;
    background-size: 100% auto;
    background-position: center top;
  }

  .part-tile-section {
    padding: 42px 16px 0;
  }

  .part-featured-highlights {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 48px;
  }

  .part-highlight-item,
  .part-highlight-card {
    width: 220px;
    margin-left: auto;
    margin-right: auto;
  }

  .part-highlight-title {
    min-height: 0;
    font-size: 0.84rem;
  }

  .part-tile-section::after {
    height: 90px;
  }

  .part-tile-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .part-resources-tile {
    grid-column: 1;
    width: 100%;
  }

  .part-feature-row {
    grid-column: 1;
    width: 88%;
    max-width: 340px;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 14px auto 0;
  }

  .part-feature-tile {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .part-tile-heading {
    margin-bottom: 28px;
  }

  .part-home-slogan {
    margin-top: 15px;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .part-highlight-card,
  .part-highlight-card img,
  .part-tile,
  .part-tile img {
    transition: none !important;
  }
}
/* PURPLE FEATURED ADVOCACY TITLE */
.part-highlight-item:first-child .part-highlight-title {
  color: #e6c8ff !important;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.75),
    0 0 12px rgba(191, 132, 255, 0.65) !important;
}