/* Custom override styles for TN WISDOM public website.
 * Use this file to tweak the coffee theme without touching vendor CSS.
 */

/* Prevent horizontal scrollbar on page load */
html,
body {
  overflow-x: hidden;
}

/* Navbar logo */
.tw-navbar-logo {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .tw-navbar-logo {
    max-height: 44px;
  }
}

/* Reduce hero slider height on larger screens */
.container-fluid > #blog-carousel .carousel-item {
  max-height: 620px;
}

.container-fluid > #blog-carousel .carousel-item img,
.container-fluid > #blog-carousel .carousel-item video {
  height: 620px;
  object-fit: cover;
}

.carousel-caption {
  background: rgb(33 29 51 / 34%) !important;
}

@media (max-width: 767.98px) {
  .container-fluid > #blog-carousel .carousel-item,
  .container-fluid > #blog-carousel .carousel-item img,
  .container-fluid > #blog-carousel .carousel-item video {
    max-height: 320px;
    height: 320px;
  }
}

/* News ticker under hero */
.tw-newsbar-wrapper {
  background: linear-gradient(180deg, #f7f1ea 0%, #efe4d8 100%);
  border-top: 1px solid #e8dac9;
  border-bottom: 1px solid #dcc7af;
  box-shadow: 0 8px 18px rgba(74, 52, 31, 0.1);
}

.tw-newsbar {
  padding: 0.62rem 0;
  font-size: 1.02rem;
  color: #5a3b20;
  overflow: hidden;
  white-space: nowrap;
}

.tw-news-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.86rem;
  color: #6a4322;
  background: #ffffff;
  border: 1px solid #dfc8ae;
  border-radius: 999px;
  padding: 0.35rem 0.76rem;
  box-shadow: 0 4px 10px rgba(70, 46, 23, 0.1);
}

.tw-news-track {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
}

.tw-news-items {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation-name: tw-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--tw-news-duration, 35s);
}

.tw-news-track:hover .tw-news-items,
.tw-news-track:focus-within .tw-news-items {
  animation-play-state: paused;
}

.tw-news-items span {
  padding-right: 3rem;
  position: relative;
  font-weight: 800;
  font-size: 1rem;
}

.tw-news-items a {
  font-weight: 800;
  font-size: 1rem;
  color: #8b5a2b;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
}

.tw-news-items a:hover {
  color: #5f3b1f;
}

.tw-news-new-icon {
  height: 46px;
  width: auto;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.tw-news-items span::after {
  content: "•";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  color: rgba(111, 79, 48, 0.45);
}

.tw-news-items span:last-child::after {
  content: "";
}

@keyframes tw-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw-news-items {
    animation: none;
  }
}

/* Hero logos – bottom right of slider */
.tw-hero-logos-br {
  position: absolute;
  bottom: 8.25rem;
  right: 1.25rem;
  left: auto;
  top: auto;
}

/* Hero logos – force square 100×100 */
.tw-hero-logos .tw-hero-logo-wrap {
  width: 100px !important;
  height: 100px !important;
  min-width: 100px;
  min-height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.tw-hero-logos .tw-hero-logo-wrap .tw-hero-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  object-fit: cover;
  display: block;
}

/* Hero text block styling similar to reference design */
.tw-hero-text {
  max-width: 620px;
}

.tw-hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.tw-hero-heading {
  font-family: "Roboto", "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.05;
  color: #ffffff;
}

.tw-hero-main {
  font-size: 2.4rem;
}

.tw-hero-strong {
  font-size: 2.8rem;
  font-weight: 700;
}

.tw-hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
}

.tw-hero-actions .btn-outline-light {
  border-width: 1px;
}

@media (max-width: 767.98px) {
  .tw-hero-main {
    font-size: 1.6rem;
  }
  .tw-hero-strong {
    font-size: 2rem;
  }
  .tw-hero-text {
    max-width: 100%;
  }
}

.section-title::after{
    display: none !important;
}

/* About section – professional layout */
.tw-about-section {
  /* background: linear-gradient(180deg, #fafbfa 0%, #f2f5f2 100%); */
}

.tw-about-section .tw-about-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #2e7d32;
  font-weight: 600;
}

.tw-about-section .tw-about-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tw-about-section .tw-about-tagline {
  font-size: 0.95rem;
  color: #5a6b5a;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-left: 1rem;
  border-left: 3px solid #2e7d32;
}

.tw-about-section .tw-about-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #374037;
}

.tw-about-section .col-lg-7 p.tw-about-lead {
  text-align: left;
}

.tw-about-section .tw-about-module-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  counter-reset: about-module;
}

.tw-about-section .tw-about-module-list li {
  position: relative;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0 0.2rem 2.45rem;
  color: #2f3c2f;
  line-height: 1.5;
}

.tw-about-section .tw-about-module-list li::before {
  counter-increment: about-module;
  content: counter(about-module);
  position: absolute;
  top: 50%;
  left: 0.65rem;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tw-about-section .tw-about-module-list li:hover {
  transform: none;
}

.tw-about-section .tw-about-module-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .tw-about-section .tw-about-title {
    font-size: 1.65rem;
  }
  .tw-about-section .col-lg-7.pl-lg-5 {
    padding-left: 0 !important;
  }
}

/* About section – changing bg (image + videos) */
.tw-about-media {
  min-height: 560px;
  background: #1a1a1a;
}

.tw-about-media .tw-about-media-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.8s ease;
}

.tw-about-media .tw-about-media-item.active {
  opacity: 1;
  z-index: 1;
}



.tw-about-lead {
  font-size: 1.05rem;
  line-height: 1.65;
}


.tw-about-highlights {
  display: flex;
  flex-wrap: wrap;
}

.tw-about-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin: 0.2rem 0.35rem 0.2rem 0;
  background: #e8f5e9;
  color: #1b5e20;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.tw-about-pill i {
  margin-right: 0.35rem;
}

/* Homepage gallery section */
.tw-home-gallery-section {
  background: linear-gradient(180deg, #f8fbf8 0%, #ffffff 100%);
}

.tw-home-gallery-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #2e7d32;
  font-weight: 700;
}

.tw-home-gallery-title {
  font-size: 2rem;
  font-weight: 700;
  color: #172817;
  letter-spacing: -0.02em;
}

.tw-home-gallery-subtitle {
  color: #5a6b5a;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.tw-home-gallery-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.tw-home-gallery-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: tw-home-gallery-scroll 38s linear infinite;
}

.tw-home-gallery-marquee:hover .tw-home-gallery-track {
  animation-play-state: paused;
}

.tw-home-gallery-card {
  border: 0;
  padding: 0;
  margin: 0;
  background: #152015;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 0;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 26px rgba(18, 36, 18, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  width: auto;
  height: 340px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tw-home-gallery-card img,
.tw-home-gallery-card video {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.tw-home-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.42) 100%);
}

.tw-home-gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(18, 36, 18, 0.2);
}

.tw-home-gallery-card:hover img,
.tw-home-gallery-card:hover video {
  transform: scale(1.05);
}

.tw-home-gallery-chip {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: #163116;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.34rem 0.7rem;
}

.tw-home-gallery-modal-content {
  border: 0;
  border-radius: 16px;
  background: #0f1810;
}

.tw-home-gallery-modal-title {
  color: #fff;
  font-weight: 700;
}

.tw-home-gallery-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.tw-home-gallery-open-btn:hover {
  color: #0f1810;
  background: #fff;
  text-decoration: none;
}

.tw-home-gallery-modal-body {
  width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tw-home-gallery-modal-img,
.tw-home-gallery-modal-video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
}

.tw-home-gallery-modal-yt-wrap {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.tw-home-gallery-modal-yt {
  width: 100%;
  height: 100%;
  border: 0;
}

.tw-home-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tw-home-gallery-nav:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #0f1810;
}

