/* =====================================================
   NICEPAGE POINTER EVENTS FIX
   Some Nicepage themes set pointer-events:none on .u-sheet.
   This restores interaction for NDC components.
===================================================== */
.u-sheet, .u-section, .u-layout, .u-layout-cell, .u-custom-html, .u-custom-html * {
  pointer-events: auto !important;
}

/* ============================================================
   NDC CUSTOM CSS — SINGLE SOURCE OF TRUTH (LIGHT GLASS) ✅
   - Skywheel background FIXED (on HTML)
   - BODY + Nicepage wrappers transparent
   - White header (not see-through)
   - Light glass panels
   - Deals grid (4/2/1) NO images (fast)
   - Deals: clean spacing + centered offer + centered button
   - Reasons section (4 columns)
   - Exclusive Partners: grid + card styling + ribbon + centered CTAs
   - My Clipped Coupons: ONE dashed border only, NO circles, NO tear line
============================================================ */


/* ============================================================
   1) SKYWHEEL BACKGROUND (TRUE PAGE BACKGROUND)
   Put background on HTML so it never “moves with blocks”
============================================================ */
html{
  background-color: #0f172a !important;
  background-image: url("https://ndcgrandstrand.com/wp-content/uploads/2025/12/bg-skywheel-day.jpg") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* Body must be transparent so HTML background shows */
html, body{ height: 100% !important; }

body,
body.u-body{
  margin: 0 !important;
  min-height: 100vh !important;
  background: transparent !important;
  background-image: none !important;
}

/* Optional (very light) readability overlay */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.06);
  z-index: 0;
}

/* Keep all page content above overlay */
body > *{
  position: relative;
  z-index: 1;
}


/* ============================================================
   2) NICEPAGE TRANSPARENCY (LET HTML BG SHOW)
============================================================ */
[class*="u-section-"],
.u-body,
.u-section,
.u-sheet,
.u-group,
.u-layout,
.u-layout-row,
.u-layout-cell,
.u-container-layout{
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}


