/* Home Banner Section - Unique Styling Conventions */
.middle-section .home-banner-section-section {
    --home-banner-section-primary: #004E29;
    --home-banner-section-primary-hover: #164A2C;
    --home-banner-section-secondary: #666666;
    --home-banner-section-white: #ffffff;
    --home-banner-section-shadow: rgba(15, 45, 31, 0.3);
    --home-banner-section-transition: all 0.3s ease;
    --home-banner-section-radius: 8px;
    --home-banner-section-mobile-padding: 15px;
    
    background-color: var(--home-banner-section-white);
    overflow: hidden;
    position: relative;
  }
  
  .middle-section .home-banner-section-inner {
    padding: 0;
    overflow: hidden;
  }
  
  .middle-section .home-banner-section-container {
    max-width: 1280px;
    margin: 0 auto;
  }
  
  .middle-section .home-banner-section-slides {
    width: 100%;
  }
  
  .middle-section .home-banner-section-slide {
    width: 100%;
  }
  
  .middle-section .home-banner-section-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: stretch;
  }
  
  /* Caption Wrapper - Mobile First */
  .middle-section .home-banner-section-caption-wrapper {
    order: 1;
    padding: var(--home-banner-section-mobile-padding);
    flex: 1;
    display: flex;
    align-items: center;
  }
  
  .middle-section .home-banner-section-caption-bg {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
  }
  
  .middle-section .home-banner-section-caption {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    position: relative;
    text-align: left;
    padding: 2rem 0;
  }
  
  .middle-section .home-banner-section-caption h1 {
    /* color: var(--home-banner-section-primary);
    font-family: "Avenir Black", Arial, sans-serif;
  font-size: 70px;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0.6px; */
  margin-bottom: 30px !important;
  }

  .middle-section .home-banner-section-caption .home-banner-section-btn {
    margin-top: 30px !important;
  }

  @media (max-width: 480px) {
    .middle-section .home-banner-section-caption {
      padding: 0;
    }

    .middle-section .home-banner-section-caption .home-banner-section-btn {
      /* margin-bottom: -20px; */
      z-index: 2;
    }

    .featured-main {
      
    }
  }

  @media ((min-width: 480px) and (max-width: 768px)) {

    .home-banner-section-img {
      transform: translate(0, 30px);
    }
  }
  
  .middle-section .home-banner-section-caption h1 span.block {
    display: block;
  }
  
  .middle-section .home-banner-section-caption p {
    font-size: clamp(16px, 4vw, 18px);
    line-height: 1.6;
    color: var(--home-banner-section-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
  }
  
  .middle-section .home-banner-section-btn {
    font-family: "Avenir-Heavy", Arial, sans-serif;
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.25;
    color: var(--home-banner-section-white) !important;
    background-color: var(--home-banner-section-primary) !important;
    border: none;
    border-radius: var(--home-banner-section-radius);
    padding: clamp(12px, 3vw, 16px) clamp(24px, 6vw, 32px);
    text-decoration: none;
    transition: var(--home-banner-section-transition);
    display: inline-block;
  }
  
  .middle-section .home-banner-section-btn:hover {
    background-color: var(--home-banner-section-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--home-banner-section-shadow);
  }
  
  /* Image Wrapper - Full Width on Mobile */
  .middle-section .home-banner-section-image-wrapper {
    order: 2;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .middle-section .home-banner-section-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
  }
  
  .middle-section .home-banner-section-slide-image {
    width: 100%;
    height: 100%;
  }
  
  .middle-section .home-banner-section-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    aspect-ratio: 1;
    scale: 1.4;
  }
