/*
 Theme Name:   Stonedeks WP Theme
 Theme URI:    https://websitepsychiatrist.com
 Description:  We built this WordPress theme just for you! Don't your feel loved?
 Author:       Website Psychiatrist
 Author URI:   https://websitepsychiatrist.com/
 Template:     generatepress
 Version:      1.0.5
*/

/* Add CSS Variables for breakpoints at the top of the file, after the theme information */
:root {
    --mobile-breakpoint: 768px;
    --tablet-breakpoint: 1024px;
    --desktop-breakpoint: 1200px;
    --large-desktop-breakpoint: 1400px;
}

/* 
 * Base Theme Styles
 * Basic styling and overrides for the theme
 */

/* Set highlight color for text selection */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Yanone+Kaffeesatz:wght@200..700&display=swap');

figtree {
  font-family: 'Figtree', sans-serif;
}

oswald {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
}

p, button, span, a, li {
  font-family: 'Figtree', sans-serif;
}


h1 > a {
  font-family: 'Oswald', sans-serif;
}

h2 > a {
  font-family: 'Oswald', sans-serif;
}

h3 > a {
  font-family: 'Oswald', sans-serif;
}

h4, h5, h6 {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
}

.no-margin {
  margin: 0;
}

::selection {
  background-color: var(--accent);
  color: var(--base-3);
}

.grid-same-height {
  align-items: stretch !important;

  & .gb-grid-column {
    display: flex;
  }
}

.grid-items-same-height {
  display: flex;
  flex-direction: column;
}

/* 
 * Home Page Styles
 * Styles for the home page elements
 */
#svg-container {
    background-image: url('https://stonedeks.prndhost.com/wp-content/uploads/2024/12/grid-background-mirrored-xy.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;

    @media (max-width: 768px) {
        height: 90vh;
    }
}
#animated-svg {
    transform-origin: center;
    transition: transform 1s ease, right 1s ease;
    position: absolute;
    height: 80%;

    @media (max-width: 768px) {
        height: 100%;
        width: 90vw;
    }
}
 #headline {
    font-family: 'Oswald', sans-serif;
    position: absolute;
    top: 46%;
    font-size: 5rem;
    font-weight: 700;
    text-align: center;
    color: #237e58;
    opacity: 1;
    transition: opacity 1s ease;
    z-index: 1000;
    @media (max-width: 1100px) {
      font-size: 4rem;
    }

    @media (max-width: 768px) {
      font-size: 3rem;
      top: 40%;
    }
}
#left-content {
  position: absolute;
  left: 10%;
  top: 20%;
  font-size: 1.5rem;
  width: 30vw;
  color: white;
  opacity: 0; /* Initially hidden */
  transition: opacity 1s ease;
  & #slicagrate-first-paragraph {
    margin-bottom: 2em;
  }
  @media (max-width: 1100px) {
    width: 40vw;
    top: 20%;
    font-size: 1.2rem;
    & #slicagrate-first-paragraph {
      margin-bottom: 1em;
    }
  }

  @media (max-width: 768px) {
    width: 50vw;
    top: 20%;
    font-size: 1rem;
    & #slicagrate-first-paragraph {
      margin-bottom: 1em;
    }
  }
}
#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: none; /* Prevents blocking interactions */
  z-index: 999;
}
.learn-more {
padding: 1em;
font-size: 1.5rem;
font-weight: 500;
border-radius: 5%;
border: none;
color: white;
background-color: #237e58;

@media (max-width: 1100px) {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  font-size: 1rem;
}

}

.content-container{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  clip: rect(auto, auto, auto, auto);
  pointer-events: none;
}
.content-inner{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  padding: 0;
  z-index: 99;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  -webkit-perspective: 1000;
  perspective: 1000;
  pointer-events: all;
}
.content-center{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
}

body {
  overflow-x: hidden;
}

.global-faqs .faq-item {
    margin-bottom: 20px;
}

