:root {
    --text-orange: #F7A234;
    --text-green: #24ABA0;
}

html {
    font-size: clamp(14px, 2vw, 18px);
}

.text-orange {
    color: var(--text-orange);
}

.text-green {
    color: var(--text-green);
}

.ohf_font {
    font-family: cursive;
}

.bg-green {
    background-color: var(--text-green);
}

.bg-orange {
    background-color: var(--text-orange);
}

.btn-green, .btn-green2 {
    background-color: var(--text-green);
    color: #fff;
    border: 2px solid var(--text-green);
}

.btn-green:hover {
    background-color: #fff;
    border: 2px solid var(--text-green);
    color: var(--text-green) !important;
}

.btn-green2:hover {
    background-color: transparent;
    border: 2px solid var(--text-green);
    color: var(--text-green) !important;
}




/* ===========  headers SECTION STARTS =========== */
.event-hero{
    background-image: url('../img/bg/Frame_2147226443.png') !important;
    background-size: cover;
    background-position: center !important;
    padding: 60px 0px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.blog-hero{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center !important;
    padding: 60px 0px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.headers {
   
    position: relative;
    
    
}




/* Optional: Add a semi-transparent overlay for better text readability */
.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Dark overlay */
    z-index: 5;
    /* Below text but above image */
}

/* Media Queries */
/* @media screen and (max-width: 768px) {
    .headers {
        height: 30vh;
        min-height: 400px;
    }
    .header-img {
        object-fit: cover;
        object-position: center;
    }
}

@media screen and (max-width: 576px) {
    .headers {
        height: 25vh;
        min-height: 350px;
    }
    .header-img {
        object-fit: cover;
        object-position: center;
    }

} */


/* ===========  headers SECTION ENDS =========== */


/* ===========  BLOG SECTION STARTS =========== */
.btn-1,
.btn-2 {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-green);
}

.btn-1 {
    background-color: #fff;
    color: var(--text-green);
}

.btn-2 {
    background-color: var(--text-green);
    color: #fff;
}

.btn-1:hover,
.btn-2:hover {
    border: 1px solid black;
    background-color: #000;
    color: #fff;
}

.author::after,
.date::after {
    content: " | ";
}

.remarks {
    display: flex;
    background-color: var(--text-orange);
    color: white;
    position: absolute;
    padding: 5px 10px;
    bottom: -11px;
    /* Space from bottom */
    left: 50%;
    /* Start from 50% of parent */
    transform: translateX(-50%);
    /* Shift back by 50% of own width */
    border-radius: 5px;
    white-space: nowrap;
    /* Prevents line breaks */
}

/* ===========  BLOG PAGINATION STARTS =========== */
.page-item a {
    color: #000 !important;
}

.page-item a.pag-active {
    background-color: #fff !important;
    color: var(--text-green) !important;
    border: 1px solid var(--text-green) !important;
}

/* ===========  BLOG PAGINATION ENDS =========== */



/* =========== BLOG SEARCH =========== */
.blog-search {
    width: 100%;
    background-color: #F6F6F6;
    padding: 30px 15px;
    border-radius: 20px;
}

.searchForm {
    position: relative;
    width: 100%;
}

.searchInput {
    width: 100%;
    font-weight: 400;
    padding: 12px 55px 12px 25px;
    /* Adjusted right padding for button */
    border-radius: 20px;
    border: 1px solid #d2d2d2;
    height: 45px;
    /* Fixed height for better alignment */
}

.searchInput:focus {
    outline: none;
    border: 1px solid var(--text-orange);
}

#blog-search-btn {
    background-color: var(--text-green);
    border-radius: 50%;
    color: white;
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
}

#blog-search-btn:hover {
    background-color: var(--text-orange);
    transition: all ease-in-out 0.3s;
}

#blog-search-btn i {
    font-size: 14px;
    /* Adjusted icon size */
}


/* ========== CATEGORY AREA =========== */
.cat-link {
    border: 1px solid #d2d2d2;
    background-color: white;
    border-radius: 20px;
    padding: 12px 18px;
    /* margin-bottom: 15px ; */
}

.active-cat {
    background-color: #000000c1;
    color: white;
}


.cat-link:hover {
    background-color: var(--text-green);
    color: #fff;
}

