/* GIPF subpages – orange theme + image sizing (not loaded on home-3) */
body.gipf-subpage {
  background-color: #fff4e6 !important;
  color: #3d2314;
}

body.gipf-subpage::before {
  background-image: none !important;
  background: linear-gradient(
    180deg,
    #fff9ee 0%,
    #fff4e6 25%,
    #ffe8cc 55%,
    #ffd9a8 85%,
    rgba(255, 176, 31, 0.15) 100%
  ) !important;
}

body.gipf-subpage .sec-title,
body.gipf-subpage .title-area .sec-title {
  color: #9a3412 !important;
}

body.gipf-subpage .sub-title {
  color: #9a3412 !important;
}

body.gipf-subpage .box-text,
body.gipf-subpage .box-text2,
body.gipf-subpage p {
  color: #6b4423;
}

/* Header – match home-3 */
body.gipf-subpage .header-layout3 .header-logo img,
body.gipf-subpage .header-layout3 .mobile-logo img {
  max-height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

body.gipf-subpage .header-layout3 .header-logo {
  background: #fff;
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body.gipf-subpage .header-layout3.header-absolute .sticky-wrapper,
body.gipf-subpage .header-layout3.header-absolute .menu-area {
  background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%) !important;
  border-bottom: 1px solid rgba(180, 140, 60, 0.15);
}

body.gipf-subpage .header-layout3 .main-menu > ul > li > a {
  color: #1a1a1a !important;
}

body.gipf-subpage .header-layout3 .main-menu > ul > li > a:hover {
  color: #c84b00 !important;
}

/* Header – hide cart & search, dark orange menu button */
body.gipf-subpage .header-layout3 .header-button .sideMenuToggler,
body.gipf-subpage .header-layout3 .header-button .searchBoxToggler,
body.gipf-subpage .header-layout3 .header-button > .line {
  display: none !important;
}

body.gipf-subpage .header-layout3 .header-button .th-menu-toggle {
  color: #9a3412 !important;
  background-color: #fff !important;
  border: 1px solid rgba(154, 52, 18, 0.3) !important;
}

body.gipf-subpage .header-layout3 .header-button .th-menu-toggle .menu,
body.gipf-subpage .header-layout3 .header-button .th-menu-toggle i {
  color: #9a3412 !important;
}

/* Event – features section: no bg image, dark orange fill */
body.gipf-subpage #event-features-sec {
  background: linear-gradient(
    135deg,
    #9a3412 0%,
    #c84b00 50%,
    #b45309 100%
  ) !important;
  background-image: none !important;
}

body.gipf-subpage #event-features-sec .sub-title,
body.gipf-subpage #event-features-sec .sub-title.style3,
body.gipf-subpage #event-features-sec .sec-title,
body.gipf-subpage #event-features-sec .scroll-text-ani {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

body.gipf-subpage #event-features-sec .box-text,
body.gipf-subpage #event-features-sec p {
  color: rgba(255, 244, 230, 0.92) !important;
}

/* About – Success Stories section: no bg image, orange fill */
body.gipf-subpage #success-stories-sec {
  background: linear-gradient(
    135deg,
    #fff4e6 0%,
    #ffe8cc 35%,
    #ffd9a8 65%,
    #ffb01f 100%
  ) !important;
  background-image: none !important;
}

body.gipf-subpage #success-stories-sec .sub-title,
body.gipf-subpage #success-stories-sec .sec-title,
body.gipf-subpage #success-stories-sec .box-text,
body.gipf-subpage #success-stories-sec .box-number {
  color: #9a3412 !important;
}

body.gipf-subpage #success-stories-sec .counter-item {
  background: #fff !important;
  border-radius: 20px;
}

/* Breadcrumb hero */
body.gipf-subpage .breadcumb-wrapper {
  background: linear-gradient(
      135deg,
      rgba(200, 75, 0, 0.55) 0%,
      rgba(255, 176, 31, 0.45) 50%,
      rgba(19, 136, 8, 0.35) 100%
    ),
    url("../img/hero/gipf-hero-graphic.jpeg") center/cover no-repeat !important;
  padding: 180px 0 160px !important;
}

