/*
Theme Name: NGO Charity Theme
Author: Your Name
Version: 1.0
*/

/* =========================
   PRELOADER START
========================= */

/* Full screen overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f4f6f8; /* light grey background */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main circle container */
.circle-loader {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rotating outer ring */
.spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top: 4px solid #F6AA4C;   /* orange */
  border-right: 4px solid #F6AA4C;
  animation: spin 1s linear infinite;
}

/* Logo image (center, NOT rotating) */
.circle-loader img {
  width: 80%; /* adjust as needed */
  height: auto;
  z-index: 2;
}

/* Spin animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Smooth fade-out effect */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .circle-loader {
    width: 90px;
    height: 90px;
  }

  .spinner {
    width: 90px;
    height: 90px;
    border-width: 3px;
  }

  .circle-loader img {
    width: 40px;
  }
}

/* =========================
   OPTIONAL ENHANCEMENTS
========================= */

/* Glow effect (optional) */
.spinner {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Dark mode support (optional) */
body.dark-mode #preloader {
  background: #111;
  transition: opacity 0.3s ease;
}

body.dark-mode .circle-loader {
  background: #1c1c1c;
}

body.dark-mode .circle-loader img {
  filter: brightness(0.9);
}

/* =========================
   PRELOADER END
========================= */

/* =========================
   TOP BAR
========================= */
.top-bar {
  background: #f5f7fa;
  font-size: 14px;
  padding: 8px 0;
}

.top-bar span {
  margin-right: 10px;
  color: #6c757d;
}

.top-bar a {
  color: #6c757d;
  margin-left: 10px;
  text-decoration: none;
}

/* =========================
   HEADER
========================= */
.main-header {
  background: #fff;
  padding: 15px 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 999;
}

/* STICKY */
.main-header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* LOGO */
.logo img {
  height: 48px;
}

/* MENU */
.menu-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu-list li {
  position: relative;
}

.menu-list li a {
  display: block;
  padding: 10px;
  color: #2c3e50;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}

.menu-list li:hover > a {
  color: #F6AA4C;
}

/* DROPDOWN */
.menu-list li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  width: 200px;
  display: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  z-index: 99;
}

.menu-list li:hover ul {
  display: block;
}

.menu-list li ul li a {
  padding: 10px;
  font-size: 14px;
}

/* DONATE BUTTON */
.btn-donate {
  background: #f4a142;
  color: #fff;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.btn-donate:hover {
  background: #e69533;
}

/* MOBILE */
.menu-toggle {
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 991px) {

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
  }

  .menu.active {
    display: block;
  }

  .menu-list {
    flex-direction: column;
  }

  .menu-list li ul {
    position: static;
    box-shadow: none;
  }

  .btn-donate {
    display: block;
    margin: 10px;
    text-align: center;
  }
}

/* Overlay for slider + banner */
.hero-slider .item::before,
.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* opacity 0.5 */
  z-index: 1;
}
.hero-slider .overlay,
.hero-banner .overlay {
  position: relative;
  z-index: 2;
}
.hero-banner {
  height: 90vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-banner .overlay {
  position: absolute;
  top: 40%;
  left: 10%;
  color: #fff;
  max-width: 500px;
}
.hero-slider .item {
  height: 90vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slider .overlay {
  position: absolute;
  top: 20%;
  left: 10%;
  color: #fff;
}

.hero-slider h1 {
  font-size: 50px;
  font-weight: bold;
  width: 50%;
}

.hero-slider p {
  font-size: 20px;
  width: 50%;
}

/* SECTION */
.about-section {
  padding: 100px 0;
}

/* TEXT */
.about-content .sub-title {
  color: #f4a142;
  font-weight: 600;
  /*letter-spacing: 1px;*/
  display: inline-block;
  margin-bottom: 10px;
  font-size: 22px;
}

.about-content h2 {
  font-size: 42px;
  font-weight: 700;
  color: #0d2b5c;
  margin-bottom: 20px;
}

.about-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.about-desc p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.7;
}

/* BUTTON */
.btn-about {
  display: inline-block;
  background: #f4a142;
  color: #fff;
  padding: 12px 30px;
  margin-top: 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
}

.btn-about:hover {
  background: #e69533;
}

/* IMAGES */
.about-images {
  position: relative;
  text-align: right;
}

.about-images .img-main img {
  width: 80%;
  border-radius: 10px;
}

/* SMALL IMAGE */
.about-images .img-small {
  position: absolute;
  bottom: -100px;
  left: 0;
  border: 6px solid #f4a142;
  border-radius: 10px;
  overflow: hidden;
}

.about-images .img-small img {
  width: 200px;
}

/* MOBILE */
@media (max-width:991px){
  .about-images {
    margin-top: 40px;
    text-align: center;
  }

  .about-images .img-main img {
    width: 100%;
  }

  .about-images .img-small {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: 20px;
  }
}



/* SECTION */
.counter-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f4a142, #e69533);
}

