/* CFMRV responsive improvements - FINAL CLEAN VERSION
   Purpose: preserve original Bootstrap/theme style while improving responsiveness.
   Notes:
   - This file replaces duplicated responsive CSS blocks.
   - Keep it loaded after frontend/assets/css/style.css.
   - Highcharts chart sizing is still mainly controlled by chart JavaScript.
*/


/* =====================================================
   CFMRV THEME COLORS
   ===================================================== */

:root {
  --cfmrv-primary: #198754;
  --cfmrv-primary-dark: #157347;
  --cfmrv-primary-deep: #146c43;
  --cfmrv-bg: #f8faf9;
  --cfmrv-card: #ffffff;
}

/* =====================================================
   BASE SAFETY
   ===================================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img,
iframe,
video {
  max-width: 100%;
  height: auto;
}

svg,
canvas {
  max-width: none;
}

.container-fluid {
  max-width: 100%;
}

/* =====================================================
   HEADER / LOGO
   ===================================================== */

#header .container {
  gap: 12px;
}

#header .logo img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  #header {
    padding: 10px 0 !important;
  }

  #header .logo img {
    max-height: 58px !important;
  }

  body {
    padding-top: 82px;
    scroll-padding-top: 90px;
    font-family: "Phetsarath OT", "Noto Sans Lao", Arial, sans-serif;
  }

  main#main {
    padding-top: 10px;
  }

  #footer {
    scroll-margin-top: 90px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
    padding-top: 70px;
    scroll-padding-top: 78px;
  }

  #header {
    padding: 8px 0 !important;
  }

  #header .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  #header .logo img {
    max-height: 48px !important;
  }

  #footer {
    scroll-margin-top: 78px;
  }
}

@media (max-width: 420px) {
  #header .logo img {
    max-height: 42px !important;
  }
}

/* =====================================================
   HERO / SLIDER
   ===================================================== */

#hero {
  width: 100%;
  min-height: 620px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    rgba(0, 0, 0, 0.18) 100%
  );
  z-index: 1;
}

#hero .container {
  max-width: 1320px;
  position: relative;
  z-index: 2;
}

#hero h1,
#hero h2 {
  color: #ffffff;
  overflow-wrap: anywhere;
  animation: cfmrvHeroTextUp 0.7s ease both;
}

#hero h1 {
  max-width: 1150px;
  font-size: 56px;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

#hero h2 {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 500;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  animation-delay: 0.15s;
}

@keyframes cfmrvHeroTextUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1200px) {
  #hero {
    height: 72vh;
    min-height: 620px;
  }

  #hero h1 {
    font-size: 58px;
    max-width: 1200px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  #hero {
    height: 68vh;
    min-height: 560px;
  }

  #hero h1 {
    font-size: 48px;
    max-width: 980px;
  }

  #hero h2 {
    font-size: 24px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #hero {
    height: 560px;
    min-height: 560px;
    background-position: center center;
  }

  #hero .container,
  #hero .carousel-container {
    padding-left: 36px;
    padding-right: 36px;
  }

  #hero h1 {
    font-size: 44px !important;
    line-height: 1.18 !important;
    max-width: 760px;
  }

  #hero h2 {
    font-size: 22px !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 767.98px) {
  #hero {
    height: 520px;
    min-height: 520px;
    background-position: center center;
    align-items: center !important;
  }

  #hero::before {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.42) 55%,
      rgba(0, 0, 0, 0.28) 100%
    );
  }

  #hero .carousel,
  #hero .carousel-inner,
  #hero .carousel-item {
    min-height: 520px;
  }

  #hero .container,
  #hero .carousel-container {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
  }

  #hero h1 {
    font-size: 34px !important;
    line-height: 1.18 !important;
    max-width: 90%;
    margin: 0 auto 20px auto;
    text-align: center;
  }

  #hero h2 {
    font-size: 18px !important;
    line-height: 1.35 !important;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }
}

@media (max-width: 420px) {
  #hero {
    height: 480px;
    min-height: 480px;
  }

  #hero .carousel,
  #hero .carousel-inner,
  #hero .carousel-item {
    min-height: 480px;
  }

  #hero h1 {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }

  #hero h2 {
    font-size: 16px !important;
  }
}

/* =====================================================
   MOBILE MENU - FINAL CLEAN VERSION
   ===================================================== */

@media (max-width: 991.98px) {
  .navbar-mobile {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: rgba(10, 38, 22, 0.82);
    transition: 0.3s;
    z-index: 999;
    animation: cfmrvMenuFadeIn 0.25s ease forwards;
  }

  .navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 22px;
    right: 24px;
    color: #ffffff;
    font-size: 34px;
    z-index: 1000;
  }

  .navbar-mobile ul {
    position: absolute;
    top: 90px;
    left: 28px;
    right: 28px;
    bottom: auto !important;
    min-height: auto !important;
    max-height: calc(100vh - 135px);
    overflow-y: auto;
    margin: 0;
    padding: 16px 0;
    border-radius: 16px;
    background: #f8fbf9;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    animation: cfmrvMenuSlideDown 0.32s ease forwards;
  }

  .navbar-mobile li {
    position: relative;
    border-bottom: 0;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    font-size: 18px;
    font-weight: 700;
    color: #37423b;
    white-space: normal;
    line-height: 1.35;
    transition: all 0.25s ease;
  }

  .navbar-mobile a:hover,
  .navbar-mobile .active,
  .navbar-mobile li:hover > a {
    color: #198754 !important;
    background: rgba(25, 135, 84, 0.10);
  }

  .navbar-mobile .active {
    border-left: 5px solid #198754;
    font-weight: 800;
  }

  .navbar-mobile a:active {
    transform: scale(0.98);
    background: rgba(25, 135, 84, 0.18);
  }

  .navbar-mobile .dropdown > a {
    position: relative;
  }

  .navbar-mobile .dropdown > a i {
    font-size: 18px;
    transition: transform 0.25s ease;
  }

  .navbar-mobile .dropdown ul {
    position: static;
    display: none;
    margin: 6px 18px 12px 18px;
    padding: 8px 0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.10);
    animation: cfmrvSubmenuSlide 0.25s ease forwards;
  }

  .navbar-mobile .dropdown > .dropdown-active {
    display: block;
  }

  .navbar-mobile .dropdown ul a {
    padding: 11px 18px;
    font-size: 16px;
    font-weight: 600;
  }

  .navbar-mobile img,
  .navbar-mobile a img {
    width: 30px;
    height: auto;
  }
}

@media (max-width: 767.98px) {
  .navbar-mobile .mobile-nav-toggle {
    top: 18px;
    right: 20px;
    font-size: 32px;
  }

  .navbar-mobile ul {
    top: 72px;
    left: 18px;
    right: 18px;
    max-height: calc(100vh - 110px);
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    padding: 13px 20px;
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .navbar-mobile ul {
    top: 70px;
    left: 16px;
    right: 16px;
    max-height: calc(100vh - 100px);
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    font-size: 17px;
    padding: 12px 18px;
  }

  .navbar-mobile .dropdown ul a {
    font-size: 16px;
  }
}

@keyframes cfmrvMenuFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cfmrvMenuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cfmrvSubmenuSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   FORMS / CARDS / TABLES - GLOBAL SAFETY
   ===================================================== */

.card,
.card-block,
.card-header {
  max-width: 100%;
}

form .row {
  row-gap: 12px;
}

.form-control,
.form-select,
select,
textarea,
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"] {
  max-width: 100%;
}

.btn {
  white-space: normal;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  max-width: 100%;
}

.table th,
.table td {
  vertical-align: middle;
}

@media (max-width: 767.98px) {
  section {
    padding: 36px 0;
  }

  .card-header,
  .card-block,
  .card-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .btn,
  .btn-lg {
    width: 100%;
    margin-top: 6px;
  }

  .float-end {
    float: none !important;
  }

  .table th,
  .table td {
    white-space: nowrap;
    font-size: 13px;
  }
}

/* =====================================================
   SECTION HEADER DESIGN
   ===================================================== */

.section-title {
  padding-bottom: 34px;
  margin-bottom: 30px !important;
}

.section-title .row,
.section-title .text-center.bg-success,
.section-title .row.bg-success,
.cfmrv-section-header {
  background: linear-gradient(135deg, #168a4f 0%, #1b8f5a 100%) !important;
  border: 0 !important;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(30, 100, 60, 0.12);
  margin-left: 0;
  margin-right: 0;
}

.section-title p,
.cfmrv-section-header p {
  color: #ffffff !important;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  margin: 0;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .section-title {
    padding-bottom: 26px;
  }

  .section-title p,
  .cfmrv-section-header p {
    font-size: 26px;
    padding: 12px 16px;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    padding-bottom: 22px;
  }

  .section-title .row,
  .section-title .text-center.bg-success,
  .section-title .row.bg-success,
  .cfmrv-section-header {
    border-radius: 4px;
  }

  .section-title p,
  .cfmrv-section-header p {
    font-size: 20px;
    line-height: 1.3;
    padding: 10px 12px;
    letter-spacing: 0;
  }
}

@media (max-width: 420px) {
  .section-title p,
  .cfmrv-section-header p {
    font-size: 19px;
  }
}

