/* Base Typography */
body, button {
    font-family: "din-2014", sans-serif;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "din-2014", sans-serif;
    font-weight: 600;
    font-style: normal;
}

h2 {
    font-size: 2.25em;
    line-height: 1.125;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content > *:first-child, .header-content > *:first-child {
    margin-top: 0;
}

.content > *:last-child, .header-content > *:last-child {
    margin-bottom: 0;
}   

a {
    transition: all 0.3s ease;
    color: #65A143;
}

a:hover {
    color: #9DC292;
}

.alignleft {
    margin-right: 25px !important;
  }

  ul {
    margin: 0;
  }

.button {
    font-family: "din-2014", sans-serif;
    font-weight: 600;
    font-style: normal;
}

/* Common Layout Styles */
.layout {
    padding: 60px 0;
    background-size: cover;
    background-position: center;
}

.layout .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.custom-logo {
    display: block;
    max-width: 200px;
    transition: all 0.3s ease;
}

.custom-logo:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.layout .header-content {
    text-align: center;
    margin-bottom: 60px;
}

.layout .header-content h2 {
    font-weight: 600;
    margin-bottom: 20px;
}

.layout .header-content p {
    font-weight: 300;
}

.layout .button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.layout .button:hover {
    opacity: 0.8;
}

/* Page Header Layout */
.layout-page-header {
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    padding: 60px 0;
    position: relative;
    background-size: cover;
    background-position: center;
}

.layout-page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.layout-page-header .container {
    position: relative;
    z-index: 2;
}

.layout-page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.25;
}

.layout-page-header p:last-child {
    margin-bottom: 0;
}

.button, a.button, .footer-content a, .layout-page-header p:last-child a, .layout-call-to-action p:last-child a, input[type="submit"], input[type="button"], .nf-form-content button, .nf-form-content input[type="button"], .nf-form-content input[type="submit"] {
    background-color: #65A143 !important;
    color: #fff !important;
    text-decoration: none;
    border-radius: 25px;
    padding: 15px 25px;
    margin-top: 5px;
    display: inline-block;
    border: none !important;
    font-weight: 300 !important;
    cursor: pointer;
    letter-spacing: 1px !important;
}

a.button:hover, .footer-content a:hover, .layout-page-header p:last-child a:hover, .layout-call-to-action p:last-child a:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #F4F3E8 !important;
    color: #000 !important;
}

/* Featured Text Layout */
.layout-featured-text {
    text-align: center;
}

.layout-featured-text .content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.25rem;
}

/* Text with Image Layout */
.layout-text-with-image .row {
    display: flex;
    align-items: center;
    gap: 60px;
  }

  #primary-menu .current_page_item:not(.menu-item-home) a::after {
    width: 100%;
  }

  .layout-text-with-image .row > * {
    flex: 1;
  }

  .layout-text-with-image img {
    max-width: 600px;
    margin: auto;
    display: block;
  }

.layout-text-with-image img {
    border-radius: 10px;
}

.layout-text-with-image .read-more-content {
    margin-top: 20px;
    overflow: hidden;
}

.layout-text-with-image .read-more-button {
    margin-top: 20px;
    position: relative;
}

.layout-text-with-image .read-more-button[aria-expanded="true"]::after {
    transform: translateY(-25%) rotate(-135deg);
}

/* Countup Layout */

.layout-countup {
    position: relative;
}

.layout-countup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../img/locks.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index:2;
}

.layout-countup .number-wrapper {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 0px;
    line-height: 1;
}

.layout-countup .subtitle {
    font-size: 1.5rem;
}

.layout-countup .container {
    max-width: 600px;
    position: relative;
    z-index: 3;
  }

/* Value Props Layout */
.layout-value-props .value-prop {
    text-align: center;
    margin-bottom: 40px;
}

.layout-value-props .image {
    margin-bottom: 20px;
}

b, strong {
    font-weight: 600 !important;
  }

.layout-value-props img {
    max-width: 120px;
    height: 90px;
    object-fit: contain;
    width: 100%;
  }

  .value-props-grid .row > * {
    flex: 1;
  }

  .value-props-grid .row {
    gap: 50px;
  }

.value-props-grid .row {
    display: flex;
    justify-content: space-between;
    max-width: 1166px;
    margin: auto;
    align-items: stretch;
  }




/* Team Layout */
.layout-team .team-member {
    text-align: center;
    margin-bottom: 40px;
}