.global-faqs .faq-question {
    cursor: pointer;
    margin: 0;
    padding: 10px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.global-faqs .faq-answer {
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

/* 
 * Applications Slider Styles
 * Comprehensive styling for the applications showcase slider
 */


 :root {
     --slides-per-page: 2;
 }
 
 .slider-header {
     padding: 4em 5vw;
 }
 
 .slider-header .header-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 4em;
     max-width: 1400px;
     margin: 0 auto;
 }
 
 .slider-header h6 {
     color: var(--accent);
     text-transform: uppercase;
     letter-spacing: 0.1em;
     font-size: 1em;
     margin: 0 0 1em 0;
     font-weight: 600;
 }
 
 .slider-header h2 {
     font-size: 2.5em;
     line-height: 1.2;
     margin: 0;
     color: var(--contrast);
     font-weight: 700;
 }
 
 .slider-header p {
     font-size: 1.1em;
     line-height: 1.6;
     color: var(--contrast-2);
     margin: 0;
 }
 
 @media (max-width: 768px) {
     .slider-header .header-grid {
         grid-template-columns: 1fr;
         gap: 2em;
     }
     
     .slider-header h2 {
         font-size: 2em;
     }
 }
 
 #hero-slides {
     --page: 0;
     height: 100vh;
     min-height: 600px;
     position: relative;
     overflow: hidden;
     font-family: 'Oswald', sans-serif;
     color: hsl(0, 0%, 100%);
     background: #f5f5f5;
     border-radius: 8px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
     width: 100vw;
 }
 
 #hero-slides #slides-cont {
     position: relative;
     --button-height: 6vh;
     --button-spacing: 0.2vh;
 }
 
 #hero-slides .button {
     width: 5vw;
     height: var(--button-height);
     background: rgba(35, 125, 87, 1);
     position: absolute;
     right: 5.375vw;
     top: 38vh;
     z-index: 100;
     cursor: pointer;
     border-radius: 4px;
     transition: background 0.3s ease;
 }
 
 #hero-slides .button:hover {
     background: rgba(35, 125, 87, 0.8);
 }
 
 #hero-slides .button:before,
 #hero-slides .button:after {
     line-height: var(--button-height);
     position: absolute;
     margin-left: -0.25vw;
     pointer-events: none;
     transform: scale(0.75, 1.5);
     transition: 125ms cubic-bezier(0.7, 0, 0.3, 1);
 }
 
 #hero-slides .button:before {
     left: 50%;
 }
 
 #hero-slides .button:after {
     opacity: 0;
 }
 
 #hero-slides .button:hover:before,
 #hero-slides .button:hover:after {
     transition: 250ms cubic-bezier(0.7, 0, 0.3, 1);
 }
 
 #hero-slides .button:hover:before {
     opacity: 0;
 }
 
 #hero-slides .button:hover:after {
     left: 50% !important;
     opacity: 1;
 }
 
 #hero-slides #next {
     margin-top: calc(-1 * (var(--button-height) + var(--button-spacing)));
 }
 
 #hero-slides #next:before,
 #hero-slides #next:after {
     content: '>';
 }
 
 #hero-slides #next:after {
     left: 30%;
 }
 
 #hero-slides #next:hover:before {
     left: 70%;
 }
 
 #hero-slides #prev {
     margin-top: var(--button-spacing);
     transition: 500ms opacity;
 }
 
 #hero-slides #prev:before,
 #hero-slides #prev:after {
     content: '<';
 }
 
 #hero-slides #prev:after {
     left: 70%;
 }
 
 #hero-slides #prev:hover:before {
     left: 30%;
 }
 
 #hero-slides #next-catch,
 #hero-slides #prev-catch {
     width: 10vw;
     height: 76vh;
     position: absolute;
     top: 0;
     z-index: 90;
 }
 
 #hero-slides #next-catch {
     right: 0;
 }
 
 #hero-slides #prev-catch {
     left: 0;
 }
 
 #hero-slides #slides {
     --slides-height: 60vh;
     width: 33%;
     height: var(--slides-height);
     padding: 0 5vw 2% 5vw;
     font-size: 0;
     white-space: nowrap;
     position: relative;
     left: 0;
     transition: transform 1500ms cubic-bezier(0.7, 0, 0.3, 1);
 }
 
 #hero-slides .slide {
     display: inline-block;
     vertical-align: top;
     font-size: 1.5vw;
     width: 32em;
     height: var(--slides-height);
     margin: 0 1em;
     color: white;
     background-size: cover;
     background-position: center;
     white-space: normal;
     word-break: break-word;
     position: relative;
     border-radius: 8px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
 }
 
 #hero-slides .slide:hover {
     transform: translateY(-5px);
     box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
 }
 
 #hero-slides .slide:before {
     content: '';
     display: block;
     background: linear-gradient(
         180deg,
         hsla(209, 11%, 15%, 0.1) 0%,
         hsla(209, 36%, 10%, 0.3) 50%,
         hsla(209, 36%, 10%, 0.6) 100%
     );
     opacity: 1;
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     border-radius: 8px;
     transition: opacity 375ms cubic-bezier(0.7, 0, 0.3, 1);
 }
 
 #hero-slides .slide .number {
     position: absolute;
     top: 2em;
     left: 2em;
     filter: drop-shadow(0 2px 1px hsla(0, 0%, 0%, 0.5));
 }
 
 #hero-slides .slide .number:before,
 #hero-slides .slide .number:after {
     display: inline-block;
     content: '';
     height: 0.133em;
     margin-top: -0.2em;
     background: hsl(0, 0%, 100%);
     vertical-align: middle;
 }
 
 #hero-slides .slide .number:before {
     width: 0;
     margin-left: 0;
 }
 
 #hero-slides .slide .number:after {
     width: 3em;
     margin-left: 1em;
 }
 
 #hero-slides .slide .body {
     position: absolute;
     bottom: 2em;
     left: 2em;
     right: 2em;
 }
 
 #hero-slides .slide .application-excerpt,
 #hero-slides .slide .headline {
     position: relative;
     bottom: 0;
     cursor: default;
 }

 .application-title {
  line-height: 1.2em;
}
 
 #hero-slides .slide:before,
 #hero-slides .slide .number:before,
 #hero-slides .slide .number:after,
 #hero-slides .slide .application-excerpt,
 #hero-slides .slide .headline,
 #hero-slides .slide .link {
     transition: 375ms cubic-bezier(0.7, 0, 0.3, 1);
 }
 
 #hero-slides .slide .application-excerpt {
     font-weight: 400;
     margin-bottom: 0.5em;
     transition-delay: 60ms;
     font-size: 1.1em;
     line-height: 1.4;
     max-width: 90%;
     opacity: 0.95;
 }
 
 #hero-slides .slide.hover .application-excerpt,
 #hero-slides .slide:hover .application-excerpt {
     transition-delay: 0;
     bottom: 6em;
 }
 
 #hero-slides .slide .number,
 #hero-slides .slide .application-excerpt,
 #hero-slides .slide .headline {
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
 }
 
 #hero-slides .slide .headline {
     font-size: 2.667em;
     font-weight: 900;
     transition-delay: 50ms;
     letter-spacing: 0.02em;
 }
 
 #hero-slides .slide .link {
     display: inline-block;
     background: var(--accent);
     color: var(--base-3);
     padding: 0.5em 1.25em;
     font-size: 1.33em;
     opacity: 0;
     position: absolute;
     bottom: -2em;
     pointer-events: none;
     transition-delay: 25ms;
     border-radius: 4px;
     font-weight: 500;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 }
 
 #hero-slides .slide.hover:before,
 #hero-slides .slide:hover:before {
     opacity: 0.95;
 }
 
 #hero-slides .slide.hover:before,
 #hero-slides .slide.hover .number:before,
 #hero-slides .slide.hover .number:after,
 #hero-slides .slide.hover .application-excerpt,
 #hero-slides .slide.hover .headline,
 #hero-slides .slide.hover .link,
 #hero-slides .slide:hover:before,
 #hero-slides .slide:hover .number:before,
 #hero-slides .slide:hover .number:after,
 #hero-slides .slide:hover .application-excerpt,
 #hero-slides .slide:hover .headline,
 #hero-slides .slide:hover .link {
     transition: 500ms cubic-bezier(0.7, 0, 0.3, 1);
 }
 
 #hero-slides .slide.hover .number:before,
 #hero-slides .slide:hover .number:before {
     width: 3em;
     margin-right: 1em;
 }
 
 #hero-slides .slide.hover .number:after,
 #hero-slides .slide:hover .number:after {
     width: 0;
     margin-right: 0;
 }
 
 #hero-slides .slide.hover .application-excerpt,
 #hero-slides .slide:hover .application-excerpt {
     transition-delay: 0;
     bottom: 6em;
 }
 
 #hero-slides .slide.hover .headline,
 #hero-slides .slide:hover .headline {
     transition-delay: 100ms;
     bottom: 1.5em;
 }
 
 #hero-slides .slide.hover .link,
 #hero-slides .slide:hover .link {
     bottom: 1em;
     opacity: 1;
     transition-delay: 250ms;
     pointer-events: auto;
 }
 
 #hero-slides #footer {
     height: 12vh;
     font-size: 1vh;
     display: flex;
     justify-content: center;
     align-items: center;
     padding: 2em 0;
 }
 
 #hero-slides #footer .archive-link {
     display: inline-block;
     background: var(--accent);
     color: white;
     padding: 1em 2em;
     font-size: 1.8em;
     border-radius: 4px;
     text-decoration: none;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 }
 
 #hero-slides #footer .archive-link:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
 }
 
 @media (min-width: 1200px) and (max-width: 1699px) {
     :root {
         --slides-per-page: 3;
     }
     #hero-slides #slides .slide {
         font-size: 1vw;
     }
 }
 
 @media (min-width: 1700px) {
     :root {
         --slides-per-page: 4;
     }
     #hero-slides #slides .slide {
         font-size: 0.75vw;
     }
 }