.tw-home-gallery-nav-prev { left: 8px; }
.tw-home-gallery-nav-next { right: 8px; }

@media (max-width: 991.98px) {
  .tw-home-gallery-card {
    height: 220px;
  }
}

@media (max-width: 575.98px) {
  .tw-home-gallery-title {
    font-size: 1.6rem;
  }
  .tw-home-gallery-card {
    height: 200px;
  }
}

@keyframes tw-home-gallery-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

/* Partners logo marquee – stylish infinite scroll */
.tw-partners-marquee {
  margin-top: 0;
  position: relative;
}

.tw-partners-heading {
  position: relative;
  z-index: 1;
}

.tw-partners-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #2e7d32;
  font-weight: 600;
}

.tw-partners-track-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1rem 0 1.5rem;
}

.tw-partners-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.tw-partners-fade-left {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
}

.tw-partners-fade-right {
  right: 0;
  left: auto;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
}

.tw-partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tw-partners-scroll 35s linear infinite;
}

.tw-partners-track:hover {
  animation-play-state: paused;
}

.tw-partners-item {
  flex-shrink: 0;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tw-partners-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 120px;
  padding: 1.25rem 1.75rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tw-partners-item:hover .tw-partners-card {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tw-partners-logo {
  max-height: 80px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.tw-partners-item:hover .tw-partners-logo {
  opacity: 1;
}

@keyframes tw-partners-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw-partners-track {
    animation: none;
  }
  .tw-partners-item:hover .tw-partners-card {
    transform: none;
  }
}

/* Footer */
/* Footer – accent bar */
.tw-footer {
  position: relative;
}

/* .tw-footer-accent {
  height: 4px;
  background: linear-gradient(90deg, #2e7d32 0%, #66bb6a 50%, #2e7d32 100%);
  background-size: 200% 100%;
} */

.tw-footer-block {
  padding: 0.5rem 0;
}

.tw-footer-logo {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
}

.tw-footer-heading {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.tw-footer .tw-footer-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.tw-footer-icon {
  color: #81c784;
  width: 1.25rem;
  text-align: center;
}

/* Quick links */
.tw-footer-links li {
  margin-bottom: 0.5rem;
}

.tw-footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.tw-footer-links a:hover {
  color: #81c784;
  padding-left: 4px;
}

/* Visitor count – small design in bottom bar */
.tw-footer-visitor-bottom {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.tw-footer-visitor-label-bottom {
  color: rgba(255, 255, 255, 0.7);
}

#tw-visitor-count {
  font-weight: 600;
  color: #a5d6a7;
}

/* Social buttons */
.tw-footer-social .tw-footer-social-btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.tw-footer-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tw-footer-social-btn:hover {
  border-color: #81c784;
  background: rgba(129, 199, 132, 0.2);
  color: #c8e6c9;
  transform: translateY(-2px);
}

/* Footer bottom bar */
.tw-footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Our Focus – capability cards */
/* Our Focus – Portal Capabilities (stylish + animated) */
.tw-focus-section {
  background: linear-gradient(180deg, #FFFBF2 0%, #FFF 100%);
}

.tw-focus-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #DA9F5B;
  font-weight: 600;
}

.tw-focus-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.tw-focus-title-line {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #33211D, #DA9F5B);
  border-radius: 2px;
}

.tw-focus-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(51, 33, 29, 0.08);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tw-focus-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #33211D, #DA9F5B);
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.35s ease;
  border-radius: 0 4px 4px 0;
}

.tw-focus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(51, 33, 29, 0.12);
  border-color: rgba(51, 33, 29, 0.18);
}

.tw-focus-card:hover::before {
  transform: scaleY(1);
}

.tw-focus-card:hover .tw-focus-icon-wrap {
  transform: scale(1.1);
  background: linear-gradient(135deg, #33211D 0%, #5c3d36 100%);
  box-shadow: 0 6px 20px rgba(51, 33, 29, 0.35);
}

.tw-focus-card:hover .tw-focus-icon {
  animation: tw-focus-icon-bounce 0.5s ease;
}

.tw-focus-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFFBF2 0%, #f5ebdc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.tw-focus-icon {
  font-size: 1.5rem;
  color: #DA9F5B;
  transition: color 0.35s ease;
}

.tw-focus-card:hover .tw-focus-icon {
  color: #fff;
}

.tw-focus-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.tw-focus-card-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5a6b5a;
  margin: 0;
}

@keyframes tw-focus-icon-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .tw-focus-card:hover {
    transform: none;
  }
  .tw-focus-card:hover .tw-focus-icon-wrap {
    transform: none;
  }
  .tw-focus-card:hover .tw-focus-icon {
    animation: none;
  }
}

/* Feedback form – placeholder visibility on dark background */
#feedback .form-control.bg-transparent::placeholder,
#feedback .form-control.bg-transparent::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.6);
}
#feedback .form-control.bg-transparent:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.6);
}
#feedback textarea.form-control.bg-transparent {
  resize: vertical;
  min-height: 100px;
}

/* Our Activities – card carousel */
.tw-activities-section {
  background: #fff;
}



.container-tw {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 1600px) {
  .container-tw {
    max-width: 1900px;
  }
}

.tw-activities-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #DA9F5B;
  font-weight: 600;
}

.tw-activities-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.tw-activities-title-line {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #33211D, #DA9F5B);
  border-radius: 2px;
}

.tw-activities-viewmore {
  border-color: #DA9F5B;
  color: #33211D;
  font-weight: 600;
}

.tw-activities-viewmore:hover {
  background: #DA9F5B;
  border-color: #DA9F5B;
  color: #fff;
}

.tw-activities-slider-wrapper {
  padding: 0 3rem;
  overflow-x: hidden;
}

.tw-activities-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0;
}

.tw-activities-track::-webkit-scrollbar {
  display: none;
}

.tw-activities-card {
  flex: 0 0 300px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(51, 33, 29, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

@media (min-width: 1600px) {
  .tw-activities-card {
    flex-basis: 360px;
  }
}

.tw-activities-card:hover {
  box-shadow: 0 12px 32px rgba(51, 33, 29, 0.12);
  transform: translateY(-4px);
}

.tw-activities-card-img-wrap {
  height: 400px;
  overflow: hidden;
  background: #f0ebe5;
}

.tw-activities-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.tw-activities-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.tw-activities-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tw-activities-card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #5a5a5a;
  margin: 0;
}

.tw-activities-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(218, 159, 91, 0.4);
  background: #fff;
  color: #33211D;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.tw-activities-arrow:hover {
  background: #DA9F5B;
  border-color: #DA9F5B;
  color: #fff;
}

.tw-activities-prev {
  left: 0;
}

.tw-activities-next {
  right: 0;
}

@media (max-width: 767.98px) {
  .tw-activities-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .tw-activities-card {
    flex: 0 0 260px;
  }
  .tw-activities-slider-wrapper {
    padding: 0 2.5rem;
  }
  .tw-activities-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw-activities-card:hover {
    transform: none;
  }
}

/* Recent Events – event cards with date, title, description, view more */
.tw-events-section {
  background: linear-gradient(180deg, #FFFBF2 0%, #fff 100%);
}

.tw-special-days-section .tw-sd-cal-card,
.tw-special-days-section .tw-sd-events-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
  border: 1px solid rgba(218, 159, 91, 0.28);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(51, 33, 29, 0.12);
  padding: 1.05rem;
  animation: twSDFadeIn .45s ease;
  position: relative;
  overflow: hidden;
}

.tw-special-days-section .tw-sd-cal-card::before,
.tw-special-days-section .tw-sd-events-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2e7d32, #DA9F5B);
}

.tw-sd-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
  padding-bottom: .55rem;
  border-bottom: 1px dashed rgba(51, 33, 29, 0.2);
}