.layout-team .image {
    margin-bottom: 20px;
}

.layout-team img {
    border-radius: 50%;
    max-width: 200px;
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
}

.layout-team .button-wrapper {
    margin-top: 40px;
}

.team-grid .row {
    display: flex;
    justify-content: center;
    gap: 40px;
  }

  .team-member .content p {
    margin: 0;
  }

  .layout-team .button-wrapper.text-center {
    text-align: center;
    margin-top: 0;
  }

/* Featured Projects Layout */
.layout-featured-projects .container {
    max-width: 1166px;
}
.layout-featured-projects .project {
    overflow: hidden;
    margin-bottom: 0;
    display: flex;
  flex-direction: column;
  justify-content: stretch;
  flex: 1;
}

.layout-featured-projects .content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: stretch;
  }

  h3 {
    font-size: 1.5em;
  }

  .layout-featured-projects + .layout {
    margin-top: -95px;
    padding-top: 100px;
  }

  .layout-featured-projects .excerpt {
    flex: 1;
  }

.layout-featured-projects h3 {
    margin-bottom: 15px;
}

.layout-featured-projects .excerpt {
    margin-bottom: 20px;
}

.projects-grid .row {
    display: flex;
    align-items: stretch;
    gap: 30px;
  }

  .projects-grid .row .col-md-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
  }

  .project img {
    height: 250px;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
  }
  



/* Recent Articles Layout */
.layout-recent-articles .article {
    margin-bottom: 30px;
}

.layout-recent-articles .image {
    margin-bottom: 20px;
}

.layout-recent-articles .categories {
    margin-bottom: 15px;
}

.layout-recent-articles .category {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 10px;
    border-radius: 15px;
    font-size: 0.875rem;
    border: 1px solid;
}

.layout-recent-articles h3 {
    margin-bottom: 15px;
}

.layout-recent-articles .excerpt {
    margin-bottom: 20px;
}

.articles-grid .row {
    display: flex;
    gap: 40px;
    justify-content: space-between;
  }

  .articles-grid img {
    aspect-ratio: 1.66;
    height: 100%;
    display: block;
    object-fit: cover;
    width: 100%;
  }

  .articles-grid h3 a {
    text-decoration: none;
  }

/* Call to Action Layout */
.layout-call-to-action {
    text-align: center;
    padding: 150px 0;
}

.layout-call-to-action h2 {
    font-size: 3em;
  }

.layout-call-to-action .content {
    max-width: 1024px;
    margin: 0 auto;
}

/* FAQ Layout */
.layout-faq .faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.layout-faq .faq-item {
    margin-bottom: 15px;
    border: none;
}


.layout-faq .faq-item:nth-child(2n+1) .faq-question{
    background-color: #77AD86;
  }

  .layout-faq .faq-item:nth-child(even) .faq-question{
    background-color: #65A143;
  } 


.layout-faq .faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 40px 20px 20px;
    border: none;
    color: #fff !important;
    background: transparent;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 300;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.layout-faq .faq-question:hover {
    color: #000 !important;
}

.layout-faq .faq-question .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.layout-faq .faq-question .icon::before,
.layout-faq .faq-question .icon::after {
    content: '';
    position: absolute;
    background-color: #fff;
    transition: all 0.3s ease;
}