@media (min-width: 992px) {
  .cfmrv-header-fund-summary {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .cfmrv-header-fund-summary .cfmrv-section-header,
  .cfmrv-header-fund-summary > .row,
  .cfmrv-header-funds .cfmrv-section-header,
  .cfmrv-header-news .cfmrv-section-header,
  .cfmrv-header-funds > .text-center,
  .cfmrv-header-news > .text-center {
    width: 100% !important;
    max-width: 100% !important;
  }

  .cfmrv-header-funds,
  .cfmrv-header-news {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* =====================================================
   FUND SUMMARY CHART LAYOUT
   ===================================================== */

.highcharts-container,
.highcharts-root {
  max-width: none !important;
}

.cfmrv-chart-row {
  width: 100%;
}

.cfmrv-chart-col {
  overflow: hidden;
  background: #fff;
}

.chart-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  overflow: hidden;
}

.cfmrv-pie-figure {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  overflow: visible;
}

.cfmrv-pie-chart {
  width: 100%;
  margin: 0 auto;
}

.cfmrv-pie-figure .highcharts-container,
.cfmrv-pie-figure .highcharts-root {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* additional */
.cfmrv-chart-col {
  overflow: hidden;
  background: #fff;
  padding: 20px 24px;
}

.cfmrv-pie-figure {
  padding: 0;
}

.highcharts-title {
  font-weight: 700 !important;
}

.highcharts-data-label text,
.highcharts-data-label span {
  font-weight: 700 !important;
  text-align: center;
}

@media (min-width: 992px) {
  #about > .container:first-child {
    max-width: 1280px !important;
    width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #about > .container:first-child .cfmrv-header-fund-summary,
  #about > .container:first-child .cfmrv-header-fund-summary .row,
  #about > .container:first-child .cfmrv-chart-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #about > .container:first-child .cfmrv-header-fund-summary .row {
    width: 100% !important;
    max-width: 100% !important;
  }

  .cfmrv-pie-chart {
    width: 620px !important;
    height: 500px !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .cfmrv-chart-row {
    margin-left: 0;
    margin-right: 0;
  }

  .cfmrv-chart-col {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 12px;
  }

  .cfmrv-pie-figure {
    width: 100% !important;
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .cfmrv-pie-chart {
    width: 100% !important;
    height: 460px !important;
  }
}

@media (max-width: 767.98px) {
  .cfmrv-chart-row {
    margin-left: 0;
    margin-right: 0;
  }

  .cfmrv-chart-col {
    padding-left: 0;
    padding-right: 0;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  .cfmrv-pie-figure {
    width: 100% !important;
    max-width: 440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .cfmrv-pie-chart {
    width: 100% !important;
    height: 390px !important;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cfmrv-pie-figure {
    max-width: 360px !important;
  }

  .cfmrv-pie-chart {
    height: 360px !important;
  }
}

/* =====================================================
   PROJECT LOCATION MAP + LEGEND
   ===================================================== */

.cfmrv-map-section .section-title {
  padding-bottom: 28px;
}

.cfmrv-map-row {
  align-items: stretch;
}

.cfmrv-map-col,
.cfmrv-map-legend-col {
  background: #fff;
}

#map {
  width: 100% !important;
  height: 600px !important;
  min-height: 600px;
}

.cfmrv-map-legend-col {
  height: 600px;
  max-height: 600px;
  overflow: hidden;
  padding-top: 14px;
  padding-bottom: 30px;
}

.cfmrv-province-search-wrap {
  background: #fff;
  padding: 0 8px 12px 8px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.cfmrv-province-search {
  border-radius: 8px;
  border: 1px solid #dce3df;
  font-size: 14px;
}

.legend-container {
  margin-top: 0;
  padding: 0 8px 45px 8px;
  height: calc(600px - 72px);
  overflow-y: auto;
  overflow-x: hidden;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 4px 6px;
  transition: all 0.2s ease;
}

.legend-item:hover {
  font-weight: 700;
  background: rgba(40, 167, 69, 0.08);
  transform: translateX(3px);
}

.cfmrv-province-name,
.legend-item .project-count,
.project-count {
  flex: 1;
  line-height: 1.3;
  font-size: 14px;
}

.fund-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.fund-count,
.legend-item .marker {
  flex: 0 0 auto;
}

.legend-item .marker,
.legend-item .marker.project-count {
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  min-width: 28px !important;
  border-radius: 50% !important;
  border: 1px solid #000 !important;
  background-color: #0d6efd !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-block !important;
  margin-right: 5px !important;
}

.fund-count {
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  min-width: 28px !important;
  border-radius: 50% !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-block !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fund-count:hover {
  font-weight: 700;
  transform: scale(1.08);
}

.custom-tooltip {
  font-size: 14px;
  font-family: 'Phetsarath OT', sans-serif;
}

@media (min-width: 992px) {
  .cfmrv-map-section {
    max-width: 1320px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .cfmrv-map-section .cfmrv-header-map,
  .cfmrv-map-section .cfmrv-map-row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .cfmrv-map-section .cfmrv-map-row {
    --bs-gutter-x: 0;
  }

  .cfmrv-map-section .cfmrv-map-col,
  .cfmrv-map-section .cfmrv-map-legend-col {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #map {
    height: 520px !important;
    min-height: 520px;
  }

  .cfmrv-map-legend-col {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .cfmrv-province-search-wrap {
    padding: 0 12px 14px 12px;
  }

  .legend-container {
    height: auto;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    padding: 0 12px 20px 12px;
  }

  .legend-item {
    margin-bottom: 6px;
  }
}

@media (max-width: 767.98px) {
  #map {
    height: 430px !important;
    min-height: 430px;
  }

  .cfmrv-map-section .section-title {
    padding-bottom: 18px;
  }

  .cfmrv-map-col,
  .cfmrv-map-legend-col {
    border-left: 0 !important;
    border-right: 0 !important;
  }

  .cfmrv-map-legend-col {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .cfmrv-province-search-wrap {
    padding: 0 14px 14px 14px;
  }

  .legend-container {
    height: auto;
    overflow: visible;
    padding: 0 14px 24px 14px;
  }

  .legend-item {
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .project-count {
    font-size: 16px;
  }

  .fund-counts {
    margin-left: 8px;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  #map {
    height: 380px !important;
    min-height: 380px;
  }

  .project-count {
    font-size: 15px;
  }

  .fund-count,
  .legend-item .marker {
    width: 25px !important;
    height: 25px !important;
    line-height: 25px !important;
    min-width: 25px !important;
    font-size: 12px !important;
  }
}

/* =====================================================
   COUNTS SECTION
   ===================================================== */

.cfmrv-counts-section {
  padding: 50px 0;
  background: linear-gradient(180deg, #f7faf8 0%, #eef7f1 100%);
}

.cfmrv-counts-row {
  row-gap: 24px;
}

.cfmrv-count-card {
  background: #ffffff;
  border: 1px solid rgba(48, 157, 82, 0.16);
  border-radius: 16px;
  padding: 28px 16px 24px 16px;
  min-height: 170px;
  box-shadow: 0 8px 24px rgba(30, 100, 60, 0.08);
  transition: all 0.25s ease;
}

.cfmrv-count-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(30, 100, 60, 0.14);
  border-color: rgba(48, 157, 82, 0.32);
}

.cfmrv-count-card span {
  display: block;
  color: #309d52;
  font-size: 58px;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 14px;
}

.cfmrv-count-card p {
  margin: 0;
  color: #37423b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .cfmrv-counts-section {
    padding: 42px 0;
  }

  .cfmrv-count-card {
    min-height: 155px;
  }

  .cfmrv-count-card span {
    font-size: 52px;
  }

  .cfmrv-count-card p {
    font-size: 17px;
  }
}

@media (max-width: 767.98px) {
  .cfmrv-counts-section {
    padding: 34px 0;
  }

  .cfmrv-counts-row {
    row-gap: 16px;
  }

  .cfmrv-count-card {
    border-radius: 12px;
    padding: 22px 10px 20px 10px;
    min-height: 138px;
  }

  .cfmrv-count-card span {
    font-size: 46px;
    margin-bottom: 10px;
  }

  .cfmrv-count-card p {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .cfmrv-count-card {
    min-height: 125px;
    padding: 18px 8px;
  }

  .cfmrv-count-card span {
    font-size: 40px;
  }

  .cfmrv-count-card p {
    font-size: 14px;
  }
}

/* =====================================================
   FUNDS CARDS
   ===================================================== */

#why-us {
  padding: 55px 0;
  background: #ffffff;
}

#why-us .section-title {
  padding-bottom: 32px;
}

#why-us .content {
  height: 100%;
  min-height: 520px;
  padding: 34px 32px;
  background: linear-gradient(145deg, #48c777 0%, #64d486 100%);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(30, 100, 60, 0.12);
  display: flex;
  flex-direction: column;
  transition: all 0.28s ease;
}

#why-us .content:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(30, 100, 60, 0.18);
}

#why-us .content h3 {
  min-height: 110px;
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 28px;
  color: #ffffff;
  font-weight: 800;
}

#why-us .content p {
  flex-grow: 1;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 28px;
}

#why-us .content .text-center {
  margin-top: auto;
}

#why-us .content .more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.25s ease;
}

#why-us .content .more-btn:hover {
  background: #ffffff;
  color: #198754;
  transform: translateX(3px);
}

#why-us .content .more-btn i {
  font-size: 18px;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #why-us .content {
    min-height: 460px;
    padding: 30px 32px;
  }

  #why-us .content h3 {
    min-height: 90px;
    font-size: 32px;
  }

  #why-us .content p {
    font-size: 16px;
  }
}

@media (max-width: 767.98px) {
  #why-us {
    padding: 38px 0;
  }

  #why-us .section-title {
    padding-bottom: 22px;
  }

  #why-us .content {
    min-height: auto;
    padding: 30px 26px;
    border-radius: 8px;
  }

  #why-us .content h3 {
    min-height: auto;
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 24px;
  }

  #why-us .content p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 26px;
  }

  #why-us .content .more-btn {
    min-width: 190px;
    font-size: 15px;
    padding: 10px 22px;
  }
}

@media (max-width: 420px) {
  #why-us .content {
    padding: 26px 22px;
  }

  #why-us .content h3 {
    font-size: 28px;
  }

  #why-us .content p {
    font-size: 15px;
  }
}

/* =====================================================
   NEWS AND EVENTS CARDS
   ===================================================== */

#popular-courses {
  padding: 55px 0;
  background: #ffffff;
}

#popular-courses .section-title {
  padding-bottom: 42px;
}

#events {
  padding: 0;
}

#events .row {
  row-gap: 70px;
}

.events .card {
  padding: 0 22px;
  margin-bottom: 30px;
  border: 0;
  background: transparent;
}

.events .card-img {
  width: 100%;
  margin-left: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(30, 100, 60, 0.12);
}

.events .card-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: all 0.35s ease;
}

.events .card:hover .card-img img {
  transform: scale(1.04);
}

.events .card-body {
  width: 86%;
  margin: -70px auto 0 auto;
  padding: 28px 30px;
  border-top: 4px solid #309d52;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(30, 100, 60, 0.12);
  transition: all 0.28s ease;
}

.events .card:hover .card-body {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(30, 100, 60, 0.16);
}

.events .card-title {
  margin-bottom: 18px;
  text-align: center;
}

.events .card-title a {
  color: #37423b;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
}

.events .card-title a:hover {
  color: #309d52;
}

.events .card-text {
  color: #4f5b55;
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #popular-courses {
    padding: 45px 0;
  }

  #events .row {
    row-gap: 60px;
  }

  .events .card {
    padding: 0 10px;
  }

  .events .card-img img {
    height: 300px;
  }

  .events .card-body {
    width: 88%;
    margin-top: -55px;
    padding: 24px 24px;
  }

  .events .card-title a {
    font-size: 19px;
  }
}

@media (max-width: 767.98px) {
  #popular-courses {
    padding: 38px 0;
  }

  #popular-courses .section-title {
    padding-bottom: 28px;
  }

  #events .row {
    row-gap: 55px;
  }

  .events .card {
    padding: 0;
    margin-bottom: 20px;
  }

  .events .card-img {
    border-radius: 8px;
  }

  .events .card-img img {
    height: 300px;
  }

  .events .card-body {
    width: 86%;
    margin-top: -50px;
    padding: 24px 22px;
  }

  .events .card-title {
    margin-bottom: 14px;
  }

  .events .card-title a {
    font-size: 22px;
    line-height: 1.35;
  }

  .events .card-text {
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .events .card-img img {
    height: 260px;
  }

  .events .card-body {
    width: 88%;
    margin-top: -45px;
    padding: 22px 18px;
  }

  .events .card-title a {
    font-size: 19px;
  }

  .events .card-text {
    font-size: 14px;
  }
}

