/* FORCE ISOLATION */
.pa-isolated, .pa-isolated * {
box-sizing: border-box !important;
font-family: 'Inter', sans-serif !important;
}

/* LOAD FONT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* CONTAINER */
.pa-isolated.pa-container {
max-width: 1200px;
margin: 40px auto;
padding: 0 10px;
}

/* STATS */
.pa-isolated .pa-stats {
display: grid;
grid-template-columns: repeat(4,1fr);
gap: 15px;
margin-bottom: 20px;
}
.pa-isolated .pa-stats div {
background: #fff;
padding: 20px;
border-radius: 12px;
text-align: center;
border: 1px solid #e5e7eb;
}
.pa-isolated .pa-stats b {
font-size: 22px;
display: block;
}
.pa-isolated .pa-stats span {
font-size: 12px;
color: #777;
}

/* FILTER */
.pa-isolated .pa-filter {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.pa-isolated .pa-filter input,
.pa-isolated .pa-filter select {
padding: 12px;
border-radius: 8px;
border: 1px solid #ddd;
width: 100%;
background: #fff;
}

/* GRID */
.pa-isolated .pa-grid {
display: grid;
grid-template-columns: repeat(3,1fr);
gap: 20px;
}

/* CARD */
.pa-isolated .pa-card {
background: #fff;
border-radius: 16px;
border: 1px solid #e5e7eb;
overflow: hidden;
}

/* IMAGE */
.pa-isolated .pa-img {
position: relative;
}
.pa-isolated .pa-img img {
width: 100%;
height: 220px;
object-fit: cover;
display: none;
}
.pa-isolated .pa-img img.active {
display: block;
}
.pa-isolated .count {
position: absolute;
top: 10px;
right: 10px;
background: #000;
color: #fff;
padding: 4px 8px;
border-radius: 20px;
font-size: 12px;
}

/* BODY */
.pa-isolated .pa-body {
padding: 15px;
}

/* BADGES */
.pa-isolated .pa-badges {
display: flex;
gap: 6px;
margin-bottom: 10px;
}
.pa-isolated .b {
padding: 4px 10px;
border-radius: 20px;
font-size: 12px;
}
.pa-isolated .b.upcoming {
background: #e0edff;
color: #2563eb;
}
.pa-isolated .b.live {
background: #dcfce7;
color: #16a34a;
}
.pa-isolated .b.closed {
background: #eee;
color: #777;
}

/* TEXT */
.pa-isolated .ref {
font-size: 12px;
color: #666;
margin: 5px 0;
}
.pa-isolated .loc {
font-size: 13px;
color: #444;
}

/* BOX */
.pa-isolated .pa-box {
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 12px;
margin: 12px 0;
background: #fff;
}
.pa-isolated .pa-box small {
font-size: 10px;
color: #777;
}
.pa-isolated .pa-box b {
display: block;
margin-top: 3px;
}
.pa-isolated .highlight {
background: #f3f4f6;
padding: 10px;
border-radius: 8px;
margin: 6px 0;
}

/* FOOTER */
.pa-isolated .pa-footer {
display: flex;
justify-content: space-between;
margin-top: 10px;
}
.pa-isolated .pa-footer small {
font-size: 10px;
color: #777;
}
.pa-isolated .pa-footer b {
font-size: 12px;
}

/* BUTTON */
.pa-isolated .pa-actions {
display: flex;
gap: 10px;
margin-top: 10px;
}
.pa-isolated .btn {
flex: 1;
background: #1e3a8a;
color: #fff !important;
padding: 12px;
border-radius: 10px;
text-align: center;
text-decoration: none;
font-weight: 500;
}
.pa-isolated .icon {
width: 40px;
border-radius: 10px;
border: 1px solid #ddd;
background: #fff;
}


.pa-isolated .pa-desc {
    margin: 10px 0;
}

.pa-isolated .pa-text {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.pa-isolated .pa-text.full {
    display: none;
}

.pa-isolated .pa-read {
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
}



/* ================= MOBILE RESPONSIVE ================= */

/* Tablets */
@media (max-width: 1024px) {
  .pa-isolated .pa-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pa-isolated .pa-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {

  .pa-isolated.pa-container {
    margin: 20px auto;
  }

  /* Stats → 2 per row */
  .pa-isolated .pa-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Filter stack */
  .pa-isolated .pa-filter {
    flex-direction: column;
  }

  /* Cards → 1 per row */
  .pa-isolated .pa-grid {
    grid-template-columns: 1fr;
  }

  /* Image height smaller */
  .pa-isolated .pa-img img {
    height: 180px;
  }

  /* Reduce padding */
  .pa-isolated .pa-body {
    padding: 12px;
  }

  /* Footer stack */
  .pa-isolated .pa-footer {
    flex-direction: column;
    gap: 5px;
  }

  /* Buttons full width */
  .pa-isolated .pa-actions {
    flex-direction: column;
  }

  .pa-isolated .icon {
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 480px) {

  .pa-isolated .pa-stats {
    grid-template-columns: 1fr;
  }

  .pa-isolated .pa-img img {
    height: 160px;
  }

  .pa-isolated .pa-stats b {
    font-size: 18px;
  }

  .pa-isolated .pa-stats span {
    font-size: 11px;
  }
}