/* Project Grid Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 2rem;
    max-width: 1400px; /* Set maximum width */
    width: 100%;
}

.project-tile {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 10px;
    transition: transform ease-in-out 500ms;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure tile takes full width of grid cell */
}

.project-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.project-image {
    width: 85%;
    height: 60%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Update responsive breakpoints */
@media (max-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns for larger phones */
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-image {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr; /* Single column for small phones */
    }
}

.project-location.rotated {
    position: absolute;
    left: 7%;
    top: 50%;
    transform-origin: 0 50%;
    transform: rotate(-90deg);
    font-size: 1.2em;
    color: #237e58;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.5em;
    @media (max-width: 768px) {
        left: 5%;
        top: 60%;
    }
}

.project-location svg {
    height: 1.2em;
    width: 1.2em;
}

.project-location .location-text {
    display: inline-block;
}

.project-title {
    color: #000;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 1.5em;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.related-projects h2 {
    margin: 40px 0 20px;
    text-align: center;
    font-size: 2em;
}

/* Application Hero Styles */
.application-hero {
    position: relative;
    margin: 0 -2rem 4rem 0;
    min-height: 70vh;
    overflow: visible;
    display: flex;
    justify-content: flex-end;
}

.hero-image {
    position: relative;
    width: 75%;
    height: 70vh;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 4rem;
    width: 50%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease-out;
}

.hero-content:hover {
  padding-bottom: 23rem;
}

.application-nav {
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    right: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
    pointer-events: none;
}
.entry-content.application-content {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.application-section {
  max-width: 1400px;
}

.application-nav-title {
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 0.5em;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;

    & p {
      margin: 0;
    }
}

.hero-content:hover .application-nav {
    opacity: 1;
    transition-delay: 250ms;
    transform: translateY(0);
    pointer-events: auto;
}

.application-nav-button {
    padding: 1rem;
    background: #237e58;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1.1em;
    transition: all 0.2s ease;
}

.application-nav-button:hover {
    background: #1a5f42;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-content:hover {
        padding-bottom: 8rem;
    }

    .application-nav {
        left: 1.5rem;
        right: 1.5rem;
        grid-template-columns: 1fr;
    }
}

.hero-content h1 {
    font-size: 3.5em;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: #333;
}

.hero-excerpt {
    font-size: 1.2em;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .application-hero {
        margin: 0 -1rem 3rem -1rem;
        min-height: 50vh;
        flex-direction: column;
    }

    .hero-image {
        width: 100%;
        height: 50vh;
    }

    .hero-content {
        position: relative;
        left: 1rem;
        top: auto;
        transform: translateY(-30%);
        padding: 1.5rem;
        width: calc(100% - 2rem);
        margin-right: 2rem;
    }

    .hero-content h1 {
        font-size: 2em;
    }
} 

.entry-content {
  padding: 0 15%;
}

.grid-header,
.slider-header {
    padding: 4em 0;
}

.grid-header .header-grid,
.slider-header .header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4em;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-header h6,
.slider-header h6 {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1em;
    margin: 0 0 1em 0;
    font-weight: 600;
}

.grid-header h2,
.slider-header h2 {
    font-size: 2.5em;
    line-height: 1.2;
    margin: 0;
    color: var(--contrast);
    font-weight: 700;
}

.grid-header p,
.slider-header p {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--contrast-2);
    margin: 0;
}

/* Grid Layout */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.grid-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.grid-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .applications-grid {
        gap: 1rem;
    }

    .grid-item {
        aspect-ratio: 4/5;
    }
}

/* Content within grid items */
.grid-item .number {
    position: absolute;
    top: 1.5em;
    left: 1.5em;
    font-size: 1em;
    color: white;
    z-index: 2;
}

.grid-item .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5em;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
}

.grid-item .application-excerpt {
    font-size: 0.9em;
    margin-bottom: 1em;
}

.grid-item .headline {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.grid-item .link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .applications-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .applications-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1rem;
    }

    .grid-item .content {
        padding: 1em;
    }

    .grid-item .number {
        top: 1em;
        left: 1em;
    }
}

/* Common Item Styles for Grid and Slider */
.grid-item,
#hero-slides .slide {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-size: 1.5vw;
}

