/*
 * ============================================================================
 * AAPL BADGE STYLING - ADD TO END OF reskin.css
 * ============================================================================
 * Makes AAPL badges larger and more prominent (both mid-page and footer)
 * ============================================================================
 */

/* ============================================================================
   AAPL MID-PAGE STRIP (after hero section)
   ============================================================================ */

/* Main container */
div.py-3[style*="background-color: #f5f5f5"],
div[style*="background-color: #f5f5f5"][style*="border-bottom"] {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-bottom: 1px solid var(--bpl-gray-200) !important;
  border-top: 1px solid var(--bpl-gray-200) !important;
  padding: 2rem 0 !important;
}

/* Link container */
div.py-3[style*="background-color: #f5f5f5"] a[href*="aaplonline"],
a[href*="aaplonline"][style*="inline-flex"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  gap: 1.25rem !important;
  transition: all 0.2s ease !important;
}

a[href*="aaplonline"]:hover {
  transform: translateY(-2px) !important;
}

/* Mid-page logo */
div.py-3[style*="background-color: #f5f5f5"] img[src*="AAPL"],
div.py-3[style*="background-color: #f5f5f5"] img[alt*="AAPL"] {
  height: 110px !important;
  width: auto !important;
  max-width: 180px !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Mid-page text */
div.py-3[style*="background-color: #f5f5f5"] a[href*="aaplonline"] span {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: var(--bpl-gray-700) !important;
  letter-spacing: -0.01em !important;
  margin-left: 0 !important;
}


/* ============================================================================
   AAPL FOOTER BADGE (bottom of page, before footer)
   ============================================================================ */

/* Footer AAPL section container */
div.py-lg-16.py-10:has(img[src*="AAPL"]),
div.py-10:has(img[src*="AAPL"]),
div[class*="py-"]:has(a[href*="aaplonline"] img) {
  padding: 3rem 0 !important;
}

/* Footer AAPL logo - LARGER */
img[src*="AAPL-MemberEmblem"],
img[alt*="Proud Member - American Association"],
img[alt*="AAPL Member"],
img[src*="AAPL"] {
  height: 140px !important;
  width: auto !important;
  max-width: 220px !important;
  max-height: none !important;
  opacity: 1 !important;
  filter: none !important;
  transition: all 0.2s ease !important;
}

img[src*="AAPL"]:hover,
img[alt*="AAPL"]:hover {
  transform: scale(1.03) !important;
}

/* Override any inline max-height styles */
a[href*="aaplonline"] img[style*="max-height"] {
  max-height: 140px !important;
  height: 140px !important;
}


/* ============================================================================
   MOBILE RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  
  /* Mid-page strip */
  div.py-3[style*="background-color: #f5f5f5"],
  div[style*="background-color: #f5f5f5"][style*="border-bottom"] {
    padding: 1.5rem 1rem !important;
  }
  
  div.py-3[style*="background-color: #f5f5f5"] a[href*="aaplonline"],
  a[href*="aaplonline"][style*="inline-flex"] {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
  }
  
  div.py-3[style*="background-color: #f5f5f5"] img[src*="AAPL"],
  div.py-3[style*="background-color: #f5f5f5"] img[alt*="AAPL"] {
    height: 90px !important;
    max-width: 150px !important;
  }
  
  div.py-3[style*="background-color: #f5f5f5"] a[href*="aaplonline"] span {
    font-size: 1rem !important;
    text-align: center !important;
    max-width: 280px !important;
    line-height: 1.4 !important;
  }
  
  /* Footer badge */
  img[src*="AAPL-MemberEmblem"],
  img[alt*="Proud Member - American Association"],
  img[alt*="AAPL Member"],
  img[src*="AAPL"] {
    height: 110px !important;
    max-width: 180px !important;
  }
  
  a[href*="aaplonline"] img[style*="max-height"] {
    max-height: 110px !important;
    height: 110px !important;
  }
}
