/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    padding: 0.25rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
}

.navbar-logo {
    height: 35px;
    width: auto;
    flex-shrink: 0;
}

.navbar-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 5px;
}

/* For very small screens */
@media (max-width: 400px) {
    .navbar-brand {
        max-width: 70%;
    }
    .navbar-logo {
        height: 30px;
    }
    .navbar-title {
        font-size: 0.9rem;
    }
}

/* Hide title on very small screens */
@media (max-width: 360px) {
    .navbar-logo {
        height: 30px;
    }
    .navbar-title {
        font-size: 1rem;
    }
}

/* Ensure navbar doesn't cause horizontal scroll */
.container-fluid {
    padding-right: 0;
    padding-left: 0;
}

.navbar-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    display: none;
}

@media (max-width: 991.98px) {
    .navbar-title {
        display: block;
    }
}

.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
    opacity: 0;
    transform: translateY(-50px);
    animation: slideDown 1s ease forwards;
    animation-delay: 0.3s;
}

.navbar.scrolled {
    padding: 8px 0;
    background-color: #f8f9fa !important;
}

.navbar-logo {
    height: 100px; /* Larger logo initially */
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-logo {
    height: 40px; /* Smaller logo when scrolled */
}

.navbar-brand {
    font-weight: bold;
    color: #28a745 !important;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: #28a745 !important;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.5s;
}

.hero h1 {
    font-size: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: textUp 1s ease forwards;
    animation-delay: 1s;
}

.hero a.btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.5s;
}

/* Gallery Images */
.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .navbar-logo {
        height: 50px;
    }
    .navbar.scrolled .navbar-logo {
        height: 35px;
    }
    .nav-link {
        padding: 8px 10px !important;
    }
    .btn-primary {
        padding: 6px 15px;
    }
}

/* Animations */
@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes textUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}












/* About Us Section */
.about-us {
    overflow: hidden;
    padding: 3rem 0;
}

.about-image {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 1s ease-in-out;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s ease-in-out;
    padding: 1.5rem;
}

/* Animation Trigger */
.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}





/* Enhanced Text Styling */
.section-titles {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-titles::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #28a745;
}

.lead-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.info-list li {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.info-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #28a745;
    font-size: 1.2rem;
}

.info-list a {
    color: #28a745;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-list a:hover {
    color: #0056b3;
}

.btn-custom {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #28a745;
    color: #28a745;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: #28a745;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}


/* Responsive Design */
@media (max-width: 767px) {
    .about-image {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .lead-text {
        font-size: 1rem;
    }
}





/* Video Section */
.video-section {
    margin: 0;
    padding: 3rem 0;
    width: 100vw; /* Full viewport width */
}

.video-container {
    position: relative;
    height: 400px; /* Increased height for better parallax effect */
    background-image: url('../uploads/ytthumbnail.jpg'); /* Adjusted path */
    background-size: cover; /* Ensures full image visibility */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps background fixed during scroll */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%; /* Full width */
    margin: 0; /* Remove any margins */
    overflow: hidden; /* Prevents overflow issues */
}


/* Fallback background color */
.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0; /* Fallback if image fails */
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease, opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    opacity: 0;
    transform: translateY(50px);
    text-align: center;
    padding: 1rem;
}

.video-overlay.animate {
    opacity: 1;
    transform: translateY(0); /* Move to original position */
}

.video-overlay:hov
er {
    background: rgba(0, 0, 0, 0.6);
}

.play-button {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid #28a745; /* updated */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4); /* updated */
}

.play-button:hover {
    transform: scale(1.2);
    background-color: rgba(40, 167, 69, 0.3); /* updated */
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.6); /* updated */
}

.play-button svg {
    width: 40px;
    height: 40px;
    fill: #28a745; /* updated */
}

.video-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    max-width: 700px;
    margin-top: 1.5rem;
    padding: 0 1rem;
    line-height: 1.4;
}

/* Section Title (consistent with About Us section) */


.section-titles::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #28a745; /* updated from #007bff */
}


.modal-content {
    background: transparent;
    border: none;
}

.btn-close {
    background-color: rgba(0, 0, 0, 0.7);
    filter: invert(1);
    z-index: 1050;
}

@media (max-width: 767px) {
    .video-container {
        height: 250px; /* Adjusted height for mobile */
        background-attachment: scroll; /* Fallback to scroll for mobile compatibility */
        background-position: center; /* Ensure centered */
    }

    .video-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .play-button svg {
        width: 40px;
        height: 40px;
    }
}













/* Our Work Section */
.our-work {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #28a745; /* changed from #1a1a1a */
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease-out;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: #28a745; /* changed from #ff6b6b */
    margin: 15px auto;
    border-radius: 3px;
}


.section-title.in-view {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: #28a745; /* changed from #ff6b6b */
    margin: 15px auto;
    border-radius: 3px;
}

.work-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
}

.work-card.in-view {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.work-card:nth-child(1) .in-view { transition-delay: 0.2s; }
.work-card:nth-child(2) .in-view { transition-delay: 0.3s; }
.work-card:nth-child(3) .in-view { transition-delay: 0.4s; }
.work-card:nth-child(4) .in-view { transition-delay: 0.5s; }

.work-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.work-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.15);
}