.grid-item-inner,
#hero-slides .slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.grid-item-inner:before,
#hero-slides .slide:before {
    content: '';
    display: block;
    background: linear-gradient(
        180deg,
        hsla(209, 11%, 15%, 0.1) 0%,
        hsla(209, 36%, 10%, 0.3) 50%,
        hsla(209, 36%, 10%, 0.6) 100%
    );
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 375ms cubic-bezier(0.7, 0, 0.3, 1);
}

/* Number Styles */
.grid-item .number,
#hero-slides .slide .number {
    position: absolute;
    top: 2em;
    left: 2em;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 1px hsla(0, 0%, 0%, 0.5));
}

.grid-item .number:before,
.grid-item .number:after,
#hero-slides .slide .number:before,
#hero-slides .slide .number:after {
    display: inline-block;
    content: '';
    height: 0.133em;
    margin-top: -0.2em;
    background: white;
    vertical-align: middle;
    transition: 375ms cubic-bezier(0.7, 0, 0.3, 1);
}

.grid-item .number:before,
#hero-slides .slide .number:before {
    width: 0;
    margin-left: 0;
}

.grid-item .number:after,
#hero-slides .slide .number:after {
    width: 3em;
    margin-left: 1em;
}

.grid-item .application-excerpt,
.grid-item .headline,
#hero-slides .slide .application-excerpt,
#hero-slides .slide .headline {
    position: relative;
    bottom: 0;
    transition: 375ms cubic-bezier(0.7, 0, 0.3, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.grid-item .application-excerpt,
#hero-slides .slide .application-excerpt {
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 0.5em;
    transition-delay: 60ms;
    opacity: 0.95;
}

.grid-item .headline,
#hero-slides .slide .headline {
    font-size: 2.667em;
    font-weight: 900;
    transition-delay: 50ms;
    letter-spacing: 0.02em;

    @media (max-width: 768px) {
        font-size: 2em;
    }
}

.grid-item .link,
#hero-slides .slide .link {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.5em 1.25em;
    font-size: 1.33em;
    opacity: 0;
    position: absolute;
    bottom: -2em;
    pointer-events: none;
    transition: all 375ms cubic-bezier(0.7, 0, 0.3, 1);
    transition-delay: 25ms;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hover Effects */
.grid-item:hover .grid-item-inner:before,
.grid-item.hover .grid-item-inner:before,
#hero-slides .slide:hover:before,
#hero-slides .slide.hover:before {
    opacity: 0.95;
}

.grid-item:hover .number:before,
.grid-item.hover .number:before,
#hero-slides .slide:hover .number:before,
#hero-slides .slide.hover .number:before {
    width: 3em;
    margin-right: 1em;
}

.grid-item:hover .number:after,
.grid-item.hover .number:after,
#hero-slides .slide:hover .number:after,
#hero-slides .slide.hover .number:after {
    width: 0;
    margin-right: 0;
}

.grid-item:hover .application-excerpt,
.grid-item.hover .application-excerpt,
#hero-slides .slide:hover .application-excerpt,
#hero-slides .slide.hover .application-excerpt {
    bottom: 6em;
}

.grid-item:hover .headline,
.grid-item.hover .headline,
#hero-slides .slide:hover .headline,
#hero-slides .slide.hover .headline {
    bottom: 1.5em;
}

.grid-item:hover .link,
.grid-item.hover .link,
#hero-slides .slide:hover .link,
#hero-slides .slide.hover .link {
    opacity: 1;
    bottom: 1em;
    pointer-events: auto;
    transition-delay: 250ms;
}

/* Footer Styles */
.grid-footer,
#hero-slides #footer {
    text-align: center;
    padding: 3em 0;
    clear: both;
    width: 100%;
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

.grid-footer .archive-link,
#hero-slides #footer .archive-link {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1em 2em;
    font-size: 1em;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.grid-footer .archive-link:hover,
#hero-slides #footer .archive-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .grid-footer,
    #hero-slides #footer {
        padding: 2em 0 2em 0; /* Increased bottom padding to avoid overlap with fixed elements */
        margin-bottom: 0;
    }

    .grid-footer .archive-link,
    #hero-slides #footer .archive-link {
        font-size: 1em;
        padding: 0.8em 1.6em;
        width: auto;
        max-width: 90%;
        margin: 0 auto;
    }

    .applications-grid {
        margin-bottom: 0; /* Remove margin to prevent double spacing */
    }
}

/* Ensure the applications grid container has proper spacing */
.applications-grid-container {
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .applications-grid-container {
        padding: 5% /* Remove padding as it's handled by the footer */
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .grid-header .header-grid,
    .slider-header .header-grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }
    
    .grid-header h2,
    .slider-header h2 {
        font-size: 2em;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .grid-item,
    #hero-slides .slide {
        font-size: 16px;
    }
}

@media (min-width: 1200px) and (max-width: 1699px) {
    .grid-item,
    #hero-slides .slide {
        font-size: 1vw;
    }
}

@media (min-width: 1700px) {
    .grid-item,
    #hero-slides .slide {
        font-size: 0.75vw;
    }
}

.project-hover-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(35, 126, 88, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 3;
}

.project-hover-overlay span {
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Oswald', sans-serif;
}

.project-tile:hover .project-hover-overlay {
    transform: translateY(0);
}