body.gipf-subpage .breadcumb-title {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

body.gipf-subpage .breadcumb-menu li,
body.gipf-subpage .breadcumb-menu li a {
  color: #fff !important;
}

body.gipf-subpage .breadcumb-menu li a:hover {
  color: #ffe8cc !important;
}

/* Light section backgrounds */
body.gipf-subpage .team-box,
body.gipf-subpage .team-box.style2,
body.gipf-subpage .blog-card,
body.gipf-subpage .blog-card2,
body.gipf-subpage .price-box,
body.gipf-subpage .price-card,
body.gipf-subpage .contact-form,
body.gipf-subpage .testi-card,
body.gipf-subpage .testi-box,
body.gipf-subpage .counter-card2,
body.gipf-subpage .choose-item,
body.gipf-subpage .brand-card {
  background-color: #fff4e6 !important;
}

body.gipf-subpage .brand-area {
  background: linear-gradient(135deg, #ffe8cc 0%, #ffd9a8 100%) !important;
}

body.gipf-subpage .testi-area2 {
  background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%) !important;
}

body.gipf-subpage .testi-area2 .title-testimonial {
  color: rgba(154, 52, 18, 0.12) !important;
}

body.gipf-subpage .blog-area,
body.gipf-subpage .blog-area2 {
  background: linear-gradient(180deg, #fff9ee 0%, #fff4e6 100%) !important;
}

/* White text sections → dark saffron on light bg */
body.gipf-subpage .sec-title.text-white:not(.breadcumb-wrapper .sec-title),
body.gipf-subpage .box-title.text-white,
body.gipf-subpage .timer-counter-wrapp .sec-title {
  color: #9a3412 !important;
}

body.gipf-subpage .timer-counter .counter-list li {
  background: rgba(255, 255, 255, 0.65) !important;
  border-color: rgba(200, 75, 0, 0.2) !important;
  color: #9a3412 !important;
}

/* Remove ALL decorative overlays on images – nuclear fix */
body.gipf-subpage .team-box .th-social,
body.gipf-subpage .th-team .th-social,
body.gipf-subpage .th-team.team-box .th-social,
body.gipf-subpage .team-box .th-social a,
body.gipf-subpage .team-box:hover .th-social,
body.gipf-subpage .team-box:hover .th-social a,
body.gipf-subpage .discount-wrapp,
body.gipf-subpage .discount-tag,
body.gipf-subpage .about-counter,
body.gipf-subpage .discount-anime,
body.gipf-subpage .cta-icon,
body.gipf-subpage .cta-wrapp .cta-img2 .cta-icon,
body.gipf-subpage .box-btn,
body.gipf-subpage .popup-image.box-btn,
body.gipf-subpage .gallery-box .box-btn,
body.gipf-subpage .gallery-insta .box-btn,
body.gipf-subpage .gallery-card .icon-btn,
body.gipf-subpage .team-box .shape,
body.gipf-subpage .play-btn {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  border: none !important;
  background: none !important;
}

body.gipf-subpage .global-img::after,
body.gipf-subpage .global-img::before,
body.gipf-subpage .team-box .box-img::before,
body.gipf-subpage .gallery-box .box-img::before,
body.gipf-subpage .gallery-card .box-img::before,
body.gipf-subpage .gallery-item .box-img::before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

/* Team cards – fixed image height, visible overlay text */
body.gipf-subpage .th-team.team-box .box-img {
  height: 400px;
  overflow: hidden;
}

body.gipf-subpage .th-team.team-box .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.gipf-subpage .team-box .box-content {
  z-index: 3;
}

body.gipf-subpage .team-box .box-title,
body.gipf-subpage .team-box .team-desig {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

body.gipf-subpage .team-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Gallery cards */
body.gipf-subpage .gallery-card .box-img {
  transform: none !important;
  height: 280px;
  overflow: hidden;
  border-radius: 16px;
}

body.gipf-subpage .gallery-card .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

body.gipf-subpage .gallery-insta .box-img {
  overflow: hidden;
  border-radius: 12px;
  max-height: 260px;
}

body.gipf-subpage .gallery-insta .box-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}

body.gipf-subpage .gallery-insta.style2 .box-img {
  height: 280px;
  overflow: hidden;
  border-radius: 16px;
}

body.gipf-subpage .gallery-box .box-img {
  height: 320px;
  overflow: hidden;
  border-radius: 16px;
}

body.gipf-subpage .gallery-box .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.gipf-subpage .gallery-box .box-content {
  z-index: 3;
}

body.gipf-subpage .gallery-box .box-title,
body.gipf-subpage .gallery-box .box-text {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* About page images */
/* About page – restore two-column layout */
body.gipf-subpage #about-sec .row.gy-4 {
  align-items: center;
}

body.gipf-subpage #about-sec .col-lg-5,
body.gipf-subpage #about-sec .col-lg-7 {
  width: 100%;
}

@media (min-width: 992px) {
  body.gipf-subpage #about-sec .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  body.gipf-subpage #about-sec .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
}

body.gipf-subpage #about-sec .img-box1 .img1 {
  height: auto;
  overflow: hidden;
  border-radius: 16px;
}

