html {
  scroll-behavior: smooth;
}

.main section[id] {
  scroll-margin-top: 110px;
}

.main-menu .btn-cta {
  color: var(--white-color) !important;
  background: var(--primary-color);
  padding: 12px 18px !important;
  border-radius: 30px;
}

.main-menu .btn-cta:hover {
  background: var(--secondary-color);
  color: var(--white-color) !important;
}

.header .header-lower.sticky {
  animation: none !important;
}

.header .header-call .header-call-icon {
  animation: none !important;
}

@media (min-width: 1200px) {
  .header-1 .header-lower .header-content {
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    align-items: center;
  }

  .header-1 .header-lower .header-content .header-navigation {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .header-1 .header-lower .header-content .main-menu,
  .header-1 .header-lower .header-content .main-menu nav {
    width: 100%;
  }

  .header-1 .header-lower .header-content .main-menu ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding-left: 0;
  }

  .header-1 .header-lower .header-content .main-menu ul .nav-item {
    margin-inline-end: 0 !important;
  }

  .header-1 .header-lower .header-content .main-menu ul .nav-item .nav-link {
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
  }

  .header-1 .header-lower.sticky .header-content .logo-box .logo {
    top: -37px;
    width: 105px;
    height: 105px;
    padding: 2px;
    border-radius: 50%;
    overflow: hidden;
  }

  .header-1 .header-lower.sticky .header-content .logo-box .logo a,
  .header-1 .header-lower.sticky .header-content .logo-box .logo a figure {
    width: 100%;
    height: 100%;
  }

  .header-1 .header-lower.sticky .header-content .logo-box .logo a figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .header-1 .header-lower.sticky .header-content .logo-box .logo .logo-shape {
    bottom: -43px;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .header-1 .header-lower .header-content {
    grid-template-columns: 150px minmax(0, 1fr) auto;
  }

  .header-1 .header-lower .header-content .main-menu ul {
    gap: 16px;
  }

  .header-1 .header-lower .header-content .main-menu ul .nav-item .nav-link {
    font-size: 15px;
  }
}

.volunteer-home-section .volunteer-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.volunteer-home-section .volunteer-skill-list span,
.home-partner-item {
  color: var(--black-color);
  background: var(--white-color);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.volunteer-home-section .volunteer-skill-list span {
  padding: 10px 14px;
  line-height: 1.3;
}

.volunteer-form {
  background: var(--extra-color);
  padding: 34px;
  border-radius: 8px;
}

.volunteer-form select.form-control {
  height: 60px;
  line-height: 60px;
}

.home-donation-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 8px;
}

.home-donation-info .upi-box,
.home-donation-info .bank-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 18px;
}

.home-donation-info span {
  display: block;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 6px;
}

.home-donation-info strong,
.home-donation-info p {
  color: var(--black-color);
}

.home-donation-info p {
  margin-bottom: 4px;
}

.qr-code-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.qr-code-image {
  max-width: 320px;
  margin: 0 auto;
}

.qr-code-image figure {
  margin: 0;
}

.qr-code-image img {
  width: 100%;
  height: auto;
  display: block;
}

.qr-code-content {
  padding-left: 10px;
}

.qr-bank-details {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  padding: 18px 20px;
}

.qr-bank-details span {
  display: block;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.qr-bank-details p {
  margin-bottom: 6px;
  color: var(--black-color);
}

.widget-cta .service-cta-list {
  align-items: center;
}

.widget-cta .service-cta-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.widget-cta .service-cta-icon i {
  font-size: 18px;
  line-height: 1;
}

.home-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 35px;
}

.home-partner-item {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  font-weight: 700;
}

.contact-section .contact-content h3 a {
  color: inherit;
}

.google-map .google-map-iframe iframe {
  border: 0;
}

.services-section-3 .service-items {
  height: 100%;
  min-height: 460px;
}

.services-section-3 .service-items .service-image {
  height: 100%;
}

.services-section-3 .service-items .service-image figure {
  height: 100%;
  margin: 0;
}

.services-section-3 .service-items .service-image figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991px) {
  .home-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .volunteer-form {
    margin-top: 35px;
  }

  .home-donation-info {
    grid-template-columns: 1fr;
  }

  .qr-code-content {
    padding-left: 0;
  }

  .services-section-3 .service-items {
    min-height: 360px;
  }
}

@media (max-width: 576px) {
  .services-section-3 .service-items {
    min-height: 340px;
  }
}

@media (max-width: 576px) {
  .home-partners-grid {
    grid-template-columns: 1fr;
  }

  .volunteer-form {
    padding: 24px;
  }
}

/* Responsive width fixes */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.page-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
}

img {
  height: auto;
}

.hero-section-1 .container-fluid,
.hero-section-1 .row,
.hero-section-1 .hero-items {
  width: 100%;
  max-width: 100%;
}

.hero-section-1 .hero-items {
  flex: 0 0 100%;
}