.tw-sd-cal-head h3 {
  font-weight: 800;
  color: #2a1b17;
  letter-spacing: .01em;
}

.tw-sd-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(218,159,91,.7);
  background: linear-gradient(180deg, #fff, #fff7ea);
  color: #33211D;
  transition: all .2s ease;
  box-shadow: 0 6px 14px rgba(218, 159, 91, .2);
}

.tw-sd-nav-btn:hover,
.tw-sd-nav-btn:focus {
  background: #DA9F5B;
  color: #fff;
  border-color: #DA9F5B;
  outline: none;
}

.tw-sd-weekdays,
.tw-sd-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
}

.tw-sd-weekdays span {
  font-size: .72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #5b4a42;
  text-align: center;
}

.tw-sd-cell {
  min-height: 40px;
  border-radius: 10px;
}

.tw-sd-day {
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
  font-weight: 600;
  color: #374151;
  transition: all .2s ease;
}

@media (min-width: 1200px) {
  .tw-special-days-section .tw-sd-cal-card {
    padding: 1.25rem;
  }
  .tw-sd-cal-head {
    margin-bottom: 1rem;
  }
  .tw-sd-cal-head h3 {
    font-size: 1.45rem;
  }
  .tw-sd-nav-btn {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
  .tw-sd-weekdays span {
    font-size: .78rem;
  }
  .tw-sd-cell {
    min-height: 52px;
    border-radius: 12px;
  }
  .tw-sd-day {
    font-size: 1rem;
  }
}

.tw-sd-day:hover,
.tw-sd-day:focus {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(218, 159, 91, .7);
  box-shadow: 0 8px 16px rgba(51, 33, 29, .14);
  outline: none;
}

.tw-sd-day.has-event {
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.18), rgba(13, 110, 253, 0.1));
  border-color: rgba(13, 110, 253, 0.55);
  color: #0b3f91;
}

.tw-sd-day.is-today {
  position: relative;
  border-color: rgba(218, 159, 91, 0.9);
  box-shadow: inset 0 0 0 1px rgba(218, 159, 91, 0.45), 0 5px 14px rgba(218, 159, 91, 0.2);
}

.tw-sd-day.is-today::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #DA9F5B;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.tw-sd-day.is-selected {
  background: linear-gradient(180deg, #2e7d32 0%, #1f6a27 100%);
  color: #fff;
  border-color: #1f6a27;
  box-shadow: 0 10px 20px rgba(46, 125, 50, .35);
}

.tw-sd-day.is-selected.is-today::after {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(31, 106, 39, 0.95);
}

.tw-sd-empty {
  background: transparent;
  border: none;
}

.tw-sd-cal-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: #4b3a31;
  font-size: .82rem;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(218, 159, 91, .25);
  border-radius: 10px;
  padding: .45rem .6rem;
}

.tw-sd-cal-legend i { color: #2e7d32; }

.tw-sd-events-list,
.tw-sd-upcoming-list {
  max-height: 330px;
  overflow: auto;
  padding-right: .25rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tw-sd-events-list::-webkit-scrollbar,
.tw-sd-upcoming-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.tw-sd-event-item {
  display: flex;
  gap: .8rem;
  border: 1px solid rgba(218, 159, 91, .2);
  border-radius: 12px;
  padding: .6rem;
  margin-bottom: .6rem;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tw-sd-event-item:hover {
  transform: translateY(-2px);
  border-color: rgba(218, 159, 91, .55);
  box-shadow: 0 10px 24px rgba(51, 33, 29, .14);
}

.tw-sd-event-img {
  width: 116px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.tw-sd-event-body h6 {
  font-weight: 700;
  color: #1f2937;
}

.tw-sd-meta {
  font-size: .78rem;
  color: #4b5563;
  margin-bottom: .15rem;
}

.tw-sd-event-body p {
  font-size: .82rem;
  color: #5a5a5a;
}

.tw-sd-selected-slider {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tw-sd-selected-viewport {
  flex: 1;
  overflow: hidden;
}

.tw-sd-selected-track {
  display: flex;
  transition: transform .3s ease;
}

.tw-sd-selected-track .tw-sd-event-item {
  min-width: 100%;
  margin-bottom: 0;
}

.tw-sd-event-item--hero {
  flex-direction: column;
  padding: .75rem;
}

.tw-sd-event-item--hero .tw-sd-event-img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
}

.tw-sd-selected-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(218, 159, 91, .6);
  background: linear-gradient(180deg, #fff, #fff4e3);
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tw-sd-selected-nav:hover {
  background: #DA9F5B;
  border-color: #DA9F5B;
  color: #fff;
}

.tw-sd-selected-counter {
  font-size: .78rem;
  color: #4b5563;
}

/* Upcoming events: two-column cards on wider screens */
#sdUpcomingEvents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

#sdUpcomingEvents .tw-sd-event-item {
  margin-bottom: 0;
}

@keyframes twSDFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
  .tw-special-days-section .tw-sd-events-list,
  .tw-special-days-section .tw-sd-upcoming-list {
    max-height: none;
  }
  #sdUpcomingEvents {
    grid-template-columns: 1fr;
  }
  .tw-sd-event-item--hero .tw-sd-event-img {
    height: 170px;
  }
}

.tw-events-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #DA9F5B;
  font-weight: 600;
}

.tw-events-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.tw-events-title-line {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #33211D, #DA9F5B);
  border-radius: 2px;
}

.tw-events-viewall.btn {
  background: #33211D !important;
  border: 2px solid #33211D !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.tw-events-viewall.btn:hover {
  background: #5c3d36 !important;
  border-color: #5c3d36 !important;
  color: #fff !important;
}

.tw-events-slider-wrapper {
  padding: 0 3rem;
  overflow-x: hidden;
}

.tw-events-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0;
}

.tw-events-track::-webkit-scrollbar {
  display: none;
}

.tw-events-item {
  flex: 0 0 300px;
}

.tw-events-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(218, 159, 91, 0.4);
  background: #fff;
  color: #33211D;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.tw-events-arrow:hover {
  background: #DA9F5B;
  border-color: #DA9F5B;
  color: #fff;
}

.tw-events-prev { left: 0; }
.tw-events-next { right: 0; }

.tw-event-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(51, 33, 29, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tw-event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(51, 33, 29, 0.12);
}

.tw-event-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.tw-event-card-link:hover,
.tw-event-card-link:focus {
  color: inherit;
  text-decoration: none !important;
}

.tw-event-card-img-wrap {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #f0ebe5;
}

.tw-event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.tw-event-card:hover .tw-event-card-img {
  transform: scale(1.05);
}

.tw-event-date {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(51, 33, 29, 0.85);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
  width: auto;
}

.tw-event-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.tw-event-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.tw-event-card:hover .tw-event-card-title {
  color: #33211D;
}

.tw-event-card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #5a5a5a;
  margin-bottom: 0.75rem;
}

.tw-event-readmore {
  font-size: 0.9rem;
  font-weight: 600;
  color: #DA9F5B;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.tw-event-card:hover .tw-event-readmore {
  color: #33211D;
}

.tw-event-card:hover .tw-event-readmore i {
  transform: translateX(4px);
}

.tw-event-readmore i {
  transition: transform 0.25s ease;
}

@media (min-width: 1600px) {
  .tw-events-item {
    flex-basis: 360px;
  }
}

@media (max-width: 767.98px) {
  .tw-events-slider-wrapper {
    padding: 0 2.5rem;
  }
  .tw-events-item {
    flex-basis: 260px;
  }
  .tw-events-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw-event-card:hover {
    transform: none;
  }
  .tw-event-card:hover .tw-event-card-img {
    transform: none;
  }
}

/* Board Members – circular photo and card */
/* Board Members – redesigned */
.tw-board-section {
  background: linear-gradient(180deg, #FFFBF2 0%, #fff 50%, #FFFBF2 100%);
}

.tw-board-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #DA9F5B;
  font-weight: 600;
}

