/*
Theme Name: ISarva Theme
Theme URI: https://isarvait.com
Description: ISarva Theme is simple theme mainly used in Elementor based theme
Version: 1.0
*/

* {
  margin:0px;
  padding:0px;
}

body {
  margin: 0;
  box-sizing: border-box;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.contact-half {
  width: 48%;
}

.contact-full {
  width: 100%;
}

.contact-grid label {
  display: block;
  margin-bottom: 5px;
}

.contact-grid input[type="text"],
.contact-grid input[type="email"],
.contact-grid input[type="tel"],
.contact-grid textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.contact-grid textarea {
  height: 100px;
  resize: vertical;
}

.contact-button {
  width: 100%;
}

.contact-button input[type="submit"] {
  background-color: #f21c28;
  color: #ffffff; /* <-- this makes the text white */
  padding: 12px 25px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.contact-button input[type="submit"]:hover {
  background-color: #8D151E;
}


/* ****************************************** Product Post style ********************************************************* */

/* Grid Container */
.product-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* Product Card */
.product-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Image Styling */
.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.product-card:hover .product-image img {
    filter: brightness(0.85);
}

.product-card .product-title{
 font-size: 1.2rem !important;
 padding: 1.2rem 1rem;
}
/* Title Styling */
.product-title {
    margin: 0;
    
    background: white;
   
    text-align: center;
    color: #333;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-family: Mulish, sans-serif;
}

/* Hover Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* View Button */
.view-button {
    padding: 12px 30px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.view-button:hover {
    background: #43A047;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-grid-container {
        grid-template-columns: 1fr;
    }
}



/* ****************************************** Product Post style End ********************************************************* */


/* ****************************************** Product single-page style ********************************************************* */

/* Global Styles */
.blog-product-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Section */
.product-header {
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    gap: 50px;
    margin-top: 5rem;
    align-items: stretch;
}

.header-image {
    flex: 0 0 50%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    position: sticky;
    top: 20px;
    height: 100%;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-content {
    flex: 1;
    text-align: left; 
    /* padding: 0 1rem; */
    overflow-y: auto;
    max-height: 500px;
	
}

.pr-single-title {
    /* margin-bottom: 1rem; */
    color: #2d3748;
    line-height: 1;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    text-align: left; 
    white-space: wrap;
}

.product-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 1rem;
}

.product-meta span {
    display: flex;
    align-items: center;
}

.product-meta span::before {
    content: "•";
    margin-right: 0.5rem;
}

.product-meta span:first-child::before {
    content: "";
    margin-right: 0;
}

/* Content Styles */
.product-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

.content-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.product-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: #2d3748;
    position: relative;
    padding-left: 1rem;
}

.product-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    height: 1em;
    width: 5px;
    background: #4299e1;
    border-radius: 3px;
}

.product-content p {
    margin-bottom: 1.5rem;
}

.product-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Related Products */
.related-products {
    margin: 4rem 0;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2d3748;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.related-image {
    display: block;
    height: 220px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-title {
    font-size: 1.3rem;
    margin: 0 0 0.8rem;
    line-height: 1.4;
}

.related-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.related-title a:hover {
    color: #4299e1;
}

.read-more {
    display: inline-block;
    color: #4299e1;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.3s;
}

.read-more:hover {
    transform: translateX(5px);
}
.pr-single-title {
        font-size: 40px  !important;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .header-image img {
        height: 300px;
    }
    
    
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 480px) {
    .product-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-image img {
        height: 250px;
    }

    .pr-single-title{
          font-size: 25px !important;
          text-align: center;
    }
    .product-content p{
      font-size: 1rem;
    }
    .header-content{
      text-align: center;
    }
    .product-header{
      margin-top: 2rem;
    }

    .related-grid {
    /* display: grid; */
    grid-template-columns: repeat(1, 1fr);
    }
}


@media(max-width:978px){
  .product-header{
    display: block;
    min-height: auto;
  }
  
  .header-image {
    position: relative;
    flex: none;
    margin-bottom: 2rem;
        padding-top: 20px; /* Added to replace failing Tailwind max-[979px]:!pt-5 utility */
  }
  
  .header-content {
    max-height: none;
    overflow-y: visible;
  }

  .content-wrapper {
    max-width: 100%;
  }
}

/* ****************************************** Product single-page style End ********************************************************* */