/* ============================================================
   3) NICEPAGE HTML BLOCK HEIGHT KILLER
============================================================ */
.u-custom-html,
.u-html,
.u-html-block,
.u-custom-html .u-container-layout,
.u-html .u-container-layout,
.u-html-block .u-container-layout{
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* If Nicepage injects insane inline min-height/height */
.u-custom-html[style*="height"],
.u-custom-html[style*="min-height"],
.u-html[style*="height"],
.u-html[style*="min-height"],
.u-html-block[style*="height"],
.u-html-block[style*="min-height"]{
  height: auto !important;
  min-height: 0 !important;
}


/* ============================================================
   4) HEADER (WHITE, NOT TRANSPARENT)
============================================================ */
header.u-header,
.u-header{
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* prevent inner header wrappers from painting over it */
.u-header .u-sheet,
.u-header .u-layout,
.u-header .u-layout-row,
.u-header .u-layout-cell,
.u-header .u-container-layout{
  background: transparent !important;
}

/* header nav text */
.u-header a,
.u-header .u-nav-link{
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* hover/active */
.u-header .u-nav-link:hover,
.u-header .u-nav-link.u-active{
  color: #ff7a1a !important;
}


/* ============================================================
   5) LIGHT GLASS PANEL (WELCOME PANEL)
============================================================ */
.ndc-welcome-panel{
  max-width: 1140px;
  margin: 26px auto 34px !important;
  padding: 28px 22px 26px !important;

  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(15,23,42,0.10) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.16) !important;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* dark text inside */
.ndc-welcome-panel,
.ndc-welcome-panel *{
  color: #0f172a !important;
}


/* ============================================================
   6) HOME BUTTONS + BADGE
============================================================ */
.ndc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.ndc-btn-lg{ padding: 12px 26px; }

.ndc-btn-orange{
  background: #ff7a1a;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}
.ndc-btn-orange:hover{ filter: brightness(1.03); transform: translateY(-1px); }

.ndc-btn-teal{
  background: #009FBD;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.ndc-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.10);
  color: #0f172a !important;
  font-weight: 900;
  font-size: 12px;
}


/* ============================================================
   7) FEATURED SLIDER (SHORTCODE)
============================================================ */
.ndc-featured-slider{
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto 14px !important;
  cursor: grab;
  scrollbar-width: none;
}
.ndc-featured-slider::-webkit-scrollbar{ display:none; }
.ndc-featured-slider.ndc-dragging{ cursor: grabbing; }
.ndc-featured-slider,
.ndc-featured-slider *{ user-select: none; }
.ndc-featured-slider img{
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  pointer-events: none; /* prevents filename tooltip + ghost drag */
}

.ndc-slider-track{ display:flex; flex-wrap: nowrap; }
.ndc-slide.ndc-featured-slide{ flex: 0 0 525px; box-sizing: border-box; padding: 10px; }
@media (max-width:700px){ .ndc-slide.ndc-featured-slide{ flex: 0 0 80%; } }
.ndc-slide-inner img{ display:block; width:100%; height:auto; border-radius: 18px; }


/* ============================================================
   8) REASONS SECTION (4 columns)
============================================================ */
.ndc-reasons{
  max-width: 1140px;
  margin: 26px auto 34px;
  padding: 0 20px;
}

.ndc-reasons-card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 26px 22px 22px;
}

.ndc-reasons-title{
  margin: 0 0 16px;
  color: #ff7a1a;
  font-weight: 950;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
}

.ndc-reasons-grid{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px;
}
@media (max-width: 1024px){
  .ndc-reasons-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px){
  .ndc-reasons-grid{ grid-template-columns: 1fr !important; }
}

.ndc-reason{
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  padding: 16px 16px 14px;
}
.ndc-reason h3{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 950;
  color: #0f172a;
}
.ndc-reason p{
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}


/* ============================================================
   9) DEALS GRID (4/2/1) — NO IMAGES (FAST)
============================================================ */
.ndc-deals-wrapper{
  max-width: 1140px;
  margin: 0 auto 40px;
  padding: 0 10px;
  font-family: inherit;
}

.ndc-deals-title{
  text-align: left;
  font-size: 32px;
  margin: 10px 0 20px;
  color: #ff7a1a;
  font-weight: 900;
}

.ndc-deals-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1024px){
  .ndc-deals-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .ndc-deals-grid{ grid-template-columns: 1fr; }
}

.ndc-deal-card{
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* kill images entirely */
.ndc-deal-image{ display: none !important; }

/* body spacing */
.ndc-deal-body{
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* category = label row */
.ndc-deal-card .ndc-category-pill{
  position: static !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin: 0 !important;

  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;

  background: rgba(15,23,42,0.08) !important;
  color: #0f172a !important;
}

/* title */
.ndc-deal-title,
.ndc-deal-name{
  margin: 0 !important;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  color: #0f172a;
}

/* address */
.ndc-deal-meta,
.ndc-deal-address{
  margin: 0 !important;
  font-size: 14px;
  color: #334155;
}

/* offer pill centered */
.ndc-deal-tag,
.ndc-deal-offer{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  text-align: center;

  padding: 7px 14px;
  border-radius: 999px;
  background: #ff7a1a;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}

/* clip button centered */
.ndc-deals-wrapper .ndc-clip-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  align-self: center;
  width: min(220px, 100%);

  margin-top: 2px;
  padding: 11px 18px;
  border-radius: 999px;
  border: none;

  background: #009FBD;
  color: #ffffff;
  font-weight: 950;
  font-size: 14px;

  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.14);
  transition: transform .08s ease, filter .08s ease, box-shadow .08s ease;
}
.ndc-deals-wrapper .ndc-clip-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 26px rgba(0,0,0,0.16);
}
.ndc-deals-wrapper .ndc-clip-btn:disabled{
  opacity: .7;
  cursor: default;
  transform: none;
  box-shadow: none;
}


/* ============================================================
   10) EXCLUSIVE PARTNERS — GRID + CARDS + CTA + RIBBON
============================================================ */
/* grid */
.ndc-partners-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:22px !important;
  align-items:stretch !important;
}
@media (max-width:1024px){
  .ndc-partners-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width:640px){
  .ndc-partners-grid{ grid-template-columns:1fr !important; }
}

/* card */
.ndc-partner-card{
  position: relative !important;
  background: rgba(255,255,255,0.94) !important;
  border: 1px solid rgba(15,23,42,0.10) !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 26px rgba(0,0,0,0.12) !important;
  overflow: hidden !important;
  padding: 18px 18px 16px !important;
}

/* text dark */
.ndc-partner-card,
.ndc-partner-card *{
  color:#0f172a !important;
}

/* logo circle */
.ndc-partner-logo-wrap{
  width:100px !important;
  height:100px !important;
  margin: 10px auto 12px !important;
  border-radius:50% !important;
  overflow:hidden !important;
  background:#fff !important;
  box-shadow:0 8px 20px rgba(0,0,0,0.12) !important;
}
.ndc-partner-logo-wrap img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}

/* name */
.ndc-partner-name{
  font-weight:950 !important;
  font-size:18px !important;
  margin: 0 0 6px !important;
  text-align:center !important;
}

/* center CTAs */
.ndc-partner-actions{
  margin-top:12px !important;
  text-align:center !important;
}

/* hide old view button if present */
.ndc-view-btn{ display:none !important; }

/* View Details (orange) */
.ndc-details-link{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:11px 20px !important;
  border-radius:999px !important;
  background:#ff7a1a !important;
  color:#fff !important;
  font-weight:900 !important;
  text-decoration:none !important;
  box-shadow:0 6px 14px rgba(0,0,0,0.18) !important;
  margin: 10px auto 0 !important;
}

/* Clip button (teal) */
.ndc-partner-actions .ndc-clip-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin: 10px auto 0 !important;
  padding: 10px 18px !important;
  border-radius:999px !important;
  background:#009FBD !important;
  color:#fff !important;
  font-weight:900 !important;
  border:none !important;
}