.work-content {
    padding: 25px;
    text-align: center;
}

.work-content h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #28a745;;
    margin-bottom: 15px;
}

.work-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .work-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2.2rem;
    }
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .work-image {
        height: 200px;
    }
}











.glance-section {
    background-color: #f8f9fa;
    padding: 4rem 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.glance-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #28a745;
}

.glance-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.glance-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.glance-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.glance-text {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 30px;
    position: relative;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease-out;
}

.section-title.in-view {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: #28a745;
    margin: 15px auto;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .glance-number {
        font-size: 2rem;
    }
    .glance-icon {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
}








/* Existing styles from before for .donate-box remain unchanged */

/* Style for the donate icon */
.donate-box .donate-icon {
    font-size: 70px; /* big icon */
    color: white;
}

/* Optional: center the icon */
.donate-box .donate-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Images style for volunteer and adopt */
.help-image {
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 200px; /* you can adjust as needed */
}




/* Keep existing button outline style for Volunteer and Adopt */
.btn-outline-success {
    color: #28a745;
    border: 1px solid #28a745;
    background: transparent;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
    text-decoration: none;
}

/* Donate box full green background with white text */
.donate-box {
    background-color: #28a745; /* theme green */
    color: white;
    padding: 20px;
    border-radius: 8px;
}

/* Make images inside donate-box have some filter for visibility */
.donate-box .help-image {
    filter: brightness(0.85);
}

/* Ensure all text inside donate-box is white */
.donate-box .help-title,
.donate-box .help-description {
    color: white;
}

/* Donate button - white outline and white text */
.btn-outline-light {
    color: white;
    border: 1px solid white;
    background: transparent;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline-light:hover {
    background-color: white;
    color: #28a745; /* green text on hover */
    text-decoration: none;
}













/* Latest News Section */
.latest-news {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.latest-news .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #28a745;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.latest-news .section-title.in-view {
    opacity: 1;
    transform: translateY(0);
}

.latest-news .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: #28a745;
    margin: 15px auto;
    border-radius: 3px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.4s ease;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
}

.news-card.in-view {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.15);
}

.news-content {
    padding: 20px;
    text-align: left;
}

.news-content h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.news-content .news-date {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #28a745;
    margin-bottom: 10px;
}

.news-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-content .read-more {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-content .read-more:hover {
    color: #1e7e34;
    text-decoration: underline;
}

/* Fallback for no JavaScript */
.latest-news .section-title,
.latest-news .news-card {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .latest-news .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .news-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .latest-news .section-title {
        font-size: 2.2rem;
    }
    .latest-news .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .news-image {
        height: 200px;
    }
}














.gallery-icon {
  font-size: 70px;
}

.gallery-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.gallery-description {
  font-size: 16px;
  padding: 0 10px;
}










.section-title {
  font-size: 2rem;
  font-weight: 600;
}

a.text-success:hover {
  text-decoration: underline;
}










 
 
 
 
 
/* Donate Modal Styling */
.modal-overlay {
    display: none; /* Hidden initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

/* Only image visible — no background box */
.modal-overlay .modal-content {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    text-align: center;
    position: relative;
    animation: zoomIn 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}






/* Close Button (top-right, white color, clearly visible) */
.modal-overlay .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2.5rem;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.modal-overlay .close-btn:hover {
    background: rgba(255, 0, 0, 0.6);
    transform: rotate(90deg);
}


.donate-container {
    width: 70%;
    text-align: left;
    padding: 1rem;
}


/* Donate Button (Image) with Green Blink Effect */
.donate-btn {
    cursor: pointer;
    width: 70%;
    max-width: 250px;
    height: auto;
    transition: transform 0.3s ease;
    animation: blinkGreen 1.5s infinite ease-in-out;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    display: block;
    margin: 0 auto;
}


.donate-btn:hover {
    transform: scale(1.05);
}

/* Zoom animation */
@keyframes zoomIn {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Green Blink Animation */
@keyframes blinkGreen {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 1), 0 0 30px rgba(0, 255, 0, 0.7);
    }
}

/* --- Navbar Mobile Fixes --- */
@media (max-width: 991.98px) {
    .navbar {
        width: 100% !important;
        overflow-x: hidden;
    }
    .navbar .container {
        max-width: 100%;
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        margin: 0;
    }
    .navbar-collapse {
        width: 100%;
        background: #fff;
        z-index: 1000;
    }
    .navbar-nav {
        width: 100%;
        text-align: left;
        background: #fff;
        margin: 0;
        padding: 0.5rem 0;
    }
    .navbar-toggler {
        margin-left: auto;
        z-index: 1100;
        position: relative;
    }
}

/* Prevent horizontal scroll on mobile for navbar */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Video Modal Specific Styles */
#videoModal {
    z-index: 1060;
}

#videoModal .modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}

#videoModal .modal-content {
    background: #000;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

#videoModal .modal-body {
    padding: 0;
    position: relative;
}

#videoModal .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1070;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 0.5rem;
    margin: 0;
}

#videoModal .ratio {
    background: #000;
}

#videoModal iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Ensure modal backdrop is visible */
.modal-backdrop {
    z-index: 1050;
}

/* Ensure modal is visible on mobile */
@media (max-width: 768px) {
    #videoModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}


