/* =========================
   Governance - Figma Match
   Bootstrap 4 friendly
========================= */

:root{
  --gov-purple-1:#76109c;
  --gov-purple-2:#af48d4;
  --gov-white:#fff;
  --panel-bg: rgba(0,0,0,.38);

  /* Figma doc tile colors */
  --doc-blue:#7E90FF;
  --doc-pink:#D98BFF;
  --doc-purple:#8A73FF;

  /* bottom tile */
  --doc-bottom:#0B1B66;
}

/* =========================
   BACKGROUND SECTION
========================= */
.gov-bg-section{
  position: relative;
  width: 100%;
  padding: 70px 0 90px;
  background-image: url("../img/home12/bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.gov-bg-section::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.10);
  z-index:0;
}

.gov-panel-wrapper{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 60px;
}

.gov-panel{
  width: 100%;
  border-radius: 29px;
  background: var(--panel-bg);
  padding: 36px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  overflow: hidden;
}
.gov-panel--glass{
  border: 1px solid rgba(41,211,164,0.28);
}

/* =========================
   LAYOUT
========================= */
.gov-layout{
  display:flex;
  align-items:flex-start;
  gap: 56px;
}

.gov-left{
  width: 300px;
  flex: 0 0 255px;
}

.gov-right{
  flex: 1 1 auto;
  min-width: 0;
}

/* =========================
   LEFT MENU
========================= */
.gov-sidemenu{
  display:flex;
  flex-direction: column;
  gap: 7px;
}

.gov-sidemenu__item{
  position: relative;
  display:flex;
  align-items:center;
  gap: 16px;
  height: 48px;
  padding: 0 21px;
  border-radius: 10px;
  background: var(--gov-purple-2);
  color:#fff;
  text-decoration:none !important;
  cursor:pointer;
  transition: .2s ease;
}
.gov-sidemenu__item:hover{ filter: brightness(1.06); }
.gov-sidemenu__item.active{ background: var(--gov-purple-1); }

.gov-sidemenu__item.active::after{
  content:"";
  position:absolute;
  right:-19px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid var(--gov-purple-1);
}

.gov-sidemenu__icon{
  width: 40px;
  height: 40px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gov-sidemenu__icon svg,
.gov-sidemenu__icon img{
  width: 33px;
  height: 33px;
  display:block;
}

.gov-sidemenu__icon svg *{
  stroke: #fff !important;
  fill: #fff !important;
}
.gov-sidemenu__icon svg [fill="none"]{ fill: none !important; }

.gov-sidemenu__label{
  color: #ffffff;
  font-family: "AvenirLtStd-55Roman", sans-serif;
  font-size: 18px;
  font-weight: 400;
}

/* submenu */
.gov-sidemenu__collapse{
  margin-top: -6px;
  padding-left: 20px;
}
.gov-sidemenu__subitem{
  display:block;
  padding: 10px 14px;
  margin-top: 8px;
  border-radius: 10px;
  background: rgba(175,72,212,.65);
  color:#fff !important;
  text-decoration:none !important;
  font-family: Avenir, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}
.gov-sidemenu__subitem:hover{ color:#fff !important; }

/* =========================
   RIGHT CONTENT
========================= */
.gov-content-head{
  display:flex;
  justify-content:center;
  /* margin: 10px 0 22px 0; */
}
.gov-content-head__title{
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 65px;
  color:#fff;
  margin:0;
  text-align:center;
}

/* committees description */
.gov-description{
  border-radius: 18px;
  font-family: "AvenirLtStd-55Roman", sans-serif;
  line-height: 1.6;
  color: #fff !important;
}
.gov-description,
.gov-description *{
  color: #fff !important;
  font-size: 16px;
  font-family: "AvenirLtStd-55Roman", sans-serif;
}

/* =========================
   GRID
========================= */
.gov-grid{
  margin-top: 28px;
}

.gov-grid > [class*="col-"]{
  display:flex;
  padding-left: 16px;
  padding-right: 16px;
  margin-bottom: 28px;
}

/* =========================
   PERSON CARD
========================= */
.gov-card{
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  width: 100%;
}
.gov-card__imgWrap{
  display:flex;
  justify-content:center;
  /* padding-top: 6px; */
}
.gov-card__img{
  width: 172px;
  height: 215px;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
}
.policies .gov-card__img{
  width: 100%;
  height: auto!important;
}
.annual_reports+div .gov-card__img{
  width: 100%;
  height: auto!important;
}
.agm_egm .gov-card__img{
  width: 100%;
  height: auto!important;}
  .moa_aoa .gov-card__img{
  width: 100%;
  height: auto!important;}
.annual_reports .gov-card__img{
  width: 100%;
  height: auto!important;}
  .miscellaneous .gov-card__img{
    width: 100%;
    height: auto!important;
  }

.gov-card__body{
  text-align:center;
  padding-top: 10px;
}
.gov-card__name{
  font-size: 18px;
  color: #fff;
  margin-top: 5px;
}
.gov-card__tagline{
  font-family: "Avenir-Book", sans-serif !important;
  font-size: 12px;
  color:#fff;
  margin-top:-2px;
}

/* =========================
   DOC TILE - FINAL FIX
========================= */
/* Ensure cards have a consistent look and don't stretch vertically */
.gov-card--doc {
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensures all cards in a row have equal height */
  border-radius: 7px;
  overflow: hidden;
  background: var(--doc-bottom); /* Match the dark blue bottom */
}

/* Fix the Image Wrap to be a consistent height */
.gov-card__imgWrap--doc {
  /* height: 130px; 
  min-height: 130px; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 20px; */
}

.sectionheadingwhite {
  color: #ffffff;
  text-align: center;
  font-family: "Oswald-Light", sans-serif;
  font-size: 3rem !important;
  font-weight: 300;
}
/* The Icon inside the box should be smaller and not distorted */
.gov-card__img--doc {
  /* width: auto;
  height: 65px; */
  /* object-fit: contain; */
}

/* Fix the Body and Text */
.gov-card__body--doc {
  padding: 15px 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes 'Know More' to bottom */
  min-height: 110px; 
}

.gov-card--doc .gov-card__name {
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines like Figma */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* tagline */
.gov-card--doc .gov-card__tagline{
  font-size: 11px;
  opacity: .95;
  line-height: 1.3;
  margin-top: 4px;
  margin-bottom: 0;
  color: #fff;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* link */
.gov-card--doc .gov-card__link{
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.2;
  color: #E58CFF;
  text-decoration: underline !important;
  display: inline-block;
}

.gov-card__link--empty{
  visibility: hidden;
}

/* color cycle */
.gov-card--doc.doc-theme-blue .gov-card__imgWrap--doc{ background: var(--doc-blue); }
.gov-card--doc.doc-theme-pink .gov-card__imgWrap--doc{ background: var(--doc-pink); }
.gov-card--doc.doc-theme-purple .gov-card__imgWrap--doc{ background: var(--doc-purple); }

/* =========================
   RESPONSIVE
========================= */

/* large desktop */
@media (min-width: 1400px){
  /* .gov-card__imgWrap--doc{
    height: 155px;
    min-height: 155px;
  } */
  /* .gov-card__img--doc{
    width: 86px;
    height: 86px;
  } */
  .gov-card__body--doc{
    padding: 13px 16px 12px;
  }
}

/* Responsive Grid Tweaks */
@media (max-width: 767px) {
  .gov-grid > [class*="col-"] {
      padding-left: 8px;
      padding-right: 8px;
  }
  
  /* .gov-card__imgWrap--doc {
      height: 100px;
      min-height: 100px;
  } */
  
  /* .gov-card__img--doc {
      height: 50px;
  } */

  .gov-card__body--doc {
      padding: 10px;
      min-height: 90px;
  }
}

/* Fix for high-zoom / 125% scaling issues */
@media (min-width: 1200px) {
  .gov-panel-wrapper {
      max-width: 1400px; /* Constrain width so cards don't get too huge */
      margin: 0 auto;
  }
}
/* zoom-friendly laptop screens */
@media (max-width: 1399px){
  .gov-grid > [class*="col-"]{
    padding-left: 14px;
    padding-right: 14px;
    margin-bottom: 24px;
  }

  .gov-card__imgWrap--doc{
    /* height: 140px;
    min-height: 140px; */
    /* padding: 12px; */
  }
  /* .gov-card__img--doc{
    width: 85px;
    height: 105px;
  } */
  .gov-card__body--doc{
    padding: 12px 14px 12px;
  }
  .gov-card--doc .gov-card__name{
    font-size: 12px;
  }
  .gov-card--doc .gov-card__link{
    font-size: 11px;
    margin-top: 7px;
  }
}

@media (max-width: 1200px){
  .gov-panel-wrapper{ padding: 0 28px; }
  .gov-content-head__title{ font-size: 54px; }
  .gov-layout{ gap: 28px; }
  .gov-left{ width: 360px; flex:0 0 360px; }

  /* .gov-card__imgWrap--doc{
    height: 132px;
    min-height: 132px;
  } */
  /* .gov-card__img--doc{
    width: 72px;
    height: 72px;
  } */
}

/* tablet */
@media (max-width: 991px){
  .gov-panel{ padding: 26px 18px; }
  .gov-layout{ flex-direction: column; gap: 18px; }
  .gov-left{ width: 100%; flex: 0 0 auto; }
  .gov-sidemenu__item.active::after{ display:none; }
  .gov-content-head__title{ font-size: 50px; }

  .gov-grid > [class*="col-"]{
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 20px;
  }

  /* .gov-card__imgWrap--doc{
    height: 124px;
    min-height: 124px;
    padding: 12px;
  } */
  /* .gov-card__img--doc{
    width: 68px;
    height: 68px;
  } */
  .gov-card__body--doc{
    padding: 11px 12px 11px;
  }
  .gov-card--doc .gov-card__name{
    font-size: 12px;
    line-height: 1.3;
  }
  .gov-card--doc .gov-card__tagline{
    font-size: 10px;
  }
  .gov-card--doc .gov-card__link{
    font-size: 10px;
    margin-top: 7px;
  }
}

/* mobile */
@media (max-width: 575px){
  .gov-panel-wrapper{ padding: 0 14px; }
  .gov-panel{ padding: 18px 12px; border-radius: 18px; }

  .gov-content-head{ margin: 6px 0 14px; }
  .gov-content-head__title{ font-size: 32px; line-height: 1.05; }

  .gov-sidemenu{ gap: 8px; }
  .gov-sidemenu__item{
    height: 64px;
    padding: 0 14px;
    gap: 12px;
    border-radius: 10px;
  }
  .gov-sidemenu__icon{
    width: 34px;
    height: 34px;
  }
  .gov-sidemenu__icon svg,
  .gov-sidemenu__icon img{
    width: 34px;
    height: 34px;
  }
  .gov-sidemenu__label{
    font-size: 18px;
    line-height: 1.1;
  }

  .gov-description{ padding: 10px 12px; }
  .gov-description,
  .gov-description *{
    font-size: 14px;
    line-height: 1.55;
  }

  .gov-grid{ margin-top: 18px; }
  .gov-grid > [class*="col-"]{
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 18px;
  }

  .gov-card__img{
    width: 110px;
    height: 145px;
  }
  .gov-card__name{
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
    line-height: 1.2;
  }
  .gov-card__tagline{
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.25;
    color: #ebe8e8;
  }

  /* .gov-card__imgWrap--doc{
    height: 110px;
    min-height: 110px;
    padding: 10px;
  } */
  /* .gov-card__img--doc{
    width: 58px;
    height: 58px;
  } */
  .gov-card__body--doc{
    padding: 10px;
  }
  .gov-card--doc .gov-card__name{
    font-size: 11px;
  }
  .gov-card--doc .gov-card__tagline{
    font-size: 10px;
  }
  .gov-card--doc .gov-card__link{
    font-size: 10px;
    margin-top: 6px;
  }
}

/* very small phones */
@media (max-width: 420px){
  .gov-grid > .col-6{
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .gov-grid > [class*="col-"]{
    padding-left: 8px;
    padding-right: 8px;
  }

  .gov-content-head__title{ font-size: 28px; }

  /* .gov-card__imgWrap--doc{
    height: 102px;
    min-height: 102px;
  } */
  /* .gov-card__img--doc{
    width: 54px;
    height: 54px;
  } */
}

.gov-grid .grid-item{
  height: 100%;
}

/* .banner {
  background: url("/assets/img/home12/Gvernance\ page\ banner.png") center/ cover no-repeat!important;
  height: 100vh;
} */

#section03 a span {
  position: absolute;
  top: -63px;
  left: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  border: 1px solid #fff;
  border-radius: 100%;
  box-sizing: border-box;
}
