/*****************************

main color: 
#4dabf7

greycolor #333
*****************************/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html {
    font-size: 62.5%;
}
body {
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: #333;
}

input, textarea, select, button {
    font-family: inherit;  /* inherit font from body */
    font-size: inherit;    /* inherit font size */
    line-height: inherit;  /* optional */
}

button{
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #fff;
}

.grid {
    display: grid;
    column-gap: 2.4rem;
    row-gap: 2.4rem;
}

.grid--2-cols {
    grid-template-columns: 1fr 3fr;
}

.grid-start-2{
    grid-column-start: 2;
}

.grid--3-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid--col-2 {
    grid-column: 2;
}

.grid--row-gap-zero {
    row-gap: 0;
}

.flex {
    display: flex;
}

.flex--vertical {
    flex-direction: column;
}

.flex-end {
    justify-content: flex-end;
}

.flex-gap-sm {
    gap: 1.8rem;
}

.flex-align-center {
    align-items: center;
}

.flex-gap-small {
    gap: 1.8rem;
}

.margin-bottom-sm {
    margin-bottom: 2.4rem;
}
.margin-top-sm {
    margin-top: 2.4rem;
}

.margin-top-md {
    margin-top: 4.8rem;
}

.margin-bottom-md {
    margin-bottom: 4.8rem;
}
.margin-bottom-lg {
    margin-bottom: 9.6rem;
}

.container {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 4fr;
    grid-template-rows: 10rem 1fr;
}

.mid-container {
    padding: 1.8rem;
    width: 45rem;
    margin: 0 auto 1.8rem auto;
    border-radius: 0.8rem;
}
.flash-message {
    padding: 1.8rem;
    margin: 0 auto 1.8rem auto;
    border-radius: 0.8rem;
}
/* for flash message winthin grid layout*/
.org-info {
    width: 100%;
}

.success {
    background-color: #67ff744e;
    padding: 1.2rem;
}

.failure, .alert {
    background-color: #ff67674e;
}
.alert{

    text-align: left;
    padding: 1.2rem;
}
header {
    grid-column: span 2;
    text-align: center;
    padding: 2.4rem 4.8rem;
    background-color: #d0ebff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
aside {
    grid-row: 2;
    background-color: #339af0;
    padding-top: 4.8rem;
}

main {
    overflow-y: scroll;
}
.section-main {
    padding: 4.8rem;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  counter-reset: menu-counter; /* initialize counter */
}

.nav-list-item {
  counter-increment: menu-counter; /* increment counter for each item */
  margin: 8px 0;
  
}

.nav-list-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 6px 10px;
  transition: background 0.2s;
}

.nav-list-item a:hover {
  color: rgb(239, 252, 173);
}

/* Number icon before each link */
.nav-list-item a::before {
  content: counter(menu-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  /* margin-right: 5px; */
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background-color: #0f5fb5; /* blue */
  border-radius: 5px;

}

.admin-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
  font-weight: 500; 
  transition: color 0.2s, border-color 0.2s;
  padding: .4rem;
  border-radius: 5px;
}

.admin-menu ion-icon {
  font-size: 18px;
  /* color: rgb(43, 102, 241); */
}

.admin-menu:hover {
  color: #deeefa;
  background-color: #0b04c6;
}





/* 🌀 Jiggle animation */
@keyframes jiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-25deg); }
  50% { transform: rotate(25deg); }
  75% { transform: rotate(-20deg); }
  100% { transform: rotate(0deg); }
}

/* Apply the animation on hover */
.nav-link:hover::before {
  animation: jiggle 0.5s ease-in-out;
  background-color: #0056b3;
}

/* .nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
} */

.nav-link:link,
.nav-link:visited {
    padding-left: 1.8rem;
    text-decoration: none;
    color: #d0ebff;
}

.nav-link:hover,
.nav-link:active {
    text-decoration: none;
    color: #fff;
}

.logo {
    height: 3.6rem;
}

