/***** BUTTONS ONLY – Scoped Override (Hero + site-wide) *****/

/* Elementor, WP core button block, Charitable, Menu CTA, Utility class, Smart Slider hero */
a.elementor-button,
.elementor a.elementor-button,
.wp-block-button__link,
.wp-element-button,
.charitable-button,
.menu-cls ul li:last-child a,
.emi-box-btn,
.ban-cls .n2-ss-button-container a.n2-ow { /* Smart Slider 3 hero button */
  background: none !important;
  border: 0 !important;
  color: #ffffff !important;
  text-decoration: none !important;

  /* Green → subtle brown gradient */
  background-image: linear-gradient(
    180deg,
    #3a9c35 0%,
    #298025 62%,
    #276f22 82%,
    #6f5b20 100%
  ) !important;

  border-radius: 10px !important;
  padding: 12px 26px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  min-height: 44px !important;

  text-shadow: 0 1px 0 rgba(0,0,0,0.28),
               0 0 2px rgba(0,0,0,0.22) !important;
  box-shadow: inset 0 -10px 18px rgba(111,91,32,0.12),
              0 2px 6px rgba(0,0,0,0.18) !important;

  transition: transform .25s ease,
              box-shadow .25s ease,
              background .25s ease !important;
  cursor: pointer !important;
}

/* Inner spans inherit white text */
a.elementor-button *,
.wp-block-button__link * {
  color: inherit !important;
  background: transparent !important;
  text-shadow: inherit !important;
}

/* Hover / Focus */
a.elementor-button:hover,
.elementor a.elementor-button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
.charitable-button:hover,
.menu-cls ul li:last-child a:hover,
.emi-box-btn:hover,
.ban-cls .n2-ss-button-container a.n2-ow:hover,
a.elementor-button:focus,
.wp-block-button__link:focus,
.wp-element-button:focus {
  background-image: linear-gradient(
    180deg,
    #42a53d 0%,
    #2e8928 60%,
    #287523 82%,
    #7a6421 100%
  ) !important;
  transform: translateY(-2px) !important;
  box-shadow: inset 0 -12px 22px rgba(122,100,33,0.18),
              0 6px 14px rgba(0,0,0,0.28) !important;
  outline: none !important;
}

/* Active press */
a.elementor-button:active,
.wp-block-button__link:active,
.wp-element-button:active {
  transform: translateY(0) !important;
  box-shadow: inset 0 -6px 14px rgba(122,100,33,0.16),
              0 2px 6px rgba(0,0,0,0.20) !important;
}

/* Keyboard focus ring */
a.elementor-button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible {
  outline: 2px solid rgba(122,100,33,0.55) !important;
  outline-offset: 2px !important;
}

/* ================== VIDEO HERO ================== */

.video-banner {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding: 0 !important;
}

.video-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 2;
  pointer-events: none;
}

.video-banner .elementor-widget-video iframe,
.video-banner video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

.video-banner .banner-content {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: #ffffff;
  width: 100%;
  padding: 0 20px;
}

.video-banner .banner-buttons {
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.video-banner .banner-buttons .elementor-button {
  background: #36a44a;
  color: #ffffff;
  border-radius: 30px;
  padding: 14px 30px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  transition: .2s ease;
}

.video-banner .banner-buttons .elementor-button:hover {
  background: #2f8d3f;
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .video-banner .banner-content {
    top: 38%;
  }
  .video-banner .banner-buttons {
    top: 75%;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ============ CONTENT IMAGE STYLE (SAFE) ============ */
/* Only style main content images (no logos/payment icons) */

.entry-content img,
.wp-block-image img,
.elementor-widget-image img,
.elementor-image img,
.elementor-image-box-img img,
.elementor-gallery-item__image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 22px rgba(65,97,63,0.22);
  transition: all 0.3s ease-in-out;
}

.entry-content img:hover,
.wp-block-image img:hover,
.elementor-widget-image img:hover,
.elementor-image img:hover,
.elementor-image-box-img img:hover,
.elementor-gallery-item__image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(65,97,63,0.32);
}

/* Never treat logos, icons, or payment badges like photos */
header img,
.site-logo img,
.footer img,
.elementor-icon img,
.elementor-widget-icon-box img,
.elementor-widget-social-icons img {
  box-shadow: none !important;
  padding: 0 !important;
  background: none !important;
  transform: none !important;
}

/* === Global EMI base === */
body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  color: #222222;
}

/* === DORM PAGE ONLY (ID 1449) === */
body.page-id-1449 .elementor,
body.page-id-1449 .elementor * {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: #333333 !important;
}

body.page-id-1449 h1,
body.page-id-1449 h2,
body.page-id-1449 h3,
body.page-id-1449 h4,
body.page-id-1449 h5,
body.page-id-1449 h6,
body.page-id-1449 .elementor-heading-title {
  font-weight: 700 !important;
  color: #2b4d24 !important; /* EMI green accent for headings */
}

body.page-id-1449 a {
  color: #b45a2b;
  text-decoration: none;
}

body.page-id-1449 a:hover {
  color: #8c431f;
  text-decoration: underline;
}

body.page-id-1449 .elementor-button,
body.page-id-1449 .wp-block-button__link,
body.page-id-1449 button,
body.page-id-1449 input[type="submit"] {
  border-radius: 10px !important;
}

/* Reduce size of hut photo on Dorm Project page */
body.page-id-1449 img[src*="hut"] {
  width: 60% !important;
  max-width: 600px !important;
  display: block !important;
  margin: 0 auto !important;
}

/* === DONATION PAGE ONLY: payment logos (safe) === */
/* Uses your real Donation page ID: 885 */

/* Make the logo container flex so all icons sit in horizontal rows */
body.page-id-885 .payment-methods,
body.page-id-885 .charitable-gateway-icons,
body.page-id-885 .gateway-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Style all payment logos on that page */
body.page-id-885 .payment-methods img,
body.page-id-885 .charitable-gateway-icons img,
body.page-id-885 .gateway-icons img,
body.page-id-885 img[src*="visa"],
body.page-id-885 img[src*="master"],
body.page-id-885 img[src*="discover"],
body.page-id-885 img[src*="amex"],
body.page-id-885 img[src*="diners"],
body.page-id-885 img[src*="jcb"] {
  display: inline-block;
  max-width: 80px;
  height: auto !important;
  margin: 0 8px 8px 0;
  padding: 0 !important;
  box-shadow: none !important;
  background: none !important;
  border-radius: 0;
  vertical-align: middle;
}
