/* ============================================================
   DPS "Press Release" module restyle
   Add this to your template's custom/user stylesheet, e.g.:
     templates/visaland/css/user.css   (create it if it doesn't exist)
   or paste into the template's "Custom CSS" field in the admin.
   Upgrade-safe: user.css / Custom CSS is never overwritten by Joomla updates.
   All rules are scoped to .dps-pr so nothing else on the site is affected.
   ============================================================ */

.dps-pr{
  --brand:#0345bf;        /* deep blue (primary)  */
  --brand-2:#044cd0;      /* blue for gradient    */
  --brand-deep:#03287a;   /* darker blue          */
  --accent:#00aeef;       /* bright cyan accent   */
  --accent-soft:#e4f6fe;  /* soft cyan wash       */
  --ink:#212529;
  --line:#e5e9f0;
  --c-alert:#e20935;   /* Incident   */
  --c-wanted:#b00a24;  /* Wanted     */
  --c-dui:#ec430f;     /* DUI        */
  --c-check:#f68e13;   /* Checkpoint */
  --c-good:#2ba84a;    /* Community  */
  --c-info:#4943ac;    /* Training / News */

  background:#fff;
  border-radius:0px;
  overflow:hidden;
  box-shadow:0 18px 40px -12px rgba(3,69,191,.45);
  border:1px solid rgba(3,69,191,.08);
  font-family:inherit;
}

/* header */
.dps-pr .dps-pr-head{
  background:linear-gradient(135deg,var(--brand-2),var(--brand-deep));
  color:#fff;padding:16px 18px;display:flex;align-items:center;gap:11px;position:relative;
}
.dps-pr .dps-pr-head::after{
  content:"";position:absolute;left:0;bottom:0;height:4px;width:100%;
  background:linear-gradient(90deg,var(--accent),transparent 70%);
}
.dps-pr .dps-pr-head .icn{
  width:32px;height:32px;flex:0 0 auto;background:rgba(255,255,255,.15);
  border-radius:0px;display:grid;place-items:center;
}
.dps-pr .dps-pr-head h3{
  margin:0;font-size:16px;letter-spacing:.5px;text-transform:uppercase;font-weight:800;color:#fff;
}
.dps-pr .dps-pr-head .live{
  margin-left:auto;font-size:10px;font-weight:700;letter-spacing:.5px;
  background:var(--accent);color:var(--brand-deep);padding:3px 8px;border-radius:0px;
}

/* list + items */
.dps-pr .dps-pr-list{list-style:none;margin:0;padding:6px;}
.dps-pr .dps-pr-item{
  position:relative;display:flex;gap:12px;padding:13px 12px;border-radius:0px;
  text-decoration:none;color:inherit;transition:.22s ease;border-left:3px solid transparent;
}
.dps-pr .dps-pr-item + .dps-pr-item,
.dps-pr li + li .dps-pr-item{border-top:1px solid var(--line);}
.dps-pr .dps-pr-item:hover{
  background:#f5f9ff;transform:translateX(4px);
  border-left-color:var(--accent);border-top-color:transparent;
}
.dps-pr .dps-pr-item:hover .t{color:var(--brand);}
.dps-pr .dps-pr-item:hover .arrow{opacity:1;transform:translateX(0);}
.dps-pr .dps-pr-item:hover .ic{transform:scale(1.08) rotate(-3deg);}

/* icon tile */
.dps-pr .ic{
  flex:0 0 auto;width:38px;height:38px;border-radius:0px;display:grid;place-items:center;
  color:#fff;transition:transform .22s ease;
}
.dps-pr .ic.alert{background:var(--c-alert);}
.dps-pr .ic.wanted{background:var(--c-wanted);}
.dps-pr .ic.dui{background:var(--c-dui);}
.dps-pr .ic.check{background:var(--c-check);}
.dps-pr .ic.good{background:var(--c-good);}
.dps-pr .ic.info{background:var(--c-info);}

/* body / meta */
.dps-pr .bd{min-width:0;flex:1;}
.dps-pr .meta{display:flex;align-items:center;gap:8px;margin-bottom:4px;flex-wrap:wrap;}
.dps-pr .date{
  font-size:11px;font-weight:700;color:var(--brand);background:var(--accent-soft);
  padding:2px 8px;border-radius:0px;white-space:nowrap;
}
.dps-pr .tag{
  font-size:9.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;
  padding:2px 7px;border-radius:0px;color:#fff;
}
.dps-pr .tag.alert{background:var(--c-alert);}
.dps-pr .tag.wanted{background:var(--c-wanted);}
.dps-pr .tag.dui{background:var(--c-dui);}
.dps-pr .tag.check{background:var(--c-check);}
.dps-pr .tag.good{background:var(--c-good);}
.dps-pr .tag.info{background:var(--c-info);}
.dps-pr .t{
  font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.35;display:block;transition:color .2s;
}
.dps-pr .arrow{
  margin-left:auto;align-self:center;color:var(--accent);opacity:0;transform:translateX(-6px);
  transition:.22s ease;flex:0 0 auto;
}

/* footer button */
.dps-pr .dps-pr-foot{padding:12px 16px;text-align:center;border-top:1px solid var(--line);}
.dps-pr .dps-pr-foot a{
  display:inline-block;font-size:12.5px;font-weight:700;color:#fff;text-decoration:none;
  background:var(--brand);padding:9px 20px;border-radius:24px;transition:.2s;letter-spacing:.3px;
}
.dps-pr .dps-pr-foot a:hover{
  background:var(--accent);color:var(--brand-deep);transform:translateY(-1px);
  box-shadow:0 8px 18px -6px rgba(0,174,239,.6);
}

/* entrance animation (respects reduced-motion preference) */
@keyframes dpsRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.dps-pr .dps-pr-item{animation:dpsRise .5s ease backwards;}
.dps-pr li:nth-child(1) .dps-pr-item{animation-delay:.05s;}
.dps-pr li:nth-child(2) .dps-pr-item{animation-delay:.10s;}
.dps-pr li:nth-child(3) .dps-pr-item{animation-delay:.15s;}
.dps-pr li:nth-child(4) .dps-pr-item{animation-delay:.20s;}
.dps-pr li:nth-child(5) .dps-pr-item{animation-delay:.25s;}
.dps-pr li:nth-child(6) .dps-pr-item{animation-delay:.30s;}
.dps-pr li:nth-child(7) .dps-pr-item{animation-delay:.35s;}
.dps-pr li:nth-child(8) .dps-pr-item{animation-delay:.40s;}
@media (prefers-reduced-motion: reduce){
  .dps-pr .dps-pr-item{animation:none;}
  .dps-pr .dps-pr-item:hover{transform:none;}
}
