/* tanthos Text Pic Component */
.tanthos-text-pic {
    background-color: var(--bg-color);
}

.tanthos-text-pic-block {
    padding-bottom: 80px;
    background-color: transparent;
    font-family:var(--title-font-family);
}
.tanthos-text-pic-block .container{
    padding: 0;
}
/* ADD compensated max-width for this component's .container at various breakpoints */
/* Based on Bootstrap standard container widths + compensation for new overlap */

@media (min-width: 992px) {
    .tanthos-text-pic-block .container {
        max-width: 1004px; /* Generic LG default 960px + 17px compensation */
    }
    .tanthos-text-pic-block .col-md-6 {
        max-width: 52.2%;
        flex: 0 0 52.2%;
    }
}

@media (min-width: 1200px) and (max-width: 1500px){
    .tanthos-text-pic-block .container {
        max-width: 1192px; /* Generic XL default 1140px + 22px compensation */
    }
    .tanthos-text-pic-block .col-md-6 {
        max-width: 52.3%;
        flex: 0 0 52.3%;
    }
}

@media (min-width: 1280px)  {
    .tanthos-text-pic-block .container {
        max-width: 1254px; /* Generic 1280px default 1200px + 24px compensation */
    }
}

@media (min-width: 1500px) {
    .tanthos-text-pic-block .container {
        max-width: 1820px; /* Generic 1500px default 1440px + 31px compensation */
    }
    .tanthos-text-pic-block .col-md-6 {
        max-width: 52.4%;
        flex: 0 0 52.4%;
    }
}
@media (max-width: 1920px) {
    .tanthos-text-pic-block .container {
        
        max-width: 1820px; /* Generic 1500px default 1440px + 31px compensation */
    }
}

/* Product Matrix Grid */
.tanthos-text-pic-block .product-matrix-grid .row {
    /* no-gutters class in HTML handles padding, ensure items can touch */
    overflow: hidden; /* Helps manage shifted elements */
    justify-content: space-around;
}

.tanthos-text-pic-block .product-matrix-item {
    height: 100%;
    /* Removed margin-bottom, as columns will handle spacing or it might not be needed */
}

/* Specific column adjustments for overlap/meeting edges */
.tanthos-text-pic-block .product-matrix-item-right-column {
    margin-left: calc(-14% + 5px); /* Original -7.5% reduced by 1/4, 10px gap remains */
}

.tanthos-text-pic-block .product-image-container {
    position: relative;
    height: 100%;
    background: transparent; /* Container itself is transparent */
    overflow: hidden; /* Important for clip-path to work well with hover effects */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Product Image Wrapper - This gets the clip-path */
.tanthos-text-pic-block .product-image-wrapper {
    position: relative;
    width: 100%;
    height: 535px; /* Base height */
    overflow: hidden;
    background: var(--color-primary);
    transition: transform 0.3s ease;
}

.tanthos-text-pic-block .product-matrix-item-left .product-image-wrapper {
    clip-path: polygon(0% 0%, 80% 0%,100%  100%, 0% 100%); /* Angle increased, 100% - 11.25% = 88.75% */
}

.tanthos-text-pic-block .product-matrix-item-right .product-image-wrapper {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 20% 100%); /* Angle increased */
}

.tanthos-text-pic-block .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
    transition: transform 0.3s ease; /* Add transition here for smooth scaling */
}
.tanthos-text-pic-block .product-text-wrapper{
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 100px;
    display: flex;
    flex-direction: column;
    justify-content: ceter;
    align-items: center;
}
.tanthos-text-pic-block .product-title{
    font-size: 50px;
    font-weight: 700;
    margin-top: 12px;
    color: var(--title-text-color);
}
.tanthos-text-pic-block .product-button{
    font-family:var(--font-family);
    background: rgba(0,0,0,0);
    color: var(--title-text-color);
    border:1px solid var(--title-text-color);
    font-size: 18px;
    font-weight: 400;
    padding: 12px 50px;
    border-radius: 50px;
    margin-top: 32px;
}
.tanthos-text-pic-block .product-button:hover{
  background: var(--title-text-color);
  border: 1px solid rgba(0,0,0,0);
  color:var(--text-color);
  transform: all .3px;
}

