/* =========================
   Base (Mobile-first)
========================= */

.eselw-wrap{
  display:grid;
  gap:28px;
  background:#fff;
}

.eselw-heading{
  font-size:22px;
  font-weight:800;
  letter-spacing:-0.02em;
  margin:0 0 12px;
}

/* Grid */
.eselw-grid{
  display:grid;
  gap:18px;
}

/* Force 1 column on mobile */
.eselw-cols-1,
.eselw-cols-2,
.eselw-cols-3{
  grid-template-columns:1fr;
}

/* Card */
.eselw-card{
  background:#fff;
  border-radius:18px;
  padding:18px 16px;
  box-shadow:0 18px 40px rgba(15,23,42,.08);
}

/* Title */
.eselw-title{
  font-size:22px;
  font-weight:800;
  letter-spacing:-0.02em;
  color:#1f2937;
}

/* Meta Row */
.eselw-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  margin-top:12px;
  font-size:13px;
  color:#64748b;
}

.eselw-meta-item{
  display:flex;
  align-items:center;
  gap:8px;
}

.eselw-ico{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#10b981;
}

/* Toggle Button */
.eselw-toggle{
  margin-top:16px;
  padding:12px 16px;
  border-radius:999px;
  background:#374151;
  color:#fff;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  border:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  width:100%;
  justify-content:center;
  text-align:center;
  font-size:12px;
}

.eselw-toggle:hover{background:#1f2937}

.eselw-chevron{
  transition:transform .25s ease;
}

.eselw-toggle[aria-expanded="true"] .eselw-chevron{
  transform:rotate(180deg);
}

/* Details */
.eselw-details{
  margin-top:18px;
}

.eselw-details-inner{
  padding-top:18px;
  border-top:1px solid #e5e7eb;
}

/* Details layout (mobile = stacked) */
.eselw-details-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
}

/* Section labels */
.eselw-subhead{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#334155;
  margin-bottom:12px;
}

.eselw-subhead-about::before{
  content:"";
  width:6px;
  height:18px;
  background:#ef4444;
  border-radius:99px;
}

.eselw-subhead-agenda::before{
  content:"";
  width:6px;
  height:18px;
  background:#10b981;
  border-radius:99px;
}

/* About text */
.eselw-richtext{
  font-size:15px;
  line-height:1.65;
  color:#64748b;
}

/* Agenda */
.eselw-agenda{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
}

.eselw-agenda li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:15px;
  line-height:1.5;
  color:#64748b;
}

.eselw-agenda li::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:50%;
  background:#10b981;
  box-shadow:0 0 0 6px #ecfdf5;
  margin-top:6px;
  flex:0 0 auto;
}

/* Images */
.eselw-images{
  margin-top:22px;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.eselw-images img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:16px;
}

/* Empty */
.eselw-empty{
  padding:16px;
  border:2px dashed #e5e7eb;
  border-radius:14px;
  color:#64748b;
}

/* =========================
   Tablet (>=768px)
========================= */
@media (min-width: 768px){
  .eselw-wrap{ gap:34px; }

  .eselw-heading{
    font-size:26px;
    margin:0 0 16px;
  }

  .eselw-grid{ gap:22px; }

  /* Cards per row */
  .eselw-cols-2{ grid-template-columns:repeat(2, 1fr); }
  .eselw-cols-3{ grid-template-columns:repeat(2, 1fr); } /* keep 2 on tablet */

  .eselw-card{
    border-radius:22px;
    padding:26px 26px;
  }

  .eselw-title{ font-size:28px; }

  .eselw-meta{
    gap:14px 22px;
    font-size:14px;
  }

  .eselw-toggle{
    width:auto;
    justify-content:flex-start;
    padding:14px 22px;
    font-size:12px;
  }

  /* Details still stacked on tablet for readability */
  .eselw-details-grid{
    grid-template-columns:1fr;
    gap:26px;
  }

  /* Images 2 columns on tablet */
  .eselw-images{
    grid-template-columns:repeat(2, 1fr);
    gap:14px;
  }

  .eselw-images img{ height:190px; }
}

/* =========================
   Desktop (>=1024px)
========================= */
@media (min-width: 1024px){
  .eselw-wrap{ gap:40px; }
  .eselw-grid{ gap:28px; }

  /* True columns */
  .eselw-cols-1{ grid-template-columns:1fr; }
  .eselw-cols-2{ grid-template-columns:repeat(2, 1fr); }
  .eselw-cols-3{ grid-template-columns:repeat(3, 1fr); }

  .eselw-card{
    border-radius:24px;
    padding:34px 38px;
    box-shadow:0 30px 60px rgba(15,23,42,.08);
  }

  .eselw-title{
    font-size:32px;
  }

  .eselw-meta{
    margin-top:16px;
    gap:18px 28px;
    font-size:15px;
  }

  .eselw-toggle{
    margin-top:26px;
    padding:16px 28px;
    font-size:12px;
  }

  .eselw-details{
    margin-top:34px;
  }

  .eselw-details-inner{
    padding-top:28px;
  }

  /* Desktop = 2 columns like screenshot */
  .eselw-details-grid{
    grid-template-columns:1.2fr 1fr;
    gap:48px;
  }

  /* Desktop images 3 columns */
  .eselw-images{
    margin-top:34px;
    grid-template-columns:repeat(3, 1fr);
    gap:18px;
  }

  .eselw-images img{ height:180px; }
}

/* =========================
   Large Desktop (>=1280px)
   (Optional refinement)
========================= */
@media (min-width: 1280px){
  .eselw-card{ padding:36px 40px; }
  .eselw-richtext{ font-size:18px; }
  .eselw-agenda li{ font-size:17px; }
}
