/* ====================================
   CLEAN & INDUSTRIAL DESIGN SYSTEM (SCOPED)
   ==================================== */
.es-wrapper, .es-wrapper * {
  box-sizing: border-box;
}

:root {
  --enerset-blue: #0F172A;
  --enerset-red: #E51C3C;
  --enerset-red-hover: #C41E3A;
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --radius-std: 8px;
  --radius-l: 12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --container-width: 1200px;
}

/* Wrapper */
.es-wrapper {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.es-wrapper img { max-width: 100%; height: auto; display: block; }
.es-wrapper a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
.es-wrapper ul { list-style: none; padding: 0; margin: 0; }

/* Layout */
.es-container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.es-section { padding: 80px 0; }
.es-section-intro { padding: 60px 0 40px; text-align: center; }

/* Animations */
.es-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.es-reveal.visible { opacity: 1; transform: translateY(0); }

/* Headings */
.es-heading { font-weight: 800; color: var(--enerset-blue); line-height: 1.2; margin-bottom: 16px; }
.es-heading-lg { font-size: 2.5rem; }
.es-heading-md { font-size: 2rem; text-align: center; }
.es-subtitle { text-align: center; color: var(--text-muted); font-size: 1.125rem; max-width: 800px; margin: 0 auto 48px auto; }

/* ====================================
   HERO SECTION (CENTERED)
   ==================================== */
.es-hero { 
  background-color: var(--enerset-blue);
  background-image: url('https://enerset-shop.rs/wp-content/uploads/2026/02/BAZA-ZNANJA.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff; 
  padding: 120px 0; 
  position: relative; 
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  margin-top: -1px;
}

.es-hero::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 60%, rgba(15, 23, 42, 0.2) 100%);
  pointer-events: none; 
}

/* CENTRIRANI OKVIR */
.es-hero-frame {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 48px;
  border-radius: var(--radius-l);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 700px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  
  /* CENTRIRANJE */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.es-badge { 
  display: inline-block; 
  background: rgba(255,255,255,0.1); 
  border: 1px solid rgba(255,255,255,0.2); 
  padding: 6px 12px; 
  border-radius: 4px; 
  font-size: 0.85rem; 
  font-weight: 600; 
  color: #E2E8F0; 
  margin-bottom: 24px; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}

.es-hero h1 { 
  font-size: clamp(2rem, 3.5vw, 3.2rem); 
  font-weight: 900; 
  margin: 0 0 24px 0; 
  line-height: 1.1; 
  color: #fff; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.es-hero p { 
  font-size: 1.125rem; 
  color: #CBD5E1; 
  margin-bottom: 0; 
  line-height: 1.7;
}

/* ====================================
   KNOWLEDGE GRID (Cards)
   ==================================== */
.es-kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.es-kb-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  height: 100%;
}

.es-kb-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--enerset-red);
}

.es-kb-img-box {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.es-kb-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.es-kb-card:hover .es-kb-img-box img {
  transform: scale(1.08);
}

.es-label-float {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--enerset-blue);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 2;
}

.es-kb-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.es-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--enerset-red);
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.es-kb-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--enerset-blue);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.es-kb-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Highlights Box inside Card */
.es-kb-highlights {
  background: #F8FAFC;
  border-radius: var(--radius-std);
  padding: 20px;
  margin-bottom: 24px;
  border-left: 3px solid var(--enerset-blue);
}

.es-kb-highlights h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 0 0 12px 0;
  font-weight: 700;
}

.es-kb-highlights ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.es-kb-highlights li {
  font-size: 0.9rem;
  color: #475569;
  padding: 4px 0 4px 16px;
  position: relative;
}

.es-kb-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--enerset-red);
  border-radius: 50%;
}

.es-card-btn {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  color: var(--enerset-blue);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-std);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.es-kb-card:hover .es-card-btn {
  background: var(--enerset-blue);
  color: #fff;
  border-color: var(--enerset-blue);
}

/* ====================================
   SUBTLE LINKS GROUP
   ==================================== */
.es-button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.es-subtle-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: #fff;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.es-subtle-link i {
  color: var(--enerset-red);
  font-size: 1.1em;
}

.es-subtle-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  border-color: var(--enerset-red);
  color: var(--enerset-blue);
}

/* ====================================
   CTA FOOTER
   ==================================== */
.es-cta { background-color: #1E293B; color: #fff; text-align: center; padding: 80px 24px; border-radius: var(--radius-l); margin-top: 60px; }
.es-cta h2 { font-size: 2.2rem; margin: 0 0 16px 0; color: #fff; }
.es-cta p { color: #94A3B8; max-width: 600px; margin: 0 auto 32px auto; font-size: 1.1rem; }
.es-btn-primary { display: inline-block; padding: 16px 40px; background-color: var(--enerset-red); color: #fff; font-weight: 700; border-radius: 6px; font-size: 1.1rem; }
.es-btn-primary:hover { background-color: var(--enerset-red-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(229, 28, 60, 0.4); }

/* Responsive */
@media (max-width: 968px) {
  .es-kb-grid { grid-template-columns: 1fr; }
  .es-hero-frame { padding: 32px; }
}
@media (max-width: 768px) {
  .es-hero { padding: 80px 0; min-height: auto; }
  .es-hero-frame { padding: 24px; }
  .es-button-group { flex-direction: column; width: 100%; }
  .es-subtle-link { width: 100%; justify-content: center; }
}