/* Entire Section Container */
.dsc-section-container {
    max-width:1200px;
    margin:0 auto; /* Center the section */
    padding:40px 20px; /* Top/Bottom + Left/Right spacing */
    box-sizing:border-box;
}

/* Filters Section */
.dsc-filters {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
    justify-content: center;
    margin-top: 0px;
}
.dsc-filters select,
.dsc-filters input
 {
    padding: 10px 5px !important;
    border-radius: 5px !important;
    border: 1px solid #ccc;
    font-size: 15px !important;
    height: 50px;
}

 .dsc-filters button{
  padding: 10px 20px !important;
    border-radius: 5px !important;
    border: 1px solid #ccc;
    font-size: 15px !important;
    height: 50px;  
    font-weight: normal !important;
}

/* Cards Grid */
.dsc-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(100%,1fr));
    gap:20px;
    padding: 0 150px 15px 150px;
}

/* Individual Card */
.dsc-card {
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
    display:none; /* hidden initially for JS filter animation */
    transition:all 0.3s ease;
}

/* Card Heading */
.dsc-title {
    color:#133050 !important;      /* Darker color for heading */
    font-size:22px !important;
    margin-bottom:14px !important;  /* spacing between title and sub-heading */
}

/* Card Sub-heading */
.dsc-subheading {
    color: dimgray !important;
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: normal;
}

/* Short Description */
.dsc-short-desc {
    color: black;
    margin-bottom: 10px;
    font-size: 15px;
}

/* Long Description (hidden initially) */
.card-long-desc {
    color:#444;
    display:none;
    margin-bottom:10px;
}

/* Tags */
.card-tags {
    margin-bottom:20px;
}

.tag {
    display: inline-block;
    background: #fff;
    padding: 0px 10px;
    border: 1px solid black;
    border-radius: 8px;
    margin-right: 5px;
    font-size: 12px;
    margin-bottom: 5px;
    color: black;
}

/* View More Button - Outline Style */
.view-more-btn {
    display: inline-block;
    padding: 10px 15px !important;
    background: transparent;
    color: orange;
    border: 1px solid orange !important;
    border-radius: 50% !important;
    height:41px;
    text-decoration:none;
    font-weight:500 !important;
    transition:all 0.3s ease;
    background: linear-gradient(90deg, #f6aa29, #fbd71a, #6bb855);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.view-more-btn:hover {
    background:#133050;                /* Fill background on hover */
    color:#fff;                        /* Text white on hover */
    border-color: #f5a22a;
    background: linear-gradient(90deg, #f6aa29, #fbd71a, #6bb855);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Load More / Load Less Button (Gradient & Center Aligned) */
.dsc-loadmore-btn {
    display: block;
    margin: 30px auto 0 auto;
    text-align: center;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    text-decoration: none;
    border: none;
    background: linear-gradient(90deg, #f6aa29, #fbd71a, #6bb855);
    background-size: 200% 200%;
    background-position: 100% 0;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.6s 
ease;
    margin-bottom: 80px;
}

.dsc-loadmore-btn:hover {
    opacity: 0.9;                        /* Subtle hover effect */
    transform: translateY(-2px);         /* Small lift on hover */
}


/* No Results Message */
#dsc-no-results {
    font-size:16px;
    color:#ff0000;
    text-align:center;
    margin-top:20px;
}

.dsc-donor-ddsc{
 color: black;
 margin-bottom: 0px; 
 font-size: 15px;
}

.dsc-location-ldsc{
  color: black;
  margin-bottom: 10px;  
  font-size: 15px;
}


/* Smooth hover effect for cards */
.dsc-card:hover {
    transform:translateY(-5px);
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

/* All & Reset Buttons Gradient */
.dsc-filter-btn.active,
#dsc-reset {
    background: linear-gradient(90deg, #f6aa29, #fbd71a, #6bb855);
    background-size: 200% 200%;
    background-position: 100% 0;
    transition: all 0.6s 
ease;
    color: #fff;
    border: none;
    padding: 10px 20px !important;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px !important;
    height: 50px;
}

.dsc-filter-btn.active:hover,
#dsc-reset:hover {
    opacity: 0.9; /* Slight hover effect */
}

/* Smooth fade + slide animation for cards */
.dsc-card {
    transition: opacity 0.35s ease, transform 0.35s ease;
    will-change: opacity, transform;
}

/* New styles for logos and smooth expand */
.dsc-card { overflow: visible; transition: all 0.35s ease; }
.dsc-card .dsc-card-inner { padding:16px; position:relative; }
.dsc-card-head { display:flex; align-items:center; gap:12px; }
.dsc-title-wrap { flex:1; }
.dsc-logo1 img { border:none;
    width: 62px;
    height: 62px;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    padding: 0px;
    margin-top: -8px; }
.dsc-logo2 img { border-radius: 10px;
    max-width: 220px;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border:none;
    padding: 0px;
    height: 147px;
    object-fit: cover; }

/* Expanded details: hidden by default with max-height transition */
.expanded-details { max-height: 0px; overflow: hidden; transition: max-height 0.45s ease; }
.dsc-expanded .expanded-details { /* will be set by JS to correct height */ }

/* Ensure expansion is smooth and doesn't reflow abruptly: add small transform to card on expand */
.dsc-expanded { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }

/* Card footer button spacing */
.dsc-card-foot { margin-top:12px; display:flex; gap:8px; align-items:center; justify-content: flex-end;}


/* Color-coded status styles */
.dsc-card.status-green { background:white; border-top:6px solid #3cc13c; }
.dsc-card.status-yellow { background:white; border-top:6px solid #f2c500; }
.dsc-card.status-red { background:#ffe6e6; border-top:6px solid #e64a4a; }

/* Visit Website button inside expanded view */
.visit-website-btn {
  display: inline-block;
    background: transparent;
    color: black;
    text-decoration: none;
    padding: 6px 12px !important;
    border-radius: 20px;
    transition: background 0.3s;
    border: 1px solid #f4972e;
    font-size: 14px;
    transition: all 0.3s 
ease;
    background: linear-gradient(90deg, #f6aa29, #fbd71a, #6bb855);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.visit-website-btn:hover { transition: all 0.3s 
ease;
    background: linear-gradient(90deg, #f6aa29, #fbd71a, #6bb855);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; }

.donor-info-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: black;
}

/* Add separators (|) automatically between items */
.donor-info-line > *:not(:last-child)::after {
  content: "|";
  margin: 0 10px;
  color: var(--separator-color, #999); /* Default separator color, can change via CSS variable */
}

/* Example custom color for separator */
.donor-info-line.custom-separator > *:not(:last-child)::after {
  color: #be8e20; /* Gold example */
}

.dsc-dropdown-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.dsc-dropdown {
    position: relative;
    display: inline-block;
}

 .dsc-dropbtn {
    background: transparent !important;
    color: #828282 !important;
    border: 1px solid #ccc !important;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    min-width: 180px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dsc-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 999;
    padding: 8px 10px;
    border-radius: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.dsc-dropdown-content label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 22px;
}

.dsc-dropdown-content label:hover {
    background: #f1f1f1;
}

.dsc-dropdown-content input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.dsc-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dsc-left-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dsc-title-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo sizes */
.dsc-logo1 img,
.dsc-logo2 img {
    max-height: 50px;
    width: auto;
    display: block;
}