.archive-template {
  padding: 3% 5vw 3% 5vw;
}
/* Loading state styles */
#application-content.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Navigation button styles */
.application-navigation {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.nav-button {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-button:hover {
  transform: translateY(-2px);
}

.gb-grid-wrapper .gb-grid-column {
  display: flex;
  }
  
  div.gb-grid-column.gb-grid-column > div {
  width: 100%;
  }

/* Background Grid Styles */
.background-grid {
    position: relative;
    overflow: hidden;
}

.background-grid canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

.background-grid > *:not(canvas) {
    position: relative;
    z-index: 1;
}

/* Social Share Buttons Container */
.share-blog-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}



/* Make it responsive */
@media screen and (max-width: 768px) {
    .share-blog-buttons {
        position: fixed;
        bottom: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        background: white;
        border-top: 1px solid #ddd;
        border-radius: 0;
        padding: 10px 20px;
    }

}

/* Optional: Add hover effects for the buttons */
.share-blog-buttons button {
    transition: transform 0.2s ease;
}

.share-blog-buttons button:hover {
    transform: scale(1.1);
}

/*.share-blog-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: var(--base-3);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}*/

.share-blog-buttons button {
    background: var(--accent);
    color: var(--base);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-blog-buttons button:hover {
    transform: scale(1.1);
    background: var(--accent-dark);
}

.share-blog-buttons svg {
    width: 24px;
    height: 24px;
}

@media screen and (max-width: 768px) {
    .share-blog-buttons {
        position: fixed;
        bottom: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        background: var(--base);
        border-top: 1px solid var(--base-2);
        border-radius: 0;
        padding: 10px 20px;
    }
}

.dealer-installer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 2em;
  line-height: 1;
}

.dealer-text,
.installer-text {
  font-family: 'Oswald', sans-serif;
  text-transform: capitalize;
  font-weight: 500;
  font-size: 1.5em;
  color: var(--contrast);
}

.separator-line {
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  margin: 0.2em 0 0.1em;
}

@media (max-width: 768px) {
  .dealer-installer-text {
      margin-left: 0.5em;
  }
  
  .dealer-text,
  .installer-text {
      font-size: 1em;
  }
}

.page-layout {
  display: flex;
  gap: 2rem;
  position: relative;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  padding: 0;
  z-index: 100;
}

.sticky-sidebar .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sticky-sidebar .action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2em;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Oswald', sans-serif;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-sidebar .action-button:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.main-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1024px) {
  .page-layout {
      flex-direction: column;
  }

  .sticky-sidebar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      top: auto;
      width: 100%;
      padding: 1rem;
      background: white;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .sticky-sidebar .action-buttons {
      flex-direction: row;
  }

  .sticky-sidebar .action-button {
      flex: 1;
      padding: 0.8em;
      font-size: 0.9em;
  }

  .main-content {
      margin-bottom: 100px;
  }
}

@media (min-width: 768px) {
 .content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 0 5vw;
    margin-top: 2rem;
}
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding: 0;
    z-index: 100;
}

.sticky-sidebar .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sticky-sidebar .action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2em;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Oswald', sans-serif;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-sidebar .action-button:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .applications-grid {
        gap: 1rem;
    }

    .grid-item {
        aspect-ratio: 4/5;
    }
}

@media (min-width: 1200px) and (max-width: 1699px) {
    .grid-item,
    #hero-slides .slide {
        font-size: 1vw;
    }
}

@media (min-width: 1700px) {
    .grid-item,
    #hero-slides .slide {
        font-size: 0.75vw;
    }
}

/* Blog Archive Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.blog-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.entry-title {
    font-size: 1.5em;
    margin: 0 0 0.5em;
    line-height: 1.3;
}

.entry-title a {
    color: var(--contrast);
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-title a:hover {
    color: var(--accent);
}

.entry-meta {
    font-size: 0.9em;
    color: var(--contrast-2);
    margin-bottom: 1em;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.post-author a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-author a:hover {
    text-decoration: underline;
}

.post-categories {
    display: flex;
    gap: 0.5em;
}

.post-categories a {
    color: var(--accent);
    text-decoration: none;
}

.post-categories a:hover {
    text-decoration: underline;
}

.entry-summary {
    color: var(--contrast-2);
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    padding: 0.5em 1em;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
    font-weight: 500;
}

.read-more:hover {
    background: var(--accent-dark);
    color: white;
}

/* Pagination Styles */
.navigation.pagination {
    margin-top: 2rem;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 0.5rem;
}

.page-numbers {
    padding: 0.5em 1em;
    background: white;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--accent);
    color: white;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .entry-title {
        font-size: 1.3em;
    }
}

/* Blog Pagination Styles */
.blog-pagination {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--base-2);
    text-align: center;
}

.blog-pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.blog-pagination .page-numbers {
    padding: 0.8em 1.2em;
    background: white;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 2.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--accent);
    color: white;
}

@media (max-width: 768px) {
    .blog-pagination {
        margin-top: 2rem;
        margin-bottom: 6rem; /* Space for fixed sidebar on mobile */
    }
    
    .blog-pagination .page-numbers {
        padding: 0.6em 1em;
        font-size: 0.9em;
    }
}

/* Author Template Styles */
.author-profile-container {
    max-width: 1500px;  
    margin: 0 auto;
    padding: 4rem 15%;
}

.author-header {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
}

.author-header-left {
    flex: 0 0 400px;
}

.author-profile-picture {
    margin-bottom: 1.5rem;
    width: 400px;
    height: 400px;
}

.author-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.author-social-links .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--accent);
    transition: all 0.3s ease;
}

.author-social-links .social-icon:hover {
    background-color: var(--contrast);
    transform: translateY(-2px);
}

.author-social-links .social-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: white;
}

.author-social-links .social-icon path {
    fill: white;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-info h1 {
    font-size: 3em;
    margin: 0 0 0.5rem;
    color: var(--contrast);
    font-family: 'Oswald', sans-serif;
}

.author-role {
    font-size: 1.5em;
    color: var(--contrast-2);
    margin: 0 0 1.5rem;
    font-style: italic;
}

.author-bio-content {
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--contrast-2);
}

/* Testimonials Slider */
.author-testimonials {
    background: var(--base-2);
    padding: 4rem 0;
    margin: 4rem calc(-50vw + 50%);
    width: 100vw;
    text-align: center;
}

.author-testimonials .testimonials-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.author-testimonials h2 {
    font-size: 2.5em;
    color: var(--contrast);
    margin-bottom: 3rem;
    font-family: 'Oswald', sans-serif;

    @media (max-width: 768px) {
        font-size: 2em;
    }
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    flex: 0 0 100%;
    padding: 0 2rem;
}

.testimonial-item blockquote {
    font-size: 1.4em;
    line-height: 1.8;
    color: var(--contrast-2);
    font-style: italic;
    margin: 0 0 2rem;
    border: none;
    padding: 0;
}

.testimonial-item footer {
    font-size: 1.1em;
    color: var(--contrast);
}