/* =====================================================
   FOOTER
   ===================================================== */

.cfmrv-footer {
  background: #f7faf8;
  color: #37423b;
  margin-top: 40px;
}

.cfmrv-footer-top {
  padding: 65px 0 50px 0;
  background: #f7faf8;
  border-top: 1px solid rgba(25, 135, 84, 0.12);
}

.cfmrv-footer .footer-links {
  margin-bottom: 0;
}

.cfmrv-footer .footer-links h4 {
  font-size: 20px;
  font-weight: 800;
  color: #2f3f36;
  margin-bottom: 24px;
  line-height: 1.35;
  position: relative;
}

.cfmrv-footer .footer-links h4::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: #198754;
  border-radius: 5px;
  margin-top: 12px;
}

.cfmrv-footer .footer-links p {
  color: #4f5b55;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.cfmrv-footer .footer-links p i {
  color: #198754;
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
}

.cfmrv-footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cfmrv-footer .footer-links ul li {
  display: flex;
  align-items: flex-start;
  padding-bottom: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.cfmrv-footer .footer-links ul i {
  color: #198754;
  font-size: 18px;
  line-height: 1.4;
  padding-right: 6px;
  flex: 0 0 auto;
}

.cfmrv-footer .footer-links ul a {
  color: #5f6b65;
  transition: all 0.25s ease;
}

.cfmrv-footer .footer-links ul a:hover {
  color: #198754;
  padding-left: 4px;
}

.cfmrv-footer-bottom {
  background: linear-gradient(135deg, #198754 0%, #2f9e4d 100%);
  padding: 24px 0;
  color: #ffffff;
}

.cfmrv-footer-copy .copyright {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cfmrv-footer-copy .credits {
  font-size: 14px;
}

.cfmrv-footer-copy a {
  color: #ffffff;
  font-weight: 700;
}

.cfmrv-footer-copy a:hover {
  color: #d7ffe4;
}

.cfmrv-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 50%;
  font-size: 19px;
  transition: all 0.25s ease;
}

.cfmrv-footer-social a:hover {
  background: #ffffff;
  color: #198754;
  transform: translateY(-4px);
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .cfmrv-footer-top {
    padding: 60px 0 45px 0;
  }

  .cfmrv-footer-top .row {
    row-gap: 42px;
  }

  .cfmrv-footer .footer-links:nth-child(3) {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  footer,
  #footer {
    text-align: center;
  }

  .cfmrv-footer {
    margin-top: 30px;
  }

  .cfmrv-footer-top {
    padding: 55px 0 35px 0;
    text-align: center;
  }

  .cfmrv-footer .footer-links {
    margin-bottom: 40px;
  }

  .cfmrv-footer .footer-links h4 {
    font-size: 19px;
    margin-bottom: 22px;
  }

  .cfmrv-footer .footer-links h4::after {
    margin-left: auto;
    margin-right: auto;
  }

  .cfmrv-footer .footer-links ul {
    display: inline-block;
    text-align: left;
  }

  .cfmrv-footer .footer-links ul li {
    justify-content: flex-start;
    text-align: left;
    font-size: 15px;
  }

  .cfmrv-footer-bottom {
    padding: 28px 0 52px 0;
    text-align: center;
  }

  .cfmrv-footer-social {
    margin-top: 18px;
  }

  .cfmrv-footer-social a {
    margin: 5px;
  }
}

@media (max-width: 420px) {
  .cfmrv-footer-top {
    padding-top: 50px;
  }

  .cfmrv-footer .footer-links h4 {
    font-size: 18px;
  }
}

/* =====================================================
   PRELOADER + BACK TO TOP
   ===================================================== */

#preloader {
  background: #ffffff;
}

#preloader:before {
  border: 6px solid #198754;
  border-top-color: #e8f5ee;
  border-bottom-color: #e8f5ee;
}

.back-to-top {
  background: #198754;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(25, 135, 84, 0.25);
  transition: all 0.25s ease;
  z-index: 996;
}

.back-to-top i {
  font-size: 30px;
  color: #ffffff;
  line-height: 0;
}

.back-to-top:hover {
  background: #198754;
  transform: translateY(-4px);
}

@media (max-width: 991.98px) {
  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 767.98px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .back-to-top i {
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

/* =====================================================
   PROJECT ANALYSIS / PROJECT LIST PAGE
   ===================================================== */

.cfmrv-project-page {
  padding-top: 130px;
  background: #f8faf9;
}

.cfmrv-project-page .container {
  border-radius: 12px;
  padding: 24px;
}

.cfmrv-project-filter-form {
  margin-bottom: 22px;
}

.cfmrv-project-title,
.cfmrv-project-page h5,
.cfmrv-project-page h6 {
  color: #0d6efd;
  font-weight: 800;
}

.cfmrv-project-title {
  margin-bottom: 0;
}

.cfmrv-filter-label {
  display: block;
  color: #0d6efd;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 8px;
}

.cfmrv-project-page select,
.cfmrv-filter-select {
  width: 100%;
  min-height: 54px;
  border-radius: 10px;
  font-size: 15px;
  border: 1px solid #ced4da;
  box-shadow: none;
  transition: all .2s ease;
}

.cfmrv-filter-select:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, .15);
}

.cfmrv-project-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.cfmrv-project-actions .btn {
  flex: 1;
  min-height: 54px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  line-height: 1.2 !important;
  text-align: center;
  white-space: normal;
}

.cfmrv-project-actions .btn i {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.cfmrv-table-hint {
  display: none;
}

/* Table wrapper */
.cfmrv-project-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  display: block;
  position: relative;
  border-radius: 0 0 12px 12px;
  background: #ffffff;
}