h1 {
    margin-bottom: 1.8rem;
}
.error-msg {
    color: red;
    background: rgba(249, 147, 147, 0.679);
    padding: 0.5rem;
    border-radius: 0.8rem;
    font-weight: 400;
}

.header-wg {
    grid-column: span 2;
}

/* .frm-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
} */

.frm-item {
    display: flex;
    flex-direction: column;
    /* grid-template-columns: 1fr 2fr;
    align-items: center; */
}

.frm-item-textarea {
    display: flex;
    flex-direction: column;
}

.frm-item-areafocus {
    display: flex;
    flex-direction: column;
}
.frm-project-addnew,
.frm-register {
    gap: 1.2rem;
    padding: 1.2rem 3.6rem;
}

.frm-make-payment {
    grid-template-columns: 1fr 3fr;
}

/*frm create project*/


.od {
    padding-left: 1.8rem;
    display: none;
}

.od_item {
    display: flex;
    gap: 0.8rem;
}

/*display project*/
.ods {
    list-style: none;
    /* padding-left: 1.2rem; */
}
.od-list {
    padding: 0rem 0.2rem !important;
    font-weight: 400 !important;
    background-color: #fff !important;
}
.od-list:not(:last-child):after {
    content: ",";
}

.btn-register {
    grid-column: 2;
}

.btn-download{
    text-decoration: none;
    padding: .5rem 1rem;
    font-family: inherit;
    font-size: inherit;
    border-radius: 0.8rem;
    border: none;
    transition: all 0.3ms;
    cursor: pointer;
    background-color: #d0ebff;
    color: #1864ab;
}

.btn-download:hover{
    background-color: #339af0;
    color: #fff;
}

.homepage {
    padding: 0 4.8rem;
    grid-template-columns: 2fr 1fr;
}

.frontpage{
    grid-template-columns: 1fr 1fr;
    height: 100vh;    

}

.welcome-box{
    padding-top: 14rem;
    padding-left: 20rem;
    font-size: 2.4rem;
}

.welcome-box h1{
    font-size: 2rem;
    margin-bottom: 2.4rem;
    line-height: 4.2rem;
}
.welcome-box img{
    width: 300px;
    height: auto;
}
.login-box{
    margin-top: 2.2rem;
    padding-top: 8.8rem;
    padding-left: 10.8rem;    
}

.front-login-frm{
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    width: 60%;
    border: 1px solid #8ec1ff;
    padding: 2.4rem;
    border-radius: 0.8rem;
}
.front-login-frm-field{
    display: flex;
    flex-direction: column;
}

.front-login-frm-field label{
    font-size: 1.2rem;
}

.why,
.how {
    padding-left: 4.8rem;
}

.grid-col-span-2 {
    grid-column: span 2;
}
.grid-col-span-3 {
    grid-column: span 3;
}
.grid-col-2 {
    grid-column: 2;
}

.form-edit-org-info,
.form-create-org {
    width: 75%;
}
.form-create-org {
    gap: 1.8rem;
}

.form-create-org-item {
    grid-template-columns: 2fr 4fr;
    align-items: center;
}
.form-project-area {
    gap: 2.4rem;
}
.project-area-category li {
    display: flex;
    gap: 2.4rem;
}

.form-header {
    grid-column: span 2;
    display: flex;
    gap: 2.4rem;
    align-items: center;
}
.form-header:first-child {
    padding-bottom: 2.4rem;
    border-bottom: 2px solid #555;
}

.frm-title {
    padding: 1.2rem;
    background-color: #339af0;
    text-align: center;
    color: #eee;
}



