/* ==========================================================================
   FSRTEK Global Inner Pages Banner Standards (Products, Tech, Apps, About, Contact)
   ========================================================================== */

/* Unified Inner Pages Banner Dimensions & Spacing */
.page-banner,
.inner-page-banner,
.archive:not(.post-type-archive-fsr_product) .bg-tech-blueprint,
.page:not(.home) .bg-tech-blueprint:not(.about-hero-banner) {
  min-height: 220px !important;
  padding: 56px 0 48px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid #1E293B !important;
  position: relative !important;
}

.page-banner > .container,
.page-banner > .container.text-center,
.inner-page-banner > .container {
  width: 100% !important;
  max-width: var(--container-max-width, 1180px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.page-banner h1,
.inner-page-banner h1 {
  font-size: 36px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 auto 12px !important;
  letter-spacing: -0.5px !important;
  text-align: center !important;
}

.page-banner p,
.inner-page-banner p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #CBD5E1 !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.page-banner .product-category-nav,
.page-banner .product-category-tabs {
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Custom Background Rendering for All Banners (Zero Dark Mask, Crisp Contrast) */
.page-banner.has-custom-bg,
.inner-page-banner.has-custom-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.page-banner.has-custom-bg::before,
.inner-page-banner.has-custom-bg::before {
  display: none !important;
}
.page-banner.has-custom-bg h1,
.inner-page-banner.has-custom-bg h1 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75) !important;
}
.page-banner.has-custom-bg p,
.inner-page-banner.has-custom-bg p {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75) !important;
}

/* Applications, Tech, Products & Contact Banners: Strictly Standard Centered Layout */
.page-banner,
.page-banner.has-custom-bg {
  min-height: 220px !important;
  padding: 56px 0 48px !important;
  text-align: center !important;
}

.page-banner .container,
.page-banner.has-custom-bg .container {
  max-width: var(--container-max-width, 1180px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.page-banner h1,
.page-banner.has-custom-bg h1 {
  font-size: 36px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 auto 12px !important;
  letter-spacing: -0.5px !important;
  text-align: center !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75) !important;
}

.page-banner p,
.page-banner.has-custom-bg p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #CBD5E1 !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.page-banner .container > div[style*="display: flex"],
.page-banner.has-custom-bg .container > div[style*="display: flex"] {
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   Homepage Hero Section (Dark Blue Industrial Gradient & Left Align Preservation)
   ========================================================================== */
section.hero-section {
  background: radial-gradient(circle at 85% 30%, #1E3A8A 0%, #0A192F 70%) !important;
  min-height: 480px !important;
  padding: 56px 0 48px !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid #1E293B !important;
  text-align: left !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
}

section.hero-section.has-custom-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

section.hero-section .hero-grid-2col {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 40px !important;
  align-items: center !important;
  text-align: left !important;
}

section.hero-section h1 {
  font-size: 38px !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.5px !important;
  text-align: left !important;
  text-shadow: none !important;
}

section.hero-section p {
  font-size: 15.5px !important;
  line-height: 1.6 !important;
  color: #E2E8F0 !important;
  text-align: left !important;
  text-shadow: none !important;
  max-width: none !important;
  margin: 0 0 12px 0 !important;
}

section.hero-section .hero-tab-text-wrap {
  text-align: left !important;
}

section.hero-section div[style*="display: flex"] {
  justify-content: flex-start !important;
  margin-left: 0 !important;
}

/* ONLY About Page Hero Banner: Left-Aligned Editorial Layout with Open Right Imagery */
section.about-hero-banner {
  min-height: 380px !important;
  padding: 72px 0 64px !important;
  display: flex !important;
  align-items: center !important;
  text-align: left !important;
  position: relative !important;
}

section.about-hero-banner .container {
  max-width: var(--container-max-width, 1180px) !important;
  margin: 0 auto !important;
  width: 100% !important;
  text-align: left !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

section.about-hero-banner h1 {
  font-size: 38px !important;
  line-height: 1.22 !important;
  max-width: 620px !important;
  margin: 0 0 20px 0 !important;
  text-align: left !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75) !important;
}

section.about-hero-banner h1 span {
  display: inline-block !important;
  margin-top: 6px !important;
  font-size: 26px !important;
  color: #38BDF8 !important;
}

section.about-hero-banner .container > div > div[style*="display: flex"] {
  justify-content: flex-start !important;
  margin: 0 !important;
}

section.about-hero-banner .container div[style*="border-radius: 8px"],
section.about-hero-banner .container div[style*="border-radius:8px"] {
  background: rgba(10, 25, 47, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
  color: #F1F5F9 !important;
}

section.about-hero-banner .container > div > div[style*="display: flex"]:last-of-type {
  justify-content: flex-start !important;
  margin: 0 !important;
}

/* ==========================================================================
   Product CTA Section Full-Width Tech Theme (Matching Homepage & About)
   ========================================================================== */
.products-cta-light, .product-cta-light {
  width: 100% !important;
  background: #FFFFFF !important;
  border-top: 1px solid #E2E8F0 !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 68px 0 !important;
  text-align: center !important;
}
.products-cta-light h2, .product-cta-light h2 {
  color: #0F2444 !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.3px !important;
}
.products-cta-light p, .product-cta-light p {
  color: #475569 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  max-width: 620px !important;
  margin: 0 auto 28px !important;
}

/* ==========================================================================
   Category 01 & 02 Product Showcase Cards - Image Sizing & Proportion
   ========================================================================== */
.product-showcase-card .card-visual-header {
  height: 200px !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.product-showcase-card .card-visual-header img {
  max-height: 165px !important;
  max-width: 92% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: auto !important;
  display: block !important;
}

/* ==========================================================================
   12-Model Parameter Table Photo Sizing
   ========================================================================== */
.table-img-thumb {
  width: 54px !important;
  height: 54px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}
.table-img-thumb img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* ==========================================================================
   Global Footer Logo (Strict Natural Aspect Ratio Preservation)
   ========================================================================== */
.site-footer img[src*="logo"],
.footer-col img[src*="logo"],
.footer-brand-lockup img {
  height: 32px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain !important;
  background: #FFFFFF !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  display: block !important;
}

/* ==========================================================================
   Technology Articles & Whitepaper Schematics (Natural Aspect Ratio)
   ========================================================================== */
.single-technology_article article img,
.single-technology_article .tech-article-body img,
.single-technology_article .schematic-card img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: 380px !important;
  object-fit: contain !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Mobile correction for the hero rule above, which is intentionally !important. */
@media (max-width: 992px) {
  section.hero-section .hero-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    text-align: center !important;
  }
  section.hero-section h1 { font-size: 30px !important; text-align: center !important; }
  section.hero-section p { text-align: center !important; }
}

/* ==========================================================================
   Homepage & Archive Application Cards (Full Cover, Zero Exposed Gaps)
   ========================================================================== */
.tech-card-elevated > div:first-child,
.app-card-thumb {
  height: 180px !important;
  background: transparent !important;
  position: relative !important;
  overflow: hidden !important;
}

.tech-card-elevated > div:first-child img,
.tech-card-elevated img,
.app-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
}