/* GRID FIX */
.counter-section .row {
  row-gap: 20px;
}

/* BOX */
.counter-box {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 35px 20px;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%; /* IMPORTANT */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* HOVER */
.counter-box:hover {
  transform: translateY(-12px) scale(1.03);
  background: rgba(255,255,255,0.25);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* ICON */
.counter-box i {
  font-size: 32px;
  color: #fff;
  margin-bottom: 15px;
  transition: 0.3s;
}

/* ICON ANIMATION */
.counter-box:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* NUMBER */
.counter-box h2 {
  font-size: 44px;
  font-weight: 700;
  color: #fff;
}

/* TEXT */
.counter-box p {
  font-size: 14px;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 10px;
}

/* MOBILE */
@media (max-width:768px){
  .counter-box {
    padding: 25px 15px;
  }
}

.counter-section {
  padding: 100px 0;
  position: relative;
}

/* dark overlay */
.counter-section::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  top: 0;
  left: 0;
}

.page-content {
  padding: 80px 0;
}

.content-area {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.content-area h1,
.content-area h2,
.content-area h3 {
  margin-bottom: 15px;
  color: #0d2b5c;
}

.content-area p {
  margin-bottom: 15px;
}

/* BASE */
.page-banner {
  position: relative;
  padding: 50px 0;
  color: #fff;
  overflow: hidden;
}

/* IF IMAGE EXISTS */
.page-banner.has-image .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  top: 0;
  left: 0;
}

/* IF NO IMAGE → GRADIENT */
.page-banner.no-image {
  background: linear-gradient(135deg, #f4a142, #e69533);
}

/* CONTENT */
.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  font-size: 42px;
  font-weight: 700;
}

.page-banner p {
  margin-top: 10px;
}

.page-banner p a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.error-page {
  padding: 120px 0;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: #f4a142;
}

.error-page h2 {
  margin-bottom: 15px;
  color: #0d2b5c;
}

.error-page p {
  color: #555;
  margin-bottom: 20px;
}

.btn-home {
  background: #2ecc71;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 4px;
}

.btn-home:hover {
  background: #27ae60;
}

.cta-section {
  padding: 80px 0;
}

/* BOX */
.cta-box {
  position: relative;
  padding: 60px 30px;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: 0.3s;
}

/* BACKGROUNDS */
/*.cta-box.donate {
  background: url('../images/donate.jpg') center/cover no-repeat;
}

.cta-box.volunteer {
  background: url('../images/volunteer.jpg') center/cover no-repeat;
}*/

/* OVERLAY */
.cta-box::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  top: 0;
  left: 0;
}

/* CONTENT */
.cta-box h3,
.cta-box p,
.cta-box a {
  position: relative;
  z-index: 2;
}

.cta-box h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.cta-box p {
  margin-bottom: 20px;
}

/* BUTTON */
.btn-cta {
  display: inline-block;
  background: #f4a142;
  color: #fff;
  padding: 10px 25px;
  border-radius: 4px;
  text-decoration: none;
}

.btn-cta:hover {
  background: #e69533;
}

/* HOVER */
.cta-box:hover {
  transform: translateY(-10px);
}

/* MOBILE */
@media (max-width:768px){
  .cta-box {
    margin-bottom: 20px;
  }
}

.event-card {
  background:#fff;
  padding:20px;
  border-radius:10px;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
  margin-bottom:20px;
  min-height: 460px;
}