.tw-board-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.tw-board-title-line {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #33211D, #DA9F5B);
  border-radius: 2px;
}

.tw-board-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(51, 33, 29, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tw-board-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(51, 33, 29, 0.12);
  border-color: rgba(51, 33, 29, 0.15);
}

.tw-board-img-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  padding: 4px;
  background: linear-gradient(135deg, #FFFBF2 0%, #f5ebdc 100%);
  border: 2px solid rgba(218, 159, 91, 0.3);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.tw-board-card:hover .tw-board-img-wrap {
  border-color: rgba(218, 159, 91, 0.6);
  box-shadow: 0 4px 16px rgba(218, 159, 91, 0.2);
}

.tw-board-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.tw-board-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.tw-board-designation {
  font-size: 0.9rem;
  color: #5a5a5a;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tw-board-card:hover {
    transform: none;
  }
}

/* Newsletter – wildlife bg image */
.tw-newsletter {
  background: linear-gradient(rgba(26, 45, 26, 0.75), rgba(26, 45, 26, 0.75)), url(../img/newsletter_bg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.tw-newsletter-bg {
  display: none;
}

.tw-newsletter-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.tw-newsletter-heading {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tw-newsletter-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
}

.tw-newsletter-input-group {
  max-width: 440px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
}

.tw-newsletter-input {
  height: 56px;
  padding: 0 1.5rem;
  border: none;
  font-size: 1rem;
  border-radius: 50px 0 0 50px;
}

.tw-newsletter-input::placeholder {
  color: #999;
}

.tw-newsletter-btn {
  height: 56px;
  padding: 0 1.75rem;
  background: #fff;
  color: #1b5e20;
  border: none;
  border-radius: 0 50px 50px 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.tw-newsletter-btn:hover {
  background: #e8f5e9;
  color: #1b5e20;
}

.tw-newsletter-note {
  opacity: 0.85;
  font-size: 0.8rem;
}

.tw-newsletter-alert {
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 10px 24px rgba(20, 40, 20, 0.18);
  backdrop-filter: blur(2px);
  animation: tw-newsletter-alert-in 0.28s ease-out;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tw-newsletter-alert-hide {
  opacity: 0;
  transform: translateY(-6px);
}

.tw-newsletter-alert-success {
  background: linear-gradient(135deg, rgba(233, 250, 236, 0.98) 0%, rgba(220, 244, 226, 0.95) 100%);
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-left: 4px solid #16a34a;
  color: #14532d;
}

.tw-newsletter-alert-error {
  background: linear-gradient(135deg, rgba(255, 240, 241, 0.98) 0%, rgba(255, 231, 233, 0.95) 100%);
  border: 1px solid rgba(220, 53, 69, 0.35);
  border-left: 4px solid #dc3545;
  color: #7f1d1d;
}

.tw-newsletter-alert-success::before,
.tw-newsletter-alert-error::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  flex: 0 0 22px;
}

.tw-newsletter-alert-success::before {
  content: "\2713";
  background: #16a34a;
  color: #fff;
}

.tw-newsletter-alert-error::before {
  content: "!";
  background: #dc3545;
  color: #fff;
}

@keyframes tw-newsletter-alert-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 575.98px) {
  .tw-newsletter-input-group {
    flex-direction: column;
    border-radius: 12px;
    max-width: 100%;
  }
  .tw-newsletter-input-group .input-group-append {
    width: 100%;
  }
  .tw-newsletter-input-group .input-group-append .btn {
    width: 100%;
    border-radius: 0 0 12px 12px;
  }
  .tw-newsletter-input {
    border-radius: 12px 12px 0 0;
    height: 48px;
  }
  .tw-newsletter-btn {
    height: 48px;
  }
  .tw-newsletter-heading {
    font-size: 1.5rem;
  }
}

/* ========== Overview page – video banner ========== */
.tw-overview-banner {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tw-overview-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.tw-overview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tw-overview-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(105deg, rgba(51, 33, 29, 0.75) 0%, rgba(51, 33, 29, 0.5) 50%, rgba(51, 33, 29, 0.4) 100%);
}

.tw-overview-banner-content {
  z-index: 2;
  padding: 2rem 1rem;
  text-align: center;
}

.tw-overview-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tw-overview-banner-line {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #DA9F5B, rgba(218, 159, 91, 0.8));
  border-radius: 2px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .tw-overview-banner {
    min-height: 420px;
  }

  .tw-overview-banner-title {
    font-size: 2rem;
  }
}

@media (min-width: 992px) {
  .tw-overview-banner {
    min-height: 500px;
  }

  .tw-overview-banner-title {
    font-size: 2.5rem;
  }
}

/* Overview content */
.tw-overview-content {
  background: #f8f9f5;
}

.tw-overview-page-header {
  max-width: 720px;
}

.tw-overview-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a3c1a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.tw-overview-content .tw-overview-banner-line {
  margin-left: 0;
  margin-right: 0;
}

.tw-overview-intro.max-w-720 {
  max-width: 720px;
}

.tw-overview-lead {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ========== Biodiversity Overview Page (full layout) ========== */
.tw-bio-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tw-bio-hero-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.tw-bio-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.tw-bio-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg, rgba(24, 35, 51, 0.72) 0%, rgba(36, 49, 67, 0.62) 50%, rgba(52, 40, 32, 0.56) 100%);
}

.tw-bio-hero-content {
  z-index: 2;
  padding: 3rem 1rem;
  text-align: center;
}

.tw-bio-hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.tw-bio-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}

.tw-bio-hero-line {
  width: 72px;
  height: 3px;
  background: #d7be8a;
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}

.tw-bio-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.tw-bio-hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 2;
  background: #f8f9f5;
  clip-path: polygon(0 100%, 0 25%, 100% 55%, 100% 100%);
}

@media (min-width: 768px) {
  .tw-bio-hero {
    min-height: 75vh;
  }
  .tw-bio-hero-title {
    font-size: 3rem;
  }
  .tw-bio-hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (min-width: 992px) {
  .tw-bio-hero-title {
    font-size: 3.5rem;
  }
}

/* Intro */
.tw-bio-intro {
  background:
    radial-gradient(circle at 8% 10%, rgba(233, 219, 198, 0.35) 0%, rgba(233, 219, 198, 0) 34%),
    radial-gradient(circle at 92% 8%, rgba(195, 214, 221, 0.28) 0%, rgba(195, 214, 221, 0) 33%),
    linear-gradient(180deg, #f7f9fc 0%, #f3f5f8 100%);
}

.tw-bio-intro-block {
  /* background: rgba(255, 255, 255, 0.9); */
  padding: 2.2rem 2rem;
  border-radius: 18px;
  /* box-shadow: 0 16px 45px rgba(15, 29, 48, 0.1);
  border: 1px solid rgba(146, 166, 191, 0.22); */
  backdrop-filter: blur(2px);
  counter-reset: twbiosec;
}

.tw-bio-intro-title {
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-weight: 800;
  color: #162334;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.tw-bio-intro-line {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #4c6b43 0%, #9b7a4a 100%);
  border-radius: 2px;
}

.tw-bio-intro-text {
  font-size: 1.05rem;
  line-height: 1.78;
  color: #34485f;
  margin-bottom: 1.05rem;
}

/* Overview long-form content polish */
.tw-bio-intro-block {
  position: relative;
  overflow: visible;
}

.tw-bio-intro-block::before {
  display: none;
}

.tw-bio-intro-block h3 {
  counter-increment: twbiosec;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #10253c;
  letter-spacing: -0.01em;
  border-left: 0;
  padding: 0.2rem 0 0 0;
  position: relative;
}

.tw-bio-intro-block h3::before {
  content: "0" counter(twbiosec);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-right: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4c6b43 0%, #7f5d3e 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
}

.tw-bio-section-head-centered {
  text-align: center;
  display: block;
  width: 100%;
  margin: 0 0 1.1rem 0 !important;
  padding-top: 0.2rem;

  
}

.tw-bio-section-head-centered::before {
  content: none !important;
}

.tw-bio-section-head-centered::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #4c6b43 0%, #9b7a4a 100%);
}

.tw-bio-intro-block h4 {
  margin-top: 1.4rem;
  margin-bottom: 0.62rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e3955;

  
}

.tw-bio-content-section + .tw-bio-content-section {
  margin-top: 2rem;
  padding-top: 1.4rem;
  /* border-top: 1px solid rgba(140, 164, 188, 0.3); */
}

.tw-bio-section-overview .tw-bio-facts-grid--modern {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.95rem;
}

.tw-bio-fact-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 14px 30px rgba(17, 31, 48, 0.18);
}