.layout-faq .faq-question .icon::before {
    width: 2px;
    height: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.layout-faq .faq-question .icon::after {
    width: 20px;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.layout-faq .faq-question[aria-expanded="true"] .icon::before {
    transform: translateX(-50%) rotate(90deg);
}

.layout-faq .faq-answer {
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Dual Images Layout */
.layout-dual-images .images-wrapper {
    margin-top: 40px;
}

.layout-dual-images .image {
    margin-bottom: 30px;
}

.layout-dual-images img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

/* Contact Form Layout */
.layout-contact-form .form-wrapper {
    padding-right: 40px;
}

.layout-contact-form .map-wrapper {
    height: 100%;
}

.layout-contact-form .map {
    position: relative;
    padding-bottom: 75%; /* Adjust based on your map aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.layout-contact-form .map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.layout-contact-form .map-footer {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .layout .container {
        max-width: 960px;
    }

    .layout-page-header h1 {
        font-size: 3rem;
    }

    .layout-call-to-action h2 {
        font-size: 2.5em;
    }
}

@media (max-width: 991px) {
    .layout .container {
        max-width: 720px;
    }

    /* Text with Image Layout */
    .layout-text-with-image .row {
        flex-direction: column;
        gap: 30px;
    }

    .layout-text-with-image img {
        max-width: 100%;
    }

    /* Value Props Layout */
    .value-props-grid .row {
        flex-direction: column;
        gap: 30px;
    }

    .value-props-grid .row > * {
        flex: none;
    }

    /* Team Layout */
    .team-grid .row {
        flex-wrap: wrap;
        gap: 30px;
    }

    .team-grid .row > * {
        flex: 0 0 calc(50% - 15px);
    }

    /* Featured Projects Layout */
    .projects-grid .row {
        flex-direction: column;
        gap: 30px;
    }

    .projects-grid .row > * {
        flex: none;
    }

    /* Recent Articles Layout */
    .articles-grid .row {
        flex-direction: column;
        gap: 30px;
    }

    /* Resources Layout */
    .resources-grid .row {
        flex-direction: column;
        gap: 30px;
    }

    /* Dual Images Layout */
    .images-wrapper .row {
        flex-direction: column;
        gap: 30px;
    }

    /* Contact Form Layout */
    .layout-contact-form .row {
        flex-direction: column;
    }

    .layout-contact-form .form-wrapper {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .layout {
        padding: 40px 0;
    }

    .layout .header-content {
        margin-bottom: 40px;
    }

    h2 {
        font-size: 2em;
    }

    /* Page Header Layout */
    .layout-page-header {
        min-height: 50vh;
        padding: 100px 0 40px;
    }

    .layout-page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    /* Featured Text Layout */
    .layout-featured-text .content {
        font-size: 1.1rem;
    }

    /* Countup Layout */
    .layout-countup .number-wrapper {
        font-size: 3rem;
    }

    .layout-countup .subtitle {
        font-size: 1.25rem;
    }

    /* Team Layout */
    .team-grid .row > * {
        flex: 0 0 100%;
    }

    .layout-team img {
        max-width: 150px;
    }

    /* Call to Action Layout */
    .layout-call-to-action {
        padding: 80px 0;
    }

    .layout-call-to-action h2 {
        font-size: 2em;
    }

    /* FAQ Layout */
    .layout-faq .faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .layout-faq .faq-answer {
        padding: 15px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .layout {
        padding: 30px 0;
    }

    .layout .container {
        padding: 0 15px;
    }

    h2 {
        font-size: 1.75em;
    }

    /* Page Header Layout */
    .layout-page-header h1 {
        font-size: 2rem;
    }

    /* Featured Text Layout */
    .layout-featured-text .content {
        font-size: 1rem;
    }

    /* Countup Layout */
    .layout-countup .number-wrapper {
        font-size: 2.5rem;
    }

    .layout-countup .subtitle {
        font-size: 1.1rem;
    }

    /* Value Props Layout */
    .layout-value-props img {
        max-width: 100px;
        height: 75px;
    }

    /* Call to Action Layout */
    .layout-call-to-action {
        padding: 60px 0;
    }

    .layout-call-to-action h2 {
        font-size: 1.75em;
    }

    /* Button Styles */
    .layout .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Standard Content Layout */
.layout-standard-content .content {
    max-width: 800px;
    margin: 0 auto;
}

.layout-standard-content .content > *:last-child {
    margin-bottom: 0;
} 

#masthead {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    padding: 30px;
}

#masthead .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container.footer-bottom.flex {
    margin-top: 200px;
  }

  #social-menu {
    padding: 0;
    font-size: 0;
    gap: 20px;
    display: flex;
  }

  #social-menu a {
    text-decoration: none;
  }

  li.fab::before {
    font-size: 1.125rem;
  }
  li.fab {
    position: relative;
  }
  li.fab a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

#primary-menu, #footer-menu {
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    list-style: none;
    display: flex;
  }

  #primary-menu a, #footer-menu a {
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
  }

  #primary-menu a::after, #footer-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #F4F3E8;
    transition: width 0.3s ease;
  }

  #primary-menu a:hover, #footer-menu a:hover {
    color: #F4F3E8;
  }

  #primary-menu a:hover::after, #footer-menu a:hover::after {
    width: 100%;
  }

  .btn.nf-fu-button-cancel {
    display: none;
  }

  .nf-fu-progress {
    margin-top: 10px;
  }

  #primary-menu li:last-child a, #footer-menu li:last-child a, .btn-secondary, a.btn-secondary, .layout a.btn-secondary {
    border: 1px solid #fff !important;
    border-radius: 25px;
    padding: 7.5px 25px;
    background-color: transparent !important;
  }

  #primary-menu li:last-child a::after, #footer-menu li:last-child a::after {
    display: none;
  }

    #primary-menu li:last-child a:hover, #footer-menu li:last-child a:hover, .btn-secondary:hover, a.btn-secondary:hover, .layout a.btn-secondary:hover {
    background-color: #fff !important   ;
    color: #000 !important;
  }

  .site-footer {
    background-color: #2B2B2B;
    color: #fff;
    a {
        color: #fff;
    }
  }

  .site-footer.layout {
    padding: 40px 0;
  }


  .post, .page {
    margin: 0;
  }

