/*
Theme Name: Coretex
Description: Coretex (Avada child theme)
Author: Herron
Author URI: https://herron.agency/
Template: Avada
Version: 4.0.012
Text Domain:  coretex
*/

/*
####################################################################################################
# GLOBAL
####################################################################################################
*/

#wrapper #main .max-width.fusion-imageframe,
#wrapper #main .max-width.fusion-imageframe img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.responsive-iframe {
    position: relative;
    padding-top: 16%;
    padding-bottom: 16%;
    height: 0;
    overflow: hidden;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

@media all and (max-width:800px){
    .reverse-cols .fusion-row {
        display: flex;
        flex-flow: wrap;
        flex-direction: column-reverse;
    }
}

/*
####################################################################################################
# PRODUCTS
####################################################################################################
*/

#wrapper #main #content .product-landing-product-row {
    margin-bottom: 20px;
}

#wrapper #main #content .product-landing-product-title h2 {
    font-size: 30px;
    text-transform: none;
}

#wrapper #main #content .product-landing-product-subtitle h4 {
    font-size: 22px;
}

#wrapper #main #content .product-landing-product-types h5 {
    font-size: 14px;
}


/* Typical Applications */

#wrapper #main .application-checklist {
    margin-top: 0;
    columns: 3;
    column-gap: 2em;
    padding: 10px 20px 20px 20px;
    background-color: rgba(115,153,174,0.1);
}

@media (max-width: 600px) {
  #wrapper #main .application-checklist {
      columns: 1;
  }

  .product-landing-product-features-col ul {
    padding-left: 10px;
  }
}


#wrapper #main .application-checklist ul {
  margin: 0;
  padding-left: 1.2em;
  list-style: none;
}

#wrapper #main .application-checklist li {
  break-inside: avoid;
  list-style-type: none;
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 1em;
  font-size: 13px;
}

#wrapper #main .application-checklist li::before {
  content: "•";
  font-size: 0.6em;
  color: black;
  position: absolute;
  left: 0;
  top: 0.5em;
}

#wrapper #main .typical-applications-title {
    font-size: 13px;
    font-weight: bold;
    padding: 20px 20px 0 40px;
    background-color: rgba(115,153,174,0.1);
    margin: 0 !important;
}

/*
####################################################################################################
# DATA SHEETS
####################################################################################################
*/

/* Grid container: 3 columns */
#wrapper #main .data-sheet-groups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

/* Make each card a 3-row grid: title, image (fixed), content */
#wrapper #main .data-sheet-group {
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  height: 100%;
}

/* Title */
#wrapper #main .ds-title h3 {
  text-align: center;
  margin: 0 0 0.8em;
  font-size: 24px;
}

/* Image wrapper */
#wrapper #main .ds-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image itself – consistent height via aspect ratio */
#wrapper #main .ds-image img {
    width: 100%;
    object-fit: cover;
    object-position: bottom;
    aspect-ratio: 2 / 1;
    border-radius: 6px;
    display: block;
}

/* Data sheet list wrapper */
#wrapper #main .ds-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 1rem;
}

/* Data sheet list */
#wrapper #main .data-sheet-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

/* List item */
#wrapper #main .data-sheet-list li {
    margin-bottom: 0;
    font-size: 14px;
}

/* Responsive columns */
@media (max-width: 900px) {
  #wrapper #main .data-sheet-groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #wrapper #main .data-sheet-groups-grid {
    grid-template-columns: 1fr;
  }
}