.cfmrv-project-table-wrap table {
  min-width: 1550px !important;
  width: max-content !important;
  margin-bottom: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.cfmrv-project-table-wrap th,
.cfmrv-project-table-wrap td {
  vertical-align: middle;
  white-space: normal;
  padding: 12px 14px;
  font-size: 14px;
  background-clip: border-box;
}

.cfmrv-project-table-wrap th {
  font-weight: 800;
  text-align: center;
}

.cfmrv-project-table-wrap td {
  color: #2f3f36;
  background: #ffffff;
}

.cfmrv-project-table-wrap tbody tr:hover td {
  background: #f6fbf8;
}

/* IMPORTANT: reset all sticky positions first */
.cfmrv-project-table-wrap th,
.cfmrv-project-table-wrap td {
  position: static !important;
  left: auto !important;
  right: auto !important;
}

/* Column widths */
.cfmrv-project-table-wrap th:nth-child(1),
.cfmrv-project-table-wrap td:nth-child(1) {
  min-width: 72px !important;
  width: 72px !important;
  max-width: 72px !important;
  text-align: center;
}

.cfmrv-project-table-wrap th:nth-child(2),
.cfmrv-project-table-wrap td:nth-child(2) {
  min-width: 170px !important;
  width: 170px !important;
  max-width: 170px !important;
}

.cfmrv-project-table-wrap th:nth-child(3),
.cfmrv-project-table-wrap td:nth-child(3) {
  min-width: 320px !important;
}

/* Sticky No. column */
.cfmrv-project-table-wrap th:nth-child(1),
.cfmrv-project-table-wrap td:nth-child(1) {
  position: sticky !important;
  left: 0 !important;
  z-index: 50 !important;
  background: #ffffff !important;
}

/* Sticky Project Code column */
.cfmrv-project-table-wrap th:nth-child(2),
.cfmrv-project-table-wrap td:nth-child(2) {
  position: sticky !important;
  left: 72px !important;
  z-index: 50 !important;
  background: #ffffff !important;
  box-shadow:
    2px 0 0 rgba(255,255,255,0.95),
    12px 0 16px -12px rgba(0,0,0,.25);
}

/* Sticky header colors */
.cfmrv-project-table-wrap thead th:nth-child(1),
.cfmrv-project-table-wrap thead th:nth-child(2) {
  background: #198754 !important;
  color: #ffffff !important;
  z-index: 100 !important;
}

/* Sticky body background */
.cfmrv-project-table-wrap tbody td:nth-child(1),
.cfmrv-project-table-wrap tbody td:nth-child(2) {
  background-color: #ffffff !important;
  background-image: linear-gradient(#ffffff, #ffffff) !important;
}

/* Sticky hover background */
.cfmrv-project-table-wrap tbody tr:hover td:nth-child(1),
.cfmrv-project-table-wrap tbody tr:hover td:nth-child(2) {
  background-color: #f6fbf8 !important;
  background-image: linear-gradient(#f6fbf8, #f6fbf8) !important;
}

.cfmrv-project-table-wrap th p {
  margin-bottom: 0;
}

/* Tablet */
@media (max-width: 991.98px) {
  .cfmrv-project-page {
    padding-top: 105px;
  }

  .cfmrv-project-page .container {
    padding: 20px;
  }

  .cfmrv-project-title {
    margin-bottom: 8px;
  }

  .cfmrv-table-hint {
    display: block !important;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #198754;
    background: #f3fbf6;
    border-bottom: 1px solid #dce3df;
  }

  .cfmrv-project-actions {
    margin-top: 10px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .cfmrv-project-page {
    padding-top: 85px;
  }

  .cfmrv-project-page .container {
    padding: 14px;
  }

  .cfmrv-project-actions {
    flex-direction: row;
  }

  .cfmrv-project-actions .btn {
    font-size: 14px;
  }

  .cfmrv-project-table-wrap table {
    min-width: 1500px !important;
  }

  .cfmrv-project-table-wrap th,
  .cfmrv-project-table-wrap td {
    font-size: 13px;
    padding: 10px 12px;
  }

  .cfmrv-project-table-wrap th:nth-child(1),
  .cfmrv-project-table-wrap td:nth-child(1) {
    min-width: 58px !important;
    width: 58px !important;
    max-width: 58px !important;
    left: 0 !important;
  }

  .cfmrv-project-table-wrap th:nth-child(2),
  .cfmrv-project-table-wrap td:nth-child(2) {
    min-width: 138px !important;
    width: 138px !important;
    max-width: 138px !important;
    left: 58px !important;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .cfmrv-project-table-wrap th:nth-child(1),
  .cfmrv-project-table-wrap td:nth-child(1) {
    min-width: 52px !important;
    width: 52px !important;
    max-width: 52px !important;
    left: 0 !important;
  }

  .cfmrv-project-table-wrap th:nth-child(2),
  .cfmrv-project-table-wrap td:nth-child(2) {
    min-width: 128px !important;
    width: 128px !important;
    max-width: 128px !important;
    left: 52px !important;
  }
}

/* Hide left-edge text behind sticky No. column */
.cfmrv-project-table-wrap th:nth-child(1),
.cfmrv-project-table-wrap td:nth-child(1) {
  overflow: visible !important;
}

.cfmrv-project-table-wrap th:nth-child(1)::before,
.cfmrv-project-table-wrap td:nth-child(1)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22px;
  width: 22px;
  background: inherit;
  z-index: 1;
}

.cfmrv-project-table-wrap th:nth-child(1),
.cfmrv-project-table-wrap td:nth-child(1) {
  isolation: isolate;
}

.cfmrv-project-table-wrap thead th:nth-child(1)::before {
  background: #198754;
}

.cfmrv-project-table-wrap tbody td:nth-child(1)::before {
  background: #ffffff;
}

.cfmrv-project-table-wrap tbody tr:hover td:nth-child(1)::before {
  background: #f6fbf8;
}

/* =====================================================
   ANALYSIS PAGE TABLE - SAME STICKY STYLE
   Stick No. + Project Code while scrolling
   ===================================================== */

.cfmrv-analysis-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  display: block;
  position: relative;
  background: #ffffff;
}

.cfmrv-analysis-table-wrap table {
  min-width: 1550px !important;
  width: max-content !important;
  margin-bottom: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.cfmrv-analysis-table-wrap th,
.cfmrv-analysis-table-wrap td {
  position: static !important;
  left: auto !important;
  right: auto !important;
  vertical-align: middle;
  white-space: normal;
  padding: 12px 14px;
  font-size: 14px;
  background-clip: border-box;
}

.cfmrv-analysis-table-wrap th {
  font-weight: 800;
  text-align: center;
}

.cfmrv-analysis-table-wrap td {
  color: #2f3f36;
  background: #ffffff;
}

.cfmrv-analysis-table-wrap tbody tr:hover td {
  background: #f6fbf8;
}

/* Column width */
.cfmrv-analysis-table-wrap th:nth-child(1),
.cfmrv-analysis-table-wrap td:nth-child(1) {
  min-width: 72px !important;
  width: 72px !important;
  max-width: 72px !important;
  text-align: center;
}

.cfmrv-analysis-table-wrap th:nth-child(2),
.cfmrv-analysis-table-wrap td:nth-child(2) {
  min-width: 170px !important;
  width: 170px !important;
  max-width: 170px !important;
  white-space: nowrap;
}

.cfmrv-analysis-table-wrap th:nth-child(3),
.cfmrv-analysis-table-wrap td:nth-child(3) {
  min-width: 320px !important;
}

/* Sticky No. */
.cfmrv-analysis-table-wrap th:nth-child(1),
.cfmrv-analysis-table-wrap td:nth-child(1) {
  position: sticky !important;
  left: 0 !important;
  z-index: 50 !important;
  background: #ffffff !important;
}

/* Sticky Project Code */
.cfmrv-analysis-table-wrap th:nth-child(2),
.cfmrv-analysis-table-wrap td:nth-child(2) {
  position: sticky !important;
  left: 72px !important;
  z-index: 50 !important;
  background: #ffffff !important;
  box-shadow:
    2px 0 0 rgba(255,255,255,0.95),
    12px 0 16px -12px rgba(0,0,0,.25);
}

/* Sticky header */
.cfmrv-analysis-table-wrap thead th:nth-child(1),
.cfmrv-analysis-table-wrap thead th:nth-child(2) {
  background: #198754 !important;
  color: #ffffff !important;
  z-index: 100 !important;
}

/* Body sticky background */
.cfmrv-analysis-table-wrap tbody td:nth-child(1),
.cfmrv-analysis-table-wrap tbody td:nth-child(2) {
  background-color: #ffffff !important;
  background-image: linear-gradient(#ffffff, #ffffff) !important;
}

/* Hover sticky background */
.cfmrv-analysis-table-wrap tbody tr:hover td:nth-child(1),
.cfmrv-analysis-table-wrap tbody tr:hover td:nth-child(2) {
  background-color: #f6fbf8 !important;
  background-image: linear-gradient(#f6fbf8, #f6fbf8) !important;
}

/* Hide left-edge text behind sticky No. column */
.cfmrv-analysis-table-wrap th:nth-child(1),
.cfmrv-analysis-table-wrap td:nth-child(1) {
  overflow: visible !important;
  isolation: isolate;
}

.cfmrv-analysis-table-wrap th:nth-child(1)::before,
.cfmrv-analysis-table-wrap td:nth-child(1)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22px;
  width: 22px;
  background: inherit;
  z-index: 1;
}

.cfmrv-analysis-table-wrap thead th:nth-child(1)::before {
  background: #198754;
}

.cfmrv-analysis-table-wrap tbody td:nth-child(1)::before {
  background: #ffffff;
}

.cfmrv-analysis-table-wrap tbody tr:hover td:nth-child(1)::before {
  background: #f6fbf8;
}

/* Mobile */
@media (max-width: 767.98px) {
  .cfmrv-analysis-table-wrap table {
    min-width: 1500px !important;
  }

  .cfmrv-analysis-table-wrap th,
  .cfmrv-analysis-table-wrap td {
    font-size: 13px;
    padding: 10px 12px;
  }

  .cfmrv-analysis-table-wrap th:nth-child(1),
  .cfmrv-analysis-table-wrap td:nth-child(1) {
    min-width: 58px !important;
    width: 58px !important;
    max-width: 58px !important;
    left: 0 !important;
  }

  .cfmrv-analysis-table-wrap th:nth-child(2),
  .cfmrv-analysis-table-wrap td:nth-child(2) {
    min-width: 138px !important;
    width: 138px !important;
    max-width: 138px !important;
    left: 58px !important;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .cfmrv-analysis-table-wrap th:nth-child(1),
  .cfmrv-analysis-table-wrap td:nth-child(1) {
    min-width: 52px !important;
    width: 52px !important;
    max-width: 52px !important;
  }

  .cfmrv-analysis-table-wrap th:nth-child(2),
  .cfmrv-analysis-table-wrap td:nth-child(2) {
    min-width: 128px !important;
    width: 128px !important;
    max-width: 128px !important;
    left: 52px !important;
  }
}

/* =====================================================
   GLOBAL BOOTSTRAP BUTTON COLOR ALIGNMENT
   Color only; does not change layout or sizing
   ===================================================== */

.btn-primary,
.btn-info,
.btn-success {
  background-color: #198754 !important;
  border-color: #198754 !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-info:hover,
.btn-success:hover,
.btn-primary:focus,
.btn-info:focus,
.btn-success:focus {
  background-color: #157347 !important;
  border-color: #146c43 !important;
  color: #ffffff !important;
}

.btn-primary:active,
.btn-info:active,
.btn-success:active,
.btn-primary.active,
.btn-info.active,
.btn-success.active {
  background-color: #146c43 !important;
  border-color: #13653f !important;
  color: #ffffff !important;
}

.btn-outline-success {
  color: #198754 !important;
  border-color: #198754 !important;
}

.btn-outline-success:hover {
  background-color: #198754 !important;
  border-color: #198754 !important;
  color: #ffffff !important;
}

/* =====================================================
   GLOBAL FILTER + ACTION BUTTONS
   Compact backend-style controls for Project, Analysis, Search, Report pages
   ===================================================== */

.cfmrv-filter-group label,
.cfmrv-filter-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0d6efd;
}

.cfmrv-filter-group select,
.cfmrv-filter-group input,
.cfmrv-filter-select,
.form-filter-control,
.cfmrv-report-control,
.cfmrv-project-filter-form select,
.cfmrv-project-filter-form .form-control {
  width: 100%;
  height: 46px !important;
  min-height: 46px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  transition: all .2s ease;
}

.cfmrv-filter-group select:focus,
.cfmrv-filter-group input:focus,
.cfmrv-filter-select:focus,
.form-filter-control:focus,
.cfmrv-report-control:focus,
.cfmrv-project-filter-form select:focus,
.cfmrv-project-filter-form .form-control:focus {
  border-color: #198754 !important;
  box-shadow: 0 0 0 0.15rem rgba(25, 135, 84, .15) !important;
  outline: none !important;
}

.cfmrv-project-actions,
.cfmrv-page-actions,
.cfmrv-filter-actions,
.cfmrv-report-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.cfmrv-project-actions .btn,
.cfmrv-page-actions .btn,
.cfmrv-filter-actions .btn,
.cfmrv-report-actions .btn,
.cfmrv-search-btn,
.cfmrv-reset-btn,
.cfmrv-export-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 115px !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.cfmrv-search-btn,
.cfmrv-export-btn {
  background: #198754 !important;
  border: 1px solid #198754 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(25, 135, 84, 0.18);
}

.cfmrv-search-btn:hover,
.cfmrv-export-btn:hover {
  background: #157347 !important;
  border-color: #146c43 !important;
  color: #ffffff !important;
}

.cfmrv-reset-btn {
  background: #6c757d !important;
  border: 1px solid #6c757d !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(108, 117, 125, 0.16);
}

.cfmrv-reset-btn:hover {
  background: #5a6268 !important;
  border-color: #5a6268 !important;
  color: #ffffff !important;
}

.cfmrv-search-btn i,
.cfmrv-reset-btn i,
.cfmrv-export-btn i {
  font-size: 14px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.cfmrv-project-filter-form .row {
  align-items: end !important;
}

@media (min-width: 992px) {
  .cfmrv-project-filter-form .row {
    display: flex;
    flex-wrap: nowrap;
  }
}

@media (max-width: 991.98px) {
  .cfmrv-project-filter-form .row {
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .cfmrv-project-actions,
  .cfmrv-page-actions,
  .cfmrv-filter-actions,
  .cfmrv-report-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
  }

  .cfmrv-project-actions .btn,
  .cfmrv-page-actions .btn,
  .cfmrv-filter-actions .btn,
  .cfmrv-report-actions .btn,
  .cfmrv-search-btn,
  .cfmrv-reset-btn,
  .cfmrv-export-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 6px !important;
    font-size: 13px !important;
  }
}

/* =====================================================
   REPORT PAGE MODERN VIEW
   ===================================================== */

.cfmrv-report-page {
  padding: 130px 0 50px;
  background: #f8faf9;
}

.cfmrv-report-container {
  max-width: 1320px;
}

.cfmrv-report-filter-shell,
.cfmrv-report-chart-panel,
.cfmrv-report-data-panel {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(30, 100, 60, 0.08);
  margin-bottom: 24px;
}

.cfmrv-report-filter-card {
  padding: 20px 24px 22px;
  background: #eef5f1;
  border-radius: 14px;
}

.cfmrv-report-title {
  color: #0d6efd;
  font-weight: 800;
  margin-bottom: 0;
  text-transform: uppercase;
}

.cfmrv-report-control {
  min-height: 54px;
  border-radius: 10px;
}

.cfmrv-report-search-col {
  display: flex;
  align-items: end;
}

.cfmrv-report-chart-panel {
  padding: 18px;
  margin-top: 24px;
}

.cfmrv-report-export-row {
  margin: 18px 0;
}

.cfmrv-report-export-wrap {
  display: flex;
}

.cfmrv-report-export-btn {
  width: 100%;
}

.cfmrv-report-data-panel {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .cfmrv-report-page {
    padding-top: 105px;
  }

  .cfmrv-report-title {
    margin-bottom: 8px;
  }
}

@media (max-width: 767.98px) {
  .cfmrv-report-page {
    padding-top: 85px;
  }

  .cfmrv-report-filter-card {
    padding: 20px;
  }

  .cfmrv-report-chart-panel {
    padding: 10px;
  }
}

/* =====================================================
   SEARCH PAGE MODERN VIEW
   ===================================================== */

.cfmrv-search-page {
  padding: 130px 0 50px;
  background: #f8faf9;
}

.cfmrv-search-container {
  max-width: 1320px;
}

.cfmrv-search-filter-form {
  margin-bottom: 0;
}

.cfmrv-search-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  display: block;
  background: #ffffff;
}

.cfmrv-search-table-wrap table {
  min-width: 1450px !important;
  width: max-content !important;
  margin-bottom: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.cfmrv-search-table-wrap th,
.cfmrv-search-table-wrap td {
  position: static !important;
  left: auto !important;
  vertical-align: middle;
  padding: 12px 14px;
  font-size: 14px;
  background: #ffffff;
}

.cfmrv-search-table-wrap thead th {
  background: #198754 !important;
  color: #ffffff !important;
  text-align: center;
}

.cfmrv-search-table-wrap tbody tr:hover td {
  background: #f6fbf8 !important;
}

.cfmrv-search-table-wrap th:nth-child(1),
.cfmrv-search-table-wrap td:nth-child(1) {
  position: sticky !important;
  left: 0 !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  z-index: 50 !important;
  text-align: center;
}

.cfmrv-search-table-wrap th:nth-child(2),
.cfmrv-search-table-wrap td:nth-child(2) {
  position: sticky !important;
  left: 72px !important;
  width: 170px !important;
  min-width: 170px !important;
  max-width: 170px !important;
  z-index: 50 !important;
  white-space: nowrap;
  box-shadow:
    2px 0 0 rgba(255,255,255,.95),
    12px 0 16px -12px rgba(0,0,0,.25);
}

.cfmrv-search-table-wrap thead th:nth-child(1),
.cfmrv-search-table-wrap thead th:nth-child(2) {
  z-index: 100 !important;
}

.cfmrv-search-table-wrap tbody td:nth-child(1),
.cfmrv-search-table-wrap tbody td:nth-child(2) {
  background: #ffffff !important;
}

.cfmrv-search-table-wrap tbody tr:hover td:nth-child(1),
.cfmrv-search-table-wrap tbody tr:hover td:nth-child(2) {
  background: #f6fbf8 !important;
}

.cfmrv-search-table-wrap th:nth-child(1),
.cfmrv-search-table-wrap td:nth-child(1) {
  overflow: visible !important;
  isolation: isolate;
}

.cfmrv-search-table-wrap th:nth-child(1)::before,
.cfmrv-search-table-wrap td:nth-child(1)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22px;
  width: 22px;
  background: inherit;
  z-index: 1;
}

.cfmrv-search-table-wrap thead th:nth-child(1)::before {
  background: #198754;
}

.cfmrv-search-table-wrap tbody td:nth-child(1)::before {
  background: #ffffff;
}

.cfmrv-search-table-wrap tbody tr:hover td:nth-child(1)::before {
  background: #f6fbf8;
}

.cfmrv-empty-result {
  background: #dc3545;
  color: #ffffff;
  padding: 16px;
  text-align: center;
  border-radius: 10px;
  font-weight: 700;
}

.highlight {
  background: #fff3cd;
  color: #000;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .cfmrv-search-page {
    padding-top: 105px;
  }
}

@media (max-width: 767.98px) {
  .cfmrv-search-page {
    padding-top: 85px;
  }

  .cfmrv-search-table-wrap table {
    min-width: 1400px !important;
  }

  .cfmrv-search-table-wrap th,
  .cfmrv-search-table-wrap td {
    font-size: 13px;
    padding: 10px 12px;
  }

  .cfmrv-search-table-wrap th:nth-child(1),
  .cfmrv-search-table-wrap td:nth-child(1) {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }

  .cfmrv-search-table-wrap th:nth-child(2),
  .cfmrv-search-table-wrap td:nth-child(2) {
    left: 58px !important;
    width: 138px !important;
    min-width: 138px !important;
    max-width: 138px !important;
  }
}

/* =====================================================
   REPORT TABLE FINAL FIX
   Keeps horizontal swipe + sticky No. and Project Code
   ===================================================== */

.cfmrv-report-data-panel {
  overflow: hidden;
}

.cfmrv-report-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  display: block;
  position: relative;
  background: #ffffff;
}

.cfmrv-report-table-wrap table {
  min-width: 1550px !important;
  width: max-content !important;
  margin-bottom: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.cfmrv-report-table-wrap th,
.cfmrv-report-table-wrap td {
  position: static !important;
  left: auto !important;
  right: auto !important;
  vertical-align: middle;
  white-space: normal;
  padding: 12px 14px;
  font-size: 14px;
  background: #ffffff;
  background-clip: border-box;
}

.cfmrv-report-table-wrap thead th {
  background: #198754 !important;
  color: #ffffff !important;
  text-align: center;
  font-weight: 800;
}

.cfmrv-report-table-wrap tbody tr:hover td {
  background: #f6fbf8 !important;
}

.cfmrv-report-table-wrap th:nth-child(1),
.cfmrv-report-table-wrap td:nth-child(1) {
  position: sticky !important;
  left: 0 !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  z-index: 50 !important;
  text-align: center;
  background: #ffffff !important;
  overflow: visible !important;
  isolation: isolate;
}

.cfmrv-report-table-wrap th:nth-child(2),
.cfmrv-report-table-wrap td:nth-child(2) {
  position: sticky !important;
  left: 72px !important;
  width: 170px !important;
  min-width: 170px !important;
  max-width: 170px !important;
  z-index: 50 !important;
  white-space: nowrap;
  background: #ffffff !important;
  box-shadow:
    2px 0 0 rgba(255,255,255,.95),
    12px 0 16px -12px rgba(0,0,0,.25);
}

.cfmrv-report-table-wrap thead th:nth-child(1),
.cfmrv-report-table-wrap thead th:nth-child(2) {
  z-index: 100 !important;
  background: #198754 !important;
  color: #ffffff !important;
}

.cfmrv-report-table-wrap tbody tr:hover td:nth-child(1),
.cfmrv-report-table-wrap tbody tr:hover td:nth-child(2) {
  background: #f6fbf8 !important;
}

.cfmrv-report-table-wrap th:nth-child(1)::before,
.cfmrv-report-table-wrap td:nth-child(1)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22px;
  width: 22px;
  background: inherit;
  z-index: 1;
}

.cfmrv-report-table-wrap thead th:nth-child(1)::before {
  background: #198754;
}

.cfmrv-report-table-wrap tbody td:nth-child(1)::before {
  background: #ffffff;
}

.cfmrv-report-table-wrap tbody tr:hover td:nth-child(1)::before {
  background: #f6fbf8;
}

@media (max-width: 767.98px) {
  .cfmrv-report-table-wrap table {
    min-width: 1500px !important;
  }

  .cfmrv-report-table-wrap th,
  .cfmrv-report-table-wrap td {
    font-size: 13px;
    padding: 10px 12px;
  }

  .cfmrv-report-table-wrap th:nth-child(1),
  .cfmrv-report-table-wrap td:nth-child(1) {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    left: 0 !important;
  }

  .cfmrv-report-table-wrap th:nth-child(2),
  .cfmrv-report-table-wrap td:nth-child(2) {
    left: 58px !important;
    width: 138px !important;
    min-width: 138px !important;
    max-width: 138px !important;
  }
}

@media (max-width: 420px) {
  .cfmrv-report-table-wrap th:nth-child(1),
  .cfmrv-report-table-wrap td:nth-child(1) {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
  }

  .cfmrv-report-table-wrap th:nth-child(2),
  .cfmrv-report-table-wrap td:nth-child(2) {
    left: 52px !important;
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
  }
}

/* =====================================================
   ANALYSIS CHECKBOX MOBILE COMPACT LAYOUT
   ===================================================== */

@media (max-width: 767.98px) {
  .cfmrv-analysis-checkbox-col {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 10px 8px !important;
  }

  .cfmrv-analysis-checkbox-col .sub-title {
    font-size: 16px !important;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .cfmrv-analysis-checkbox-col .border-checkbox-section {
    margin: 0 !important;
    padding: 0 !important;
  }

  .cfmrv-analysis-checkbox-col .border-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px !important;
    line-height: 1.2;
  }

  .cfmrv-analysis-checkbox-col .border-checkbox {
    width: 15px !important;
    height: 15px !important;
    margin-top: 2px !important;
    flex: 0 0 15px;
  }

  .cfmrv-analysis-checkbox-col .border-checkbox-label {
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    word-break: normal;
  }
}

@media (max-width: 420px) {
  .cfmrv-analysis-checkbox-col {
    padding: 8px 6px !important;
  }

  .cfmrv-analysis-checkbox-col .sub-title {
    font-size: 15px !important;
  }

  .cfmrv-analysis-checkbox-col .border-checkbox-label {
    font-size: 12px !important;
  }
}

/* Fix hidden top content on Analysis page */
.cfmrv-analysis-page-modern {
  padding-top: 120px;
}

@media (max-width: 991.98px) {
  .cfmrv-analysis-page-modern {
    padding-top: 95px;
  }
}

@media (max-width: 767.98px) {
  .cfmrv-analysis-page-modern {
    padding-top: 0;
  }
}

/* ==========================================
   ANALYSIS STATUS GRID
   ========================================== */

.cfmrv-status-grid {
    margin-top: 10px;
}

.cfmrv-status-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 18px;
    color: #0d6efd;
    margin-bottom: 14px;
}

.cfmrv-status-option input[type="radio"] {
    width: 18px;
    height: 18px;
}

/* Mobile */
@media (max-width: 767.98px) {

    .cfmrv-status-grid .col-6 {
        margin-bottom: 8px;
    }

    .cfmrv-status-option {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .cfmrv-status-option input[type="radio"] {
        width: 16px;
        height: 16px;
    }
}

/* =====================================================
   FUND DETAIL PAGE
   ===================================================== */

.cfmrv-fund-detail-page {
  padding: 130px 0 50px;
  background: #f8faf9;
}

.cfmrv-fund-detail-container {
  max-width: 1320px;
}

.cfmrv-fund-title-card {
  background: #198754;
  color: #ffffff;
  text-align: center;
  border-radius: 12px 12px 0 0;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(30, 100, 60, .08);
}

.cfmrv-fund-title-card h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

.cfmrv-fund-status-panel,
.cfmrv-fund-data-panel {
  background: #ffffff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 24px rgba(30, 100, 60, .08);
  margin-bottom: 24px;
  overflow: hidden;
}

.cfmrv-fund-status-row {
  row-gap: 16px;
  padding: 28px 18px;
}

.cfmrv-status-summary-card {
  text-align: center;
  padding: 18px 8px;
}

.cfmrv-status-summary-card span {
  display: block;
  color: #198754;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
}

.cfmrv-status-summary-card p {
  margin: 0;
  color: #37423b;
  font-weight: 700;
}

.cfmrv-fund-actions {
  display: flex;
  justify-content: flex-end;
  margin: 18px 0;
}

.cfmrv-fund-actions .btn {
  max-width: 220px;
  min-height: 54px;
}

.cfmrv-fund-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  display: block;
  background: #ffffff;
}

.cfmrv-fund-table-wrap table {
  min-width: 1450px !important;
  width: max-content !important;
  margin-bottom: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.cfmrv-fund-table-wrap th,
.cfmrv-fund-table-wrap td {
  position: static !important;
  left: auto !important;
  vertical-align: middle;
  padding: 12px 14px;
  font-size: 14px;
  background: #ffffff;
}

.cfmrv-fund-table-wrap thead th {
  background: #198754 !important;
  color: #ffffff !important;
  text-align: center;
}

.cfmrv-fund-table-wrap tbody tr:hover td {
  background: #f6fbf8 !important;
}

.cfmrv-fund-table-wrap th:nth-child(1),
.cfmrv-fund-table-wrap td:nth-child(1) {
  position: sticky !important;
  left: 0 !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  z-index: 50 !important;
  text-align: center;
}

.cfmrv-fund-table-wrap th:nth-child(2),
.cfmrv-fund-table-wrap td:nth-child(2) {
  position: sticky !important;
  left: 72px !important;
  width: 170px !important;
  min-width: 170px !important;
  max-width: 170px !important;
  z-index: 50 !important;
  white-space: nowrap;
  box-shadow:
    2px 0 0 rgba(255,255,255,.95),
    12px 0 16px -12px rgba(0,0,0,.25);
}

.cfmrv-fund-table-wrap thead th:nth-child(1),
.cfmrv-fund-table-wrap thead th:nth-child(2) {
  z-index: 100 !important;
}

.cfmrv-fund-table-wrap tbody td:nth-child(1),
.cfmrv-fund-table-wrap tbody td:nth-child(2) {
  background: #ffffff !important;
}

.cfmrv-fund-table-wrap tbody tr:hover td:nth-child(1),
.cfmrv-fund-table-wrap tbody tr:hover td:nth-child(2) {
  background: #f6fbf8 !important;
}

.cfmrv-fund-table-wrap th:nth-child(1),
.cfmrv-fund-table-wrap td:nth-child(1) {
  overflow: visible !important;
  isolation: isolate;
}

.cfmrv-fund-table-wrap th:nth-child(1)::before,
.cfmrv-fund-table-wrap td:nth-child(1)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22px;
  width: 22px;
  background: inherit;
  z-index: 1;
}

.cfmrv-fund-table-wrap thead th:nth-child(1)::before {
  background: #198754;
}

.cfmrv-fund-table-wrap tbody td:nth-child(1)::before {
  background: #ffffff;
}

.cfmrv-fund-table-wrap tbody tr:hover td:nth-child(1)::before {
  background: #f6fbf8;
}

@media (max-width: 991.98px) {
  .cfmrv-fund-detail-page {
    padding-top: 105px;
  }

  .cfmrv-fund-actions {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .cfmrv-fund-detail-page {
    padding-top: 0;
  }

  .cfmrv-fund-title-card {
    padding: 14px;
    border-radius: 10px 10px 0 0;
  }

  .cfmrv-fund-title-card h2 {
    font-size: 20px;
  }

  .cfmrv-fund-status-row {
    padding: 14px 10px;
    row-gap: 10px;
  }

  .cfmrv-status-summary-card {
    padding: 10px 4px;
  }

  .cfmrv-status-summary-card span {
    font-size: 34px;
  }

  .cfmrv-status-summary-card p {
    font-size: 13px;
  }

  .cfmrv-fund-actions {
    justify-content: center;
  }

  .cfmrv-fund-actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .cfmrv-fund-table-wrap table {
    min-width: 1400px !important;
  }

  .cfmrv-fund-table-wrap th,
  .cfmrv-fund-table-wrap td {
    font-size: 13px;
    padding: 10px 12px;
  }

  .cfmrv-fund-table-wrap th:nth-child(1),
  .cfmrv-fund-table-wrap td:nth-child(1) {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }

  .cfmrv-fund-table-wrap th:nth-child(2),
  .cfmrv-fund-table-wrap td:nth-child(2) {
    left: 58px !important;
    width: 138px !important;
    min-width: 138px !important;
    max-width: 138px !important;
  }
}
/* =====================================================
   HEADER LOGO FIX
   ===================================================== */

#header {
    background: #33a14b;
}

#header .container {
    display: flex;
    align-items: center;
}

#header .logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

#header .logo img {
    display: block;
    width: auto;
    height: 68px;
    max-height: 68px;
}