/* Resources Layout */
.layout-resources .resource {
    margin-bottom: 30px;
}

.resources-grid .row > * {
    flex: 1;
  }

.layout-resources .image {
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

.layout-resources h3 {
    margin-bottom: 15px;
}

.layout-resources .excerpt {
    margin-bottom: 20px;
}

.resources-grid .row {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.resources-grid img {
    aspect-ratio: 1.66;
    height: 100%;
    display: block;
    object-fit: cover;
    width: 100%;
}

.resources-grid h3 a {
    text-decoration: none;
}

body:not(.home) .layout-page-header {
    min-height: 50vh;
  }

body.page-id-10 .layout-page-header {
    padding: 150px 0 50px;
}

#nf-form-2-cont .nf-form-fields-required {
    display: none;
}

#nf-form-2-cont {
    background-color: rgba(255,255,255,0.85);
    color: #000;
    padding: 0 25px;
  }


  .nf-form-title {
    display: none;
  }

  #primary .nf-form-content .list-select-wrap .nf-field-element > div, #primary .nf-form-content input:not([type="button"]):not([type="submit"]), #primary .nf-form-content textarea {
    border: none !important;
    color: #000 !important;
    font-family: "din-2014", sans-serif;
    font-weight: 600 !important;
    font-style: normal;
    letter-spacing: 1px;
    background-color: #F4F3E8 !important;
  } 

  #primary .nf-form-content input[type="submit"] {
    border-radius: 25px !important;
  }

  .nf-before-form-content {
    margin-bottom: 20px;
  }

/* Project Gallery Layout */
.layout-project-gallery .gallery-grid {
    margin-top: 40px;
}

.layout-project-gallery .gallery-item {
    margin-bottom: 30px;
}

.layout-project-gallery .gallery-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.layout-project-gallery .image {
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 1;
}

.layout-project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

.layout-project-gallery .gallery-link:hover img {
    transform: scale(1.05);
}

.layout-project-gallery h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    text-align: left;
}

.gallery-grid .row {
    display: grid;
    grid-template-columns: repeat(4,4fr);
  }


.gallery-grid .row > * {
    padding: 15px;
}

@media (max-width: 768px) {
    .gallery-grid .row > * {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .gallery-grid .row > * {
        width: 100%;
    }
}

.layout-featured-projects + .layout:nth-child(3) {
    margin-top: 0;
    padding-top: 60px;
  }

  .images-wrapper .row {
    display: flex;
    gap: 40px;
  }

  .images-wrapper .col-md-6:first-child {
    background-color: #fff;
    color: #000 !important;
    padding: 25px;
  }

  .images-wrapper .col-md-6:last-child {
    padding: 25px;
    background-color: #F4F3E8;
    color: #000 !important;
  }

  .images-wrapper br {
    display: none;
  }

  .layout-dual-images img {
    min-height: 220px;
    object-fit: contain;
    object-position: center;
  }

  .menu-toggle[aria-expanded="true"] .hamburger-icon .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #000;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon .line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #000;
}