.tanthos-text-pic-block .product-pic{
    width: 95px;
    height: 95px;
}

.tanthos-text-pic-block .product-content{
    font-size: 18px;
    font-weight: 400;
    line-height: 36px; /* 200% */
    letter-spacing: -0.18px;
    margin-top: 17px;
    color: var(--title-text-color);
    font-family:var(--font-family);
    text-align: center;
}

.product-matrix-item-right-column .product-text-wrapper{
    display: none;
}


.tanthos-text-pic-block .product-image-container:hover .product-image {
    transform: scale(1.05); /* Image scales to 1.05x on hover, content remains static */
}


/* Unified Hover style for the button when the BUTTON ITSELF is hovered */
.tanthos-text-pic-block .explore-btn:hover {
    /* Hover style: like previous explore-btn-left */
    background: #e6002d;
    color: #ffffff;
    border-color: #e6002d;
}

/* Responsive Design - simplified, slant percentages remain constant */
@media (max-width: 1200px) {
    .tanthos-text-pic-block .product-image-wrapper {
        min-height: 400px;
    }
}

@media (max-width: 991px) {
    /* Switched to 991px for Bootstrap md breakpoint */
    .tanthos-text-pic-block {
        padding: 50px 0 0;
    }
    .tanthos-text-pic-block .product-image-wrapper {
        min-height: 320px;
    }

    .product-matrix-item-left-column{
        display: none;
    }
    .product-matrix-item-right-column .product-text-wrapper{
        display: flex;
    }
    .tanthos-text-pic-block .product-text-container-bg{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
    }

    /* Stack columns on medium and below */
    .tanthos-text-pic-block .product-matrix-item-left-column,
    .tanthos-text-pic-block .product-matrix-item-right-column {
        flex: 0 0 100%;
        max-width: 100%;
        margin-left: 0 !important; /* Reset margin for stacking */
    }
    .tanthos-text-pic-block .product-matrix-item-left .product-image-wrapper,
    .tanthos-text-pic-block .product-matrix-item-right .product-image-wrapper {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%) !important; /* Reset to rectangle when stacked */
        margin-bottom: 30px; /* Add space between stacked items */
    }
    .tanthos-text-pic-block .product-matrix-item-right .product-image-wrapper:last-child {
        margin-bottom: 0;
    }
   
}

@media (max-width: 767px) {
    /* Bootstrap sm breakpoint */
    .tanthos-text-pic-block {
        padding: 0;
    }
    .tanthos-text-pic-block .product-image-wrapper {
        min-height: 280px;
    }
    .tanthos-text-pic-block .product-button{
    background: var(--title-text-color);
    border: 1px solid rgba(0,0,0,0);
  color:var(--text-color);
}
}

@media (max-width: 575px) {
    .tanthos-text-pic-block .product-image-wrapper {
        min-height: 240px;
    }
    .tanthos-text-pic-block .product-title{
        font-size: 24px;
    }
    .tanthos-text-pic-block .product-content{
        font-size: 10px;
        font-weight: 500;
        line-height: 15px; /* 150% */
        letter-spacing: -0.16px;
        margin-top: 8px;
    }
    .tanthos-text-pic-block .product-button{
        font-size: 10px;
        padding: 5px 12px;
        margin-top: 12px;
    }
    .tanthos-text-pic-block .container{
        max-width: 100%;
    }
    .tanthos-text-pic-block .product-image-wrapper{
        height: 246px;
    }
    .tanthos-text-pic-block .product-text-wrapper{
        padding: 0 20px;
    }
    .tanthos-text-pic-block .product-pic{
      width: 40px;
      height: 40px;
    }
}

@media (min-width: 768px) {
  .product-matrix-item-right .product-image-wrapper {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  }
}
