/*

Tooplate 2130 Waso Strategy

https://www.tooplate.com/view/2130-waso-strategy

Free Bootstrap 5 HTML Template

*/


/*---------------------------------------
  globals (colours and type)            
-----------------------------------------*/
  :root {
    --white-color:                  #ffffff;
    --primary-color:                #2C6E91;
    --secondary-color:              #5C946E;
    --third-color:                  #A3B18A;
    --fourth-color:                 #A0522D;
    --fifth-color:                  #7F5539;
    --section-bg-color:             #f5f5f5;
    --dark-color:                   #2F4858;
    --sand-color:                   #F5F1E6;
    --p-color:                      #030303;
    --ink-color:                    #253237;
  
    --body-font-family:             'DM Sans', sans-serif;
  
    --h1-font-size:                 80px;
    --h2-font-size:                 42px;
    --h3-font-size:                 36px;
    --h4-font-size:                 32px;
    --h5-font-size:                 24px;
    --h6-font-size:                 52px;
    --h7-font-size:                 24px;
    --p-font-size:                  18px;
    --menu-font-size:               18px;
    --copyright-text-font-size:     16px;
  
    --font-weight-normal:           400;
    --font-weight-medium:           500;
    --font-weight-bold:             700;
  }
  
  body {
      background: var(--white-color);
      font-family: var(--body-font-family); 
  }
  
  

  /*---------------------------------------
    typography             
  -----------------------------------------*/

  /* general font rules */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--primary-color);
    padding-top: 10px;
    font-weight: var(--font-weight-bold);
    letter-spacing: -1px;
  }

  h1 {
    font-size: var(--h1-font-size);
    letter-spacing: -2px;
  }
  
  h2 {
    font-size: var(--h2-font-size);
    letter-spacing: -2px;
    line-height: 1.1; 
  }
  
  h3 {
    font-size: var(--h3-font-size);
    line-height: inherit;
  }
  
  h4 {
    font-size: var(--h4-font-size);
    line-height: 1.15;
  }
  
  h5 {
    font-size: var(--h5-font-size);
    line-height: normal;
  }
  
  h6 {
    font-size: var(--h6-font-size);
  }
  
  p {
    color: var(--p-color);
    font-size: var(--p-font-size);
  }
  
  ul li {
    color: var(--p-color);
    font-size: 21px;
    font-weight: var(--font-weight-normal);
  }

  /* specific typography rules */
  .small-uppercase-title {
    text-transform: uppercase;
    font-size: 18px;
  }

  .large-black-txt {
    color:#000000;
    font-size: 21px;
  }

  /* small uppercase brown text (see about page, title under each founder name) */
  .new-text-warning { 
    color: var(--fourth-color); 
    font-size: larger; 
  }

 

  /*---------------------------------------
    mobile responsive text sizes        
  -----------------------------------------*/

  /* Tablet and down */
  @media (max-width: 991.98px) {
    :root {
      --h1-font-size: 64px; /* 80 → 64 */
      --h2-font-size: 36px; /* 42 → 36 */
      --h3-font-size: 30px; /* 36 → 30 */
      --h4-font-size: 26px; /* 32 → 26 */
      --h5-font-size: 20px; /* 24 → 20 */
      --h6-font-size: 44px; /* 52 → 44 */
      --h7-font-size: 20px; /* 24 → 20 */

      --p-font-size: 17px; /* 18 → 17 */
      --menu-font-size: 16px; /* 18 → 16 */
      --copyright-text-font-size: 15px;
    }

    .small-uppercase-title { font-size: 16px; } /* 18 → 16 */
    .large-black-txt { font-size: 19px; } /* 21 → 19 */
    ul li { font-size: 19px; } /* 21 → 19 */
    h1, h2 { letter-spacing: -1px; }
  }

  /* Phones */
  @media (max-width: 575.98px) {
    :root {
      --h1-font-size: 48px; /* 64 → 48 */
      --h2-font-size: 28px; /* 36 → 28 */
      --h3-font-size: 24px; /* 30 → 24 */
      --h4-font-size: 22px; /* 26 → 22 */
      --h5-font-size: 18px; /* 20 → 18 */
      --h6-font-size: 36px; /* 44 → 36 */
      --h7-font-size: 18px; /* 20 → 18 */

      --p-font-size: 16px; /* 17 → 16 */
      --menu-font-size: 15px; /* 16 → 15 */
      --copyright-text-font-size: 14px;
    }

    .small-uppercase-title { font-size: 14px; } /* 16 → 14 */
    .large-black-txt { font-size: 18px; } /* 19 → 18 */
    ul li { font-size: 18px; } /* 19 → 18 */
    h1, h2 { letter-spacing: 0; }
  }



  /*---------------------------------------
    nav bar (navigation bar at top of screen)            
  -----------------------------------------*/

    .icon-image-container-logo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 28px;
  }
  .icon-image-container-logo img {
    padding-top: 30px;
    flex-shrink: 0;
    max-height: 60%;
  }

  .custom-navbar {
    z-index: 2000000; /* higher layer than everything else */
    padding-top: 0.20rem;
    padding-bottom: 0.20rem;
  }

  /* nav background colour */
  .bg-blue {
    background: var(--primary-color);
  }

  /* logo size/spacing */
  .header-logo {
    width: 45px;
    height: 36px;
    padding-right: 8px;
  }

  /* nav links */
  .navbar-nav .nav-link {
    color: #ffffff;
    font-size: var(--menu-font-size);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  /* nav links hover/active underline */
  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }

  /* Toggle mobile nav bar */
  .navbar-dark .navbar-toggler-icon {
    background-image: none;
  }

  .navbar-toggler {
    border: 0;
    padding: 0;
    cursor: pointer;
    margin: 0;
    width: 30px;
    height: 35px;
    outline: none;
  }
  .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
  }

  /* base hamburger bar */
  .navbar-toggler .navbar-toggler-icon {
    background: var(--white-color);
    display: block;
    width: 30px;
    height: 2px;
    position: relative;
  }

  /* top & bottom lines of mobile toggle */
  .navbar-toggler .navbar-toggler-icon::before,
  .navbar-toggler .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ffffff;
    transition:
      top 300ms 350ms ease,
      transform 300ms 50ms ease;
  }
  .navbar-toggler .navbar-toggler-icon::before { top: -8px; }
  .navbar-toggler .navbar-toggler-icon::after  { top:  8px; }

  /* expanded bar → X */
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
  }
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0;
    transition:
      top 300ms 50ms ease,
      transform 300ms 350ms ease;
  }
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { transform: rotate(45deg); }
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after  { transform: rotate(-45deg); }

  /* dropdown base + animation */
  .navbar .dropdown-menu {
    background-color: #2C6E91;
    border: none;
  }
  .dropdown-menu {
    transition: all .2s ease-in-out;
  }

  /* dropdown items */
  .navbar .dropdown-item {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    padding: 10px 20px;
  }
  .navbar .dropdown-item:hover {
    color: white;
    background-color: #5C946E;
  }

  /* gap between top-level nav items */
  .navbar-nav .nav-item {
    margin-left: 1.2rem;
  }

  /* Desktop: hover to open dropdown */
  @media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
      display: block;
      margin-top: 0;
    }
  }

  /* Mobile dropdown inline (accordion) */
  .navbar .navbar-collapse { overflow: visible; }

  @media (max-width: 575.98px) {
    .navbar .dropdown-menu {
      position: static !important;
      transform: none !important;
      float: none;
      display: none;
      margin: .25rem 0 0 0;
      background: transparent;
      border: 0;
      box-shadow: none;
    }
    .navbar .dropdown.show .dropdown-menu,
    .navbar .dropdown-menu.show {
      display: block;
    }
    .navbar .dropdown-menu .dropdown-item {
      padding-left: 1.25rem;
    }
  }

  /* vertically center just the POSEIDON title */
  .custom-navbar .navbar-collapse > h4 {
    margin-top: -6px;
  }

  /* POSEIDON title ignore hover effects */
  .custom-navbar .navbar-collapse > h4 a,
  .custom-navbar .navbar-collapse > h4 a:hover,
  .custom-navbar .navbar-collapse > h4 a:focus,
  .custom-navbar .navbar-collapse > h4 a:active {
    text-decoration: none !important;
    color: #fff !important; /* or use 'inherit' if you prefer */
  }
    


  /*---------------------------------------
    global padding rules      
  -----------------------------------------*/

  /* padding for shadow white rect. sections (about page & index page) */
  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* site-wide side padding */
  .container-sides {
    padding-left: 12%;
    padding-right: 12%;
  }

  /* tablet size (responsive) site-wide side padding */
  @media (max-width: 768px) {
    .container-sides {
      padding-left: 10% !important;
      padding-right: 10% !important;
    }
  }
  /* phone size (responsive) site-wide side padding */
  @media (max-width: 480px) {
    .container-sides {
      padding-left: 10% !important;
      padding-right: 10% !important;
    }
  }

  /* padding of white rect. sections */
  .rect-section {
    padding: 40px;
    border-radius: 15px;
  }


  /*---------------------------------------
    about page
  -----------------------------------------*/

  /* team/profile images */
  .about-image {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
  }

  /* about page social icons hover colour */
  .about-social-icons:hover {
    color: var(--secondary-color);
  }

  /* about page social icons colours */
  .about-social-icons {
    display: inline-block;
    vertical-align: top;
    width: 50px;
    height: 30px;
    margin: 2px;
    padding-top: 100px;
    padding-bottom: 100px;
    border-radius: 20px;
    background: var(--white-color);
    color: var(--primary-color);
    font-size: 30px;
    line-height: 30px;
    text-align: center;
  }

  /* social buttons responsive
  ≤ 900px (large phones / small tablets) */
  @media screen and (max-width: 900px) {
    .about-social-icons {
      padding-top: 10px;
      padding-bottom: 100px;
    }
  }

  /* social buttons responsive
  ≤ 480px (phones) */
  @media screen and (max-width: 480px) {
    .about-social-icons {
      padding-top: 10px;
      padding-bottom: 100px;
    }
  }


  /*---------------------------------------
    index page
  -----------------------------------------*/

  /* hero container (header with text & video background) */
  .hero {
    position: relative;
    height: calc(100vh - 133px);
  }

  /* keep quote at right edge, move to top */
  .quote {
    position: absolute;
    top: 5% !important;     /* move up */
    right: 0 !important;    /* stay flush right */
    bottom: auto !important;
    left: auto !important;
    z-index: 10;            /* above vid & overlay */
    color: var(--white-color);
    font-size: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  }

  /* header logo size/spacing */
  .big-header-logo {
    width: 90px;
    height: 80px;
    padding-right: 3px;
  }

  /* water vid & overlay container */
  .carousel {
    padding-left: 0;
    padding-right: 0;
  }
  .hero-carousel,
  .carousel-inner,
  .carousel-item {
    height: 100%;
  }
  .carousel-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1; /* overlay under caption/quote */
    pointer-events: none;
    opacity: 0.8;
    background: linear-gradient(to top, var(--p-color), transparent 90%);
  }

  /* center background video */
  .carousel-image-wrap video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
  }

  /* caption (POSEIDON: ai for water quality) */
  .carousel-caption {
    z-index: 10;
    top: 32%;
    right: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    margin: 0 12px;
    text-align: left;
  }

  /* make right algae pic full height of section */
  #section_2 .col-lg-5 {
    display: flex;
  }

  /* make image same height as left section */
  @media (min-width: 992px) {
    #section_2 .row { align-items: stretch; }                
    #section_2 .col-lg-7 { display: flex; flex-direction: column; }
    #section_2 .col-lg-5 { display: flex; margin-bottom: 0 !important; } /* override mb-lg-3 gap */
    #section_2 .about-image-wrap { display: flex; flex: 1 1 auto; min-height: 100%; width: 100%; }
    #section_2 .about-image { width: 100%; height: 100%; object-fit: cover; }
  }

  /* add space on top of algae pic on mobile */
  @media (max-width: 991.98px) {
    #section_2 .about-image {
      margin-top: 2rem;
    }

    /* make algae image a square on smaller screens */
    #section_2 .about-image-wrap {
      width: 100%;
      aspect-ratio: 1 / 1; /* square container */
      display: block;
    }
    #section_2 .about-image {
      width: 100%;
      height: 100%;             
      object-fit: cover; 
      display: block;
    }
  }
  

  /*---------------------------------------
    "take a tour" section index page (currently disabled)             
  -----------------------------------------*/
  
  .dark-overlay {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10px;
    pointer-events: none;
  }

  .dark-overlay.enabled {
    display: flex;
    pointer-events: auto;
  }

  .dark-overlay .center-box {
    background: white;
    padding: 20px 50px;
    border-radius: 8px;
    text-align: center;
  }

  .center-box button {
    margin: 10px;
  }

  .no-scroll {
    overflow: hidden;
  }



  /*---------------------------------------
    news page               
  -----------------------------------------*/
  
  /* "read more" buttons */
  .news-btn {
    padding-bottom: 100px;
  }

  .news-thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 20px;
    transition: all 0.3s;
    cursor: pointer;
  }

  .news-thumb:hover {
    background: rgba(0, 0, 0, 0);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  }

  .news-image {
    width: 100%;
    border-radius: 20px;
    transition: all 0.3s;
  }

  .news-thumb:hover .news-image {
    transform: scale(1.2);
  }

  .news-title-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 25px 25px 10px 25px;
    transition: all 0.2s;
    background: linear-gradient(to top, var(--p-color), transparent 90%);
  }

  .news-title {
    color: var(--white-color);
  }



  /*---------------------------------------
    general button styles               
  -----------------------------------------*/

  /* shape all base buttons (brown by default, must
  add custom-bg-x class for different colour variables) */
  .custom-btn {
    background: var(--fourth-color); 
    border: 2px solid var(--fourth-color);
    border-radius: 10px;
    color: var(--white-color);
    font-size: var(--copyright-text-font-size);
    font-weight: var(--font-weight-bold);
    padding: 12px 24px 10px 24px;
    cursor: pointer;
  }
  /* hover state for base button (brown outline and text, transparent background) */
  .custom-btn:hover {
    background: transparent;
    border-color: var(--fourth-color);
    color: var(--fourth-color);
  }

  /* green button background */
  .custom-bg-g {
    background: var(--secondary-color); 
    border: 2px solid var(--secondary-color);
    color: var(--white-color);
  }
  .custom-bg-g:hover {
    background: var(--white-color);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
  }

  /* green button background inverted 
  (white normally, green when hove/select) */
  .custom-bg-gw {
    background: var(--white-color); 
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
  }
  .custom-bg-gw:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
    text-decoration: underline;
  }

  /* greyed out disabled button background colour */ 
  .custom-bg-grey {
    background: grey; 
    border: 2px solid grey;
    color: lightgrey;
    font-size: var(--copyright-text-font-size);
    font-weight: var(--font-weight-bold);
    padding: 12px 24px 10px 24px;
  }
  /* doesn't change on hover */
  .custom-bg-grey:hover {
    background: grey;
    border-color: grey;
    color: lightgrey;
  }

  /* large buttons data landing pages ("Explore Datasets" & "View Methods") */
 .custom-btn-data-landing {
    background: var(--fourth-color); 
    border: 2px solid var(--fourth-color);
    color: var(--white-color);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    padding: 12px 31px 10px 31px;
    cursor: pointer;
    border-radius: 8px;
  }
  .custom-btn-data-landing:hover {
    background: var(--white-color);
    border-color: var(--fourth-color);
    color: var(--fourth-color);
  }
  

 
  /*---------------------------------------
    contact page              
  -----------------------------------------*/
  
  /* right side sectrion with address & email */
  .contact-thumb {
    position: relative;
    bottom: 140px;
    margin-bottom: -140px;
  }

  .contact-info {
    border-radius: 20px;
    padding: 40px;
  }

  /* general contact page padding */
  .contact-container-wrap {
    padding-top: 80px;
    padding-bottom: 120px;
  }

  /* form style (see below for more info about form) */
  .contact-form {
    margin-top: 30px;
    margin-right: 30px;
  }

  /* link colour default */
  a {
    color: var(--primary-color);        
    text-decoration: none;              
  }

  /* link colour hover */
  a:hover {
    color: var(--secondary-color);     
    text-decoration: underline;         
  }
   
  

  /*---------------------------------------
    contact form (on contact page)              
  -----------------------------------------*/
  
  /* form style */
  .custom-form .form-control {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: 0;
    border-bottom: 3px solid var(--section-bg-color);
    margin-bottom: 24px;
    padding-top: 13px;
    padding-bottom: 13px;
    transition: all 0.3s;
    outline: none;
  }

  /* form hover style */
  .custom-form .form-control:hover,
  .custom-form .form-control:focus {
    background: var(--white-color);
  }
  
  /* submit button style */
  .custom-form button[type="submit"] {
    background: var(--secondary-color);
    border-radius: 10px;
    border: 2px solid transparent;   
    color: var(--white-color);
    font-weight: var(--font-weight-bold);
    transition: all 0.3s;
    margin-bottom: 0;
  }
  
  /* submit button hover style */
  .custom-form button[type="submit"]:hover,
  .custom-form button[type="submit"]:focus {
    background: var(--white-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);      
  }
  


  /*---------------------------------------
    site footer         
  -----------------------------------------*/
      
  .site-footer-wrap {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 0px;
    gap: .15rem;
  }

  .site-footer-wrap p,
  .site-footer-wrap ul {
    margin: 0;
  }

  .site-footer .copyright-text {
    line-height: 1.2;
    margin-top: 9px;
    margin-bottom: 0;
  }

  .site-footer {
    background-color: var(--primary-color);
    margin-top: 200px;
    margin-bottom: 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom) + 14px);
  }

  .social-icon {
    margin-top: 12px;
    margin-bottom: 0;
    padding: 0;
  }

  .social-icon li {
    list-style: none;
    display: inline-block;
    vertical-align: top;
    margin: 0 4px;
  }

  .social-icon-link {
    background: var(--white-color);
    border-radius: 20px;
    font-size: var(--copyright-text-font-size);
    color: var(--primary-color);
    display: inline-block;
    vertical-align: top;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    margin-top: 10px;
  }

  a:hover {
    color: var(--secondary-color);
  }

  .text-block {
    margin-top: 2px;
    gap: .35rem;
  }

  .image-block {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px auto 0 auto;
  }

  @media (max-width: 576px) {
    .site-footer-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 0.15rem; 
      padding-top: 6px;
      padding-bottom: 6px;
    }

    .text-block {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      text-align: center !important;
      max-width: 100% !important;
      margin: 30px auto 0 auto !important; 
      gap: 0.3rem !important;          
    }

    /* ensure no extra space is added below the text block */
    .text-block p { margin: 0 !important; line-height: 1.3 !important; }

    /* image directly under text: minimal top margin, centered */
    .text-block + .image-block {
      margin: 1px auto 4px auto !important; 
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      max-width: 60% !important;
      flex: 0 0 auto !important;
    }

    .image-block img {
      display: block !important;
      width: 100% !important;
      height: auto !important;
      margin: 0 auto !important;  
      padding-bottom: 12px !important; 
    }
  }



  /*---------------------------------------
    TREND intro page  
  -----------------------------------------*/

  .wqp-section {
    position: relative;
    text-align: center;
    height: 520px; /* height pn desktop */
    overflow: hidden;
  }

  .wqp-overlay {
    position: absolute;
    inset: 0;
  }

  /* Desktop: text centered; buttons to the right & vertically centered */
  .wqp-text {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 800px;
  }

  /* Buttons */
  .wqp-buttons {
    position: absolute;
    top: 48%;
    right: 6%;                
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .wqp-buttons .custom-btn {
    font-size: 1.05rem;
    line-height: 1.3;
    padding: 16px 16px;
    width: 11ch;             
    white-space: normal;
    text-align: center;
    border-radius: 40px;
  }

  /* mobile/tablet taller image, stack text + buttons */
  @media (max-width: 768px) {
    .wqp-section {
      height: 100vh; /* taller image area */
      min-height: 560px; 
    }
    .wqp-overlay {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 16px 20px;
    }
    .wqp-text,
    .wqp-buttons {
      position: static; /* normal flow so they stack */
      transform: none;
      width: 86%;
      max-width: 720px;
    }
    .wqp-text { margin-top: 10vh; }
    .wqp-buttons {
      margin-top: 12px; /* space below paragraph */
      flex-direction: row; /* buttons side-by-side under text */
      gap: 16px;
      justify-content: center;
    }
    .wqp-buttons .custom-btn {
      font-size: 0.95rem;
      padding: 14px 14px;
      width: 11.5ch; /* slightly wider on small screens */
    }
  }

  /* wide desktop: place buttons right of the centered text */
  @media (min-width: 992px) {
    .wqp-buttons {
      right: auto;         
      left: calc(52% + (min(60%, 800px) / 2) + 24px);
      top: 48%;
      transform: translateY(-60%);
    }
  }

  /* gridded component section */
  .info-section { padding: 24px 0; }
  .info-section .row { align-items: center; row-gap: 1.5rem; }
  .info-section .text-col h3 { margin-bottom: .25rem; }
  .info-section .text-col h3 hr { margin: .25rem 0 .6rem; }
  .info-section .media-wrap { display: flex; align-items: center; justify-content: center; width: 100%; }
  .info-section .media-wrap img { width: 100%; height: auto; max-width: 620px; }

  @media (min-width: 992px) {
    .info-section.alt .text-col { order: 2; }
    .info-section.alt .img-col  { order: 1; }
  }

  /* component cards */
  #mini-feature-grid h3.section-title + hr {
    margin: .4rem auto 1.5rem;
    width: 80px;
    border: 2px solid #09324b;
  }
  #mini-feature-grid .row { --bs-gutter-x: 3rem; row-gap: 2.5rem; }

  /* component card white rectangle */
  .feature-mini {
    background: transparent;
    border: 1px solid #e5eef7;
    border-radius: 30px;
    box-shadow: 0 6px 16px rgba(0,0,0,.07);
    padding: 28px 32px;

    /* grid left column (title+hr+image), right column (text) */
    display: grid;
    grid-template-columns: minmax(240px, 32%) 1fr;
    column-gap: 32px;
    align-items: start; /* prevent stretching */
    min-height: 240px;
  }

  .feature-mini2 {
    background: transparent;
    border-radius: 30px;
    padding: 28px 32px;

    /* grid left column (title+hr+image), right column (text) */
    display: grid;
    grid-template-columns: minmax(240px, 32%) 1fr;
    column-gap: 32px;
    align-items: start; /* prevent stretching */
    min-height: 240px;
  }

  /* left side spans two grid rows: row1 = title/hr, row2 = image */
  .mini-left {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-rows: auto auto;
    row-gap: .5rem;
  }

  /* Right text sits in the same row as the image */
  .mini-right {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding-bottom: 6px; /* keep your original bottom breathing room */
  }

  /* component card title (component name) */
  .mini-title { 
    margin: 0 0 .2rem;      /* was .4rem */
    line-height: 1.15;
  }

  .mini-title + hr {
    margin: .15rem 0 .25rem; /* was .25rem 0 .6rem */
    border: 0;
    border-top: 2px solid #09324b;
    height: 0;
  }

  .small-uppercase-title {
    display: block;
    margin: 0;              
    line-height: 1.1;
  }

  .small-uppercase-title + hr {
    margin: .15rem 0 .25rem; 
    border: 0;
    border-top: 1px solid #09324b;
    height: 0;
  }

  .mini-img-wrap { width: 100%; }
  .mini-img { display: block; max-width: 100%; height: auto; border-radius: 19px; }
  .mini-point { font-size: clamp(1.05rem, .4vw + 1rem, 1.2rem); margin: 0; line-height: 1.5; color: #0b2232; }

  /* responsive: stack on tablets/phones */
  @media (max-width: 991.98px) {
    .feature-mini { display: block; min-height: auto; }
    .feature-mini2 { display: block; min-height: auto; }
    .mini-right { margin-top: .5rem; padding-bottom: 0; }
  }

  


  /*---------------------------------------
      TREND data page (for more, see new-leaflet-design.css)     
    -----------------------------------------*/

  /* style dataset and methods buttons on top of map */
  .top-buttons {
    display:flex;
    gap:.5rem;
    margin:.75rem 0 1rem 0;
    flex-wrap:wrap;
    align-items:center;
  }

  /* "methods" button right aligned */
  #btn-methods {
    margin-left: auto;
  }

  /* TREND page buttons general style */
  .mdp-btn {              
    --mdp-pad-y: 12px;
    --mdp-pad-x: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-family: var(--body-font-family);
    font-weight: var(--font-weight-bold);
    font-size: var(--copyright-text-font-size);
    line-height: 1;

    padding: var(--mdp-pad-y) var(--mdp-pad-x);
    border: 2px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  /* TREND datasets button default (green, white text) */
  .mdp-btn--primary {
    background: var(--white-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
  }
  /* TREND datasets methods button hover (white, green text) */
  .mdp-btn--primary:hover {
    background: var(--secondary-color);
    border-color: var(--white-color);
    color: var(--white-color);
  }

  /* methods button default (green, white text) */
  .mdp-btn--ghost {
    background: var(--white-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
  }
  /* methods button hover (white, green text) */
  .mdp-btn--ghost:hover {
    background: var(--secondary-color);
    border-color: var(--white-color);
    color: var(--white-color);
  }

  /* selected button is green */
  .mdp-btn[aria-pressed="true"],
  .mdp-btn.is-pressed {
    background: var(--secondary-color);
    border-color: var(--white-color);
    color: var(--white-color);
  }

  /* buttons stack with full width on mobile */
  @media (max-width: 680px) {
    .mdp-btn--mobile-block { width: 100%; }
  }

  /* slightly rounded button corners */
  .mdp-btn.mdp-btn--cornered {
    border-radius: 10px;
  }

  /* map frame */
  .frame-shell{
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 640px;
    background: #f7f7f7;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    overflow: hidden;
  }
  .dataset-frame{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
  }
  .hidden{ display: none !important; }

  /* responsive map size phone */
  @media (max-width: 576px){
    .frame-shell{ height: 82vh; min-height: 520px; }
  }

  /* map section side padding */
  .container-map {
    padding: 0.5% 2% 2%;
  }


  /*---------------------------------------
    wqpredict intro page  
  -----------------------------------------*/
  /* padding inside white rectangles */
  .icon-image-container-logo {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 16px !important;   
    padding-right: 16px !important;
  }

  /* margin on top/below line in white rectangles */
  .icon-image-container-logo h4 hr { margin: .2rem 0 !important; }

  /* margin under text in white rectangles*/
  .icon-image-container-logo p { margin: 0 0 .35rem !important; }

  /* margin above/below images in white rectangles */
  .icon-image-container-logo img { margin-top: .35rem !important; margin-bottom: 0 !important; }

  /* space above/below each card */
  .about-info .col-lg-4,
  .about-info .col-md-6,
  .about-info .col-12 {
    margin-top: 60px !important;
    margin-bottom: 14px !important;
  }

  /* bottom text */
  .solutes-box {
    text-align: center;
    margin-top: 2rem;      
  }

  /* padding beside cards */
  .container-sides:has(.solutes-box) {
    padding-left: 12% !important;     
    padding-right: 12% !important;
  }

  /* buttons jump to this position on TREND_methods */
  #fertilizer,
  #biological-fixation,
  #livestock-manure,
  #crop-removal,
  #human-waste  {
    scroll-margin-top: 120px; 
  }

  /*---------------------------------------
    wqpredict methods           
  -----------------------------------------*/
  /* workflow imag */
  .workflow-img-responsive {
    width: 100%; /* full width of screen */
    height: auto;  /* keep aspect ratio */
    display: block;
    margin: 0 auto;
  }

  /*---------------------------------------
    wqpredict styles (for more, see new-leaflet-design.css)              
  -----------------------------------------*/
  /* dropdown style WQPredict page */
  .dropdown-select {
    border: 1px solid transparent;
    outline: none;
    box-shadow: none;
  }

  /* dropdown panel header */
  #nutrient-panel .panel-header {
    background: var(--dark-color);
    color: var(--white-color);
    min-height: 20px;
    padding: 4px 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 !important;              
    border-bottom: 0 !important;     
    box-shadow: none !important;
    cursor: move;
    user-select: none;
  }


  /* close buttons */
  #nutrient-panel .panel-header .panel-close {
    color: var(--white-color) !important;
    opacity: 1 !important;
    filter: none !important;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
  }

  #nutrient-panel .panel-header .btn-close {
    opacity: 1 !important;
    filter: invert(1) brightness(200%) !important; /* make X white */
    box-shadow: none !important;
  }

  /* tabs row */
  .nutrient-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    padding: 0 10px 10px 18px;
    margin-top: -1px !important;      
    border-top: 0 !important;
    box-shadow: none !important;
    background: var(--dark-color);
  }

  /* individual tab buttons */
  .nutrient-tabs .nutrient-tab {
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    color: var(--white-color);
    padding: .45rem .95rem;         
    border-radius: 8px;
    font: 600 13px/1 'DM Sans', sans-serif; 
    cursor: pointer;
    text-decoration: none;
    outline: none;
    transition:
      background-color .15s ease,
      color .15s ease,
      border-color .15s ease;
  }

  .nutrient-tabs .nutrient-tab:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white-color);
  }

  /* panel body + tab content */
  #nutrient-panel .panel-body {
    height: calc(100% - 40px); /* header height */
    padding: 8px 14px 16px;
    overflow: auto;
  }

  #nutrient-panel .tabcontent {
    display: none;
    padding: 6px 12px;
    border-top: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    width: 365px;
    color: var(--p-color);
  }

  #nutrient-panel .tabcontent.active {
    display: block;
  }

  /* scroll container */
  #scroll-container {
    overflow-y: scroll !important;
    scrollbar-gutter: stable both-edges;
    -webkit-overflow-scrolling: touch;
    max-height: 600px;
    padding: 15px;
    border: 1px solid var(--white-color);
    background: var(--white-color);
    color: var(--p-color);
  }

  /* accordion (green band) */
  #nutrient-panel .accordion .accordion-button.orange {
    background-color: var(--third-color) !important;
    color: var(--ink-color) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: .6rem .9rem;
    min-height: 35px;
    display: flex;
    align-items: center;
    border-radius: 10px !important;
    transition: background-color .15s ease, color .15s ease;
  }

  #nutrient-panel .accordion .accordion-button.orange:not(.collapsed) {
    background-color: var(--third-color) !important;
    color: var(--ink-color) !important;
    border-radius: 10px !important;
  }

  /* chevron style (arrow on accordion) */
  #nutrient-panel .accordion .accordion-button.orange::after {
    --bs-accordion-btn-icon: none;
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    align-self: center;
    background-size: 1rem 1rem;
    transform-origin: 50% 50%;
    transition: transform .15s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  }

  #nutrient-panel .accordion .accordion-button.orange:not(.collapsed)::after {
    transform: rotate(180deg);
  }
    

  /*---------------------------------------
    webinar page       
  -----------------------------------------*/

  /* top section split (text left, img right) */
  .webinar-top {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
  }
  .webinar-top .webinar-details { flex: 3; }
  .webinar-image { flex: 1; display: flex; justify-content: center; align-items: flex-start; }
  .webinar-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }

  /* links for presenter names */
  .presenters-list a {
    text-decoration: underline;
    color: #2C6E91;
    text-underline-offset: 2px;
  }
  .presenters-list a:hover { text-decoration-thickness: 2px; }

  /* responsive video container */
  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }
  .video-container video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
    border-radius: 12px;
  }

  /* spacing + typography */
  .webinar-details .large-black-txt { margin: 0.6rem 0; line-height: 1.4; }
  .presenters-list {
    margin: 0.3rem 0 0.8rem 1.2rem;
    padding: 0;
    list-style-type: disc;
  }
  .presenters-list li { margin: 0.25rem 0; line-height: 1.35; }

  /* all-caps label spacing */
  .webinar-details strong,
  .about-session strong,
  .watch-recording strong {
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }

  /* bottom split (text left, vid right) */
  .webinar-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem; 
    margin-top: 2rem;
  }
  .about-session  { flex: 1 1 30%; }
  .watch-recording { flex: 1 1 65%; }

  /* mobile stacking */
  @media (max-width: 768px) {
    .webinar-top { flex-direction: column; gap: 1rem; }
    .webinar-top .webinar-details, .webinar-image { flex: 1 1 100%; }

    .webinar-content {
      flex-direction: column;
      gap: 1rem;
    }
  }















  /* Base visual for nutrient markers */
.nutrient-marker-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #000;
  box-sizing: border-box;
  box-shadow: 0 0 0 0 rgba(0,0,0,0.25);

  /* 🔑 Smooth transitions */
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

/* Hover / “zoomed” appearance */
.nutrient-marker-inner.is-hovered {
  transform: scale(1.7); /* visually ~ bigger marker */
  box-shadow: 0 0 0 3px rgba(0,0,0,0.3);
}

.nutrient-marker-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #000;
  box-sizing: border-box;
  box-shadow: 0 0 0 0 rgba(0,0,0,0.25);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.nutrient-marker-inner.is-hovered {
  transform: scale(1.7);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.3);
}