/* Add z-index to ensure the menu toggle stays above the overlay */
.menu-toggle {
    position: relative;
    z-index: 1000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Ensure smooth transition for all lines */
.hamburger-icon .line {
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width:1200px) {
    .layout-text-with-image img {
        max-width: 100%;
    }
    .layout-countup .container {
        max-width: 500px;
      }
}


  @media screen and (max-width:1024px) {
    #primary-menu, #footer-menu {
        gap: 20px;
    }
    #primary-menu li:last-child a, #footer-menu li:last-child a, .btn-secondary, a.btn-secondary, .layout a.btn-secondary {
        padding: 7.5px 15px;
    }
    #masthead .container {
        padding: 0;
      }
      .custom-logo {
        max-width: 150px;
      }
  }

  @media screen and (max-width:991px) {
    .layout-countup .container {
        max-width: 500px;
      }
      .gallery-grid .row {
        display: grid;
        grid-template-columns: repeat(2,2fr);
      }
  }

  @media screen and (max-width:768px) {
    #primary-menu a, #footer-menu a {
        letter-spacing: initial;
      }
      #primary-menu, #footer-menu {
        gap: 10px;
      }
      h1 br {
        display: none;
      }
      .container.footer-bottom.flex {
        flex-direction: column;
        gap: 20px;
      }
      .gallery-grid .row > * {
        width: 100%;
      }
  }

  @media screen and (max-width:600px) {
    #site-navigation {
        justify-content: flex-end;
        display: flex;
      }
      .menu-toggle:hover {
        background-color: transparent !important;
      }
      #footer-navigation .menu-main-menu-container ul {
        flex-direction: column;
      }
      #footer-menu {
        padding: 0;
        gap: 20px;
      }
      .container.footer-bottom.flex {
        margin-top: 100px;
      }
      .copyright {
        text-align: center;
      }
    .container.footer-top.flex {
      flex-direction: column;
    
      justify-content: center;
    
      gap: 20px;
    
    }
    #masthead .menu-main-menu-container {
        position: fixed;
        top: 0;
        left: 0;
        background-color: rgba(255,255,255,0.8);
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: all 0.3s ease-in-out;
      }
      #masthead .toggled .menu-main-menu-container {
        transform: translateX(0);
      }
      .hamburger-icon {
        display: block;
        width: 25px;
        height: 20px;
        position: relative;
    }
    
    .hamburger-icon .line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        position: absolute;
        left: 0;
        transition: all 0.3s ease-in-out;
    }
    
    .hamburger-icon .line:nth-child(1) { top: 0; }
    .hamburger-icon .line:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger-icon .line:nth-child(3) { bottom: 0; }
    
    /* Animation for when menu is open */
    .menu-toggle[aria-expanded="true"] .hamburger-icon .line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle[aria-expanded="true"] .hamburger-icon .line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle[aria-expanded="true"] .hamburger-icon .line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    #primary-menu {
        flex-direction: column;
        font-size: 6vmin;
      }

      #primary-menu a {
        color: #000;
      }

      #primary-menu a:hover {
        color: #666;
      }
      h2 br {
        display: none;
      }
  }
  
  @media screen and (max-width:480px) {
    .layout-page-header {
        padding: 100px 0 30px;
      }
      .gallery-grid .row {
        display: grid;
        grid-template-columns: repeat(1,1fr);
      }
      #nf-form-2-cont {
        background-color: rgba(255,255,255,0.85);
        color: #000;
        padding: 0 10px;
      }
  }

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base layout styles */
.layout {
    opacity: 1;
    transform: none;
}

/* Initial state for animated elements */
.row > .col-md-4,
.row > .col-md-6,
.row > div {
    opacity: 0;
}

/* Animation classes */
.layout.is-visible .row > .col-md-4,
.layout.is-visible .row > .col-md-6,
.layout.is-visible .row > div {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Sequential delays */
.layout.is-visible .row > .col-md-4:nth-child(1),
.layout.is-visible .row > .col-md-6:nth-child(1),
.layout.is-visible .row > div:nth-child(1) {
    animation-delay: 0.1s;
}

.layout.is-visible .row > .col-md-4:nth-child(2),
.layout.is-visible .row > .col-md-6:nth-child(2),
.layout.is-visible .row > div:nth-child(2) {
    animation-delay: 0.2s;
}

.layout.is-visible .row > .col-md-4:nth-child(3),
.layout.is-visible .row > .col-md-6:nth-child(3),
.layout.is-visible .row > div:nth-child(3) {
    animation-delay: 0.3s;
}

.layout.is-visible .row > .col-md-4:nth-child(4),
.layout.is-visible .row > .col-md-6:nth-child(4),
.layout.is-visible .row > div:nth-child(4) {
    animation-delay: 0.4s;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .row > .col-md-4,
    .row > .col-md-6,
    .row > div {
        opacity: 1;
        animation: none;
    }
}

  