.tw-bio-fact-card::before {
  content: none;
}

.tw-bio-fact-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  background: rgba(52, 78, 44, 0.52);
  backdrop-filter: blur(1px);
}

.tw-bio-fact-content {
  position: relative;
  z-index: 2;
  width: 50%;
  /* max-width: 330px; */
  padding: 0.1rem 0.25rem 0.1rem 0.2rem;
}

.tw-bio-fact-title {
  margin: 0 0 0.45rem 0;
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1.05;
  font-weight: 800;
}

.tw-bio-fact-card .tw-bio-fact-title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tw-bio-fact-text {
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.48;
  font-size: 1.18rem;
}

.tw-bio-fact-card--geo {
  background-image: url("../img/biodiversity/1.webp");
}

.tw-bio-fact-card--coast {
  background-image: url("../img/biodiversity/2.jpg");
}

.tw-bio-fact-card--eco {
  background-image: url("../img/biodiversity/3.jpg");
}

.tw-bio-fact-card--forest {
  background-image: url("../img/biodiversity/4.jpg");
}

.tw-bio-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tw-bio-text-card {
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(136, 161, 190, 0.25);
  box-shadow: 0 10px 24px rgba(26, 46, 70, 0.08);
}

.tw-bio-text-card h4 {
  margin-top: 0;
}

.tw-bio-section-heritage-feature {
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
  padding: 100px 1.2rem;
  background: linear-gradient(135deg, #eef4e8 0%, #f8f3e8 52%, #edf2e4 100%);
  border: 1px solid rgba(132, 144, 120, 0.24);
  box-shadow: none;
}

.tw-bio-section-heritage-feature::before {
  content: none;
}

.tw-bio-section-heritage-feature > * {
  position: relative;
  z-index: 1;
}

.tw-bio-section-heritage-feature .tw-bio-section-head-centered {
  color: #1f2b1e;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.tw-bio-section-protection .tw-bio-section-head-centered {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  margin-bottom: 50px !important;
}

.tw-bio-section-heritage-feature .tw-bio-section-head-centered::after {
  width: 96px;
  height: 4px;
  background: linear-gradient(90deg, #4e6e44 0%, #8a6943 100%);
}

.tw-bio-heritage-shell {
  max-width: 980px;
  margin: 0 auto;
}

.tw-bio-heritage-head {
  text-align: center;
  margin-bottom: 1.15rem;
  margin:50px auto;
}

.tw-bio-heritage-subtitle {
  color: #4a5b45;
  font-size: 1.03rem;
  line-height: 1.65;
}

.tw-bio-heritage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tw-bio-heritage-card {
  position: relative;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(227, 236, 212, 0.62);
  box-shadow: 0 10px 24px rgba(12, 30, 12, 0.24);
}

.tw-bio-heritage-card::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 6px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4f7245 0%, #8f7147 100%);
}

.tw-bio-heritage-card h4 {
  margin: 0 0 0.55rem 0;
  padding-left: 0.85rem;
  color: #2d4d2e;
  font-size: 1.15rem;
  font-weight: 800;
}

.tw-bio-section-heritage-feature .tw-bio-heritage-card .tw-bio-intro-text {
  color: #2e3a2f;
  line-height: 1.7;
  font-size: 1rem;
}

.tw-bio-highlight-panel {
  background: linear-gradient(135deg, #4a6f44 0%, #7a5a3a 100%);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  color: #fff;
}

.tw-bio-highlight-panel h4,
.tw-bio-highlight-panel .tw-bio-intro-text {
  color: #fff;
}

.tw-bio-simple-list-card {
  border-radius: 12px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(141, 125, 101, 0.3);
  background: linear-gradient(140deg, #faf8f3 0%, #f2ede3 100%);
}

.tw-bio-programme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tw-bio-programme-item {
  position: relative;
  border-radius: 14px;
  padding: 1.05rem 1.05rem 1.05rem 1.2rem;
  border: 1px solid rgba(126, 143, 111, 0.34);
  background: linear-gradient(145deg, #ffffff 0%, #f8f5ee 100%);
  box-shadow: 0 8px 20px rgba(66, 54, 38, 0.09);
}

.tw-bio-programme-item h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #2f4a2d;
  font-weight: 800;
}

.tw-bio-programme-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4f7245 0%, #8f6b46 100%);
}

.tw-bio-programmes-shell {
  border-radius: 16px;
  padding: 1.2rem 1.15rem;
  border: 1px solid rgba(145, 130, 98, 0.24);
  background: linear-gradient(140deg, rgba(249, 247, 241, 0.95) 0%, rgba(241, 247, 238, 0.96) 100%);
}

.tw-bio-programmes-subtitle {
  color: #53614b;
  font-size: 1rem;
  line-height: 1.68;
}

.tw-bio-section-programmes .tw-bio-section-head-centered {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
}

.tw-bio-section-milestones .tw-bio-section-head-centered {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
}

.tw-bio-milestones-shell {
  border-radius: 16px;
  padding: 1.2rem 1.15rem;
  border: 1px solid rgba(138, 123, 95, 0.28);
  background: linear-gradient(140deg, #f8f5ef 0%, #f1ece1 100%);
}

.tw-bio-milestone-list {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
  counter-reset: ms;
}

.tw-bio-milestone-list li {
  counter-increment: ms;
  position: relative;
  padding: 0.85rem 0.95rem 0.85rem 3.1rem;
  margin-bottom: 0.7rem;
  border-radius: 11px;
  border: 1px solid rgba(146, 129, 101, 0.3);
  background: linear-gradient(130deg, #ffffff 0%, #f9f4eb 100%);
  color: #4b4a42;
  line-height: 1.66;
}

.tw-bio-milestone-list li::before {
  content: counter(ms);
  position: absolute;
  left: 0.95rem;
  top: 0.7rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f7245 0%, #8f6b46 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(78, 58, 34, 0.2);
}

.tw-bio-section-milestones ul.tw-bio-intro-text {
  list-style: none;
  padding-left: 0;
  margin-top: 0.8rem;
}

.tw-bio-section-milestones ul.tw-bio-intro-text li {
  position: relative;
  padding: 0.82rem 0.9rem 0.82rem 2.4rem;
  margin-bottom: 0.72rem;
  border: 1px solid rgba(141, 125, 101, 0.32);
  border-radius: 10px;
  background: linear-gradient(140deg, #f8f6f1 0%, #f1ebdf 100%);
}

.tw-bio-section-milestones ul.tw-bio-intro-text li::before {
  content: "•";
  position: absolute;
  left: 0.92rem;
  top: 0.76rem;
  color: #6d5337;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  width: auto;
  height: auto;
  background: transparent;
}

.tw-bio-intro-block ul.tw-bio-intro-text {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.tw-bio-intro-block ul.tw-bio-intro-text li {
  position: relative;
  padding: 0.78rem 0.9rem 0.78rem 2.3rem;
  margin-bottom: 0.7rem;
  background: linear-gradient(130deg, rgba(247, 250, 244, 0.95), rgba(242, 237, 228, 0.92));
  border: 1px solid rgba(139, 130, 108, 0.28);
  border-radius: 10px;
  line-height: 1.66;
  color: #3f4235;
}

.tw-bio-intro-block ul.tw-bio-intro-text li::before {
  content: "";
  position: absolute;
  left: 0.88rem;
  top: 1rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b754a 0%, #9b7a4a 100%);
  box-shadow: 0 0 0 3px rgba(155, 122, 74, 0.2);
}

@media (max-width: 767.98px) {
  .tw-bio-section-overview .tw-bio-facts-grid--modern,
  .tw-bio-dual-grid,
  .tw-bio-programme-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .tw-bio-highlight-panel,
  .tw-bio-simple-list-card,
  .tw-bio-programme-item,
  .tw-bio-text-card,
  .tw-bio-fact-card {
    padding: 0.9rem;
  }

  .tw-bio-programmes-shell,
  .tw-bio-milestones-shell {
    padding: 0.95rem;
  }

  .tw-bio-milestone-list li {
    padding: 0.8rem 0.85rem 0.8rem 2.8rem;
  }

  .tw-bio-section-heritage-feature {
    width: 100vw;
    padding: 100px 0.9rem;
  }

  .tw-bio-heritage-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .tw-bio-fact-card {
    min-height: 240px;
  }

  .tw-bio-fact-card::after {
    width: 100%;
    background: rgba(55, 80, 46, 0.62);
  }

  .tw-bio-fact-content {
    width: 100%;
    max-width: none;
  }

  .tw-bio-fact-title {
    font-size: 1.34rem;
  }

  .tw-bio-fact-text {
    font-size: 1.02rem;
  }

  .tw-bio-intro-block h3 {
    font-size: 1.2rem;
  }

  .tw-bio-intro-block h4 {
    font-size: 1rem;
  }

  .tw-bio-intro-text {
    font-size: 1rem;
  }
}

/* Section divider (leaf) */
.tw-bio-section-divider {
  text-align: center;
  padding: 1.5rem 0;
  color: rgba(90, 122, 90, 0.4);
  font-size: 1.25rem;
}

.tw-bio-section-divider--light {
  color: rgba(107, 142, 107, 0.35);
}

/* Category sections */
.tw-bio-category {
  background: #fff;
}

.tw-bio-category:nth-of-type(even) {
  background: #f4f7f4;
}

.tw-bio-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a7a5a 0%, #4a6a4a 100%);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.tw-bio-category-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a3c1a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.tw-bio-category-line {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #5a7a5a, #8fbc8f);
  border-radius: 2px;
}

/* Species cards */
.tw-bio-card-wrap {
  display: flex;
}

.tw-bio-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: #fff;
}

.tw-bio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(26, 60, 26, 0.15);
}

.tw-bio-card-img-wrap {
  position: relative;
  padding-top: 70%;
  overflow: hidden;
  background: #e8ebe8;
}

.tw-bio-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tw-bio-card:hover .tw-bio-card-img {
  transform: scale(1.08);
}

.tw-bio-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(26, 60, 26, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tw-bio-card:hover .tw-bio-card-overlay {
  opacity: 1;
}

.tw-bio-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.tw-bio-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a3c1a;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.tw-bio-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

/* CTA */
.tw-bio-cta {
  background: #f4f7f4;
}

.tw-bio-cta-text {
  font-size: 1.05rem;
  color: #333;
}

.tw-bio-cta-text a {
  color: #2d5a2d;
  font-weight: 600;
}

.tw-bio-cta-text a:hover {
  color: #1a3c1a;
  text-decoration: underline;
}

/* Programmes page banner */
.tw-programmes-banner {
  min-height: 180px;
  display: flex;
  align-items: center;
}

.tw-programmes-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: #33211D; */
  background-image: url("../img/programmes_banner.jpg");
  background-size: cover;
  background-position: center;
}

.tw-programmes-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(105deg, rgba(51, 33, 29, 0.92) 0%, rgba(51, 33, 29, 0.75) 100%);
}

.tw-programmes-banner-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #DA9F5B;
  font-weight: 600;
  margin: 0;
}

.tw-programmes-banner-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.tw-programmes-banner-line {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #DA9F5B, rgba(218, 159, 91, 0.8));
  border-radius: 2px;
}

.tw-programmes-banner-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0;
}

