@import url(header.css);
@import url(animation.css);
@import url(login.css);
@import url(pmpro.css);

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}


/**
 * inputs ---------------------------------------
 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="search"],
textarea {
  box-sizing: border-box;
  border-style: solid;
  border-width: 1px;
  border-color: var(--wp--preset--color--border-neutral);
  border-radius: 5px;
  outline: none;
  padding: 10px;
  font-size: 16px;
  color: currentColor;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: 2px solid var(--wp--preset--color--primary);
}

.wp-block-comments textarea#comment {
  margin-top: 5px;
}

/**
 * core/button =============================================
 */

.wp-block-button.is-style-outline .wp-block-button__link {
  color: currentColor;
  border: none;
  padding: 14px 28px;
  outline: 1px solid var(--wp--preset--color--border-neutral);
  outline-offset: -1px;
}
.wp-block-button.is-style-secondary-button .wp-element-button {
  color: var(--wp--preset--color--primary);
  background-color: color-mix(
    in srgb,
    var(--wp--preset--color--primary) 8%,
    white
  );
}
.wp-block-button.is-style-tertiary-button .wp-element-button {
  background: none;
  padding: 0;
  color: var(--wp--preset--color--content-link);
}

/**
 * core/search  =============================================
 */

:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
  box-sizing: border-box;
  overflow: hidden;
  border-radius: var(--wp--custom--border-radius--40);
  border-style: solid;
  border-width: 1px;
  border-color: var(--wp--preset--color--border-neutral);
  outline: none;
}

/**
 * core/details =============================================
 */

.wp-block-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-block-details > summary::-webkit-details-marker {
  display: none;
}

.wp-block-details > summary::after {
  content: "+";
  margin-left: 1ch;
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
}

.wp-block-details[open] > summary::after {
  content: "-";
}

/**
 * core/cover =============================================
 */