.event-card img {
  width:100%;
  border-radius:10px;
}

.event-img img {
  width: 100%;
  height: 220px;   /* 👈 adjust this value */
  object-fit: cover; /* ✅ prevents stretch */
  border-radius: 10px 10px 0 0;
}

.event-img {
  height: 220px;
  overflow: hidden;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-content h3 a{
  font-size: 16px;
  text-decoration: none;
  color: #f4a142;

}

.event-image img {
  width: 100%;
  border-radius: 10px;
}

.event-info-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.event-info-box h4 {
  margin-bottom: 15px;
  color: #0d2b5c;
}

.event-info-box ul {
  list-style: none;
  padding: 0;
}

.event-info-box ul li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.event-info-box strong {
  color: #000;
}

.event-content {
  font-size: 16px;
  line-height: 1.8;
}



.timeline-section {
  padding: 100px 0;
  background: #f9f9f9;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: auto;
}

/* CENTER LINE */
.timeline::before {
  content: "";
  position: absolute;
  width: 4px;
  background: #f4a142;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ITEM */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px;
}

/* LEFT */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

/* RIGHT */
.timeline-item:nth-child(even) {
  left: 50%;
}

/* DOT */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 30px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: #f4a142;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

/* CONTENT */
.timeline-content {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-content h3{font-size: 16px}
.timeline-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.timeline-date {
  font-weight: bold;
  margin-bottom: 10px;
}

/* MOBILE */
@media (max-width:768px){

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 40px;
    text-align: left;
  }

  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    left: 0;
  }

  .timeline-item::before {
    left: 0;
  }
}

.blog-section {
  background: #f9f9f9;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-img {
  height: 220px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  font-size: 20px;
  margin: 10px 0;
}

.blog-content h3 a {
  text-decoration: none;
  color: #0d2b5c;
}

.blog-meta {
  font-size: 14px;
  color: #777;
}

.blog-meta i {
  color: #f4a142;
  margin-right: 5px;
}

.blog-image {
  margin: 0 auto 20px;
}

.blog-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}


/* =========================
   VIDEO SECTION BACKGROUND
========================= */
.video-section {
  background: linear-gradient(135deg, #f9f9f9, #f4f7fb);
  position: relative;
}

/* OPTIONAL subtle overlay */
.video-section::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.03;
  top: 0;
  left: 0;
}

/* SECTION TITLE */
.section-title h2 {
  font-size: 34px;
  color: #0d2b5c;
  font-weight: 700;
}

.section-title p {
  color: #666;
}

/* =========================
   MAIN VIDEO CARD
========================= */
.main-video {
  background: #fff;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.main-video iframe {
  width: 100%;
  height: 420px;
  border-radius: 10px;
}

/* =========================
   VIDEO LIST CONTAINER
========================= */
/*.video-list {
  height: 420px;
  overflow-y: auto;
  padding-right: 5px;
  scroll-behavior: smooth;
}*/

/* SCROLLBAR */
/*.video-list::-webkit-scrollbar {
  width: 6px;
}

.video-list::-webkit-scrollbar-thumb {
  background: #f4a142;
  border-radius: 10px;
}*/


.video-side {
  height: 440px;
  padding: 10px 0;
  padding-bottom: 0;
}

.video-list {
  height: 100%;
  overflow-y: scroll !important;
  padding-right: 5px;
  display: block;
  overflow-x: hidden !important;
}

/* FORCE scroll */
.video-list::-webkit-scrollbar {
  width: 6px;
}

.video-list::-webkit-scrollbar-thumb {
  background: #f4a142;
}

/* Prevent bootstrap issues */
.video-list {
  position: relative;
}
/* =========================
   VIDEO ITEM
========================= */
.video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* HOVER */
.video-item:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ACTIVE VIDEO */
.video-item.active {
  border-left: 4px solid #f4a142;
  background: #fff7ed;
}

/* IMAGE */
.video-item img {
  width: 120px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
}