@media (min-width: 992px) {
  .tw-programmes-banner {
    min-height: 110px;
  }

  .tw-programmes-banner-title {
    font-size: 2.75rem;
  }
}

/* ========== Programs Listing Page ========== */
.tw-programs-listing {
  background: #f8f9f5;
}

.tw-programs-page-header {
  max-width: 720px;
}

.tw-programs-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a3c1a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.tw-programs-page-desc {
  font-size: 1rem;
  line-height: 1.6;
}

/* Filters */
.tw-programs-filters .tw-filter-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2d5a2d;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tw-filter-select,
.tw-filter-search {
  border-radius: 8px;
  border: 1px solid #c9d4c9;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tw-filter-select:focus,
.tw-filter-search:focus {
  border-color: #3d7a3d;
  box-shadow: 0 0 0 3px rgba(61, 122, 61, 0.15);
  outline: 0;
}

.tw-search-wrap {
  position: relative;
}

.tw-filter-search {
  padding-left: 2.5rem;
}

.tw-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b8f6b;
  pointer-events: none;
  font-size: 0.95rem;
}

/* Program cards grid */
.tw-programs-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.tw-programs-grid .tw-program-card-wrap {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.tw-program-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.tw-program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26, 60, 26, 0.12);
}

.tw-program-card-img-link {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.tw-program-card-img-wrap {
  height: 180px;
  overflow: hidden;
  background: #e8efe8;
}

.tw-program-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tw-program-card:hover .tw-program-card-img {
  transform: scale(1.06);
}

.tw-program-card .card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.tw-program-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.tw-program-badge-training {
  background: rgba(45, 90, 45, 0.12);
  color: #1e4d1e;
}

.tw-program-badge-conference {
  background: rgba(139, 90, 43, 0.15);
  color: #5c3a1a;
}

.tw-program-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5rem 0;
}

.tw-program-card-title a {
  color: #1a3c1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tw-program-card-title a:hover {
  color: #2d5a2d;
}

.tw-program-card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a5d4a;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tw-program-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #5a6d5a;
}

.tw-program-meta-item i {
  color: #3d7a3d;
}

.tw-program-btn-view {
  font-weight: 600;
  border-radius: 8px;
  background: #2d5a2d;
  color: #fff;
  border: 0;
  padding: 0.5rem 1rem;
  transition: background 0.25s ease, transform 0.2s ease;
}

.tw-program-btn-view:hover {
  background: #1e4d1e;
  color: #fff;
  transform: translateX(2px);
}

.tw-program-btn-view i {
  transition: transform 0.2s ease;
}

.tw-program-card:hover .tw-program-btn-view i {
  transform: translateX(3px);
}

/* Empty state */
.tw-programs-empty {
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #c9d4c9;
}

/* Load More */
.tw-programs-loadmore-btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.6rem 1.75rem;
  background: #2d5a2d;
  border-color: #2d5a2d;
  transition: background 0.25s ease, transform 0.2s ease;
}

.tw-programs-loadmore-btn:hover {
  background: #1e4d1e;
  border-color: #1e4d1e;
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .tw-programs-filters .card-body {
    padding: 1rem;
  }

  .tw-program-card-img-wrap {
    height: 160px;
  }
}

/* ========== Resources Listing Page ========== */
.tw-resources-banner {
  min-height: 180px;
}

.tw-resources-listing {
  background: #f8f9f5;
}

