:root {
    --primary-color: #2e7d32;
    --secondary-color: #ff8f00;
    --dark-bg: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
    color: #333;
    line-height: 1.6;
}
section{
    padding: 10px;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.hero {
    /* Path assumes styles.css is in assets/css/ and image is in assets/images/ */
    background: url('../images/hero.jpg') no-repeat center center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.card {
    border: none;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.beneficiary-carousel .carousel-item img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
}

.pagination .page-link {
    color: var(--primary-color);
    cursor: pointer;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

footer a {
    text-decoration: none;
    color: #bbb;
    transition: 0.2s;
}

footer a:hover {
    color: #fff;
    padding-left: 5px;
}

.text-justify {
    text-align: justify;
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height:100dvh;
    background-color: #ffffff; 
    z-index: 9999; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}


.loader-hidden {
    opacity: 0;
    visibility: hidden;
}





.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #000; 
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


.video-thumbnail {
    width: 100%;
    height: 220px; 
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.video-card:hover .video-thumbnail {
    opacity: 0.6;
}


.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s;
}
.play-btn-overlay i {
    color: var(--primary-color);
    font-size: 24px;
    margin-left: 4px; 
}
.video-card:hover .play-btn-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}


.shorts-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5px;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.shorts-container::-webkit-scrollbar {
    height: 8px;
}
.shorts-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.shorts-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.short-card {
    min-width: 200px; 
    max-width: 200px;
    height: 350px;   
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.short-card:hover {
    transform: translateY(-5px);
}
.short-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.modal-dialog {
    min-width: 300px;
}
.ratio-9x16 {
    --bs-aspect-ratio: 177.78%; /* Aspect ratio for portrait modal */
}