/* Video Section Styles */
.ngo-videos-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.ngo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ngo-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.ngo-section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.ngo-section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.ngo-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.ngo-video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.ngo-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ngo-video-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}


.ngo-video-card:hover .ngo-video-overlay {
    background: rgba(0, 0, 0, 0.5);
}



.ngo-play-icon {
    width: 100%;
    height: 100%;
    color: #2563eb;
}

.ngo-video-card:hover .ngo-play-button {
    transform: scale(1.1);
}

.ngo-video-content {
    padding: 20px;
}

.ngo-video-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #333;
}

.ngo-video-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Animation Classes */
.ngo-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ngo-delay-100 { animation-delay: 0.1s; }
.ngo-delay-200 { animation-delay: 0.2s; }
.ngo-delay-300 { animation-delay: 0.3s; }
.ngo-delay-400 { animation-delay: 0.4s; }

/* Video Modal Styles */
.ngo-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ngo-modal-open {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.ngo-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.ngo-video-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.ngo-video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.ngo-video-container iframe,
.ngo-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ngo-video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    text-align: center;
}





/* ---------------------------------------------- */


/* Projects Section CSS */
.ngo_projects_section {
    padding: 0px 0;
    background-color: #f9fafb;
  }
  
  .ngo_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .ngo_section_header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .ngo_section_title {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
  }
  
  .ngo_section_subtitle {
    font-size: 18px;
    color: #6b7280;
  }
  
  .ngo_projects_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
  }
  
  @media (min-width: 768px) {
    .ngo_projects_grid {
        grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .ngo_projects_grid {
        grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .ngo_project_card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  .ngo_project_image {
    height: 200px;
    width: 100%;
    object-fit: cover;
  }
  
  .ngo_image_placeholder {
    height: 200px;
    width: 100%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .ngo_project_content {
    padding: 24px;
  }
  
  .ngo_project_header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
  }
  
  .ngo_icon_container {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 6px;
    background-color: #2563eb;
    color: white;
  }
  
  .ngo_project_info {
    margin-left: 16px;
  }
  
  .ngo_project_title {
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 4px 0;
  }
  
  .ngo_project_location {
    font-size: 14px;
    color: #2563eb;
    margin: 0;
  }
  
  .ngo_project_description {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
  }
  
 
  .ngo_view_button:hover {
    background-color: #1d4ed8;
  }
  
  .ngo_view_all_container {
    text-align: center;
    margin-top: 40px;
  }
  
  .ngo_view_all_button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    background-color: #2563eb;
    color: white !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
    outline: none;
  }
  
  .ngo_view_all_button:hover {
    background-color: #1d4ed8;
  }
  
  .ngo_button_icon {
    margin-left: 8px;
  }
  
  /*======================================= Single Project Page================================= */
  .ngo-project-single {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.ngo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.ngo-hero-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 30px;
}

.ngo-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.ngo-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.7), rgba(30, 58, 138, 0.9));
    z-index: 2;
}

.ngo-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 60px 40px;
    color: #fff;
}

.ngo-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ngo-hero-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

/* Breadcrumb */
.ngo-breadcrumb {
    background-color: #f9fafb;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.ngo-breadcrumb-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.ngo-breadcrumb-link:hover {
    text-decoration: underline;
}

.ngo-breadcrumb-separator {
    margin: 0 10px;
    color: #aaa;
}

.ngo-breadcrumb-current {
    color: #777;
    font-weight: 500;
}

/* Project Content Layout */
.ngo-project-content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Project Highlights */
.ngo-project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #f9fafb;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.ngo-highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 200px;
}