@media (max-width: 991.98px) {
    #header .logo img {
        height: 52px;
        max-height: 52px;
    }
}

/* =====================================================
   FUND DETAIL HEADER
   ===================================================== */

.cfmrv-fund-header-card{
    background:#1d9252;
    border-radius:18px 18px 0 0;
    padding:22px 20px;
    text-align:center;
}

.cfmrv-fund-header-card h2{
    color:#fff;
    font-weight:700;
    margin:0;
    font-size:2rem;
}

/* Use same style as homepage cards */
.cfmrv-counts-section{
    background:#edf5ef;
    padding:30px 0;
    border-radius:0 0 18px 18px;
}

@media(max-width:767.98px){

    .cfmrv-fund-header-card{
        border-radius:14px 14px 0 0;
        padding:16px;
    }

    .cfmrv-fund-header-card h2{
        font-size:1.4rem;
    }

    .cfmrv-counts-section{
        padding:20px 0;
    }
}

/* =====================================================
   ABOUT PAGE MODERN VIEW
   ===================================================== */

.cfmrv-about-page {
  padding-top: 75px;
  padding-bottom: 60px;
  background: #f8faf9;
}

.cfmrv-about-hero {
  background: linear-gradient(135deg, #198754 0%, #2f9e4d 100%);
  color: #ffffff;
  padding: 55px 0;
  text-align: center;
  margin-bottom: 42px;
}

.cfmrv-about-hero h2 {
  color: #ffffff;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 18px;
}

.cfmrv-about-hero p {
  max-width: 980px;
  margin: 0 auto;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 500;
}

.cfmrv-about-container {
  max-width: 1320px;
}

/* Left card with header + body */
.cfmrv-about-info-card {
  height: 100%;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(30, 100, 60, .08);
}

.cfmrv-about-card-header {
  background: #198754;
  padding: 22px 30px;
}

.cfmrv-about-card-header h3 {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.cfmrv-about-card-body {
  padding: 30px;
}

.cfmrv-about-card-body p {
  color: #4f5b55;
  font-size: 16px;
  line-height: 1.7;
}

/* Image card same height as left card */
.cfmrv-about-image-card {
  height: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(30, 100, 60, .08);
}

.cfmrv-about-image-card img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.cfmrv-about-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.cfmrv-about-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: #37423b;
  font-size: 16px;
  line-height: 1.65;
}

.cfmrv-about-list i {
  color: #198754;
  font-size: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.cfmrv-about-support-box {
  background: #eef8f1;
  border-left: 5px solid #198754;
  border-radius: 10px;
  padding: 16px 18px;
  color: #2f3f36;
  font-weight: 800;
  line-height: 1.65;
  margin-top: 22px;
}

/* Team section one card with header + body */
.cfmrv-about-team-section {
  max-width: 1320px;
  margin-top: 55px;
}

.cfmrv-team-main-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(30, 100, 60, .08);
}

.cfmrv-team-card-header {
  background: #198754;
  padding: 18px 20px;
}

.cfmrv-team-card-header h3 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.cfmrv-team-slider {
  background: #ffffff;
  padding: 28px 20px 50px;
}

.cfmrv-team-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  min-height: 260px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(30, 100, 60, .06);
}