/* 
  .middle-section .home-banner-section-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    display: block;
  } */

  /* .home-banner-section-img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    width: 100%;
    height: auto;
  } */
  
  /* Tablet Styles */
  @media (min-width: 768px) {
    .middle-section .home-banner-section-content {
      flex-direction: row;
      /* min-height: 600px; */
      align-items: stretch;
    }


    
    .middle-section .home-banner-section-caption-wrapper {
      order: 1;
      flex: 1;
      padding: 2rem;
    }
    
    .middle-section .home-banner-section-image-wrapper {
      order: 2;
      flex: 1;
      width: auto;
      position: static;
      left: auto;
      right: auto;
      margin-left: 0;
      margin-right: 0;
    }
    
    .middle-section .home-banner-section-img {
      min-height: 500px;
      border-radius: var(--home-banner-section-radius);
    }
  }
  
  /* Desktop Styles */
  @media (min-width: 992px) {
    .middle-section .home-banner-section-content {
      min-height: 700px;
    }
    
    .middle-section .home-banner-section-caption-wrapper {
      padding: 3rem 2rem 3rem 3rem;
    }
    
    .middle-section .home-banner-section-caption-bg {
      padding-right: 40px;
    }
    
    .middle-section .home-banner-section-img {
      min-height: 691px;
      transform: translateX(100px);
    }
  }
  
  /* Large Desktop */
  @media (min-width: 1200px) {
    .middle-section .home-banner-section-caption-wrapper {
      padding: 4rem 3rem;
    }
  }
  
  /* Featured Blog Section - Unique Styling */
  .fb-section {
    --fb-primary: #004E29;
    --fb-secondary: #666666;
    --fb-white: #ffffff;
    --fb-shadow: rgba(0, 0, 0, 0.1);
    --fb-radius: 12px;
    --fb-gap: 1.5rem;
    
    padding: clamp(3rem, 8vw, 5rem) 0;
    background-color: var(--fb-white);
  }
  
  .fb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--home-banner-section-mobile-padding);
  }
  
  .fb-title {
    color: var(--fb-primary);
    font-family: "Avenir-Book", Arial, sans-serif;
    font-weight: 700;
    text-align: center;
    margin: 0 0 clamp(2rem, 6vw, 4.5rem) 0;
    line-height: 1.2;
    
    /* Responsive font size */
    font-size: clamp(32px, 7vw, 70px);
  }
  
  .fb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--fb-gap);
    align-items: stretch;
  }
  
  .fb-post {
    background: var(--fb-white);
    border-radius: var(--fb-radius);
    overflow: hidden;
    box-shadow: 0 2px 16px var(--fb-shadow);
    transition: var(--home-banner-section-transition);
    display: flex;
    flex-direction: column;
  }
  
  .fb-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--fb-shadow);
  }
  
  .fb-post-thumb {
    width: 100%;
    height: 250px;
    overflow: hidden;
  }
  
  .fb-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--home-banner-section-transition);
  }
  
  .fb-post:hover .fb-post-img {
    transform: scale(1.05);
  }
  
  .fb-post-title {
    color: var(--fb-primary);
    font-family: "Avenir-Book", Arial, sans-serif;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 600;
    line-height: 1.3;
    margin: 1.5rem 1.5rem 1rem 1.5rem;
    flex-grow: 1;
  }
  
  .fb-post-excerpt {
    color: var(--fb-secondary);
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.6;
    margin: 0 1.5rem 1.5rem 1.5rem;
    flex-grow: 2;
  }
  
  .fb-post-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--fb-primary);
    color: var(--fb-white);
    border-radius: 50%;
    margin: 0 1.5rem 1.5rem auto;
    text-decoration: none;
    transition: var(--home-banner-section-transition);
    flex-shrink: 0;
  }
  
  .fb-post-link:hover {
    background: var(--home-banner-section-primary-hover);
    transform: scale(1.1);
  }
  
  .fb-post-link svg {
    width: 20px;
    height: 20px;
  }
  
  /* Tablet Grid */
  @media (min-width: 600px) {
    .fb-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }
  }
  
  /* Desktop Grid */
  @media (min-width: 992px) {
    .fb-container {
      padding: 0 2rem;
    }
    
    .fb-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 2.5rem;
    }
    
    .fb-post-thumb {
      height: 200px;
    }
  }
  
  /* Large Desktop */
  @media (min-width: 1200px) {
    .fb-container {
      padding: 0 3rem;
    }
  }
  
  /* High DPI Displays */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .fb-post {
      box-shadow: 0 1px 8px var(--fb-shadow);
    }
    
    .fb-post:hover {
      box-shadow: 0 4px 16px var(--fb-shadow);
    }
  }
  
  /* Reduced Motion */
  @media (prefers-reduced-motion: reduce) {
    .middle-section .home-banner-section-btn,
    .fb-post,
    .fb-post-img,
    .fb-post-link {
      transition: none;
    }
    
    .middle-section .home-banner-section-btn:hover,
    .fb-post:hover {
      transform: none;
    }
    
    .fb-post:hover .fb-post-img {
      transform: none;
    }
  }
  
  /* Print Styles */
  @media print {
    .middle-section .home-banner-section-section,
    .fb-section {
      padding: 1rem 0;
    }
    
    .fb-post {
      box-shadow: none;
      border: 1px solid #ddd;
    }
    
    .fb-post-link {
      display: none;
    }
  }
  
  @media (max-width: 767px) {
    .middle-section .home-banner-section-caption h1 {
      font-size: 48px !important;
    }
  }