body.gipf-subpage #about-sec .img-box1 .img1 img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
}

body.gipf-subpage .img-box1 .img1 {
  height: 480px;
  overflow: hidden;
  border-radius: 16px;
}

body.gipf-subpage .img-box1 .img1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.gipf-subpage .about-image2 {
  overflow: hidden;
  border-radius: 16px;
}

body.gipf-subpage .about-image2 img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

body.gipf-subpage .story-image {
  overflow: hidden;
  border-radius: 30px 0 0 30px;
}

body.gipf-subpage .story-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

/* Blog cards */
body.gipf-subpage .blog-card .box-img {
  height: 260px;
  overflow: hidden;
}

body.gipf-subpage .blog-card .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.gipf-subpage .blog-card2 .box-img {
  height: 220px;
  overflow: hidden;
}

body.gipf-subpage .blog-card2 .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.gipf-subpage .blog-img {
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
}

body.gipf-subpage .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* CTA images */
body.gipf-subpage .cta-img,
body.gipf-subpage .cta-img2 {
  overflow: hidden;
  border-radius: 16px;
}

body.gipf-subpage .cta-img img,
body.gipf-subpage .cta-img2 img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Small avatars */
body.gipf-subpage .box-author {
  width: 40px;
  height: 40px;
  max-width: 40px;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
}

body.gipf-subpage .box-author img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.gipf-subpage .recent-post .media-img {
  max-width: 80px;
  height: 80px;
  overflow: hidden;
}

body.gipf-subpage .recent-post .media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Testimonials */
body.gipf-subpage .testi-box .box-img,
body.gipf-subpage .testi-card .box-img {
  overflow: hidden;
}

body.gipf-subpage .testi-box .box-img img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

body.gipf-subpage .testi-box .box-text,
body.gipf-subpage .testi-box .box-title,
body.gipf-subpage .testi-box .box-desig {
  color: #3d2314 !important;
}

body.gipf-subpage .testi-card .box-img img {
  height: 160px;
  object-fit: cover;
}

/* Brand logos – no white filter on light background */
body.gipf-subpage .brand-card img {
  filter: none !important;
  max-height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

body.gipf-subpage .brand-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 12px;
}

/* Contact / booking images */
body.gipf-subpage .contact-image img,
body.gipf-subpage .booking-image img,
body.gipf-subpage .img-box3 img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 16px;
}

/* Event list thumbnails */
body.gipf-subpage .event-list2 .box-img {
  width: 278px !important;
  max-width: 278px !important;
  height: 180px !important;
  overflow: hidden !important;
}

body.gipf-subpage .event-list2 .box-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Footer newsletter white text fix */
body.gipf-subpage .footer-layout3 .newsletter-content2 .box-title.text-white,
body.gipf-subpage .footer-layout3 .newsletter-content2 p.text-white,
body.gipf-subpage .footer-layout3 label.text-white {
  color: #9a3412 !important;
}

@media (max-width: 991px) {
  body.gipf-subpage .th-team.team-box .box-img {
    height: 320px;
  }

  body.gipf-subpage .breadcumb-wrapper {
    padding: 140px 0 120px !important;
  }

  body.gipf-subpage .story-image img,
  body.gipf-subpage .about-image2 img {
    height: 300px;
  }
}

@media (max-width: 575px) {
  body.gipf-subpage .th-team.team-box .box-img {
    height: 280px;
  }

  body.gipf-subpage .cta-img img,
  body.gipf-subpage .cta-img2 img {
    height: 260px;
  }
}