.cfmrv-team-card h3 {
  color: #198754;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cfmrv-team-card h4 {
  color: #198754;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.cfmrv-team-card p {
  color: #4f5b55;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .cfmrv-about-page {
    padding-top: 80px;
  }

  .cfmrv-about-hero {
    padding: 42px 0;
  }

  .cfmrv-about-hero h2 {
    font-size: 32px;
  }

  .cfmrv-about-image-card {
    min-height: 360px;
  }
}

@media (max-width: 767.98px) {
  .cfmrv-about-page {
    padding-top: 8px;
    padding-bottom: 40px;
  }

  .cfmrv-about-hero {
    margin-top: 0;
    padding: 28px 0;
    margin-bottom: 20px;
  }

  .cfmrv-about-hero h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .cfmrv-about-hero p {
    font-size: 15px;
    line-height: 1.7;
    padding: 0 15px;
  }

  .cfmrv-about-card-header {
    padding: 18px 22px;
  }

  .cfmrv-about-card-header h3 {
    font-size: 22px;
  }

  .cfmrv-about-card-body {
    padding: 22px;
  }

  .cfmrv-about-card-body p,
  .cfmrv-about-list li {
    font-size: 15px;
  }

  .cfmrv-about-image-card {
    min-height: 260px;
  }

  .cfmrv-about-team-section {
    margin-top: 34px;
  }

  .cfmrv-team-card-header h3 {
    font-size: 22px;
  }

  .cfmrv-team-slider {
    padding: 18px 12px 45px;
  }

  .cfmrv-team-card {
    padding: 22px;
  }
}

/* =====================================================
   NEWS INDEX PAGE MODERN VIEW
   ===================================================== */

.cfmrv-news-page {
  padding: 90px 0 60px;
  background: #f8faf9;
}

.cfmrv-news-hero {
  background: linear-gradient(135deg, #198754 0%, #2f9e4d 100%);
  color: #ffffff;
  padding: 48px 0;
  margin-bottom: 42px;
}

.cfmrv-news-hero h2 {
  color: #ffffff;
  font-size: 38px;
  font-weight: 800;
  margin: 0;
}

.cfmrv-news-container {
  max-width: 1320px;
}

.cfmrv-news-card,
.cfmrv-sidebar-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(30, 100, 60, .08);
}

.cfmrv-news-card {
  overflow: hidden;
  margin-bottom: 28px;
}

.cfmrv-news-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.cfmrv-news-body {
  padding: 28px;
}

.cfmrv-news-body h3 {
  margin-bottom: 14px;
}

.cfmrv-news-body h3 a {
  color: #198754;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
}