@media (max-width: 1199px) {
  .header-1 .header-lower .header-content {
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .header-1 .header-lower .header-content .header-left,
  .header-1 .header-lower .header-content .header-right {
    min-width: 0;
  }

  .header-1 .header-lower .header-content .header-right {
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .header .header-lower {
    padding: 8px 0;
  }

  .header .button-wapper {
    flex: 0 0 auto;
    gap: 4px;
  }

  .header .button-wapper .header-sidebar a,
  .header .button-wapper .header-search a,
  .header .button-wapper .header-cart a,
  .header .header-lower .header-sidebar .sidebar-toggler {
    width: 42px;
    height: 42px;
  }

  .header-1 .header-lower .header-content .logo-box .logo {
    top: -18px;
    width: 72px;
    height: 72px;
  }

  .hero-section-1 .hero-items {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .hero-section-1 .hero-items .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 52px 18px 50px;
  }

  .hero-section-1 .hero-items .hero-content .section-title {
    width: 100%;
    max-width: 100%;
  }

  .hero-section-1 .hero-items .hero-content .section-title .sub-title {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-section-1 .hero-items .hero-content .section-title h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.22;
  }

  .hero-section-1 .hero-items .hero-content .hero-button-wappper {
    width: 100%;
    gap: 12px;
  }

  .hero-section-1 .hero-items .hero-content .hero-button-wappper .theme-button {
    max-width: 100%;
  }

  .hero-section-1 .hero-items .hero-image {
    width: 100%;
    max-width: 100%;
    min-height: 360px;
  }

  .hero-section-1 .hero-items .hero-image figure,
  .hero-section-1 .hero-items .hero-image figure img {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-section-1 .hero-items .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section-1 .hero-items .hero-content .hero-button-wappper {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==========================================================================
   Mahakal NGO Custom Desktop Hero Section Optimization Overrides
   ========================================================================== */
@media (min-width: 992px) {

  /* Set a premium, responsive fullscreen height for the hero section */
  .hero-section-1 .hero-items {
    display: flex !important;
    align-items: stretch !important;
    /* Stretch content and image to match height */
    height: calc(100vh - 110px) !important;
    /* Viewport height minus header */
    min-height: 760px !important;
    /* Increased by 10px per request */
    max-height: 850px !important;
    /* Cap maximum height for extra tall monitors */
    position: relative !important;
    overflow: hidden !important;
  }

  /* Optimize left content: width 50%, padding and vertical centering alignment */
  .hero-section-1 .hero-items .hero-content {
    width: 50% !important;
    /* Increase width from 38% to 50% for standard layout balance */
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    /* Perfectly center text and elements vertically */
    padding-top: 40px !important;
    padding-bottom: 50px !important;
    padding-left: 60px !important;
    padding-right: 60px !important;
    box-sizing: border-box !important;
  }

  /* Make sure section title spacing is compact and readable */
  .hero-section-1 .hero-items .hero-content .section-title {
    margin-bottom: 25px !important;
  }

  .hero-section-1 .hero-items .hero-content .section-title h1 {
    font-size: 50px !important;
    /* Balanced heading font-size for high-impact desktop layout */
    line-height: 1.25 !important;
    margin-bottom: 18px !important;
  }

  .hero-section-1 .hero-items .hero-content .section-title p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
  }

  /* Optimize button wrappers and spacing */
  .hero-section-1 .hero-items .hero-content .hero-button-wappper {
    margin-top: 5px !important;
    margin-bottom: 25px !important;
    gap: 12px 16px !important;
  }

  /* Optimize avatar section spacing to prevent overlap */
  .hero-section-1 .hero-items .hero-content .hero-avatar-wapper {
    margin-top: 20px !important;
    gap: 15px !important;
  }

  /* Optimize right image to take up exactly 50% width and align beautifully in normal flow */
  .hero-section-1 .hero-items .hero-image {
    width: 50% !important;
    /* Balanced split: 50% width */
    position: relative !important;
    /* Standard flex flow instead of absolute positioning */
    right: auto !important;
    top: auto !important;
    height: 100% !important;
    display: block !important;
    z-index: 2 !important;
  }

  /* Ensure the figure and image inside cover the space flawlessly */
  .hero-section-1 .hero-items .hero-image figure {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  .hero-section-1 .hero-items .hero-image figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Swiper hero slider container on top of the image */
  .hero-section-1 .hero-items .hero-image .hero-slider {
    position: absolute !important;
    bottom: 8% !important;
    right: 40px !important;
    max-width: 480px !important;
    padding: 24px !important;
    z-index: 3 !important;
  }
}

/* Copyright Design */
.copyright-text {
  font-size: 15px;
  color: #FF4D00;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-align: center;
  line-height: 1.8;
}

.copyright-text a {
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.4s ease;
}

/* Mahakal link */
.copyright-link {
  color: var(--primary-color);
}

.copyright-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 8px var(--primary-color);
}

/* Developer link */
.developer-link {
  color: var(--primary-color);
}

.developer-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

/* Divider */
.divider {
  margin: 0 1px;
  color: var(--primary-color);
}

/* Underline animation */
.copyright-text a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1.5px;
  background: currentColor;
  transition: width 0.4s ease;
}

.copyright-text a:hover::after {
  width: 100%;
}
