
    .navbar-expand-xl .navbar-nav .nav-link {
        padding-right: 0.35rem !important;
        padding-left: 0.45rem !important;
        font-size: 0.72rem;
    }

@media (min-width: 1440px) {
    .navbar-expand-xl .navbar-nav .nav-link {
        padding-right: 0.35rem !important;
        padding-left: 0.45rem !important;
        font-size: 0.72rem;
    }
    
    .navbar-nav {
    font-size: 0.64rem !important;
    white-space: nowrap;
    font-weight: 600 !important;
}

.customer-logos .slide img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 575.98px) {
  .gradient-bg {
    background: rgba(0, 0, 0, 0.5);
  }
}

.rssapp-imageBoard-card {
background-color: rgba(66, 66, 66, 0.5)!important;
}


.cardi-image-container {
    flex: 1 0 30%; /* adjust as needed, this gives the image 30% of the total width */
    position: relative;
}

.cardi-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cardi-body {
    flex: 1 0 70%; /* adjust as needed, this gives the content 70% of the total width */
}

 @media (min-width: 992px) { /* For desktop and larger screens */
        .cardi {
            flex-direction: row !important;
            align-items: center !important;
        }
        .cardi-image-container {
            width: 30% !important;
            margin-right: 15px;
        }
        .cardi-img-top {
            width: 100% !important;
            height: auto !important;
            object-fit: cover !important;
        }
        .cardi-body {
            width: 70% !important;
        }
    }


.res-col-12 {
    padding-right:3px!important;
    padding-left:3px!important;
}

.res-card {
    padding: 15px;
    border-radius: :10px!important;
    box-shadow: 0px 2px 8px rgba(85, 85, 73, 0.24) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
 /* Ensures content is spread evenly */
}

.res-card-image-container {
    width: 100%;
}

.res-card-img-top {
    width: 100%;
    height: auto;
}

.res-card-body {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Aligns title and button */
   height: 164px;
}



.res-section {
    margin: 35px;
}

.res-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.res-btn {
    width: auto;
    align-self: flex-start;
    margin-top: auto;
    font-size: 12px!important;
    font-weight: 600!important;
}



  /* Background image with overlay */
  #carouselContainer .slick-slide .carousel-bg {
      width: 100%;
      height: 0;
      padding-bottom: 85%; /* This makes the box square */
      background-size: cover;
      background-position: center;
      position: relative;
      z-index: 1;
  }

  /* Black overlay to make text visible */
  #carouselContainer .slick-slide .carousel-overlay {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.4);
      z-index: 2;
  }

  /* Title positioning */
.carousel-title {
    left: 10px;
    right: 10px;
    bottom: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 5px 0;
    text-align: left;
    transform: translateY(0); /* Make it always visible */
}

.carousel-summary {
    left: 10px;  /* Ensure summary starts close to the left */
    right: 10px;
    z-index:2;
    font-color: white!important;
    bottom: 0px;  /* Adjusted to appear below the title */
    transform: translateY(100%); 
    /* ... [Rest of the styles remain unchanged] ... */
}

.carousel-bg:hover .carousel-title {
     transform: translateY(0);  /* Adjusted for smooth upward movement */
}

.carousel-bg:hover .carousel-summary {
    transform: translateY(-30%);  /* Adjusted to move up with the title */
    opacity: 1;
}

.slick-arrow {
    font-size: 20px; /* Adjust size of the arrow */
    color: rgba(211, 211, 211, 0.5);  /* Light grey with 50% transparency */
}

.slick-arrow.slick-prev {
    left: 15px; /* Adjust as needed for positioning */
    z-index: 3; /* To ensure it stays on top */
}

.slick-arrow.slick-next {
    right: 15px; /* Adjust as needed for positioning */
    z-index: 3; /* To ensure it stays on top */
}

.slick-prev::before, .slick-next::before {
    content: ''; /* Override the default content to hide the text */
}

.slick-prev, .slick-next {
    font-family: 'slick';
    color: transparent !important;
}

.slick-prev::before {
    content: '\2190'; /* Unicode for leftward arrow */
}

.slick-next::before {
    content: '\2192'; /* Unicode for rightward arrow */
}

.project-carousel-bg {
    position: relative;
    height: 400px; /* You can adjust this for taller cards */
    overflow: hidden;
    border-radius: 7px; /* As you mentioned */
}

.project-carousel-bg {
    position: relative;
    height: 365px; 
    width: 210px;  
    overflow: hidden;
    border-radius: 7px; 
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center; 
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
}

.carousel-title {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 5px 0;
    text-align: left;
    z-index: 2;
}

.carousel-summary {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    font-size: 0.9rem;
    max-height: 3rem; /* Equivalent to 2 lines of text */
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s;
    z-index: 2;
}

.project-carousel-bg:hover .carousel-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.project-carousel-bg:hover .carousel-title {
    bottom: 55px;
}

.project-carousel-bg:hover .carousel-summary {
    opacity: 1;
}

.slick-prev, .slick-next {
    font-family: 'slick';
    color: transparent !important;
    top: 50%; 
    transform: translateY(-50%);
}

.slick-prev::before {
    content: '\2190'; 
}

.slick-next::before {
    content: '\2192'; 
}



.tall-project-carousel-bg {
    position: relative;
    height: 365px;
    width: 237px;  
    overflow: hidden;
    border-radius: 7px; 
    margin: 0 10px 20px;
}