.cfmrv-news-body h3 a:hover {
  color: #0d6efd;
}

.cfmrv-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 18px;
}

.cfmrv-news-meta i {
  color: #198754;
  margin-right: 6px;
}

.cfmrv-news-body p {
  color: #4f5b55;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 22px;
}

.cfmrv-news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #198754;
  color: #ffffff;
  border: 2px solid #198754;
  border-radius: 12px;
  padding: 11px 22px;
  font-weight: 800;
}

.cfmrv-news-read-more:hover {
  background: #157347;
  color: #ffffff;
}

.cfmrv-sidebar-card {
  padding: 24px;
  margin-bottom: 24px;
}

.cfmrv-sidebar-card h4 {
  color: #198754;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
}

.cfmrv-news-search-form {
  display: flex;
  overflow: hidden;
  border: 1px solid #dce3df;
  border-radius: 12px;
}

.cfmrv-news-search-form input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  outline: none;
}

.cfmrv-news-search-form button {
  width: 54px;
  border: 0;
  background: #198754;
  color: #ffffff;
}

.cfmrv-news-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cfmrv-news-category-list li {
  margin-bottom: 10px;
}

.cfmrv-news-category-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #37423b;
  background: #f3fbf6;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
}

.cfmrv-news-category-list a:hover {
  color: #198754;
  transform: translateX(3px);
}

.cfmrv-news-category-list strong {
  color: #198754;
}

.cfmrv-recent-post {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.cfmrv-recent-post img {
  width: 82px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
}

.cfmrv-recent-post h5 {
  margin: 0 0 6px;
  line-height: 1.35;
}

.cfmrv-recent-post h5 a {
  color: #37423b;
  font-size: 14px;
  font-weight: 800;
}

.cfmrv-recent-post h5 a:hover {
  color: #198754;
}

.cfmrv-recent-post span {
  color: #6c757d;
  font-size: 13px;
}

.cfmrv-news-pagination {
  margin-top: 20px;
}

@media (max-width: 991.98px) {
  .cfmrv-news-page {
    padding-top: 80px;
  }

  .cfmrv-news-sidebar {
    margin-top: 10px;
  }
}

@media (max-width: 767.98px) {
  .cfmrv-news-page {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .cfmrv-news-hero {
    padding: 32px 0;
    margin-bottom: 24px;
  }

  .cfmrv-news-hero h2 {
    font-size: 26px;
  }

  .cfmrv-news-img img {
    height: 240px;
  }

  .cfmrv-news-body {
    padding: 22px;
  }

  .cfmrv-news-body h3 a {
    font-size: 22px;
  }

  .cfmrv-sidebar-card {
    padding: 20px;
  }
}

/* =====================================================
   NEWS DETAIL PAGE MODERN VIEW
   ===================================================== */

.cfmrv-news-detail-page {
  padding: 90px 0 60px;
  background: #f8faf9;
}

.cfmrv-news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 9px 18px;
}

.cfmrv-news-back-link:hover {
  color: #198754;
  background: #ffffff;
}

.cfmrv-news-detail-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(30, 100, 60, .08);
  overflow: hidden;
}

.cfmrv-news-detail-img img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.cfmrv-news-detail-body {
  padding: 34px;
}

.cfmrv-news-detail-body h1 {
  color: #198754;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
}

.cfmrv-news-detail-content {
  color: #37423b;
  font-size: 17px;
  line-height: 1.85;
  margin-top: 24px;
}

.cfmrv-news-detail-content p {
  margin-bottom: 18px;
}

.cfmrv-news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 18px 0;
}

.cfmrv-news-detail-content ul,
.cfmrv-news-detail-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.cfmrv-news-detail-content li {
  margin-bottom: 8px;
}

@media (max-width: 991.98px) {
  .cfmrv-news-detail-page {
    padding-top: 80px;
  }

  .cfmrv-news-detail-img img {
    height: 360px;
  }
}

@media (max-width: 767.98px) {
  .cfmrv-news-detail-page {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .cfmrv-news-detail-img img {
    height: 240px;
  }

  .cfmrv-news-detail-body {
    padding: 22px;
  }

  .cfmrv-news-detail-body h1 {
    font-size: 24px;
  }

  .cfmrv-news-detail-content {
    font-size: 15px;
    line-height: 1.75;
  }
}

/* =====================================================
   DOCUMENT PAGE MODERN VIEW
   ===================================================== */

.cfmrv-document-page {
  padding: 90px 0 60px;
  background: #f8faf9;
}

.cfmrv-document-container {
  max-width: 1320px;
}

.cfmrv-document-header {
  background: linear-gradient(135deg, #198754 0%, #2f9e4d 100%);
  color: #ffffff;
  text-align: center;
  border-radius: 16px;
  padding: 24px 18px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(30, 100, 60, .08);
}

.cfmrv-document-header h2 {
  color: #ffffff;
  margin: 0;
  font-size: 32px;
  font-weight: 800;
}

.cfmrv-document-data-panel {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(30, 100, 60, .08);
  overflow: hidden;
}

.cfmrv-document-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

.cfmrv-document-table-wrap table {
  width: 100%;
  min-width: 900px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.cfmrv-document-table-wrap th,
.cfmrv-document-table-wrap td {
  vertical-align: middle;
  padding: 14px 16px;
  font-size: 15px;
  color: #37423b;
  background: #ffffff;
}

.cfmrv-document-table-wrap thead th {
  background: #198754;
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.cfmrv-document-table-wrap tbody tr:hover td {
  background: #f6fbf8;
}

.cfmrv-document-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #198754;
  color: #ffffff;
  border: 2px solid #198754;
  border-radius: 10px;
  font-size: 18px;
  transition: all .25s ease;
}

.cfmrv-document-download:hover {
  background: #157347;
  color: #ffffff;
  transform: translateY(-2px);
}

.cfmrv-document-pagination {
  margin-top: 22px;
}

/* Sticky No. column for mobile/tablet */
.cfmrv-document-table-wrap th:nth-child(1),
.cfmrv-document-table-wrap td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 50;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  text-align: center;
}

.cfmrv-document-table-wrap thead th:nth-child(1) {
  background: #198754;
  z-index: 100;
}

.cfmrv-document-table-wrap tbody td:nth-child(1) {
  background: #ffffff;
}

.cfmrv-document-table-wrap tbody tr:hover td:nth-child(1) {
  background: #f6fbf8;
}

@media (max-width: 991.98px) {
  .cfmrv-document-page {
    padding-top: 80px;
  }
}

@media (max-width: 767.98px) {
  .cfmrv-document-page {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .cfmrv-document-header {
    border-radius: 12px;
    padding: 18px 14px;
    margin-bottom: 20px;
  }

  .cfmrv-document-header h2 {
    font-size: 24px;
  }

  .cfmrv-document-table-wrap table {
    min-width: 760px;
  }

  .cfmrv-document-table-wrap th,
  .cfmrv-document-table-wrap td {
    font-size: 13px;
    padding: 11px 12px;
  }

  .cfmrv-document-table-wrap th:nth-child(1),
  .cfmrv-document-table-wrap td:nth-child(1) {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
  }

  .cfmrv-document-download {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */

.cfmrv-contact-page {
    padding-top: 15px;
    padding-bottom: 60px;
    background: #f8faf9;
}

.cfmrv-contact-hero {
    background: linear-gradient(135deg,#198754 0%,#2f9e4d 100%);
    color: #fff;
    padding: 45px 0;
    margin-bottom: 35px;
}

.cfmrv-contact-hero h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
}

.cfmrv-contact-intro {
    max-width: 1100px;
    margin: auto;
}

.cfmrv-contact-intro h5 {
    color: #fff;
    line-height: 1.9;
    font-weight: 400;
    text-align: center;
}

/* =====================================
   MAP CARD
   ===================================== */

.cfmrv-contact-map-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    height: 100%;
    min-height: 520px;
}

.cfmrv-contact-map-card iframe {
    width: 100%;
    height: 520px;
    border: 0;
    display: block;
}

/* =====================================
   CONTACT INFO CARD
   ===================================== */

.cfmrv-contact-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    height: 100%;
    min-height: 520px;
}

.cfmrv-contact-info-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.cfmrv-contact-info-item:last-child {
    border-bottom: none;
}

.cfmrv-contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: rgba(25,135,84,.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfmrv-contact-icon i {
    color: #198754;
    font-size: 22px;
}

.cfmrv-contact-info-item h4 {
    color: #198754;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cfmrv-contact-info-item p {
    margin-bottom: 0;
    color: #555;
}

.cfmrv-contact-info-item a {
    color: #198754;
    text-decoration: none;
}

/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 991.98px) {

    .cfmrv-contact-map-card,
    .cfmrv-contact-info-card {
        min-height: auto;
    }

    .cfmrv-contact-map-card iframe {
        height: 400px;
    }
}

@media (max-width: 767.98px) {

    .cfmrv-contact-page {
        padding-top: 10px;
    }

    .cfmrv-contact-hero {
        padding: 30px 15px;
        margin-bottom: 20px;
    }

    .cfmrv-contact-hero h2 {
        font-size: 28px;
    }

    .cfmrv-contact-intro h5 {
        font-size: 15px;
        line-height: 1.8;
    }

    .cfmrv-contact-map-card iframe {
        height: 320px;
    }

    .cfmrv-contact-info-card {
        margin-top: 20px;
        padding: 20px;
    }
}

/* =====================================================
   FUNDS CARDS - EQUAL HEIGHT + FIXED BUTTON POSITION
   ===================================================== */

#why-us {
  padding: 45px 0;
  background: #ffffff;
}

#why-us .section-title {
  padding-bottom: 26px;
}

#why-us .content,
#why-us .fund-card {
  height: 100%;
  min-height: 430px;
  padding: 30px 32px;
  background: linear-gradient(145deg, #48c777 0%, #64d486 100%);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(30, 100, 60, 0.12);
  display: flex !important;
  flex-direction: column;
  transition: all 0.28s ease;
}

#why-us .content:hover,
#why-us .fund-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(30, 100, 60, 0.18);
}

/* Title area */
#why-us .content h3,
#why-us .fund-card h3 {
  min-height: 96px;
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #ffffff;
  font-weight: 800;
}

/* Description area */
#why-us .content p,
#why-us .fund-card p {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Button area fixed to bottom */
#why-us .content .text-center,
#why-us .fund-card .text-center {
  margin-top: auto !important;
  padding-top: 16px;
}

/* Button: white first, green on hover/touch */
#why-us .content .more-btn,
#why-us .fund-card .more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-width: 210px;
  padding: 11px 28px;

  background: #ffffff;
  color: #198754 !important;

  border: 2px solid #ffffff;
  border-radius: 999px;

  font-size: 16px;
  font-weight: 800;
  text-decoration: none;

  transition: all .3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

#why-us .content .more-btn i,
#why-us .fund-card .more-btn i {
  color: #198754;
  font-size: 20px;
  line-height: 1;
  transition: all .3s ease;
}