.wp-block-post .wp-block-cover {
  background: url("../images/placeholder.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/**
 * Additions =============================================
 */

/* positions */
.absolute {
  position: absolute !important;
}
.relative {
  position: relative;
}
.top-0 {
  top: 0;
}
.left-0 {
  left: 0;
}
.right-0 {
  right: 0;
}
.bottom-0 {
  bottom: 0;
}
.z-index-10 {
  z-index: 10;
}
.z-index-20 {
  z-index: 20;
}
.z-index-30 {
  z-index: 30;
}
.z-index-40 {
  z-index: 40;
}
.z-index-50 {
  z-index: 50;
}
.z-index-999 {
  z-index: 999;
}

/* inverted radius */

.inverted-radius {
  --r: 20px; /* the radius */
  --s: 30px; /* size of inner curve */
  --x: 10px; /* horizontal offset (no percentange) */
  --y: 10px; /* vertical offset (no percentange) */

  --_m: /calc(2 * var(--r)) calc(2 * var(--r)) radial-gradient(#000 70%, #0000
        72%);
  --_g: conic-gradient(at calc(100% - var(--r)) var(--r), #0000 25%, #000 0);
  --_d: (var(--s) + var(--r));
  mask: calc(100% - var(--_d) - var(--x)) 0 var(--_m),
    100% calc(var(--_d) + var(--y)) var(--_m),
    radial-gradient(var(--s) at 100% 0, #0000 99%, #000 calc(100% + 1px))
      calc(-1 * var(--r) - var(--x)) calc(var(--r) + var(--y)),
    var(--_g) calc(-1 * var(--_d) - var(--x)) 0,
    var(--_g) 0 calc(var(--_d) + var(--y));
  mask-repeat: no-repeat;
}

/* glass effect */

.glass-filter-1 {
  backdrop-filter: blur(5px);
}

.glass-filter-2 {
  backdrop-filter: blur(10px);
}

.glass-filter-3 {
  backdrop-filter: blur(15px);
}

.glass-filter-4 {
  backdrop-filter: blur(20px);
}

.main-navigation a {
  text-decoration: none;   /* Remove underline */
  color: #225a4b;        /* Default color */
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: black;            /* Hover color */
}

.theme-text-dark-color{
  color: #225a4b !important;
}

/* Scroll Up Button Style */
.scroll-up-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333; /* Change to your preferred color */
  color: white;
  padding: 15px; /* Adjust padding to make the button circular */
  border-radius: 50%; /* Ensures the button is circular */
  cursor: pointer;
  font-size: 24px;
  display: none; /* Hidden by default */
  transition: opacity 0.3s ease-in-out;
  width: 20px; /* Set fixed width for the circle */
  height: 20px; /* Set fixed height for the circle */
  text-align: center; /* Centers the icon inside the button */
  line-height: 20px; /* Vertically centers the icon inside the button */
}

.scroll-up-btn:hover {
  background-color: #555; /* Change on hover */
}

.scroll-up-btn i {
  font-size: 22px;
  line-height: 20px; /* Vertically centers the icon inside the button */
}

/* Show the button when the user scrolls down */
.scroll-up-btn.show {
  display: block;
}

/**
  Buttons 
**/

.theme-btn {
  border:#000 !important;
  border-radius: 5px !important;
  min-height: 40px !important;
  outline: 0 !important;
  padding: 10px 15px !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  display: inline-block !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  touch-action: manipulation !important;
  vertical-align: middle !important;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  position: relative;
}

/* Primary & Secondary Button */
.theme-primary-btn,
.theme-secondary-btn:hover {
  background-color: #225a4b !important;
  color: #fff !important;
}

.theme-primary-btn:hover,
.theme-secondary-btn {
  background-color: #fff !important;
  color: #225a4b !important;
  border: 1px solid #225a4b !important;
}

/* Cancel & Link Button */
.theme-cancel-btn,
.theme-link-btn {
  background-color: #fff !important;
  color: #225a4b !important;
  font-weight: inherit !important;
}

.theme-cancel-btn:hover,
.theme-link-btn:hover {
  background-color: #ccc !important;
  color: #225a4b !important;
  transform: scale(1.02);
}

/* Submit Button */
.theme-submit-btn {
  background-color: #225a4b !important;
  color: #fff !important;
}

.theme-submit-btn:hover {
  background-color: #00352b !important;
  color: #fff !important;
  transform: scale(1.02);
}

/* Selected Button */
.theme-selected-btn {
  background-color: #00352b !important;
  color: #fff !important;
}

.theme-selected-btn:hover {
  background-color: #225a4b !important;
  color: #fff !important;
  transform: scale(1.02);
}

.theme-banner-btn {
    display: inline-block;
    background: #ffffff;
    color: #2e8b57;
    padding: 0.75rem 1rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.theme-banner-btn:hover {
    background: #ffe600;
    color: #2e8b57;
}

/***
  Basic Page Style
***/
.main-container {
  padding: var(--wp--preset--spacing--20);
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--wp--preset--spacing--20);
  padding-right: var(--wp--preset--spacing--20);
}

.section-padding {
  padding: 0;
  margin-bottom: var(--wp--preset--spacing--10);
}

/* Page Banner */
.page-banner {
  position: relative !important;
  background: linear-gradient(to right, #262f2c, #201f1f); /* Green gradient */
  color: #ffffff;
  padding: 1rem 1rem;
  text-align: left;
  overflow: hidden;
  margin-top: 0;
  height: 230px;
}

.banner-overlay {
  position: relative;
  z-index: 1;
}

.banner-content {
  /* max-width: 900px; */
  margin: 0 2%;
}

.banner-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.banner-subtitle {
  font-size: 1.1rem;
  margin: 1rem 0;
}

@media screen and (max-width: 768px) {
  .banner-title {
    font-size: 2rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

  .banner-content {
    padding: 0 1rem;
  }
}

/* Mobile (480px and down) */
@media screen and (max-width: 480px) {
  .banner-title {
    font-size: 1.6rem;
  }

  .banner-subtitle {
    font-size: 0.95rem;
  }

  .page-banner {
    padding: 1.5rem 1rem;
  }
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .section-inner {
    padding-left: var(--wp--preset--spacing--10);
    padding-right: var(--wp--preset--spacing--10);
  }

  .main-container {
    padding-left: var(--wp--preset--spacing--10);
    padding-right: var(--wp--preset--spacing--10);
  }
}

/* Page Sections */
.section-bg-white {
  background-color: #ffffff;
  color: #004d3e;
  text-align: center;
  padding: var(--wp--preset--spacing--20) 0;
  border-radius: 5px;
  z-index: 30;
}

.section-bg-green {
  background-color: #004d3e;
  color: #ffffff;
  text-align: center;
  border-radius: 5px;
  padding: var(--wp--preset--spacing--20) 0;
  background: linear-gradient(135deg, #004d40 0%, #00796b 100%);
  z-index: 30;
}

.section-bg-green::before {
  content: "";
  /* background-image: url('<?php echo get_template_directory_uri(); ?>/assets/images/climate-bg-overlay.png'); */
  background-size: cover;
  opacity: 0.1;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.section-with-border-green {
  border-width: 4px;
  border-style: solid;
  border-color: #225a4b;
  padding: var(--wp--preset--spacing--10);
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1) !important;
  border-radius: 5px;
}

.section-border-top    { border-top-width: 4px; border-right-width: 0; border-bottom-width: 0; border-left-width: 0; }
.section-border-bottom { border-top-width: 0; border-right-width: 0; border-bottom-width: 4px; border-left-width: 0; }
.section-border-left   { border-top-width: 0; border-right-width: 0; border-bottom-width: 0; border-left-width: 4px; }
.section-border-right  { border-top-width: 0; border-right-width: 4px; border-bottom-width: 0; border-left-width: 0; }

/* Spinner CSS */
.spinner {
  border: 4px solid var(--wp--preset--color--base-2);
  border-top: 4px solid var(--wp--preset--color--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

/* Flex */
.pos-relative-flex-1 {
  flex: 1; 
  position: relative !important;
}

.display-flex {
  display: flex; 
  flex-wrap: wrap; 
  gap: var(--wp--preset--spacing--20);
}

/* Category Pages */
.category-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  display: block;
  margin-top: 10px;
}

/* Category label as badge */
.post-category-label {
  display: inline-block;
  background-color: #e1f4f0;
  color: #225a4b;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 10px;
  min-height: 60px;
  height: auto;
  font-size: 12px;
}

/* Post title styling */
.post-title-link,
.post-title-link a {
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 700;
  font-size: 18px;
  margin-top: 0.5rem !important;
}

.post-title-link a:hover {
  color: #1b4037;
  text-decoration: underline;
}

/* Optional: Adjust spacing */
.post-content-block {
  margin-top: 10px;
}

/* No Article Box */
.no-articles-minimal {
  background: #fff7f0;
  border: 1px solid #ffbc99;
  padding: 2rem;
  border-radius: 10px;
  color: #d35400;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  max-width: 380px;
  margin: 3rem auto;
  box-shadow: 0 2px 8px rgba(211, 84, 0, 0.2);
}
.no-articles-minimal p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.no-articles-bold {
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  margin: 3rem auto;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 8px 15px rgba(255, 126, 95, 0.3);
}
.no-articles-bold .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.no-articles-bold h2 {
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.no-articles-bold p {
  font-weight: 500;
  font-size: 1.2rem;
}

.no-articles-card {
  max-width: 350px;
  margin: 3rem auto;
  background: #e0f7fa;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 150, 136, 0.15);
  text-align: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #00695c;
}
.no-articles-card img {
  width: 100px;
  margin-bottom: 1rem;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.1));
}
.no-articles-card h3 {
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.no-articles-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

/* Coming soon box */
.coming-soon-box {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    text-align: center;
    padding: 2rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease;
    max-width: 450px;
    height: 200px;
    margin: 0 auto;
}

.coming-soon-box h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.coming-soon-box p {
    font-size: 1.2rem;
    opacity: 0.9;
}

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

.more-links{
    text-align: center;
    padding: 1rem 0.5rem;
}

.single-post>figure {
  margin: 0;
}

.sidebar-slug-heading{
  margin:0;
  color: #225a4b;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  background: lemonchiffon;
  padding: 0.5rem;
}