.testimonial-item cite {
    font-style: normal;
    font-weight: 600;
}

.testimonial-author-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.testimonial-author-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.testimonial-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-navigation button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.testimonial-navigation button:hover:not(:disabled) {
    background: var(--accent-dark);
}

.testimonial-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--contrast-3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.testimonial-dot.active {
    background: var(--accent);
}

/* Achievements and Media Mentions Grid */
.author-grid-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 4rem 0;
}

.achievements-list li,
.media-mentions-list li,
.webinars-list li {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--base-2);
    font-size: 1.2em;
    line-height: 1.6;
}

.achievements-list li:last-child,
.media-mentions-list li:last-child,
.webinars-list li:last-child {
    border-bottom: none;
}

.achievements-list a,
.media-mentions-list a,
.webinars-list a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.achievements-list a:hover,
.media-mentions-list a:hover,
.webinars-list a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .author-header {
        flex-direction: column;
        gap: 2rem;
    }

    .author-header-left {
        flex: none;
        margin: 0 auto;
    }

    .author-info {
        text-align: center;
    }

    .author-grid-sections {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .author-profile-container {
        padding: 2rem 10%;
    }

    .author-header-left {
        width: 100%;
    }

    .author-profile-picture {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-width: 300px;
        margin: 0 auto 1.5rem;
    }

    .author-info h1 {
        font-size: 2.5em;
    }

    .author-role {
        font-size: 1.2em;
    }

    .author-testimonials {
        padding: 3rem 0;
        margin: 3rem calc(-50vw + 50%);
    }
    
    .author-testimonials .testimonials-content {
        padding: 0 1rem;
    }

    .testimonial-item blockquote {
        font-size: 1.2em;
    }

    .achievements-list li,
    .media-mentions-list li,
    .webinars-list li {
        font-size: 1.1em;
    }
}

/* Author Profile Tile Styles */
.author-profile-tile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--base-2);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    margin: 2rem 0;
}

.author-profile-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.author-tile-image {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

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

.author-tile-info {
    flex: 1;
    min-width: 0;
}

.author-tile-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3em;
    margin: 0 0 0.5rem;
    color: var(--contrast);
}

.author-tile-bio {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--contrast-2);
    margin: 0;
}

@media (max-width: 768px) {
    .author-profile-tile {
        padding: 1rem;
        gap: 1rem;
    }

    .author-tile-image {
        flex: 0 0 80px;
        height: 80px;
    }

    .author-tile-name {
        font-size: 1.1em;
    }

    .author-tile-bio {
        font-size: 0.9em;
    }
}

.ghub-bye-wrapper.ghub-aspect-ratio-16-9.small {
  width: 30vw;
}


@media (max-width: 1200px) {
    .applications-grid {
        grid-template-columns: auto auto;
    }
}

@media (max-width: 768px) {
    .applications-grid {
        grid-template-columns: auto;
        padding: 0 1rem;
    }
}

/* Improve blog grid responsiveness */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Improve entry content padding for mobile */
.entry-content {
    padding: 0 5%;
}

@media (max-width: 1024px) {
    .entry-content {
        padding: 0 3%;
    }
}

@media (max-width: 768px) {
    .entry-content {
        padding: 0 1rem;
    }
}

/* Enhance sticky sidebar behavior */
.sticky-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding: 0;
    z-index: 100;
}

@media (max-width: 1024px) {
    .sticky-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        padding: 0.5rem;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

    .sticky-sidebar.at-footer {
        position: absolute;
        bottom: 100%;
        transform: none;
    }

    .sticky-sidebar .action-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .sticky-sidebar .action-button {
        flex: 1;
        padding: 0.8em;
        font-size: 0.9em;
    }
}

/* Improve hero section responsiveness */
.application-hero {
    margin: 0;
    min-height: 50vh;
}

@media (max-width: 1024px) {
    .hero-content {
        width: 70%;
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .hero-content {
        width: 90%;
        padding: 1.5rem;
        position: relative;
        left: 50%;
        transform: translateX(-50%) translateY(-30%);
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-excerpt {
        font-size: 1em;
    }
}

/* Improve slider responsiveness */
@media (max-width: 1024px) {
    :root {
        --slides-per-page: 2;
    }
    
    #hero-slides #slides .slide {
        font-size: 1.2vw;
    }
}

@media (max-width: 768px) {
    :root {
        --slides-per-page: 1;
    }
    
    #hero-slides #slides .slide {
        font-size: 4vw;
        width: 90vw;
    }
    
    #hero-slides #slides {
        width: 100%;
        padding: 0 5vw;
    }
}