#why-us .content .more-btn:hover,
#why-us .fund-card .more-btn:hover,
#why-us .content .more-btn:active,
#why-us .fund-card .more-btn:active {
  background: #198754;
  color: #ffffff !important;
  border-color: #198754;
  transform: translateY(-2px);
}

#why-us .content .more-btn:hover i,
#why-us .fund-card .more-btn:hover i,
#why-us .content .more-btn:active i,
#why-us .fund-card .more-btn:active i {
  color: #ffffff;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  #why-us .content,
  #why-us .fund-card {
    min-height: 400px;
    padding: 28px 28px;
  }

  #why-us .content h3,
  #why-us .fund-card h3 {
    min-height: 78px;
    font-size: 28px;
  }

  #why-us .content p,
  #why-us .fund-card p {
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  #why-us {
    padding: 34px 0;
  }

  #why-us .section-title {
    padding-bottom: 20px;
  }

  #why-us .content,
  #why-us .fund-card {
    min-height: auto;
    padding: 26px 24px;
    border-radius: 12px;
  }

  #why-us .content h3,
  #why-us .fund-card h3 {
    min-height: auto;
    font-size: 28px;
    margin-bottom: 18px;
  }

  #why-us .content p,
  #why-us .fund-card p {
    font-size: 15px;
    margin-bottom: 22px;
  }

  #why-us .content .text-center,
  #why-us .fund-card .text-center {
    margin-top: 0 !important;
    padding-top: 8px;
  }

  #why-us .content .more-btn,
  #why-us .fund-card .more-btn {
    min-width: 190px;
    font-size: 15px;
    padding: 10px 22px;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  #why-us .content,
  #why-us .fund-card {
    padding: 24px 20px;
  }

  #why-us .content h3,
  #why-us .fund-card h3 {
    font-size: 26px;
  }

  #why-us .content p,
  #why-us .fund-card p {
    font-size: 14px;
  }
}

/* =====================================================
   CFMRV PAGINATION
   Modern green theme pagination
   ===================================================== */

.pagination {
    margin-top: 22px;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.18);
    background: #ffffff;
    border-radius: 10px;
    padding: 9px 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.08);
    transition: all 0.25s ease;
}

.pagination .page-item .page-link:hover {
    color: #ffffff;
    background: #198754;
    border-color: #198754;
}

.pagination .page-item.active .page-link {
    color: #ffffff;
    background: linear-gradient(135deg, #198754, #0f6b3c);
    border-color: #198754;
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.28);
}

.pagination .page-item.disabled .page-link,
.pagination .page-item .page-link:not([href]) {
    color: #9ca3af;
    background: #f8faf9;
    border-color: #e5e7eb;
    box-shadow: none;
    cursor: not-allowed;
}

/* =====================================================
   CFMRV PAGINATION
   Shared frontend/backend pagination style
   ===================================================== */

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 22px;
  margin-bottom: 0;
  padding-left: 0;
}

.pagination .page-item {
  list-style: none;
}

.pagination .page-item .page-link,
.pagination .page-link {
  min-width: 42px;
  min-height: 42px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #198754;
  background: #ffffff;
  border: 1px solid rgba(25, 135, 84, 0.18);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.08);
  transition: all 0.25s ease;
}

.pagination .page-item:not(.disabled):not(.active) .page-link:hover {
  color: #ffffff;
  background: #198754;
  border-color: #198754;
}

.pagination .page-item.active .page-link {
  color: #ffffff !important;
  background: linear-gradient(135deg, #198754, #0f6b3c) !important;
  border-color: #198754 !important;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(25, 135, 84, 0.28);
}

.pagination .page-item.disabled .page-link,
.pagination .page-item .page-link:not([href]),
.pagination .page-link[aria-disabled="true"] {
  color: #9ca3af !important;
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

.pagination .page-item.disabled .page-link:hover,
.pagination .page-link[aria-disabled="true"]:hover {
  color: #9ca3af !important;
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

@media (max-width: 576px) {
  .pagination {
    justify-content: center;
    gap: 5px;
  }

  .pagination .page-item .page-link,
  .pagination .page-link {
    min-width: 36px;
    min-height: 36px;
    padding: 8px 11px;
    font-size: 13px;
    border-radius: 9px;
  }
}

/* =====================================================
   FINAL FIX: FILTER ACTIONS MUST NOT OVERFLOW TABLE
   ===================================================== */

.cfmrv-report-filter-card,
.cfmrv-project-filter-form .row {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cfmrv-report-filter-card > [class*="col-"],
.cfmrv-project-filter-form .row > [class*="col-"] {
    min-width: 0 !important;
}

.cfmrv-page-actions,
.cfmrv-project-actions,
.cfmrv-filter-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
}

.cfmrv-page-actions .btn,
.cfmrv-project-actions .btn,
.cfmrv-filter-actions .btn,
.cfmrv-search-btn,
.cfmrv-reset-btn,
.cfmrv-export-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

@media (min-width: 1200px) {
    .cfmrv-report-filter-card .col-xl-3:last-child,
    .cfmrv-project-filter-form .col-xl-3:last-child {
        flex: 0 0 27% !important;
        max-width: 27% !important;
    }

    .cfmrv-report-filter-card .col-xl-2,
    .cfmrv-project-filter-form .col-xl-2 {
        flex: 0 0 19% !important;
        max-width: 19% !important;
    }
}

@media (max-width: 767.98px) {
    .cfmrv-page-actions,
    .cfmrv-project-actions,
    .cfmrv-filter-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .cfmrv-page-actions .btn,
    .cfmrv-project-actions .btn,
    .cfmrv-filter-actions .btn {
        font-size: 13px !important;
        padding: 0 5px !important;
    }
}

/* =====================================================
   SEARCH PAGE FILTER FINAL FIX
   One row on desktop, buttons close to keyword
   ===================================================== */

@media (min-width: 1200px) {
    .cfmrv-search-page .cfmrv-report-filter-card {
        display: grid !important;
        grid-template-columns:
            140px
            minmax(180px, 1fr)
            minmax(180px, 1fr)
            minmax(240px, 1.2fr)
            max-content !important;
        gap: 14px !important;
        align-items: end !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .cfmrv-search-page .cfmrv-report-filter-card > [class*="col-"] {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .cfmrv-search-page .cfmrv-page-actions,
    .cfmrv-search-page .cfmrv-filter-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: auto !important;
        margin-top: 0 !important;
    }

    .cfmrv-search-page .cfmrv-page-actions .btn,
    .cfmrv-search-page .cfmrv-filter-actions .btn {
        flex: 0 0 118px !important;
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 8px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 1199.98px) {
    .cfmrv-search-page .cfmrv-page-actions,
    .cfmrv-search-page .cfmrv-filter-actions {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    .cfmrv-search-page .cfmrv-page-actions .btn,
    .cfmrv-search-page .cfmrv-filter-actions .btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* REPORT BUTTON FINAL OVERRIDE */

.cfmrv-report-page .cfmrv-report-actions{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    width:auto !important;
    max-width:520px !important;
}

.cfmrv-report-page .cfmrv-report-actions .btn{
    width:155px !important;
    min-width:155px !important;
    max-width:155px !important;
    flex:none !important;
    height:46px !important;
}

@media (max-width:767.98px){

    .cfmrv-report-page .cfmrv-report-actions{
        display:grid !important;
        grid-template-columns:repeat(3,1fr) !important;
        width:100% !important;
        max-width:100% !important;
    }

    .cfmrv-report-page .cfmrv-report-actions .btn{
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
    }
}

/* REPORT FILTER BUTTON FINAL FIX */
.cfmrv-report-page .cfmrv-report-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 0 !important;
}

.cfmrv-report-page .cfmrv-report-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 6px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
}

/* =====================================================
   REPORT PAGE FILTER FINAL LAYOUT FIX
   Same row: Report | Filters | Buttons
   ===================================================== */

@media (min-width: 1200px) {
    .cfmrv-report-page .cfmrv-report-filter-card {
        display: grid !important;
        grid-template-columns:
            140px
            minmax(170px, 1fr)
            minmax(170px, 1fr)
            minmax(170px, 1fr)
            minmax(170px, 1fr)
            max-content !important;
        gap: 14px !important;
        align-items: end !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .cfmrv-report-page .cfmrv-report-filter-card > [class*="col-"] {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .cfmrv-report-page .cfmrv-report-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: auto !important;
        max-width: none !important;
        margin-top: 0 !important;
    }

    .cfmrv-report-page .cfmrv-report-actions .btn {
        flex: 0 0 110px !important;
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 8px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 1199.98px) {
    .cfmrv-report-page .cfmrv-report-actions {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 8px !important;
    }

    .cfmrv-report-page .cfmrv-report-actions .btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* =====================================================
   FUND DETAIL DONUT CHARTS - CLEAN FINAL FIX
   ===================================================== */

.cfmrv-fund-chart-panel {
    margin: 40px 0 32px;
    clear: both;
}

.cfmrv-fund-section-title {
    text-align: center;
    margin-bottom: 26px;
}

.cfmrv-fund-section-title h3 {
    color: #198754;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.cfmrv-fund-section-title p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

.cfmrv-fund-chart-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(25, 135, 84, 0.14);
    box-shadow: 0 12px 30px rgba(25, 135, 84, 0.08);

    padding: 18px;
    min-height: 460px;
    height: 100%;
    overflow: hidden;
}

.cfmrv-fund-donut-chart {
    width: 100%;
    height: 400px;
    overflow: visible;
}

.cfmrv-fund-donut-chart .highcharts-container,
.cfmrv-fund-donut-chart .highcharts-root {
    max-width: 100% !important;
    overflow: visible !important;
}

/* Make sure table appears normally after chart section */
.cfmrv-fund-actions,
.cfmrv-fund-data-panel {
    clear: both;
    margin-top: 32px;
}

/* Tablet */
@media (max-width: 991px) {
    .cfmrv-fund-chart-card {
        min-height: 540px;
    }

    .cfmrv-fund-donut-chart {
        height: 480px;
        min-height: 480px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .cfmrv-fund-chart-panel {
        margin: 32px 0 24px;
    }

    .cfmrv-fund-section-title {
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .cfmrv-fund-section-title h3 {
        font-size: 24px;
        line-height: 1.25;
    }

    .cfmrv-fund-section-title p {
        font-size: 14px;
    }

    .cfmrv-fund-chart-card {
        padding: 18px 10px 16px;
        min-height: 470px;
    }

    .cfmrv-fund-donut-chart {
        height: 410px;
        min-height: 410px;
    }

    .cfmrv-fund-donut-chart .highcharts-title {
        font-size: 16px !important;
    }

    .cfmrv-fund-donut-chart .highcharts-data-label text {
        font-size: 10px !important;
    }

    .cfmrv-fund-donut-chart .highcharts-legend-item text {
        font-size: 11px !important;
    }
}