/* ======================================
   KNOWLEDGE HUB / RESOURCES PAGE
====================================== */

/* ======================================
   PAGE HEADER
====================================== */

.resources-header{
  background: linear-gradient(135deg, var(--brand-dark), #10243f);
  color: white;
  text-align: center;
  padding: 70px 20px 60px;
  border-bottom: 4px solid var(--brand-accent);
}

.resources-header h1{
  color: white;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
}

.resources-header p{
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255,255,255,0.84);
  line-height: 1.8;
}

/* ======================================
   PAGE WRAPPER
====================================== */

.resources-page{
  max-width: 1500px;
  margin: 55px auto 80px;
}

/* ======================================
   PREMIUM HERO IMAGE
====================================== */

.knowledge-hero-image{
  padding: 0 0 55px;
}

.hub-figure{
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: white;

  box-shadow:
    0 14px 32px rgba(0,0,0,0.08),
    0 4px 12px rgba(0,0,0,0.05);

  border: 1px solid rgba(255,255,255,0.8);
}

.hub-figure img{
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.34) contrast(1.08) saturate(1.12);
}

.hub-figure figcaption{
  position: absolute;
  right: 18px;
  bottom: 18px;

  background: rgba(255,255,255,0.96);
  color: #334155;

  padding: 10px 14px;
  border-radius: 14px;

  font-size: 0.88rem;

  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* ======================================
   RESOURCE SECTIONS
====================================== */

.resource-section{
  margin: 60px 0;
}

.category-title{
  font-size: 1.85rem;
  color: var(--brand-dark);
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.resource-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 30px;
}

/* ======================================
   RESOURCE CARD
====================================== */

.resource-card{
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;

  display: flex;
  flex-direction: column;

  text-decoration: none;
  color: inherit;

  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: 0.2s ease;
}

.resource-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: var(--brand-accent);
}

.resource-title{
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.tag-container{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge{
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-level{
  background: rgba(252,163,17,0.15);
  color: #b47000;
}

.resource-desc{
  color: var(--text-muted);
  line-height: 1.6;
  margin: 18px 0;
  flex-grow: 1;
}

.resource-link-text{
  font-weight: 700;
  color: var(--brand-dark);
}

/* ==========================================
   CURATOR LINE
========================================== */
.resource-curator{
  margin:0.35rem 0 0.7rem;
  font-size:0.92rem;
  line-height:1.4;
  color:var(--text-muted);
  font-style:italic;
}

.resource-curator strong{
  color:var(--brand-dark);
  font-style:normal;
  font-weight:700;
}

/* =====================================================
   KNOWLEDGE HUB / RESOURCES LANDING PAGE
   Add to style-resources.css
===================================================== */


.resources-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:28px;
}


.resource-label{
  color:var(--brand-accent);
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:.78rem;
  font-weight:800;
  margin-bottom:12px;
}

.resource-link{
  margin-top:auto;
  padding-top:18px;
  font-weight:700;
}
/* =====================================================
   2. HERO SECTIONS
===================================================== */

.resource-card,
.resource-feature-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.04);
}

.resource-hero,
.resources-header,
.resources-landing-hero{
  background:linear-gradient(135deg,var(--brand-dark),#10243f);
  color:#fff;
  text-align:center;
  padding:78px 20px 66px;
  border-bottom:4px solid var(--brand-accent);
}

.resource-hero h1,
.resources-header h1,
.resources-landing-hero h1{
  color:#fff;
  font-size:clamp(2.25rem,5vw,3.5rem);
  margin:0 0 12px;
}

.resource-kicker,
.resources-kicker{
  color:var(--brand-accent);
  text-transform:uppercase;
  letter-spacing:2px;
  font-size:.84rem;
  font-weight:800;
  margin-bottom:14px;
}

.resource-subtitle,
.resources-subtitle{
  max-width:760px;
  margin:0 auto;
  color:rgba(255,255,255,.86);
  line-height:1.8;
  font-size:1.06rem;
}

.awards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:28px;
}
/* =====================================================
   7. STANDARD AWARD CARD
   (N.R. Sen / generic archives)
===================================================== */

.resource-card{
  padding:24px;
  border-top:4px solid var(--brand-accent);
  display:flex;
  flex-direction:column;
  min-height:355px;
  transition:.22s ease;
}
.resource-feature-card{
  display:flex;
  flex-direction:column;
  padding:28px;
  border-top:4px solid var(--brand-accent);
  text-decoration:none;
  color:inherit;
}
.resource-card:hover,
.resource-feature-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(0,0,0,.07);
}

.resource-card h3{
  min-height:58px;
  margin:0 0 14px;
  line-height:1.35;
  font-size:1.25rem;
}

.resource-meta{
  min-height:56px;
  margin-bottom:18px;
  color:var(--text-muted);
  font-size:.96rem;
  line-height:1.65;
}

.resource-text{
  flex-grow:1;
  line-height:1.72;
  font-style:italic;
  color:#475569;
}
/* ======================================
   Global Resources
====================================== */

  .page-header {
    background-color: var(--brand-dark);
    color: white;
    padding: 60px 0;
    text-align: center;
    border-bottom: 4px solid var(--brand-accent);
  }
  
  .page-header h1 { color: white; font-size: 3rem; margin-bottom: 10px; }
  .page-header p { font-size: 1.15rem; color: #cbd5e1; max-width: 600px; margin: 0 auto; line-height: 1.6; }

.resource-container {
  width: 100%;
  margin: 60px auto 60px;
}

  /* Accordion Styling for Progressive Disclosure */
  .region-block {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    overflow: hidden;
  }

  .region-summary {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    padding: 20px 30px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-light);
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease;
  }
  
  .region-summary:hover { background-color: #f1f3f5; }
  .region-summary::-webkit-details-marker { display: none; }
  .region-summary:after { content: "+"; color: var(--brand-accent); font-size: 1.8rem; line-height: 1; }
  .region-block[open] .region-summary { border-bottom: 1px solid #eee; }
  .region-block[open] .region-summary:after { content: "−"; }

  /* Grid Layout for the Links */
  .institution-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    background-color: white;
  }

  .inst-card {
    background: var(--bg-light);
    padding: 20px;
    border-left: 4px solid var(--brand-accent);
    border-radius: 4px;
    text-decoration: none;
    color: var(--brand-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
  }
  
  .inst-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.06); 
    border-left-color: var(--brand-dark);
  }

  .inst-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .inst-url {
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-all;
  }
/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 768px){

  .resources-header{
    padding: 58px 18px;
  }

  .resources-page{
    margin: 35px auto 60px;
  }

  .knowledge-hero-image{
    padding-bottom: 35px;
  }

  .hub-figure{
    border-radius: 18px;
  }

  .hub-figure figcaption{
    position: static;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }

  .category-title{
    font-size: 1.45rem;
  }

  .resource-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .resource-card{
    padding: 20px;
  }
}