.tall-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center; 
}

.tall-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
}

.tall-carousel-title {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 5px 0;
    text-align: left;
    z-index: 2;
}

.tall-carousel-summary {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    font-size: 0.9rem;
    max-height: 3rem; 
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s;
    z-index: 2;
}

.tall-project-carousel-bg:hover .tall-carousel-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.tall-project-carousel-bg:hover .tall-carousel-title {
    bottom: 55px;
}

.tall-project-carousel-bg:hover .tall-carousel-summary {
    opacity: 1;
}


.slick-prev, .slick-next {
    font-family: 'slick';
    color: transparent !important;
    top: 45%; 
    transform: translateY(-50%);
     background-color: #00000059!important;
    padding: 1px; 
    border-radius: 50px;
    font-size:0px;
}

.slick-prev::before {
    content: '\2190'; 
}

.slick-next::before {
    content: '\2192'; 
}

.grantee-carousel-bg {
    position: relative;
    height: 350px;
    width: 235px;
    overflow: hidden;
    border-radius: 7px;
    margin: 0 1px; /* Reduced margin for smaller gaps */
}

.grantee-carousel-bg img {
    z-index: 1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

.grantee-carousel-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: background 0.3s ease;
    z-index: 1;
}

.grantee-carousel-title, .grantee-carousel-summary {
    position: absolute;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Adding transition for opacity */
    z-index: 2;
}

.grantee-carousel-title {
    left: 10px;
    right: 10px;
    bottom: 15%; /* Adjusted to move it upwards on hover */
    line-height: 1.35rem;
    font-family: 'Open Sans';
    font-size:1.3rem;
    font-weight: 300;
    padding: 5px 0;
    text-align: left;
}

.grantee-carousel-summary {
    position: absolute;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2;
    opacity: 0; 
    left: 10px;
    right: 10px;
    bottom: 10px; /* Adjusted to move it downwards */
    font-size: 1rem; /* Increased font size */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grantee-carousel-bg:hover .grantee-carousel-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.grantee-carousel-bg:hover .grantee-carousel-title {
    transform: translateY(-20%); /* Adjusted to lessen the upward transition */
}

.grantee-carousel-bg:hover .grantee-carousel-summary {
    transform: translateY(0%); /* Adjusted to prevent upward transition */
    opacity: 1; /* Ensure it becomes visible on hover */
}

.slick-arrow {
    color: rgba(211, 211, 211, 0.5);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.grantee-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.grantee-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grantee-card-overlay {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
}

.grantee-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
    width: 95%;
}

.grantee-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #f9cd13;
}

.grantee-card-category {
    font-size: 1rem;
    color: white;
    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 9992;
}

.grantee-card-summary {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    animation: fadeInSummary 3s ease-in-out forwards;
    opacity: 0;
    display: none;
}

@keyframes fadeInSummary {
    to {
        opacity: 1;
    }
}

.grantee-card:hover .grantee-card-category,
.grantee-card:hover .grantee-card-summary {
    display: block;
    opacity: 1;
}

.learn-more-btn {
    align-self: center;
    margin-top: auto;
    color: #000000;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid #ffffff;
    background: #ffffff;
    cursor: pointer;
    border-radius: 255px;
    padding: 8px 16px;
    transition: background-color 0.3s, color 0.3s;
}

.learn-more-btn:hover {
    background-color: transparent;
    color: #ffffff;
}

/* Grant status css */
.grantee-card-status {
    padding: 1px 11px;
    text-align: center;
    font-size: small;
    letter-spacing: 2px;
    border-radius: 25px;
    color: white;
    font-weight: thin;
    margin-bottom: 10px;
    position: absolute;
    top: 10px;
    right: 15px;
}

.grantee-card-status.open {
    background-color: #f9cd13;
    color: #503519;
}

.grantee-card-status.closed {
    background-color: #744617;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grantee-card-title {
        font-size: 1.1rem;
    }

    .grantee-card-category,
    .grantee-card-summary {
        font-size: 0.8rem;
    }

    .learn-more-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .grantee-card-overlay {
        padding: 10px;
    }

    .grantee-card-title {
        font-size: 1rem;
    }

    .grantee-card-category,
    .grantee-card-summary {
        font-size: 0.75rem;
    }

    .grantee-card-status {
        font-size: x-small;
        padding: 1px 8px;
    }
/*Title carousel */

    #carouselWrapper {
        display: flex;
    }
    #carouselTitle {
        width: 25%; /* This is the space the title will take, equivalent to one slide */
        font-family: 'Open Sans', sans-serif;
        font-size: 1.3rem;
        font-weight: 300;
        color: #333; /* Adjust the color as needed */
        padding: 10px;
        display: flex;
        align-items: center; /* This will vertically center the title */
        justify-content: center; /* This will horizontally center the title */
        background: #fff; /* Adjust the background as needed */
        height: 300px; /* Match the height of the carousel */
        border-radius: 7px 0 0 7px; /* Match the border radius of the carousel */
        box-sizing: border-box;
    }
    #carouselContainer {
        width: 75%; /* Adjust this value to fit the title */
        overflow: hidden; /* Ensures the additional slides are hidden */
    }

.toplink {
    margin: auto;
    color: #ffffff;
    background-color: #503519;
    padding: 12px;
    border-radius: 25px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.toplinks {
    font-size:small;
    margin-left:6px;
    float:left;
    color: #a2a2a2;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform:uppercase;
}
