/* Projects-only visual enhancement. Preserve original hero footprint/content.
   Same locally hosted Barangay Vasra Hall photograph as the homepage. */
.portal-refresh.projects-page .project-hero{
  isolation:isolate;
  background:#102d54;
  position:relative;
  overflow:hidden;
}
.portal-refresh.projects-page .project-hero::before{
  content:"";
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  background-image:url("./vasra-hall-hero.webp");
  background-color:#173d69;
  background-size:auto 125%;
  background-repeat:no-repeat;
  background-position:right 40%;
  border:none;
  pointer-events:none;
}
.portal-refresh.projects-page .project-hero::after{
  content:"";
  position:absolute;
  inset:0;
  top:0;
  right:0;
  width:100%;
  height:100%;
  z-index:1;
  background:linear-gradient(90deg,rgba(8,30,60,.96) 0%,rgba(9,33,64,.89) 31%,rgba(9,34,66,.58) 60%,rgba(8,29,56,.28) 100%),
             linear-gradient(0deg,rgba(7,27,54,.39),transparent 70%);
  border:0;
  border-radius:0;
  pointer-events:none;
}
.portal-refresh.projects-page .project-hero>div:first-child{
  position:relative;
  z-index:2;
  min-width:0;
  max-width:600px;
}
/* Take badge and year out of flex layout so the badge can sit at the far right. */
.portal-refresh.projects-page .project-hero .hero-year{
  position:absolute;
  right:19px;
  bottom:15px;
  top:auto;
  z-index:2;
}
.portal-refresh.projects-page .project-hero h1,
.portal-refresh.projects-page .project-hero p{
  text-shadow:0 1px 10px rgba(4,21,44,.35);
}
.portal-refresh.projects-page .project-hero > .hero-mark{
  display:flex;
  position:absolute;
  right:clamp(20px,2.6vw,38px);
  top:50%;
  left:auto;
  z-index:2;
  width:235px;
  height:235px;
  flex-shrink:0;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  gap:7px;
  padding:17px;
  background:rgba(11,39,75,.65);
  border:1px solid rgba(225,237,255,.48);
  box-shadow:0 14px 35px rgba(6,24,50,.25),inset 0 1px rgba(255,255,255,.09);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  border-radius:50%;
  transform:translateY(-50%);
  text-align:center;
}
.portal-refresh.projects-page .hero-mark-logo{
  width:83px;
  height:83px;
  object-fit:contain;
  background:white;
  padding:6px;
  border-radius:20px;
  box-shadow:0 6px 19px rgba(0,0,0,.18);
}
.portal-refresh.projects-page .hero-mark b{
  font:800 20px/1.1 Manrope,sans-serif;
  letter-spacing:.08em;
  margin:3px 0 0;
  padding:0;
  color:#fff;
}
.portal-refresh.projects-page .hero-mark small{
  display:block;
  margin:0;
  font-size:7px;
  line-height:1.45;
  letter-spacing:.06em;
  color:#d7e5fa;
}
.portal-refresh.projects-page .project-hero .hero-label,
.portal-refresh.projects-page .project-hero p{color:#e9f2ff}
.portal-refresh.projects-page .project-hero .hero-link{
  position:relative;
  z-index:3;
  background:rgba(35,80,143,.60);
  border-color:rgba(235,246,255,.43);
}
.portal-refresh.projects-page .project-hero .hero-link:hover{
  background:rgba(52,103,170,.80);
}
@media(max-width:950px){
 .portal-refresh.projects-page .project-hero > .hero-mark{
  right:18px;
  width:170px;
  height:170px;
  gap:5px;
  padding:13px;
 }
 .portal-refresh.projects-page .hero-mark-logo{width:60px;height:60px;border-radius:14px}
 .portal-refresh.projects-page .hero-mark b{font-size:15px}
 .portal-refresh.projects-page .hero-mark small{font-size:6px}
 .portal-refresh.projects-page .project-hero::before{background-size:auto 118%;background-position:right center}
}
@media(min-width:761px) and (max-width:950px){
 .portal-refresh.projects-page .project-hero>div:first-child{
  max-width:calc(100% - 210px);
 }
}
@media(max-width:760px){
 .portal-refresh.projects-page .project-hero::before{background-size:auto 100%;background-position:right center}
 .portal-refresh.projects-page .project-hero::after{
  background:linear-gradient(90deg,rgba(7,27,56,.94),rgba(10,38,75,.72) 70%,rgba(10,38,75,.52)),
             linear-gradient(0deg,rgba(9,33,68,.56),transparent);
 }
 /* Avoid a logo floating over the heading or duty button at narrow widths. */
 .portal-refresh.projects-page .project-hero > .hero-mark{display:none}
 .portal-refresh.projects-page .project-hero>div:first-child{max-width:100%}
}
@media(max-width:400px){
 /* Preserve image on the right and text contrast on very narrow phones. */
 .portal-refresh.projects-page .project-hero::before{
  background-size:auto 100%;
  background-position:right center;
 }
 .portal-refresh.projects-page .project-hero::after{
  background:linear-gradient(90deg,rgba(7,27,56,.96),rgba(9,34,66,.82) 50%,rgba(9,34,66,.48)),
             linear-gradient(0deg,rgba(7,27,54,.50),transparent 75%);
 }
}
@media(prefers-reduced-motion:reduce){
 .portal-refresh.projects-page .hero-link{transition:none}
}