/* ========== RELATED BLOG LISTS ============ */
.related-container-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.related-img {
    width: 100px;
    height: 80px;
    /* Fixed initial height */
    min-width: 80px;
    /* Prevent shrinking too much */
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.related-content {
    flex: 1;
    min-width: 150px;
    /* Prevent text squeezing on small screens */
}

.related-date {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    color: #666;
}

.related-title {
    margin-top: 5px;
    font-size: 1rem;
    line-height: 1.3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .related-img {
        width: 80px;
        height: 70px;
    }

    .related-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .related-container-list {
        gap: 10px;
    }

    .related-img {
        width: 70px;
        height: 60px;
    }

    .related-date {
        font-size: 0.7rem;
    }

    .related-title {
        font-size: 0.85rem;
    }
}

.tag {
    background-color: #fff;
    border-radius: 20px;
    border: 1px solid #b5b5b5;
    margin-bottom: 8px;
}

.tag:hover {
    background-color: var(--text-green);
    color: #fff !important;
}

.text_hover:hover {
    color: var(--text-orange) !important;
}

.btn-brands:hover {
    border: none !important;
    /* background-color: var(--text-orange); */
}


/* ============= LEAVE A REPLY ============= */
.form-controls {
    width: 100%;
    padding: 12px 25px;
    border: 1px solid gainsboro;
    border-radius: 20px;
}

.form-controls:focus {
    outline: 1px solid var(--text-orange);
}

.btn-3 {
    background: linear-gradient(to bottom, var(--text-green) 50%, var(--text-orange) 50%);
    background-size: 100% 200%;
    background-position: top;
    color: #fff;
    transition: background-position 0.2s ease-out;
}

.btn-3:hover {
    background-position: bottom;
}

.box-shadow {
    box-shadow: 2px 2px 10px gainsboro;
    border-radius: 8px;
}



/* ============= COMMENT SECTION ============= */

.comment-section {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    /* Align items to the top */
    column-gap: 25px;
    width: 100%;
    /* Ensure full width */
    margin-bottom: 30px;
    /* Add spacing between comments */
}

.comment-img {
    flex: 0 0 70px;
    /* Don't grow, don't shrink, fixed width */
    width: 70px;
    height: 70px;
}

.comment-img .com-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.comment-area {
    flex: 1;
    /* Take remaining space */
    min-width: 0;
    /* Prevent flex item overflow */
}

.comment-area h5 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.comment-area .date,
.comment-area .time {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
    color: #666;
}

.comment-area .date i,
.comment-area .time i {
    margin-right: 5px;
}

.comment-description {
    margin: 15px 0 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .comment-section {
        flex-direction: column;
        gap: 15px;
    }

    .comment-img {
        margin-bottom: 10px;
    }

    .comment-img.d-none.d-md-block {
        display: block !important;
        /* Force show image on mobile */
    }
}
#comment-sections {
    max-height: 500px;
    /* Adjust this value to your preferred height */
    overflow-y: auto;
    /* Enable vertical scrolling */
    padding-right: 10px;
    /* Add some padding so scrollbar doesn't overlap content */

    /* Custom tiny scrollbar for WebKit browsers (Chrome, Safari, Edge) */
    &::-webkit-scrollbar {
        width: 5px;
        /* Makes the scrollbar very thin */
        height: 5px;
        /* For horizontal scrollbars if needed */
    }

    &::-webkit-scrollbar-track {
        background: #f1f1f1;
        /* Light gray track */
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb {
        background: #888;
        /* Darker scroll thumb */
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background:var(--text-orange);
        /* Darker on hover */
    }

    /* For Firefox */
    scrollbar-width: thin;
    /* Makes scrollbar thinner */
    scrollbar-color: #888 #f1f1f1;
    /* thumb and track color */
}

/* Optional: Add some spacing between comments inside the container */
#comment-sections .comment-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    /* subtle separator */
}

#comment-sections .comment-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}






/*  ADD TO OTHER CSS */
.event-descrip {
    font-size: 0.8rem;
}

@media screen and (max-width: 768px) {
    .event-descrip {
        font-size: 1rem;
    }
}

.btn-4 {
    background: linear-gradient(to bottom, #fff 50%, var(--text-green) 50%);
    background-size: 100% 200%;
    background-position: top;
    color: var(--text-orange);
    transition: background-position 0.2s ease-out;
    border: none;
    border-radius: 20px;
    padding-left: 30px;
    padding-right: 30px;
}

.btn-5 {
    background: linear-gradient(to bottom, var(--text-orange) 50%, var(--text-green) 50%);
    background-size: 100% 200%;
    background-position: top;
    color: #fff;
    transition: background-position 0.2s ease-out;
    border: none;
    border-radius: 20px;
}

.btn-4:hover {
    background-position: bottom;
}

.btn-5:hover {
    background-position: bottom;
}

.daysleft {
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 8px;
    padding: 10px 20px;
    max-width: 1000px;
    margin: -40px auto 30px auto;
    /* pushes it up over the bottom of the header image */
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.event-hover {
    color: var(--text-green);
    text-decoration: none;
    font-weight: bolder;
}

.event-hover:hover {
    color: var(--text-orange);
}

/* @media (max-width: 576px) {
    .daysleft {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .daysleft section {
        width: 100%;
    }
} */

.total-img{
    width: 50px;
    height: 50px !important;
}

@media(max-width: 600px){
    .donate_volunteer a{
        margin: 0 auto;
    }
}