/* TITLE */
.video-item p {
  font-size: 14px;
  margin: 0;
  color: #222;
  line-height: 1.4;
  font-weight: 500;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .main-video iframe {
    height: 250px;
  }

  .video-list {
    max-height: none;
  }

  .video-item img {
    width: 100px;
    height: 60px;
  }
}


/* CONTACT PAGE */
.contact-section {
  padding: 80px 0;
  background: #f4f6f9;
}

.contact-section .container {
  max-width: 1100px;
  margin: auto;
}

/* TITLE */
.contact-title {
  text-align: center;
  margin-bottom: 50px;
}

.contact-title h2 {
  font-size: 36px;
  color: #0d2b5c;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-title p {
  color: #666;
  max-width: 700px;
  margin: auto;
}

/* ROW */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* LEFT FORM */
.contact-form-box {
  flex: 1 1 55%;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* RIGHT INFO */
.contact-info-box {
  flex: 1 1 35%;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-info-box p {
  margin-bottom: 12px;
  color: #555;
}

.contact-info-box i {
  color: #f4a142;
  margin-right: 8px;
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.social-icons a {
  width: 38px;
  height: 38px;
  background: #f4a142;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  transform: scale(1.1);
  background: #e38b2d;
}

.social-icons a i{
  color: #fff;
  margin: 0;
}
/* MAP */
.map-box iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 12px;
}

/* FORM FIX */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7 input,
.wpcf7 textarea {
  width: 100% !important;
  padding: 5px;
  margin-bottom: 0px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.wpcf7 textarea {
  height: 150px;
}

.wpcf7 input[type="submit"] {
  background: #f4a142;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.wpcf7 input[type="submit"]:hover {
  background: #e38b2d;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-row {
    flex-direction: column;
  }
}

/* FOOTER */
.site-footer {
  background: #000;
  color: #fff;
  padding-top: 60px;
}

/* GRID */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* LOGO */
.footer-logo {
  width: 225px;
  margin-bottom: 15px;
  background: #fff;
  padding: 2px;
}

/* TEXT */
.footer-col p {
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
}

/* CONTACT */
.footer-contact {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.footer-contact li {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-contact i {
  margin-right: 8px;
  color: #f4a142;
}

/* MENU */
.footer-menu {
  list-style: none;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 10px;
  margin-left: 15px;
}

.footer-menu a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-menu a:hover {
  color: #f4a142;
}

/* NEWSLETTER */
.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  background: #f4a142;
  border: none;
  color: #fff;
  padding: 10px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* BOTTOM */
.footer-bottom {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

.footer-bottom a {
  color: #f4a142;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* GO TO TOP BUTTON */
#goTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #f4a142;
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: 0.3s;
}

#goTopBtn:hover {
  background: #e38b2d;
  transform: translateY(-3px);
}

#goTopBtn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244,161,66,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(244,161,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,161,66,0); }
}

.ngo-gallery{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
}

.gallery-item{
  width:100%;
}

.gallery-img{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  height:250px;
}

.gallery-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:0.5s ease;
  display:block;
}

.gallery-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.5);
  display:flex;
  justify-content:center;
  align-items:center;
  opacity:0;
  transition:0.4s;
}

.gallery-overlay i{
  color:#fff;
  font-size:30px;
}

.gallery-item:hover img{
  transform:scale(1.1);
}

.gallery-item:hover .gallery-overlay{
  opacity:1;
}

.btn-gallery{
  display:inline-block;
  padding:10px 28px;
  background:#f4a142;
  color:#fff;
  text-decoration:none;
  border-radius:5px;
  transition:0.3s;
}

.btn-gallery:hover{
  background:#d98c2c;
}

/* Tablet */
@media(max-width:992px){
  .ngo-gallery{
    grid-template-columns:repeat(3,1fr);
  }
}

/* Mobile */
@media(max-width:768px){
  .ngo-gallery{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:480px){
  .ngo-gallery{
    grid-template-columns:1fr;
  }

  .gallery-img{
    height:220px;
  }
}

@media (max-width:991px){

  .sub-menu{
    display:none !important;
  }

  .has-dropdown.open .sub-menu{
    display:block !important;
  }

}

@media (max-width:991px){

  .menu{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    display:none;
    z-index:9999;
  }

  .menu.active{
    display:block;
  }

}