.ngo-highlight-icon {
    background-color: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.ngo-highlight-text {
    display: flex;
    flex-direction: column;
}

.ngo-highlight-label {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ngo-highlight-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

/* Main Content */
.ngo-project-content {
    border-radius: 10px;
    overflow: hidden;
}

.ngo-project-section {
    margin-bottom: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.ngo-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a;
    border-bottom: 2px solid rgba(30, 58, 138, 0.1);
    padding: 20px 25px;
    margin: 0;
}

.ngo-section-content {
    padding: 25px;
}

.ngo-section-content p {
    margin-bottom: 20px;
}

.ngo-section-content ul, 
.ngo-section-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.ngo-section-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sidebar */
.ngo-project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ngo-cta-card {
    background-color: #1e3a8a;
    color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.ngo-cta-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.ngo-cta-text {
    margin-bottom: 25px;
    line-height: 1.5;
}

.ngo-cta-button {
    display: inline-block;
    background-color: white;
    color: #1e3a8a;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ngo-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Related Projects */
.ngo-related-projects {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.ngo-sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 20px;
    margin: 0;
    color: #1e3a8a;
    border-bottom: 1px solid #e5e7eb;
}

.ngo-related-projects-list {
    display: flex;
    flex-direction: column;
}

.ngo-related-project {
    display: flex;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s;
}

.ngo-related-project:last-child {
    border-bottom: none;
}

.ngo-related-project:hover {
    background-color: rgba(30, 58, 138, 0.1);
}

.ngo-related-project-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.ngo-related-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ngo-related-project-title {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.ngo-related-project-location {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .ngo-project-content-wrapper {
        grid-template-columns: 2fr 1fr;
    }
    
    .ngo-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .ngo-project-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ngo-hero-wrapper {
        height: 400px;
    }
    
    .ngo-hero-title {
        font-size: 2rem;
    }
    
    .ngo-highlight-item {
        flex: 1 1 100%;
    }
}
  
  /*==================================================== Archive Projects Page */
  /* Enhanced NGO Projects Section CSS */
.ngo_projects_section {
  padding: 0;
  background-color: #f9fafb;
}

.ngo_container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.ngo_archive_header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInDown 0.8s ease-out;
}

.ngo_archive_title {
  font-size: 36px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.ngo_archive_title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #2563eb;
  animation: widthGrow 1s ease-out forwards;
}

.ngo_projects_grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 768px) {
  .ngo_projects_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ngo_projects_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ngo_project_card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: white;
  transform: translateY(0);
  animation: fadeIn 0.5s ease-out forwards;
}

.ngo_project_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ngo_project_image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.ngo_project_card:hover .ngo_project_image {
  transform: scale(1.05);
}

.ngo_image_placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
}

.ngo_project_content {
  padding: 20px;
}

.ngo_project_header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.ngo_icon_container {
  background-color: #f0f9ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #2563eb;
  transition: all 0.3s ease;
}

.ngo_project_card:hover .ngo_icon_container {
  transform: rotate(360deg);
  background-color: #dbeafe;
}

.ngo_project_info {
  flex: 1;
}

.ngo_project_title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 5px 0;
  transition: color 0.3s ease;
}

.ngo_project_card:hover .ngo_project_title {
  color: #2563eb;
}

.ngo_project_location {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
}

.ngo_project_location:before {
  content: "📍";
  margin-right: 5px;
}

.ngo_project_description {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 20px;
  line-height: 1.6;
}

.ngo_view_button {
  display: inline-block;
  padding: 10px 18px;
  background-color: white;
  color: #374151 !important;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}


/* Updated button animation styles */
.ngo_view_button {
  display: inline-block;
  padding: 10px 20px;
  background-color: white;
  color: #374151 !important;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Remove the previous sliding background effect */
.ngo_view_button:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(37, 99, 235, 0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.ngo_view_button:hover:before {
  transform: translateX(100%);
  animation: shimmer 1.5s infinite;
}

/* Add pulsing effect and border animation */
.ngo_view_button:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
  color: white !important;
}

/* Change the arrow animation */
.ngo_view_button:after {
  content: "→";
  margin-left: 6px;
  display: inline-block;
  transition: all 0.3s ease;
  opacity: 0;
  width: 0;
}

.ngo_view_button:hover:after {
  opacity: 1;
  width: auto;
  margin-left: 10px;
  transform: translateX(0);
}

/* New animation keyframes */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Add bounce animation for buttons */
.ngo_project_card:hover .ngo_view_button {
  animation: subtle-bounce 0.5s ease-in-out;
}

@keyframes subtle-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}




.ngo_pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  animation: fadeIn 0.8s ease-out;
}

.ngo_pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ngo_pagination .page-numbers.current {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: scale(1.1);
}

.ngo_pagination .page-numbers:hover:not(.current) {
  background-color: #f3f4f6;
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes widthGrow {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

/* Staggered animation for cards */
.ngo_project_card:nth-child(1) { animation-delay: 0.1s; }
.ngo_project_card:nth-child(2) { animation-delay: 0.2s; }
.ngo_project_card:nth-child(3) { animation-delay: 0.3s; }
.ngo_project_card:nth-child(4) { animation-delay: 0.4s; }
.ngo_project_card:nth-child(5) { animation-delay: 0.5s; }
.ngo_project_card:nth-child(6) { animation-delay: 0.6s; }

/* Add AOS-like animation system */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}

.aos-animate[data-aos="fade-up"] {
  opacity: 1;
  transform: translateY(0);
}



/* page header======================== */
.page-title-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0rem 1.5rem;
}

.page-header {
  margin-bottom: 3.5rem;
  position: relative;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e3a8a, #101e44);
  padding: 3rem 2rem;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.12);
  overflow: hidden;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}
