.logo img {
  transition: transform 3s ease;
  transform-style: preserve-3d;
}

.logo img:hover {
  transform: rotateX(180deg);
}

/* Responsiveness code starts here */

h3 {
  font-size: 1.8rem;
}

@media (max-width: 768px) {
  h3 {
    font-size: 1.4rem;
  }
}

.logo img {
  max-width: 250px;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .logo img {
    max-width: 200px;
  }
}

body {
  font-family: "Poppins", sans-serif;
}

/* carousel height changing */

#heroCarousel .carousel-item img {
  height: 550px;
  object-fit: cover;
}

#heroCarousel img {
  height: 70vh;
  object-fit: cover;
}

@media (max-width: 768px) {
  #heroCarousel img {
    height: 40vh;
  }
}

/* for removing hr line of navbar */

.navbar {
  border-bottom: none;
  box-shadow: none;
  border: none;
}

.navbar-nav .nav-link {
  position: relative;
  display: inline-block;
  color: #000;
  text-decoration: none;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #ff4b2b;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* code for adding vertical lines in between */

.navbar-nav .nav-item {
  position: relative;
  padding: 0 10px;
  list-style: none;
}

@media (max-width: 991px) {
  .navbar-nav .nav-item {
    height: auto;
    padding: 10px 0;
    display: block;
  }

  .navbar-nav .nav-item::after {
    display: none;
    /* remove vertical lines on mobile */
  }

  .navbar-nav {
    gap: 10px;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
  }
}

.navbar-nav .nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  height: 60%;
  width: 2px;
  background-color: #ff1010;
  transform: translateY(-50%);
}

/* Header */

.logo img {
  max-height: 100px;
}

.sitename {
  font-weight: 600;
  margin-top: 5px;
}

/* Carousel */

.carousel img {
  height: 400px;
  object-fit: cover;
}

/* Vision & Mission */

.info-box {
  padding: 30px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 10px;
}

/* Sections */

.section-box {
  padding: 30px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 10px;
}

/* Footer */

footer {
  background: #222;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.donate-btn {
  border-radius: 80px;
  padding: 8px 20px;
  font-weight: 600;
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  border: none;
}

.section-title-custom {
  text-align: center;
}

.section-title-custom h3 {
  color: #ff4b2b;
  font-weight: 700;
}

.section-title-custom p {
  max-width: 800px;
  margin: 0 auto;
}

.about {
  position: relative;
  width: 100%;
  min-height: 400px;
  text-align: center;
  color: #333;
  overflow: hidden;
  padding: 40px 20px 60px 20px;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("main-banner-5.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.about>* {
  position: relative;
  z-index: 1;
}

.about h3 {
  color: #ff4b2b;
  font-weight: 700;
}

.about span {
  display: block;
  margin-top: 10px;
}

.read-more {
  width: 70px;
  height: 25px;
  border-radius: 25px;
  background-color: #ff7f5f;
  text-align: center;
  border: none;
  color: white;
  font-size: 10px;
}

.about .reg-info {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #333;
}

.gharatemayeche {
  width: 100%;
  background-color: #ff8705;
  padding: 30px 20px;
}

/* Left text styling */

.gm-left-text {
  margin-top: 50px;
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  margin-left: 2px;
}

.gm-left-text h3 {
  color: white;
  font-weight: 700;
  text-align: center;
}

.gm-left-text h5 {
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
  text-align: center;
}

.gm-left-text p,
.gm-left-text span {
  font-size: 0.95rem;
  line-height: 1.5;
  display: block;
}

/* Right images */

.gm-right-images {
  position: relative;
}

.top-right-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: auto;
  opacity: 0.7;
  z-index: 1;
}

.circular-img-container {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(50%);
  z-index: 2;
}

.circular-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ff4b2b;
}

.carousel-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* Responsive adjustments */

@media (max-width: 992px) {
  .gm-left-text {
    margin-left: 0;
    margin-bottom: 20px;
    text-align: center;
  }

  .gm-right-images {
    margin-top: 30px;
  }

  .top-right-img {
    position: relative;
    width: 150px;
    display: inline-block;
    opacity: 0.7;
    margin-bottom: 20px;
  }

  .circular-img-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: -60px auto 20px auto;
    text-align: center;
  }

  .circular-img {
    width: 100px;
    height: 100px;
  }
}

.director-voice {
  height: 500px;
}

.director-voice h3 {
  text-align: center;
}

/* Optional additional styling */

.director-voice-section .card {
  background-color: #fff;
  box-shadow: #f5a71f;
}