/* Add touch-friendly navigation for mobile */
@media (max-width: 768px) {
    .nav-button,
    .action-button,
    .read-more,
    .testimonial-navigation button {
        min-height: 44px;
        min-width: 44px;
        padding: 0.8em 1.2em;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
}

/* Improve grid spacing on mobile */
@media (max-width: 768px) {
    .grid-header,
    .slider-header {
        padding: 0rem 0rem 2rem 0rem;
    }
    
    .grid-header .header-grid,
    .slider-header .header-grid {
        gap: 1.5rem;
    }
}

/* Fix the GitHub embed responsive size */
.ghub-bye-wrapper.ghub-aspect-ratio-16-9.small {
    width: 100%;
    max-width: 30vw;
}

@media (max-width: 1024px) {
    .ghub-bye-wrapper.ghub-aspect-ratio-16-9.small {
        max-width: 50vw;
    }
}

@media (max-width: 768px) {
    .ghub-bye-wrapper.ghub-aspect-ratio-16-9.small {
        max-width: 90vw;
    }
}

/* Improve mobile navigation and content layout */
@media (max-width: 768px) {
    /* Improve spacing for mobile */
    .content-layout {
        padding: 0 1rem;
        margin-top: 1rem;
    }
    
    /* Enhance mobile navigation */
    .application-nav {
        padding: 0 1rem;
    }
    
    .application-nav-button {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    /* Improve mobile form elements */
    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    input[type="range"],
    input[type="date"],
    input[type="month"],
    input[type="week"],
    input[type="time"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="color"],
    textarea,
    select {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.8em;
        margin-bottom: 1em;
        width: 100%;
        max-width: 100%;
        border: 1px solid var(--base-2);
        border-radius: 4px;
    }
    
    /* Improve table responsiveness */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Enhance mobile images */
    img {
        height: auto;
        max-width: 100%;
    }
    
}

/* Add tablet-specific improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet grid layouts */
    .content-layout {
        padding: 0 2rem;
        margin-top: 2rem;
    }
    

    /* Tablet buttons */
    button,
    .button,
    input[type="button"],
    input[type="reset"],
    input[type="submit"] {
        padding: 0.7em 1.4em;
        font-size: 1.1rem;
    }
}

/* Improve mobile menu accessibility */
@media (max-width: 768px) {
    .menu-toggle,
    .dropdown-toggle {
        padding: 1em;
        min-width: 44px;
        min-height: 44px;
    }
    
    .main-navigation ul {
        padding-left: 0;
    }
    
    .main-navigation li {
        padding: 0.5em 0;
    }
    
    .main-navigation a {
        padding: 0.8em;
        display: block;
    }
}

/* Enhance touch targets for mobile */
@media (max-width: 768px) {
    .social-links a,
    .nav-links a,
    .pagination a,
    .menu-item a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.8em;
    }
    
    /* Improve spacing between interactive elements */
    .nav-links,
    .social-links,
    .menu-items {
        gap: 0.8rem;
    }
}

/* Fix mobile horizontal scrolling issues */
.entry-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Improve code block readability on mobile */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    padding: 1rem;
    margin: 1rem 0;
    background: var(--base-2);
    border-radius: 4px;
}

@media (max-width: 768px) {
    pre {
        font-size: 14px;
        padding: 0.8rem;
    }
}

/* Enhance mobile search experience */
@media (max-width: 768px) {
    .search-form {
        display: flex;
        gap: 0.5rem;
    }
    
    .search-field {
        flex: 1;
        min-height: 44px;
        font-size: 16px;
    }
    
    .search-submit {
        min-height: 44px;
        min-width: 44px;
        padding: 0.8em;
    }
}

/* Applications Modal Styles */
.applications-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.applications-modal.show {
    display: flex;
    opacity: 1;
}

.applications-modal .modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    margin: auto;
    border-radius: 8px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.applications-modal.show .modal-content {
    transform: translateY(0);
}

.applications-modal .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.applications-modal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--contrast);
}

.applications-modal .close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    color: var(--contrast-2);
}

.applications-modal .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.applications-modal .application-nav {
    display: grid;
    gap: 1rem;
    position: static;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: none;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .hero-content {
        cursor: pointer;
    }

    .application-nav-title {
        margin-top: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--accent);
        font-weight: 500;
    }

    .application-nav-title svg {
        transition: transform 0.3s ease;
    }

    /* Hide desktop navigation on mobile */
    .hero-content > .application-nav {
        display: none;
    }

    /* Show modal navigation on mobile */
    .applications-modal .application-nav {
        display: grid;
    }

}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }

    .hero-content > .application-nav {
        display: grid;
    }
}

/* Applications Modal and Navigation Styles */
.application-nav {
    display: grid;
    gap: 1rem;
    padding: 1rem 0;
}

/* Modal Specific Styles */
.applications-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.applications-modal.show {
    display: flex;
    opacity: 1;
}

.applications-modal .modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    margin: auto;
    border-radius: 8px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.applications-modal.show .modal-content {
    transform: translateY(0);
}

.applications-modal .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.applications-modal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--contrast);
}

.applications-modal .close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    color: var(--contrast-2);
}

.applications-modal .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.applications-modal .application-nav {
    display: grid;
    gap: 1rem;
    position: static;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: none;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .hero-content {
        cursor: pointer;
    }

    .application-nav-title {
        margin-top: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--accent);
        font-weight: 500;
    }

    .application-nav-title svg {
        transition: transform 0.3s ease;
    }

    /* Hide desktop navigation on mobile */
    .hero-content > .application-nav {
        display: none;
    }

    /* Show modal navigation on mobile */
    .applications-modal .application-nav {
        display: grid;
    }

    /* Ensure modal navigation buttons are visible */
    .applications-modal .application-nav-button {
        background: #f5f5f5;
        color: #333;
        border: 1px solid #ddd;
        opacity: 1;
        visibility: visible;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }

    .hero-content > .application-nav {
        display: grid;
    }
}

/* Project Details Styles */
.project-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.project-detail {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.1em;
    line-height: 1.4;
}

.detail-label {
    font-weight: 600;
    color: var(--contrast);
    min-width: 100px;
}

.detail-value {
    color: var(--contrast-2);
}

@media (max-width: 768px) {
    .project-details-list {
        gap: 0.6rem;
    }

    .project-detail {
        font-size: 1em;
    }

    .detail-label {
        min-width: 80px;
    }
}