.tw-resources-page-header {
  max-width: 720px;
}

.tw-resources-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a3c1a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.tw-resources-page-desc {
  font-size: 1rem;
  line-height: 1.6;
}

/* Resources filters */
.tw-resources-filters .tw-res-filter-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2d5a2d;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tw-res-filter-select,
.tw-res-filter-search {
  border-radius: 8px;
  border: 1px solid #c9d4c9;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tw-res-filter-select:focus,
.tw-res-filter-search:focus {
  border-color: #3d7a3d;
  box-shadow: 0 0 0 3px rgba(61, 122, 61, 0.15);
  outline: 0;
}

.tw-resources-filters .tw-search-wrap .tw-search-icon {
  color: #6b8f6b;
}

.tw-res-filter-search {
  padding-left: 2.5rem;
}

/* Resource cards grid */
.tw-resources-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.tw-resources-grid .tw-resource-card-wrap {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.tw-resource-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  background: #fff;
}

.tw-resource-card:hover {
  transform: translateY(-6px);
  box-shadow: none;
}

.tw-resource-card-icon-wrap {
  height: 100px;
  background: linear-gradient(135deg, #e8f0e8 0%, #d4e4d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.tw-resource-card:hover .tw-resource-card-icon-wrap {
  background: linear-gradient(135deg, #d4e4d4 0%, #c2d8c2 100%);
}

.tw-resource-card-icon {
  font-size: 2.25rem;
  color: #2d5a2d;
  transition: transform 0.3s ease;
}

.tw-resource-card:hover .tw-resource-card-icon {
  transform: scale(1.08);
}

.tw-resource-card-thumb-wrap {
  position: relative;
  height: auto;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  background: #edf2eb;
}

.tw-resource-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.35s ease;
}

.tw-resource-card:hover .tw-resource-card-thumb {
  transform: scale(1.04);
}

.tw-resource-card-thumb-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56%;
  background: linear-gradient(180deg, rgba(16, 17, 18, 0) 0%, rgba(16, 17, 18, 0.82) 100%);
  pointer-events: none;
}

.tw-resource-card-icon-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(34, 51, 30, 0.82);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.tw-resource-card .card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.9rem 0.95rem 1rem;
}

.tw-resource-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.tw-res-badge-reports {
  background: rgba(45, 90, 45, 0.12);
  color: #1e4d1e;
}

.tw-res-badge-pub {
  background: rgba(61, 90, 122, 0.12);
  color: #1a2d4d;
}

.tw-res-badge-news {
  background: rgba(139, 90, 43, 0.15);
  color: #5c3a1a;
}

.tw-resource-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5rem 0;
  color: #1a3c1a;
}

.tw-resource-card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a5d4a;
  margin: 0 0 1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tw-resource-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #5a6d5a;
}

.tw-resource-meta-year i,
.tw-resource-meta-format i {
  color: #3d7a3d;
}

.tw-resource-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tw-resource-mini-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tw-resource-mini-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 0.24rem 0.56rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(2px);
}

.tw-resource-card .tw-resource-badge {
  margin-bottom: 0;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16) !important;
}

.tw-resource-card .tw-resource-card-actions {
  margin-top: 0.5rem !important;
}

.tw-resource-card .tw-res-btn-view {
  border-color: rgba(255, 255, 255, 0.46);
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  line-height: 1.2;
}

.tw-resource-card .tw-res-btn-view:hover {
  border-color: #fff;
  color: #223121;
  background: #fff;
}

.tw-resource-detail-thumb {
  width: 100%;
  aspect-ratio: 9 / 12;
  object-fit: contain;
  object-position: center;
  background: #f4f6f2;
  border: 1px solid #e1e6de;
}

.tw-resource-detail-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2b1f;
}

.tw-resource-detail-desc {
  color: #4d5f4d;
  line-height: 1.65;
}

.tw-res-btn-view,
.tw-res-btn-download {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  text-decoration: none;
}

.tw-res-btn-view {
  background: #fff;
  border: 1px solid #2d5a2d;
  color: #2d5a2d;
}

.tw-res-btn-view:hover {
  background: #f0f5f0;
  border-color: #1e4d1e;
  color: #1e4d1e;
  transform: translateY(-1px);
}

.tw-res-btn-download {
  background: #2d5a2d;
  border: 1px solid #2d5a2d;
  color: #fff;
}

.tw-res-btn-download:hover {
  background: #1e4d1e;
  border-color: #1e4d1e;
  color: #fff;
  transform: translateY(-1px);
}

.tw-resources-empty {
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #c9d4c9;
}

.tw-resources-loadmore-btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.6rem 1.75rem;
  background: #2d5a2d;
  border-color: #2d5a2d;
  transition: background 0.25s ease, transform 0.2s ease;
}

.tw-resources-loadmore-btn:hover {
  background: #1e4d1e;
  border-color: #1e4d1e;
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .tw-resources-filters .card-body {
    padding: 1rem;
  }

  .tw-resource-card-icon-wrap {
    height: 88px;
  }

  .tw-resource-card-thumb-wrap {
    height: auto;
    aspect-ratio: 9 / 12;
  }

  .tw-resource-card-icon {
    font-size: 1.85rem;
  }
}

/* ========== Training Feedback Form Page ========== */
.tw-feedback-banner {
  min-height: 140px;
}

.tw-feedback-section {
  background: #f8f9f5;
}

.tw-feedback-page-header {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.tw-feedback-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a3c1a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.tw-feedback-page-desc {
  font-size: 1rem;
  line-height: 1.6;
}

.tw-feedback-success-msg {
  font-size: 1.15rem;
  color: #1a3c1a;
  font-weight: 600;
}

.tw-feedback-form-card {
  max-width: 780px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.tw-feedback-form-card:hover {
  box-shadow: 0 8px 32px rgba(26, 60, 26, 0.1);
}

.tw-feedback-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e8efe8;
}

.tw-feedback-block:last-of-type {
  border-bottom: 0;
}

.tw-feedback-block-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.tw-feedback-block-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f0e8 0%, #d4e4d4 100%);
  color: #2d5a2d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tw-feedback-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3c1a;
  margin: 0;
  letter-spacing: -0.01em;
}

.tw-feedback-input {
  border-radius: 10px;
  border: 1px solid #c9d4c9;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tw-feedback-input:focus {
  border-color: #3d7a3d;
  box-shadow: 0 0 0 3px rgba(61, 122, 61, 0.12);
  outline: 0;
}

.tw-feedback-input.tw-feedback-invalid {
  border-color: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.1);
}

.tw-feedback-textarea {
  min-height: 90px;
  resize: vertical;
}

.tw-feedback-error {
  font-size: 0.85rem;
  color: #c62828;
  margin-top: 0.35rem;
  display: none;
}

.tw-feedback-rating-row {
  margin-bottom: 1.25rem;
}

.tw-feedback-rating-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2d5a2d;
  margin-bottom: 0.5rem;
}

.tw-feedback-stars {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.25rem;
  align-items: center;
  justify-content: flex-end;
}

.tw-feedback-star-label {
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.tw-feedback-star-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tw-feedback-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #dde0d9;
  transition: color 0.2s ease, transform 0.15s ease;
}

/* Filled: selected star and all stars below it (1 to N) */
.tw-feedback-star-label:has(.tw-feedback-star-input:checked) .tw-feedback-star,
.tw-feedback-star-label:has(.tw-feedback-star-input:checked) ~ .tw-feedback-star-label .tw-feedback-star {
  color: #f0b429;
}

/* Hover: fill up to hovered star */
.tw-feedback-star-label:hover .tw-feedback-star,
.tw-feedback-star-label:hover ~ .tw-feedback-star-label .tw-feedback-star {
  color: #f0b429;
}

.tw-feedback-star-label:hover .tw-feedback-star {
  transform: scale(1.15);
}