.custom-img {
  width: 100%;
}

@media (max-width: 992px) {
  .custom-img {
    width: 50%;
  }
}

.director-voice-section h3 {
  color: #dab8dc;
}

.director-voice-section p {
  text-align: justify;
  color: #333;
  line-height: 1.6;
}

.footer-link {
  color: #ffffff !important;
}

.row h6 {
  color: #8e2411;
  font-size: 15px;
}

.row a {
  text-decoration: none;
  color: #8e2411;
  font-size: 12px;
  text-align: right;
}

/* social activities image animation */

.social-card .col-6 {
  overflow: hidden;
  position: relative;
}

.social-card img {
  transition: transform 0.5s ease;
}

.social-card .col-6:hover img {
  transform: translateY(-10px);
}

.social-work h3 {
  color: #ff1010;
}

.box {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.box a {
  margin-top: auto;
}

.gharatemayeche {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
  color: white;
}

/* TEXT AREA */
.content-area {
  max-width: 500px;
  z-index: 2;
}

/* LOGO CENTER */
.logo-circle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 50%;
  padding: 15px;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

@media (max-width: 768px) {
  .image-wrapper {
    position: absolute;
    top: 10px;
    left: 50%;
    bottom: -200px;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.logo-circle img {
  width: 130px;
  border-radius: 50px;
}

/* RIGHT IMAGE WITH SHAPE */
.image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* 🔥 DIAGONAL CUT (MAIN DIFFERENCE) */
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

/* BUTTON */
.btn-read {
  background: #5a2d0c;
  color: white;
  border-radius: 20px;
  padding: 6px 20px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 20px;
  }

  .gharatemayeche {
    padding-top: 120px;
    /* create space for logo */
  }

  .image-wrapper img {
    clip-path: none;
  }

  .logo-circle {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 50%;
    padding: 15px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }
}


/* Bottom gallery */
.gallery-strip img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .logo-circle {
    width: 90px;
    height: 90px;
    margin-top: 5px;
  }

  .logo-circle img {
    border-radius: 50%;
  }

  .gallery-strip img {
    height: 120px;
  }
}

.activity-section {
  background: #fff;
  padding: 60px 0;
}

/* LOGO */
.top-logo img {
  width: 20%;
  margin-bottom: 10px;
}

/* TITLE */
.title {
  color: #ff6a00;
  font-weight: 700;
  letter-spacing: 1px;
}

.subtitle {
  color: #ff6a00;
  font-size: 14px;
  margin-top: -5px;
}

/* CONTENT WIDTH CONTROL */
.content-wrap {
  max-width: 900px;
  margin: auto;
}

/* TEXT */
.text-area p {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

/* BUTTON */
.btn-home {
  background: #5a2d0c;
  color: white;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 13px;
  margin-top: 10px;
}

/* IMAGE AREA */
.image-area {
  position: relative;
}

/* TOP IMAGE */
.img-top {
  width: 100%;
  max-width: 300px;
  display: block;
  margin-left: auto;
}

/* BOTTOM FLOAT IMAGE */
.img-bottom {
  position: absolute;
  bottom: -60px;
  width: 260px;
}

/* MOBILE */
@media (max-width: 768px) {

  .text-area {
    text-align: center;
  }

  .img-top {
    margin: 20px auto;
  }

  .img-bottom {
    position: relative;
    bottom: 0;
    right: 0;
    margin: 20px auto;
    display: block;
  }

}

#customImageSlider {
  max-width: 420px;
  margin: auto;
  position: relative;
}

/* Keep button full but remove visual effect */
.carousel-control-prev,
.carousel-control-next {
  width: 100%;
  height: 100%;
  background: none;
}

/* 🔥 MOVE ICONS INSTEAD */
.carousel-control-prev-icon {
  position: absolute;
  left: -40px;
  /* move outside image */
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-next-icon {
  position: absolute;
  right: -40px;
  /* move outside image */
  top: 50%;
  transform: translateY(-50%);
}

/* Style icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 12px;
}

@media (max-width: 768px) {
  .carousel-control-prev-icon {
    left: 10px;
    /* move inside */
  }

  .carousel-control-next-icon {
    right: 10px;
    /* move inside */
  }
}

/* 🔥 MOBILE ONLY */
@media (max-width: 576px) {
  #heroCarousel .carousel-item img {
    width: 100%;
    height: auto;
    /* ✅ keep original image ratio */
    object-fit: contain;
    /* optional but safe */
  }
}