/* 1. Turn the stacked row container into a 3-column corporate portfolio grid */
.theme-section [id*="element"] .theme-row,
.theme-section [id*="blog"] .theme-row,
.theme-section [class*="blog"] .theme-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 35px !important;
    padding: 25px 0 !important;
    width: 100% !important;
}

/* 2. Shape each item column into an isolated portfolio card */
.theme-section [id*="element"] .theme-col,
.theme-section [id*="blog"] .theme-col,
.theme-section [class*="blog"] .theme-col {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #eef2f5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* 3. Smooth lift hover effect using Talo Orange */
.theme-section [id*="element"] .theme-col:hover,
.theme-section [id*="blog"] .theme-col:hover,
.theme-section [class*="blog"] .theme-col:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(179, 68, 36, 0.25) !important;
    box-shadow: 0 14px 28px rgba(179, 68, 36, 0.08), 0 10px 10px rgba(0, 0, 0, 0.02) !important;
}

/* 4. Lock case study thumbnails flat to the top */
.theme-section [id*="element"] .theme-col a:first-of-type,
.theme-section [id*="element"] .theme-col img,
.theme-section [id*="blog"] .theme-col img,
.theme-section [class*="blog"] .theme-col img {
    width: 100% !important;
    height: 230px !important;
    max-height: 230px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 5. Set up structural card inner spacing */
.theme-section [id*="element"] .theme-col h3,
.theme-section [id*="element"] .theme-col p,
.theme-section [id*="blog"] .theme-col h3,
.theme-section [id*="blog"] .theme-col p,
.theme-section [class*="blog"] .theme-col h3,
.theme-section [class*="blog"] .theme-col p {
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

/* Title text branding */
.theme-section [id*="element"] .theme-col h3,
.theme-section [id*="blog"] .theme-col h3,
.theme-section [class*="blog"] .theme-col h3 {
    margin-top: 22px !important;
    margin-bottom: 8px !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.theme-section [id*="element"] .theme-col h3 a,
.theme-section [id*="blog"] .theme-col h3 a,
.theme-section [class*="blog"] .theme-col h3 a {
    color: #1F2937 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.theme-section [id*="element"] .theme-col:hover h3 a,
.theme-section [id*="blog"] .theme-col:hover h3 a,
.theme-section [class*="blog"] .theme-col:hover h3 a {
    /*  color: #B34424 !important; */
    color: #d6bc85!important;
}

/* Description Text */
.theme-section [id*="element"] .theme-col p,
.theme-section [id*="blog"] .theme-col p,
.theme-section [class*="blog"] .theme-col p {
    color: #4B5563 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
}

/* Stick "Read more" links clean to the bottom */
.theme-section [id*="element"] .theme-col a[href*="post"],
.theme-section [id*="blog"] .theme-col a[href*="post"],
.theme-section [class*="blog"] .theme-col a[href*="post"] {
    display: inline-block !important;
    padding: 0 24px 24px 24px !important;
    margin-top: auto !important;
     /*  color: #B34424 !important; */
    color: #d6bc85!important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
}

/* 6. Remove duplicate tag line strings */
.theme-section [id*="element"] .theme-col h3 + p,
.theme-section [id*="blog"] .theme-col h3 + p,
.theme-section [class*="blog"] .theme-col h3 + p {
    display: none !important;
}


/* 27/5
/* To change default link color for footer quick link only */
/* 1. Force the specific Quick Link destinations to be black by default */
a[href="/"],
a[href="/why-talo"],
a[href="/meet-our-team"],
a[href="/environmental-benefits"],
a[href="/design-options"],
a[href="/news-and-insights"],
a[href="/testimonials"],
a[href="/careers"],
a[href="/contact"],
a[href="/project-portfolio"] {
    color: #000000 !important;
    text-decoration: none !important;
    transition: color 0.2s ease-in-out !important;
}

/* 2. Turn them Talo Orange when hovered */
a[href="/"]:hover,
a[href="/why-talo"]:hover,
a[href="/meet-our-team"]:hover,
a[href="/environmental-benefits"]:hover,
a[href="/design-options"]:hover,
a[href="/news-and-insights"]:hover,
a[href="/testimonials"]:hover,
a[href="/careers"]:hover,
a[href="/contact"]:hover,
a[href="/project-portfolio"]:hover{
   /*  color: #B34424 !important; */
    color: #d6bc85!important;
    text-decoration: underline !important;
}
/* 11 june To change default link color for footer quick link only */

/* Only target links inside the main content area of the Project Portfolio and news and insight page */
h3 a, 
h3 a:visited, 
h3 a:hover, 
h3 a:active ,
h4 a, 
h4 a:visited, 
h4 a:hover,
h4 a:active{
    color: #000000 !important;
    text-decoration: none !important;
}
/* Only target links inside the main content area of the Project Portfolio page */
/* 9/11 Allow table wrapper to scroll horizontally on mobile */
/* Awards Page Specific Table Fixes */
body[data-pagename="awards-and-accreditations"] {
@media screen and (max-width: 768px) {
  table, thead, tbody, th, td, tr { 
    display: block !important; 
  }
  
  thead {
    display: none !important; /* Hide table headers on mobile */
  }
  
  tr {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    background: #fff;
  }
  
  td {
    border: none !important;
    padding: 8px 5px !important;
    text-align: left !important;
  }
}
/* Force table to respect container boundaries */
.zpcontent-container table,
table {
  table-layout: fixed !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* Ensure rightmost cells do not bleed borders */
table td:last-child,
table th:last-child {
  border-right: none !important;
}
    }
/* Allow table wrapper to scroll horizontally on mobile */

/* Maintain original video dimensions without cropping or stretching  Videos*/
/* 1. Force outer background containers to shrink-wrap the video */
.theme-section-bg,
.theme-video-bg,
.js-bg-video-container,
.hero-section {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* 2. Lock the inner video frame to native 16:9 aspect ratio */
.theme-video-bg video,
.theme-video-bg iframe,
.js-bg-video-container video,
.js-bg-video-container iframe,
.hero-section video {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important; /* Adjust to 4/3 if video is vertical/4:3 */
  object-fit: contain !important;
  transform: none !important;
}

div[data-bg-type="video"] {
  height: 0 !important;
  padding-bottom: 56.25% !important; /* Forces 16:9 ratio wrapper */
  position: relative !important;
}
/* Maintain original video dimensions without cropping or stretching */