.tw-feedback-rating-error {
  display: block;
  margin-top: 0.35rem;
}

.tw-feedback-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tw-feedback-radio-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #2d5a2d;
}

.tw-feedback-radio {
  margin-right: 0.5rem;
  width: 1.1em;
  height: 1.1em;
}

.tw-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid #e8efe8;
}

.tw-feedback-btn-submit,
.tw-feedback-btn-reset {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.tw-feedback-btn-submit {
  background: #2d5a2d;
  border: 1px solid #2d5a2d;
  color: #fff;
}

.tw-feedback-btn-submit:hover {
  background: #1e4d1e;
  border-color: #1e4d1e;
  color: #fff;
  transform: translateY(-1px);
}

.tw-feedback-btn-reset {
  background: #fff;
  border: 1px solid #c9d4c9;
  color: #5a6d5a;
}

.tw-feedback-btn-reset:hover {
  background: #f0f5f0;
  border-color: #2d5a2d;
  color: #1a3c1a;
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .tw-feedback-form-card .card-body {
    padding: 1.25rem !important;
  }

  .tw-feedback-block {
    padding: 1.25rem 0;
  }

  .tw-feedback-star {
    width: 32px;
    height: 32px;
  }
}

/* ========== Public Login Page (User Login – wildlife theme) ========== */
.tw-public-login-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.tw-public-login-row {
  min-height: 75vh;
}

/* Left column: welcome copy */
.tw-public-login-left {
  order: 1;
}

.tw-public-login-copy {
  padding: 1rem 0;
  max-width: 480px;
}

.tw-public-login-copy-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.tw-public-login-copy-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tw-public-login-copy-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
}

.tw-public-login-copy-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin: 0 0 1.5rem 0;
}

.tw-public-login-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tw-public-login-features li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.75rem;
}

.tw-public-login-features li i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(218, 159, 91, 0.25);
  border-radius: 8px;
  margin-right: 0.75rem;
  color: #DA9F5B;
  flex-shrink: 0;
}

/* Right column: form */
.tw-public-login-right {
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tw-public-login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tw-public-login-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #33211D 0%, #5c3d36 35%, #4a3028 70%, #33211D 100%);
  background-size: 400% 400%;
  animation: tw-public-login-bg-shift 18s ease infinite;
}

@keyframes tw-public-login-bg-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tw-public-login-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tw-public-login-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  animation: tw-public-login-float 12s ease-in-out infinite;
}

.tw-public-login-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.tw-public-login-particle:nth-child(2) { left: 25%; top: 60%; animation-delay: -2s; }
.tw-public-login-particle:nth-child(3) { left: 45%; top: 15%; animation-delay: -4s; }
.tw-public-login-particle:nth-child(4) { left: 70%; top: 50%; animation-delay: -1s; }
.tw-public-login-particle:nth-child(5) { left: 85%; top: 25%; animation-delay: -3s; }
.tw-public-login-particle:nth-child(6) { left: 55%; top: 80%; animation-delay: -2.5s; }

@keyframes tw-public-login-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  25% { transform: translate(15px, -20px) scale(1.2); opacity: 0.35; }
  50% { transform: translate(-10px, 10px) scale(0.9); opacity: 0.25; }
  75% { transform: translate(20px, 15px) scale(1.1); opacity: 0.3; }
}

.tw-public-login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.tw-public-login-container {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: 0 auto;
}

.tw-public-login-card {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
  overflow: hidden;
}

.tw-public-login-brand {
  padding: 1.5rem 2rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(51, 33, 29, 0.06) 0%, transparent 100%);
}

.tw-public-login-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #33211D;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}

.tw-public-login-card-sub {
  font-size: 0.85rem;
  color: #5c3d36;
  margin: 0;
  line-height: 1.4;
}

.tw-public-login-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.tw-public-login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #33211D;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.tw-public-login-subtitle {
  font-size: 0.8rem;
  color: #5c3d36;
  margin: 0;
  line-height: 1.4;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.tw-public-login-body {
  padding: 1.5rem 2rem 2rem;
}

.tw-public-login-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.tw-public-login-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #c4b5a8, transparent);
  margin: 1rem 0 1.25rem;
}

.tw-public-login-field {
  margin-bottom: 1.25rem;
}

.tw-public-login-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #33211D;
  margin-bottom: 0.4rem;
}

.tw-public-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #c4b5a8;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tw-public-login-input-wrap:focus-within {
  border-color: #DA9F5B;
  box-shadow: 0 0 0 3px rgba(218, 159, 91, 0.2);
}

.tw-public-login-input-icon {
  padding: 0 1rem;
  color: #8b6f47;
  font-size: 1rem;
}

.tw-public-login-input {
  flex: 1;
  border: 0 !important;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: transparent !important;
  outline: 0;
}

.tw-public-login-input::placeholder {
  color: #9eaf9e;
}

.tw-public-login-toggle {
  padding: 0 1rem;
  background: none;
  border: 0;
  color: #8b6f47;
  cursor: pointer;
  font-size: 1rem;
  outline: 0;
}

.tw-public-login-toggle:hover {
  color: #33211D;
}

.tw-public-login-remember {
  margin-bottom: 1.5rem;
}

.tw-public-login-remember-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: #5c3d36;
  cursor: pointer;
  margin: 0;
}

.tw-public-login-remember-label input {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.5rem;
  accent-color: #DA9F5B;
}

.tw-public-login-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: linear-gradient(135deg, #33211D 0%, #4a3028 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(51, 33, 29, 0.4);
}

.tw-public-login-btn:hover {
  background: linear-gradient(135deg, #4a3028 0%, #33211D 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218, 159, 91, 0.35);
}

.tw-public-login-btn:active {
  transform: translateY(0);
}

.tw-public-login-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tw-public-login-links a {
  font-size: 0.85rem;
  color: #33211D;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.tw-public-login-links a:hover {
  color: #DA9F5B;
  text-decoration: underline;
}

.tw-public-login-register {
  text-align: center;
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #5c3d36;
}

.tw-public-login-register a {
  color: #DA9F5B;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tw-public-login-register a:hover {
  color: #33211D;
  text-decoration: underline;
}

.tw-public-login-disclaimer {
  margin-top: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(218, 159, 91, 0.35);
  background: rgba(218, 159, 91, 0.1);
  color: #5c3d36;
  font-size: 0.76rem;
  line-height: 1.45;
}

.tw-public-login-disclaimer i {
  color: #8b6f47;
}

.tw-public-login-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e8e2dc;
}

.tw-public-login-footer small {
  font-size: 0.8rem;
  color: #8b6f47;
}

/* Register page: mobile + Send OTP row */
.tw-register-mobile-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.tw-register-mobile-wrap {
  flex: 1;
}

.tw-register-otp-btn {
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  font-weight: 600;
  border-radius: 10px;
  background: #DA9F5B;
  border: 1px solid #DA9F5B;
  color: #33211D;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tw-register-otp-btn:hover:not(:disabled) {
  background: #c48f4a;
  border-color: #c48f4a;
  color: #33211D;
  transform: translateY(-1px);
}

.tw-register-otp-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.tw-register-otp-msg {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.tw-register-success {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

@media (max-width: 991.98px) {
  .tw-public-login-row {
    min-height: auto;
  }

  .tw-public-login-copy {
    text-align: center;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .tw-public-login-copy-title {
    font-size: 1.6rem;
  }

  .tw-public-login-features {
    display: inline-block;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .tw-public-login-brand {
    padding: 1.5rem 1.25rem 1rem;
  }

  .tw-public-login-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .tw-public-login-card-title {
    font-size: 1.25rem;
  }

  .tw-public-login-copy-title {
    font-size: 1.4rem;
  }

  .tw-public-login-copy-logo {
    width: 52px;
    height: 52px;
  }
}