.frm-login {
    padding: 2.4rem 4.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.frm-login-field {
    display: flex;
    flex-direction: column;
}

.frm-edit-profile,
.frm-edit-password {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    width: 60%;
    gap:1.6rem;
}
.frm-edit-profile label,
.frm-edit-password label {
    font-size: 1rem;
}

.project-area-box {
    gap: 2.4rem;
}
.project-area-header {
    font-weight: 700;
    font-size: 1.8rem;
}
.project-area-category {
    list-style: none;
    gap: 2.4rem;
}

.project-target {
    list-style: none;
}

.form-target-group {
    gap: 2.4rem;
}

.project-box {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1fr 4fr;
    border-bottom: 1px solid #333;
    padding-bottom: 2.4rem;
}

.project-box .span {
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    background-color: #78f5f7;
    border-radius: 0.8rem;
    margin: 0.2rem 0;
    display: inline-block;
}

.btn-action-box {
    margin-top: 1.2rem;
    grid-column: 2;
    display: flex;
    gap: 0.8rem;
}

.btn-action-option {
    list-style: none;
    display: inline-block;
}
.btn-action-option li {
    display: inline-block;
    padding: 1rem 1.2rem;
    background-color: #339af0;
    border-radius: 0.8rem;
}
.btn-action-option li:hover {
    background-color: #65b4f6;
}

.action-option-link {
    text-decoration: none;
    color: #fff;
    
}
.activity-list {
    padding-left: 2.4rem;
    /* list-style: none; */
}

form input {
    padding: 1.2rem;
    border-radius: 0.8rem;
    font-family: inherit;
    font-size: initial;
    border: none;
    background-color: #eee;
}

.ngos-list-row,
.ngos-list-row-ad {
    background-color: #ffffff;
    border: 1px solid #65b4f6;
    padding: 1.2rem;
    gap: 1.2rem;
    border-radius: 0.8rem;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .ngos-list-row:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: scale(1.02);
    border-color: #4a90e2;
    background-color: #f9fbff;
    }


.ngos-list-row {
    grid-template-columns: 15fr 85fr;
}
.ngos-list-row-ad {
    grid-template-columns: 15fr 60fr 25fr;
}
.box-project-cat {
    padding: 1.8rem 0 1.8rem 0;
}
.box-project-cat {
    grid-template-columns: 40fr 40fr 20fr;
    gap: 0;
}

.ngos-list-row h3 {
    border-bottom: 1px solid #65b4f6;
    padding-bottom: 0.8rem;
}

.ngologo {
    text-align: center;
    position: relative;
    display: inline-block; /* shrink-wrap the logo */
}

.ngologo img {
    width: auto; /* adjust as needed */
    height: auto;
}

.edit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.edit-icon:hover {
    background-color: #f0f0f0;
}

.upload-logo {
    padding: 0;
    background-color: #fff;
    border-radius: 0%;
}

.btn-upload {
    width: fit-content;
}

.list-ngologos {
    width: 170px;
}

.btn,
.btn:link,
.btn:visited {
    text-decoration: none;
    padding: 1.2rem 2.4rem;
    font-family: inherit;
    font-size: inherit;
    border-radius: 0.8rem;
    border: none;
    transition: all 0.3ms;
    cursor: pointer;
    background-color: #d0ebff;
    color: #1864ab;
}

.btn-action-edit,
.btn-action-save,
.btn-action-edit:link,
.btn-action-edit:visited,
.btn-action-delete,
.btn-action-delete:link,
.btn-action-delete:visited {
    text-decoration: none;
    /* padding: 0.4rem 0.8rem; */
    font-family: inherit;
    font-size: inherit;
    border-radius: 0.8rem;
    border: none;
    transition: all 0.3ms;
    cursor: pointer;
}
.btn-action-edit,
.btn-action-edit:link,
.btn-action-edit:visited {
    background-color: #10d961;
    margin-right: 0.4rem;
}



.btn-action-edit:hover,
.btn-action-edit:active {
    background-color: #0b9f46;
}
.btn-action-delete,
.btn-action-delete:link,
.btn-action-delete:visited {
    background-color: #ff0000;
    color: #fff;
    padding: 1rem;
}
.btn-action-delete:hover,
.btn-action-delete:active {
    background-color: #c5220c;
}

.btn-action-save,
.btn-submit {
    background-color: #5ebef5;
    color: #fff;
    padding: 1rem;
    border-radius: 0.8rem;
}
.btn-submit:hover,
.btn-submit:active,
.btn-action-save:hover {
    background-color: #339af0;
}

.btn-icon {
    padding: 0.6rem 0.8rem;
}

.btn:hover,
.btn:active {
    background-color: #339af0;
    color: #fff;
}

.btn-project-area,
.btn-target-group {
    align-self: flex-start;
}
.btn-profile {
    display: inline-block;
}

.btn-edit {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.btn-addnew {
    border-radius: .5rem; 
    color: #ffffff;
    text-decoration: none;
    background-color: #6aa5ff;
    padding: .4rem .8rem;
}

.btn-addnew:hover, .btn-addnew:active {    
    background-color: #3873cc;
}
.list-type-ngo {
    grid-column: 2;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.list-type-ngo-item {
    display: flex;
    gap: 1.8rem;
}

.section-user-profile {
    width: 45rem;
    margin: 0 auto 9.6rem auto;
}
.section-verify-email,
.section-login,
.section-create-account {
    border-radius: 0.8rem;
    overflow: hidden;
    margin: 0 auto 9.6rem auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0.4rem 0.8rem rgba(51, 51, 51, 0.349);
}

.section-verify-email {
    padding: 1.8rem;
}

.section-login,
.section-verify-email {
    width: 45rem;
}
.section-create-account {
    width: 65rem;
}

.section-login p,
.section-create-account p {
    font-size: 1.6rem;
    font-weight: 500;
    /* margin-bottom: 1.8rem; */
}
.box-paymentyear,
.box-make-payment {
    padding: 0rem 0rem 3.8rem 0rem;
    border-bottom: 2px solid #000;
}

.box-summary-project {
    justify-content: space-between;
}

.box-payment-status {
    padding: 0rem 0rem 3.8rem 0rem;
}

.box-project-provinces {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.project-province {
    grid-template-columns: 90fr 10fr;
}

.box-project-provinces li {
    list-style: none;
    padding: 0.4rem;
    /* border: 1px solid #76bffa; */
}

.box-frm-search {
    justify-content: end;
}

.footer {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 4.8rem;
}

.menu-icon {
    display: inline-block;
    width: 1.4rem;
    height: 1.4rem;
    border: 1px solid #d0ebff;
    border-radius: 5%;
    padding: 0.4rem;
}

.contact-table {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}
.paymentyear-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.payment-table {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
}

.users-table {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.item-head {
    padding: 1rem;
    border-left: 1px solid #1864ab;
    border-bottom: 1px solid #1864ab;
    border-top: 1px solid #1864ab;
    background-color: #5ebef5;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between; /* text left, icon right */ 
}

.item-row {
    font-size: 1.4rem;
    padding: 1rem;
    border-left: 1px solid #1864ab;
    border-bottom: 1px solid #1864ab;
    border-top: none;    
    display: flex;                /* turn each cell into flex */
    align-items: center;          /* vertical align center */
}
.last {
    border-right: 1px solid #1864ab;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.project-cat-row,
.project-cat-head {
    justify-content: left;
}

.wg-box {
    width: 70%;
    padding: 1.8rem 1.2rem 1.2rem 4.8rem;
    border-radius: 1rem;
}
.wg-contact {
    display: grid;
    grid-template-columns: 1fr 3fr;
    align-items: center;
}

.wg-contact-action {
    display: flex;
    gap: 1.8rem;
    padding-left: 3.8rem;
}

.wg-contact-action a:link,
.wg-contact-action a:visited {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    background-color: #339af0;
    border-radius: 0.4rem;
    padding: 0.8rem 1.4rem;
}
.wg-contact-action a:hover,
.wg-contact-action a:active {
    background-color: #76bffa;
}

.contact-icon {
    margin-right: 2.4rem;
}

.frm-select-wg-contact,
.frm-view-payment,
.frm-add-paymentyear {
    display: flex;
    gap: 1.8rem;
}
.select-wg-contact,
.select-payment-year,
.select-org {
    background-color: #5ebef5;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 0.4rem;
    color: #fff;
    font-family: inherit;
}

.select-org,
.select-payment-year {
    padding: 1.4rem;
}
.v-align {
    align-self: center;
}

.select-wg-contact:hover {
    background-color: #339af0;
}

/*for announcement form*/
#specific-users {
    width: 100%;    
}

.user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.user-tag {
    background-color: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}


.user-tag button {
    background-color: #c5220c;
    border: none;
    color: #fff; /* white */
    font-size: 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.3em;
}

.user-tag button:hover {
    color: #000000; /* darker red on hover */
}

.suggestions {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    position: absolute;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
    z-index: 100;
    background-color: #9af8bf;
}

.suggestions.show {
    display: block;
    opacity: 1;
}

.suggestions.above {
    bottom: 100%;
    top: auto;
}

.suggestions li {
    padding: 0.5rem;
    cursor: pointer;
}

.suggestions li:hover,
.suggestions li.highlight {
    background-color: #e2e8f0;
}


/* Basic custom select styling */
#send_to_all {
    width: 100%;
    padding: 1rem 1rem;    
    border: 1px solid #ccc;
    border-radius: 0.375rem; /* rounded corners */
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Hover and focus states */
#send_to_all:hover {
    border-color: #999;
}

#send_to_all:focus {
    border-color: #3b82f6; /* blue focus */
    box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
    outline: none;
}

/* Add a custom arrow using a background image */
#send_to_all.custom-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.5rem auto;
    padding-right: 2rem; /* space for the arrow */
}

/*usermenu when login  */

.user-menu {
    position: relative;
    display: inline-block;
}

.user-button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    /* font-weight: bold; */
    display: flex;
    align-items: center;
    gap: 4px;
    color: #000;
}
.user-button:hover {
    color: #339af0;
}

.arrow {
    font-size: 0.7em;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 100px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 10;

}

.dropdown-item {
    padding:  4px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    color: #f25a5a;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

ion-icon{
    font-size: 1.4rem;
    vertical-align: middle;
}



/* Show dropdown when parent has .open class */
.user-menu.open .dropdown {
    display: block;
}


/*show hide project province*/
.toggle-checkbox {
  display: none;
}

.toggle-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #339af0;
  color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.toggle-label:hover {
  background: #1e40af;
}

.toggle-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  background: #f9fafb;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  padding: 0 1rem;
}

/* Show content when checked */
.toggle-checkbox:checked ~ .toggle-content {
  max-height: 500px; /* adjust if needed */
  padding: 1rem;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
}

/* Text switch */
.show-text {
  display: inline;
}
.hide-text {
  display: none;
}
.toggle-checkbox:checked + .toggle-label .show-text {
  display: none;
}
.toggle-checkbox:checked + .toggle-label .hide-text {
  display: inline;
}

/* sort contact table */


.item-head {
    font-weight: bold;
    padding: 8px;
    background: #5ba4f3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between; /* text left, icon right */
    border-bottom: 1px solid #ccc;
    
}

.item-head ion-icon {
    font-size: 16px;
    color: #ffffff;
    transition: transform 0.2s;
}

.item-head.sorted-asc ion-icon {
    transform: rotate(180deg);
    color: #000;
}

.item-head.sorted-desc ion-icon {
    transform: rotate(0deg);
    color: #42388b;
}

.save-btn{
    display: inline-block;    
}

.cancel-btn{   
    display: inline-block;     
    text-align: center;
}

.search-box {

    margin-bottom: 1.8rem;
    padding: 1rem;
    width: 100%;
    /* max-width: 400px; */
    border: 1px solid #ccc;
    border-radius: 4px;
}
.search-box:focus {
    border-color: #339af0;
    outline: none;
    box-shadow: 0 0 5px rgba(51, 154, 240, 0.5);
}


.ngo-stats {              /* layout in a row */
    flex-wrap: wrap;     /* wrap on smaller screens */
}

.stat-card {
    flex: 1 1 200px;             /* responsive width */
    background-color: #1a52a1;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #c0c8d1;
    cursor: pointer;   
    transition: background-color 0.2s;  
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: #ffffff;    
       
}

.stat-label {
    font-size: 1rem;
    margin: 0;
    color: #ffffff;
}


.stat-card:hover {
    background-color: #339af0;
    
}


/* Tabs */


    .tab-container {
    width: 100%;
    min-height: 200px; /* adjust as needed */
       
    }

    .tabs {
    display: flex;
    flex-direction: row;
    
    cursor: pointer;
    margin-bottom: 0; /* prevent gap */
    color: #fff;
    background: #339af0;
    }

    .tab {    
    padding: 10px 20px;
    border-bottom: none;
    background: #339af0;
    transition: background 0.2s;
    }

    .tab:hover {
    background: #163dc9;
    }

    .tab.active {
    background: #8bd2ff;
    font-weight: bold;
    color: #000;
    }

    .tab-contents {
    border: 1px solid #ccc;
    padding: 15px;
    background: #fff;
    }

    .tab-content {
    display: none;
    }

    .tab-content.active {
    display: block;
    }


    /*login links on homepage*/

    .login-links {    
    text-align: center;  
    font-size: 1.2rem;  
    }

    .login-links a {
    color: #2563eb;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    }

    .login-links a:hover {
    color: #1e40af;
    text-decoration: underline;
    }

    .login-links span {
    color: #9ca3af; /* light gray separator */
    }

    /* NGO cards grid */
    .ngo-search-container {
    text-align: center;
    }

    #ngoSearch {
    width: 100%;
    max-width: 500px;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    #ngoSearch:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
    }

    /* NGO grid and cards */
    .ngo-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 equal columns by default */
        gap: 1.25rem;
    }

    @media (max-width: 1024px) {
    .ngo-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
    }

    @media (max-width: 640px) {
    .ngo-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
    }

    .ngo-card {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        padding: 1.25rem;
        text-decoration: none;
        color: inherit;
        transition: all 0.25s ease;
    }

    .ngo-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    }

    .ngo-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #eee;
    padding: 6px;
    transition: transform 0.25s ease;
    }

    .ngo-card:hover img {
    transform: scale(1.05);
    }

    .ngo-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: #111827;
    }

    .ngo-info p {
    font-size: 1rem;
    color: #374151;
    margin: 0.3rem 0;
    line-height: 1.4;
    }

    .ngo-showcase {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    
    }

    /* Header */
    .ngo-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid #eee;
    /* justify-content: space-between; */
    }

    .ngo-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    }

    

    .ngo-header-text h2 {
    margin: 0;
    font-size: 2rem;
    color: #1e40af;
    }

    .ngo-header-text p {
    margin: 5px 0 0 0;
    color: #555;
    font-size: 1.2rem;
    }

    /* Cards (Mission, Vision, Expertise, Impact) */
    .card {  
    padding: 20px;  
    flex: 1 1 45%;
    }

    .card h3 {
    color: #1e40af;
    margin-bottom: 10px;
    }

    .card p {
    color: #555;
    line-height: 1.6;
    }

    /* Mission & Vision, Expertise & Impact container */
    .ngo-mission-vision,
    .ngo-expertise-impact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    }

    /* Impact Metrics */
    .impact-metrics {
    display: flex;
    gap: 10px;
    }

    .impact-metrics div {
    background: #fff;
    flex: 1;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .impact-metrics p {
    margin: 0;
    font-weight: bold;
    color: #1e40af;
    font-size: 1.2rem;
    }

    .impact-metrics span {
    display: block;
    color: #555;
    font-size: 0.9rem;
    }

    /* Programs */
    .ngo-programs h3 {
    color: #1e40af;
    text-align: center;
    margin-bottom: 20px;
    }

    .program-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    }

    .program-card {
    flex: 1 1 250px;
    padding: 15px; 
    transition: transform 0.2s ease;
    }

    .program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .program-card h4 {
    color: #1e40af;
    margin-bottom: 8px;
    }

    .program-card p {
    color: #555;
    }

    /* Partners / Donors */
    .ngo-partners h3 {
    color: #1e40af;
    text-align: center;
    margin-bottom: 15px;
    }

    .partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    }

    .partners-logos img {
    height: 40px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    }

    .partners-logos img:hover {
    filter: grayscale(0%);
    }

    /* Contacts */
    .ngo-contacts {
    background: #eff7ff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .ngo-contacts h3 {
    color: #1e40af;
    margin-bottom: 12px;
    }

    .contacts-info p {
        text-align: center;
        font-size: 1rem;
        color: #333;
        margin: 6px 0;
        padding-left: 25px; /* add left padding */
        position: relative;
    }

    /* Adjust icon position */
    .contacts-info p i {
        position: relative;
        /* left: 50%;  
        top: 50%;
        transform: translateY(-50%); */
        color: #1e40af; /* optional: match your theme color */
        width: 20px; /* reserve space for the icon */
        text-align: center;
    }

    .contacts-info a {
    color: #2563eb;
    text-decoration: none;
    }

    .contacts-info a:hover {
    text-decoration: underline;
    }

    .project-donor {  
    font-size: 1.2rem;
    }

   

    .about-item {
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid #ddd;
    }

    .about-item h3 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #1e40af;
    }

    .about-item p {
        color: #555;
        margin-top: 8px;
        line-height: 1.5;
    }

    .edit-btn {
        background-color: #1e40af;
        color: #fff;
        padding: 4px 10px;
        border-radius: 6px;   
        text-decoration: none;
    }

    .edit-btn:hover {
        background-color: #2563eb;
    }

    .form-group {
        position: relative; /* Needed to position counter inside */
        margin-bottom: 25px;
    }

    .form-group textarea {
        width: 100%;
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 12px;
        resize: vertical;
        font-family: inherit;
        transition: border-color 0.3s ease;
        background-color: #f9fafb;
        min-height: 140px;
        box-sizing: border-box;
    }

    /* Floating character counter inside textarea */
    .helper-text {
        position: absolute;
        bottom: 8px;
        right: 12px;
        /* font-size: 0.75rem; */
        color: #555;
        font-style: italic;
        background-color: rgba(255,255,255,0.7);
        padding: 1px 6px;
        border-radius: 6px;
        pointer-events: none; /* so it doesn’t block typing */
        transition: color 0.2s ease;
        font-weight: 600;
    }

    .form-group textarea:focus + .helper-text {
        color: #2563eb; /* highlight when typing */
    }

    /* Optional: Red color when near max length (handled by JS) */
    .helper-text span {
        font-weight: 600;
    }

    .form-actions {
        display: flex;
        justify-content: center;
        gap: 15px;
    }


    .ngo-box{
        display: block;
        display: block;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 16px;
        margin-bottom: 16px;
        text-decoration: none;
        color: inherit;
        transition: all 0.25s ease;
        cursor: pointer;
    }

    /* Responsive */
    @media (max-width: 600px) {
        .form-container {
            padding: 20px;
        }

        .form-actions {
            flex-direction: column;
            gap: 10px;
        }

        .btn-save, .btn-cancel {
            width: 100%;
            text-align: center;
        }
    }



    /* Responsive */
    @media(max-width: 768px){
        .ngo-mission-vision,
        .ngo-expertise-impact {
            flex-direction: column;
        }

        .ngo-header {
            flex-direction: column;
            align-items: center;
            text-align: center;    
        }

        .ngo-header-text h2 {
            font-size: 1.8rem;
        }

        .ngo-header-text p {
            font-size: 1.1rem;
        }
    }

/* upload form */
 

/* Form */
.form-upload label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-upload select,
.form-upload input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.form-upload button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-upload button:hover {
    background-color: #0056b3;
}

/* Document List */
.document-list {
    list-style: none;
    padding: 0;
}

.document-list li {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: left;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
}

.document-list li:hover {
    background-color: #f9f9f9;
}

.doc-type {
    font-weight: bold;
    color: #333;
    margin-right: 8px;
}


.delete-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.delete-btn:hover {
    background: #c0392b;
}