/* ribbon */
.ndc-partner-ribbon{
  position: absolute !important;
  top: 14px !important;
  left: -48px !important;
  transform: rotate(-35deg) !important;
  transform-origin: left top !important;

  background: #ff7a1a !important;
  color: #fff !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;

  padding: 7px 64px !important;
  box-shadow: 0 10px 18px rgba(0,0,0,0.18) !important;

  z-index: 10 !important;
  pointer-events: none !important;
}

/* tiny fold */
.ndc-partner-ribbon::after{
  content:"";
  position:absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  background: rgba(0,0,0,0.18);
  opacity: .45;
}


/* ============================================================
   11) MOBILE TWEAKS
============================================================ */
@media (max-width:640px){
  .ndc-welcome-panel{ margin: 18px 14px 26px !important; padding: 22px 16px !important; }
  .ndc-reasons{ padding: 0 14px; }
}

/* ============================================================
   HEADER: LOTTO BALL CLIPPED COUNT (ORANGE SPHERE)
   - Show only when count > 0 (JS toggles)
===================================================== */
.ndc-header-clip-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:800;
}
.ndc-header-clip-circle{
  display:none; /* JS shows when count > 0 */
  align-items:center;
  justify-content:center;
}
.ndc-header-clip-count{
  min-width:26px;
  height:26px;
  padding:0 8px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, #fff3ba 0%, #ff7a1a 60%, #e55d00 100%);
  color:#fff;
  font-weight:900;
  font-size:13px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.45),
    inset 0 -2px 4px rgba(0,0,0,0.20),
    0 3px 8px rgba(0,0,0,0.30);
}
.ndc-header-clip-label{ color:#0f172a; }

/* Hero "View My Clipped Coupons" should hide until there is at least 1 clipped */
[data-ndc-hero-clipped-link]{ display:none; }


/* ============================================================
   MY CLIPPED COUPONS (page-id-500) — FINAL ✅
   - ONE dashed border only
   - NO circles
   - NO tear line (even if JS injects it)
   - Prevent nested .ndc-deal-card from creating double border
============================================================ */

/* layout grid for clipped list */
.page-id-500 #ndc-clipped-list{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 34px 40px !important;
  align-items: stretch !important;
  justify-items: center !important;
}
@media (max-width: 768px){
  .page-id-500 #ndc-clipped-list{
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }
}

/* OUTER/TOP-LEVEL CARD ONLY */
.page-id-500 #ndc-clipped-list > .ndc-deal-card{
  border: 2px dashed rgba(255,122,26,0.55) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.14) !important;
  padding: 28px 34px !important;
  position: relative !important;
  max-width: 520px !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* Strip ANY nested deal-card chrome */
.page-id-500 #ndc-clipped-list > .ndc-deal-card .ndc-deal-card{
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Kill inner pseudo decorations */
.page-id-500 #ndc-clipped-list > .ndc-deal-card .ndc-deal-card::before,
.page-id-500 #ndc-clipped-list > .ndc-deal-card .ndc-deal-card::after{
  content: none !important;
  display: none !important;
}

/* NO circles on the outer card */
.page-id-500 #ndc-clipped-list > .ndc-deal-card::before,
.page-id-500 #ndc-clipped-list > .ndc-deal-card::after{
  content: none !important;
  display: none !important;
}

/* NO tear line (even if injected by JS) */
.page-id-500 #ndc-clipped-list .ndc-coupon-tear{
  display: none !important;
}

/* Hide clip buttons inside clipped view */
.page-id-500 #ndc-clipped-list .ndc-clip-btn{
  display: none !important;
}

/* Hide deal images on clipped page */
.page-id-500 .ndc-deal-image{
  display: none !important;
}


/* ============================================================
   PRINT — CLEAN COUPONS FOR /my-clipped-coupons
===================================================== */
@media print {
  @page { margin: 0.5in; }

  html, body { background: #ffffff !important; }

  header, nav, footer,
  .u-header, .u-footer,
  .ndc-featured-slider,
  .ndc-header-clip-link,
  .ndc-btn,
  button, .ndc-clip-btn,
  .ndc-category-pill,
  .ndc-deal-image,
  .ndc-partner-actions,
  .ndc-deal-actions {
    display: none !important;
  }

  * {
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .page-id-500 .u-section,
  .page-id-500 .u-sheet {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .page-id-500 #ndc-clipped-list {
    display: block !important;
  }

  .page-id-500 #ndc-clipped-list > .ndc-deal-card{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px 0 !important;
    padding: 14px 16px !important;

    border: 2px solid #f97316 !important;
    border-radius: 14px !important;
    background: #ffffff !important;

    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  /* belt & suspenders: no tear line in print */
  .page-id-500 #ndc-clipped-list .ndc-coupon-tear{
    display:none !important;
  }

  .page-id-500 .ndc-deal-offer,
  .page-id-500 .ndc-deal-tag{
    display: inline-block !important;
    margin-top: 6px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    border: 2px solid #f97316 !important;
    color: #111827 !important;
    background: #fff7ed !important;
    font-weight: 800 !important;
  }
}