/* Project Drawings Styles */
.project-drawings {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.drawings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.drawing-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.drawing-preview {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.drawing-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawing-item.pdf .drawing-preview {
    color: var(--accent);
}

.drawing-name {
    font-size: 0.9em;
    color: var(--contrast-2);
    text-align: center;
    word-break: break-word;
}

@media (max-width: 768px) {
    .project-drawings {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .drawings-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .drawing-item {
        padding: 0.8rem;
    }
}

.category-filter.active {
    background-color: var(--accent-dark);
    color: white;
}

.post-categories {
    margin-left: 1em;
    color: var(--accent);
}

/* Add smooth transitions */
.blog-post {
    transition: all 0.3s ease-in-out;
}

.business-info-type {
    color: var(--contrast-3);
    font-weight: 700;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2em;

    & label {
        font-weight: 600;
    }
}
.radio-group {
    display: flex;
    gap: 1em;

    & p {
        margin: 0;
    }
}

.blog-grid-container {
    margin-bottom: 2rem;
}

.table-of-contents {
    & .lwptoc_i {
        border-radius: 10px;
    }
}

/* projects */
.site-content {
        display: block;
    }

    div.sub-nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1em;
        z-index: 10 !important;

        @media (min-width: 768px) {
            margin-bottom: -30px;
        }
    }


    .back-to-projects-link {
        display: flex;
        align-items: center;
        gap: 0.5em;
        font-size: 1.2em;
        font-weight: 600;
        color: var(--accent);
    }

    .sub-nav-buttons {
        display: flex;
        gap: 1em;
        & button {
            background: var(--accent);
            padding: 1em;
            border-radius: 4px;
        }
        & button:hover {
            background: var(--accent-dark);
        }
    }

    .project-page {
        min-height: calc(100vh - var(--header-height, 80px));
        background: var(--base-4);
    }

    .related-application-container {
        text-align: center;
        padding: 1rem;
        background: rgba(255,255,255,0.9);
        border-bottom: 1px solid #ddd;
    }

    .related-application {
        font-size: 1.2rem;
        color: #666;
        font-weight: 600;
    }

    .project-hero {
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 2rem;
        padding: 2rem;
        max-width: 1800px;
        margin: 0 auto;
    }

    .project-metadata {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        background: rgba(255,255,255,0.9);
        border: 1px solid #ddd;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        height: fit-content;
        align-self: center;
    }

    .project-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        font-family: "Oswald", sans-serif;
        font-weight: 600;
        text-transform: uppercase;
    }

    .project-dates, .project-location {
        margin: 0.5rem 0;
        font-style: italic;
        color: #666;
    }

    .project-image-wrap {
        padding: 2rem;
        width: auto;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        background: white;
    }

    .project-image-container {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* 16:9 Aspect Ratio for a wider landscape view */
        background: rgba(255,255,255,0.9);
        border: 1px solid #ddd;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .primary-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Forces image to cover the container */
        object-position: center; /* Centers the image */
        padding: 0; /* Remove padding to ensure full coverage */
        box-shadow: none;
    }

    .project-description {
        padding: 2rem;
        background: rgba(255,255,255,0.9);
        border: 1px solid #ddd;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        height: fit-content;
        align-self: center;
        text-align: justify;
    }

    .project-details {
        padding: 4rem 2rem;
    }

    .lists-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto 2rem;
    }

    .materials-list, .vendors-list, .project-description, .video-container {
        background: rgba(249, 249, 249, 0.9);
        padding: 2rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        height: fit-content;
    }

    .list-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: #333;
        font-family: "Oswald", sans-serif;
        font-weight: 600;
    }

    .project-gallery {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .gallery-grid {
        margin: 0 -1rem; /* Negative margin to offset item padding */
    }

    .gallery-item {
        width: calc(33.333% - 2rem); /* 3 columns by default */
        margin: 1rem;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: transform 0.2s;
    }

    .gallery-item:hover {
        transform: scale(1.02);
    }

    .gallery-image {
        display: block;
    }

    .gallery-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    @media (max-width: 992px) {
        .gallery-item {
            width: calc(50% - 2rem); /* 2 columns on tablets */
        }
    }

    @media (max-width: 576px) {
        .gallery-item {
            width: calc(100% - 2rem); /* 1 column on mobile */
        }
    }

    /* Thickbox Modal Customization */
    #TB_window {
        padding-bottom: 50px !important;
    }

    #TB_closeWindowButton {
        bottom: 10px !important;
    }

    .tb-close-icon {
        color: #333 !important;
        text-shadow: none !important;
    }

    #TB_next, #TB_prev {
        bottom: 10px !important;
    }

    @media (max-width: 1200px) {
        .project-hero {
            grid-template-columns: 1fr 2fr;
        }
        .project-description {
            grid-column: 1 / -1;
        }
    }

    @media (max-width: 768px) {
        .project-hero {
            grid-template-columns: 1fr;
            gap: 1rem;
            padding: 1rem;
        }
        
        .project-image-container {
            padding-top: 66.67%; /* Maintain 3:2 ratio on mobile */
        }

        .primary-image {
            padding: 0.5rem;
        }

        .lists-container {
            grid-template-columns: 1fr;
        }
    }

    .application-type {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #ddd;
    }

    .application-type-label {
        display: block;
        font-size: 0.9em;
        color: #666;
        margin-bottom: 0.5em;
    }

    .application-type-value {
        display: block;
        font-size: 1.1em;
        color: #237e58;
        font-weight: 500;
    }

    .application-type-value a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .application-type-value a:hover {
        color: #1a5f42;
    }

    .application-type-values {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5em;
        margin-top: 0.5em;
    }

    .application-type-value {
        display: inline-block;
        padding: 0.3em 0.8em;
        background: rgba(35, 126, 88, 0.1);
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }

    .application-type-value:hover {
        background: rgba(35, 126, 88, 0.2);
    }

    .application-type-value a {
        color: var(--accent);
        text-decoration: none;
        font-weight: 500;
    }

    .application-type-value a:hover {
        color: var(--accent-dark);
    }

    @media (max-width: 768px) {
        .application-type-values {
            flex-direction: column;
            gap: 0.3em;
        }
        
        .application-type-value {
            width: fit-content;
        }
    }

    /* Add these new styles */
    .lists-container > div {
        break-inside: avoid;
        page-break-inside: avoid;
        transition: all 0.3s ease;
    }

    .lists-container > div.full-width {
        grid-column: 1 / -1;
    }

    .lists-container > div.half-width {
        grid-column: auto / span 1;
    }

    @media (max-width: 768px) {
        .lists-container > div {
            grid-column: 1 / -1 !important;
        }
    }

    /* Video Section Styles */
    .video-container {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
        height: 0;
        overflow: hidden;
    }

    .video-container iframe,
    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

    /* Ensure the video section takes up proper space in the grid */
    .lists-container .video-container {
        padding: 2rem;
        height: auto;
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }

    .lists-container .video-container .list-title {
        margin-bottom: 1.5rem;
    }

    .lists-container .video-container > div {
        position: relative;
        flex-grow: 1;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
        width: 100%;
    }

    .lists-container .video-container iframe,
    .lists-container .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 4px;
        background: #000;
    }