/* =========================================================
   DELECON® EXTERIOR ARCHITECTURE — TAILWIND APP STYLE
   Theme: Midnight Black, Crisp White, Premium Gold
   ========================================================= */

/* -------------------------------------------
   👑 1. PRO HERO SLIDER (MIXED RATIO FIX)
------------------------------------------- */
.ext-hero-container { 
  position: relative; 
  width: 100%; 
  height: clamp(320px, 55vw, 600px); 
  background: #0b0b0b; 
  border-radius: 18px !important; 
  overflow: hidden; 
  /* ISOLATION IS THE SECRET: Forces Safari/Chrome to keep rounded corners */
  isolation: isolate; 
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
  margin-bottom: 30px;
}

.ext-slide { 
  position: absolute; 
  inset: 0; 
  opacity: 0; 
  transition: opacity 0.8s ease-in-out; 
  border-radius: 18px !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ext-slide.active { 
  opacity: 1; 
}

/* MAIN IMAGE: Fully visible, no cropping */
.ext-slide img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; /* Prevents 9:16 vertical images from being cut */
  position: relative;
  z-index: 2;
}

/* BLURRED BACKDROP: Fills the empty space automatically */
.ext-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit; /* Inherits the PHP inline style */
  background-size: cover;
  background-position: center;
  filter: blur(25px) brightness(0.4); 
  transform: scale(1.15); /* Prevents white bleeding edges */
  z-index: 1;
}

/* -------------------------------------------
   2. APP UTILITY & LAYOUT CLASSES
------------------------------------------- */
.ext-badge { 
  display: inline-block; 
  background-color: #FFD700; 
  color: #000; 
  padding: 6px 14px; 
  border-radius: 9999px; 
  font-size: 12px; 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  margin-bottom: 16px;
}

.ext-heading-xl {
  font-size: clamp(26px, 4vw, 42px); 
  line-height: 1.2; 
  font-weight: 800;
  color: #000;
  margin: 0 0 16px;
}

.ext-text-muted {
  font-size: 16px; 
  line-height: 1.6; 
  color: #555;
}

/* -------------------------------------------
   3. PRICING BANNER (BLACK & GOLD)
------------------------------------------- */
.ext-pricing-banner { 
  background: #000; 
  color: #fff; 
  border-radius: 18px; 
  padding: 32px 20px; 
  text-align: center; 
  margin: 40px 0; 
  box-shadow: 0 14px 40px rgba(0,0,0,0.2);
}

.ext-pricing-banner h2 {
  font-size: clamp(22px, 3vw, 32px); 
  margin: 10px 0; 
  color: #fff;
  font-weight: 800;
}

.ext-btn-gold {
  display: inline-block; 
  background: #FFD700; 
  color: #000; 
  font-weight: 800; 
  border-radius: 8px; 
  padding: 12px 26px; 
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s;
}
.ext-btn-gold:hover {
  transform: translateY(-2px);
}

/* -------------------------------------------
   4. GRID & CARDS
------------------------------------------- */
.ext-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 20px; 
  margin: 24px 0; 
}

.ext-card { 
  background: #fff; 
  border: 1px solid #eaeaea; 
  border-radius: 16px; 
  padding: 24px; 
  box-shadow: 0 4px 14px rgba(0,0,0,0.04); 
  transition: transform 0.2s, box-shadow 0.2s; 
}

.ext-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* -------------------------------------------
   5. AUTO-FETCH BLOG CARD STYLES
------------------------------------------- */
.ext-blog-card-ui {
  background: #fff; 
  border: 1px solid #eaeaea; 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.06); 
  display: flex; 
  flex-direction: column;
  transition: transform 0.2s;
}
.ext-blog-card-ui:hover {
  transform: translateY(-4px);
}
.ext-blog-card-ui-img {
  height: 220px; 
  overflow: hidden; 
  background: #000;
}
.ext-blog-card-ui-img img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.4s;
}
.ext-blog-card-ui:hover .ext-blog-card-ui-img img {
  transform: scale(1.05);
}