/* ============================================================
   ORGANIZATIONS PAGE — merged with PREMIUM CARDS v2
   ============================================================ */

/* =========================================
   ORGANIZATIONS NAVBAR
   CLEAR AT TOP → OPAQUE ON SCROLL
   ========================================= */

.orgs-exact-page .navbar {
  background: transparent !important;

  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  border-bottom: 1px solid transparent !important;

  box-shadow: none !important;

  transition:
    background .35s ease,
    backdrop-filter .35s ease,
    box-shadow .35s ease,
    border-color .35s ease !important;
}


/* AFTER USER SCROLLS */
.orgs-exact-page .navbar.navbar-scrolled {
  background: rgba(55, 27, 43, .94) !important;

  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;

  border-bottom:
    1px solid rgba(255,255,255,.08) !important;

  box-shadow:
    0 8px 30px rgba(25,10,19,.18) !important;
}

.orgs-exact-page .bg-gradient {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 223, 231, .62), transparent 28%),
    radial-gradient(circle at 18% 15%, rgba(255, 175, 203, .1), transparent 24%),
    linear-gradient(180deg, #dc8aa6 0%, #a05273 28%, #5a304a 62%, #21131f 100%);
}
.orgs-exact-page .navbar {
  background: rgba(74, 38, 57, .34);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.orgs-exact-page .navbar.navbar-scrolled { background: rgba(43, 22, 34, .84); }
.orgs-page-main {
  max-width: 100%;
  padding: 0;
  min-height: auto;
  overflow: hidden;
}
.orgs-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6.4rem 1.3rem 2.2rem;
  min-height: 100vh;
}
.orgs-shell::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 33%;
  background:
    linear-gradient(180deg, rgba(39,17,30,0) 0%, rgba(39,17,30,.6) 40%, rgba(39,17,30,.78) 100%),
    url('') center bottom/cover;
  opacity: .28;
  pointer-events: none;
}
.orgs-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(126deg, rgba(255,255,255,.09), rgba(255,255,255,0) 26%) left 2rem top 4.6rem/22rem 22rem no-repeat,
    linear-gradient(316deg, rgba(255,255,255,.08), rgba(255,255,255,0) 28%) right 2rem top 4.2rem/18rem 18rem no-repeat;
  clip-path: inset(0 0 0 0);
  pointer-events: none;
}
.orgs-shell > * { position: relative; z-index: 1; }
.orgs-star {
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 194, 214, .86);
  line-height: 1;
}
.orgs-star-left { left: 1.4rem; top: 8rem; }
.orgs-star-right { right: 4.4rem; top: 12.2rem; }
.orgs-brush {
  position: absolute;
  display: block;
  width: 9rem;
  height: 2.2rem;
  background: linear-gradient(90deg, rgba(255,97,151,.7), rgba(255,97,151,.08));
  filter: blur(.1px);
  opacity: .48;
}
.orgs-brush-left {
  left: -1rem;
  top: 14.1rem;
  transform: rotate(-22deg);
  clip-path: polygon(0 60%, 100% 0, 94% 100%, 0 75%);
}
.orgs-brush-right {
  right: -.4rem;
  top: 10rem;
  transform: rotate(-28deg);
  clip-path: polygon(0 24%, 100% 0, 92% 100%, 6% 76%);
}
.orgs-header {
  max-width: 980px;
  margin: 0 auto 1.55rem;
}
.orgs-kicker {
  display: inline-block;
  margin-bottom: .8rem;
  color: #e8b3c6;
  text-transform: uppercase;
  letter-spacing: .45em;
  font-size: .92rem;
}
.orgs-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display); /* Forces the chunky festival font */
  font-size: clamp(3rem, 6vw, 5.5rem); /* Scaled down slightly so it fits perfectly */
  line-height: .9;
  text-transform: uppercase;
}
.orgs-subtitle {
  margin: .9rem 0 0;
  color: rgba(255,244,247,.94);
  font-size: 1.16rem;
  max-width: 740px;
}
.orgs-notice {
  position: relative; /* FIX: was missing, so ::before bar collapsed */
  max-width: 980px;
  margin: 0 auto 1.6rem;
  padding: 1.15rem 1.15rem 1.15rem 1.45rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(121, 62, 90, .44), rgba(87, 44, 66, .4));
  border: 1px solid rgba(255, 197, 218, .22);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: center;
  overflow: hidden; /* Keeps the accent bar inside the rounded corners */
}
.orgs-notice::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc2d4, #ff9fbe);
}
.orgs-notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ff8eb4, #ff769f);
  color: #fff;
  font-weight: 900;
  font-size: 1.7rem;
  margin-left: 20px;
  box-shadow: 0 14px 28px rgba(255, 118, 159, .22);
}
.orgs-notice-label {
  display: block;
  margin-bottom: .35rem;
  color: #f5a3bc;
  text-transform: uppercase;
  letter-spacing: .35em;
  font-weight: 700;
  font-size: .9rem;
}
.orgs-notice-copy p {
  margin: 0;
  color: rgba(255, 243, 246, .92);
  font-size: 1rem;
  line-height: 1.45;
  max-width: 700px;
}
.orgs-toolbar {
  max-width: 1080px;
  margin: 0 auto 1.35rem;
  display: grid;
  grid-template-columns: minmax(0, 370px) 1fr;
  gap: .9rem;
  align-items: start;
}
.orgs-search {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 56px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 194, 217, .22);
  background: rgba(94, 48, 72, .5);
  color: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.orgs-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
}
.orgs-search input::placeholder { color: rgba(255,235,242,.7); }
.orgs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.org-filter-btn {
  min-height: 50px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 194, 217, .22);
  background: rgba(94, 48, 72, .48);
  color: rgba(255,245,248,.92);
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.org-filter-btn:hover {
  background: rgba(120, 62, 90, .6);
  border-color: rgba(255, 194, 217, .35);
}
.org-filter-btn:active { transform: translateY(1px); }
.org-filter-btn:focus-visible {
  outline: 2px solid var(--text-accent, #ff7faf);
  outline-offset: 2px;
}
.org-filter-btn.active {
  background: #fff;
  color: #493040;
  border-color: #fff;
}
.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255,255,255,.05);
}
.dot.aspire { background: #ff4f92; }
.dot.aso { background: #ff8b3f; }
.dot.engage { background: #b56dff; }
.dot.probe { background: #f6de54; }
.dot.cap13 { background: #43d6cf; }
.dot.noncso { background: #27cdf7; }
.dot.laguna { background: #ff9dc2; }
.orgs-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* ============================================================
   PREMIUM ORGANIZATION CARDS — v2 (calibrated to real DOM)
   ============================================================ */

.org-card {
  position: relative;
  min-height: 160px;
  border-radius: 16px;

  /* One glass layer, not three stacked ones */
  background-color: rgba(43, 22, 34, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);

  border: 1px solid rgba(255, 255, 255, 0.055);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);

  /* Right padding reserves room for the arrow chevron */
  padding: 1.25rem 3rem 1.25rem 1.4rem;

  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Ambient bloom — top layer, no z-index tricks, no overflow clipping
   so the arrow's focus ring never gets cut off. */
.org-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    120% 100% at 12% 0%,
    rgba(255, 110, 170, 0.15),
    rgba(255, 110, 170, 0) 58%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.org-card:hover::before,
.org-card:focus-within::before { opacity: 1; }

/* ---------- Featured ---------- */
.org-card-featured {
  border-color: rgba(255, 117, 164, 0.32);
  box-shadow:
    0 0 0 1px rgba(255, 117, 164, 0.22),
    0 15px 35px rgba(0, 0, 0, 0.28);
}
.org-card-featured:hover {
  border-color: rgba(255, 117, 164, 0.55);
}

/* ---------- Badge ---------- */
/* Every badge in the HTML is currently empty — hide until there's text. */
.org-card-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(248, 190, 111, 0.14);
  color: #f8be6f;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.org-card-badge:empty { display: none; }

/* ---------- Logo ---------- */
/* Sizing only — the page's inline <style> owns the white chip look. */
.org-card-logo {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 12px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.30));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.org-card:hover .org-card-logo { transform: scale(1.04); }

.org-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0 !important; /* Prevents logos from being artificially cropped into circles */
}

.org-logo-text {
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.15rem;
}
.org-logo-custom {
  color: #fff;
}
.tass-mark span {
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  color: #13cd7d;
  font-size: 2.1rem;
  transform: translateY(-3px);
}
.enact-mark span {
  position: relative;
  width: 44px;
  height: 44px;
  display: block;
  transform: rotate(-30deg);
}
.enact-mark span::before,
.enact-mark span::after {
  content: "";
  position: absolute;
  border-radius: 2px;
}
.enact-mark span::before {
  inset: 0;
  background: linear-gradient(135deg, #5fcd8f 0 46%, #4f7660 46% 63%, #ffffff 63% 73%, transparent 73%);
  border-radius: 5px;
}
.enact-mark span::after {
  right: -8px;
  top: 6px;
  width: 10px;
  height: 30px;
  background: linear-gradient(180deg, #d8deb9, #ffffff);
  transform: skewY(-24deg);
}

/* ---------- Copy ---------- */
.org-card-copy {
  min-width: 0;                      /* lets the title truncate instead of pushing the arrow */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.28rem;
}

.org-card-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.35vw, 1.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  overflow-wrap: anywhere;           /* "DLSU-MES-ASHRAE" no longer breaks the layout */
}

.org-card-genre {
  display: inline-flex;
  align-items: center;
  margin: 0.05rem 0 0.15rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.055);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.68rem;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.org-card:hover .org-card-genre {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.10);
}

.genre-aspire { color: #ff7faf; }
.genre-aso { color: #ffac60; }
.genre-engage { color: #d38dff; }
.genre-probe { color: #f1db6f; }
.genre-cap13 { color: #72e8de; }
.genre-noncso { color: #72dbff; }
.genre-laguna { color: #ffb2cf; }

.org-card-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;                 /* keeps card heights uniform once real copy lands */
}

/* ---------- Arrow ---------- */
.org-card-arrow {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.32);
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.org-card:hover .org-card-arrow {
  color: var(--text-accent, #ff7faf);
  background: rgba(255, 255, 255, 0.055);
  transform: translateX(3px);
}
.org-card-arrow:focus-visible {
  outline: 2px solid var(--text-accent, #ff7faf);
  outline-offset: 2px;
}

/* ---------- Hidden state (JS toggles .is-hidden) ---------- */
.org-card.is-hidden { display: none !important; }

/* ---------- Bottom tag ---------- */
.orgs-bottom-tag {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  justify-content: center;
  text-align: center;
  color: #f4d6de;
}
.orgs-bottom-tag span {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: rgba(255, 206, 223, .62);
}
.orgs-bottom-tag strong {
  display: block;
  margin-bottom: .32rem;
  font-size: .95rem;
  letter-spacing: .62em;
  text-transform: uppercase;
}
.orgs-bottom-tag p {
  margin: 0;
  font-size: .85rem;
  letter-spacing: .35em;
  text-transform: uppercase;
}

/* ---------- Modal CTA ---------- */
.org-modal-cta {
  width: 100%;
  margin-top: 2rem;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff98ba, #ff7fab);
  color: #4a2337;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}
.org-modal-cta:hover { filter: brightness(1.06); }
.org-modal-cta:active { transform: translateY(1px); }

/* ---------- Footer ---------- */
.orgs-exact-page .site-footer {
  margin-top: 0;
  background: #160d14;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .orgs-toolbar,
  .orgs-grid,
  .orgs-header,
  .orgs-notice { max-width: 100%; }
  .orgs-filters { justify-content: flex-start; }
  .orgs-toolbar { grid-template-columns: 1fr; }

  .org-card { grid-template-columns: 76px minmax(0, 1fr); gap: 1rem; }
  .org-card-logo { width: 76px; height: 76px; }
  .org-card-title { font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
}

@media (max-width: 920px) {
  .orgs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .orgs-shell {
    padding: 5.6rem .8rem 2rem;
  }
  .orgs-star,
  .orgs-brush,
  .orgs-shell::after,
  .orgs-right-script,
  .orgs-left-note { display: none; }
  .orgs-title { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .orgs-subtitle { font-size: 1rem; }
  .orgs-notice {
    grid-template-columns: 1fr;
    padding-left: 1rem;
  }
  .orgs-notice::before { left: 12px; }
  .orgs-notice-icon { margin-left: 18px; }
  .orgs-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; }
  .org-filter-btn { flex: 0 0 auto; }
  .orgs-grid { grid-template-columns: 1fr; }

  .org-card {
    min-height: 132px;
    padding: 1rem 2.6rem 1rem 1rem;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.85rem;
  }
  .org-card-logo { width: 64px; height: 64px; border-radius: 10px; }
  .org-card-title { font-size: 1.02rem; }
  .org-card-copy p { font-size: 0.78rem; min-height: 0; }
  .org-card-arrow {
    width: 28px;
    height: 28px;
    font-size: 1.05rem;
    right: 0.65rem;
    bottom: 0.65rem;
  }
  .org-card-featured { grid-column: auto; }

  .orgs-bottom-tag { gap: .65rem; }
  .orgs-bottom-tag strong { letter-spacing: .28em; font-size: .84rem; }
  .orgs-bottom-tag p { letter-spacing: .2em; font-size: .73rem; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .org-card,
  .org-card::before,
  .org-card-logo,
  .org-card-arrow,
  .org-card-genre,
  .org-filter-btn,
  .org-modal-cta {
    transition: none !important;
  }
  .org-card:hover,
  .org-card:hover .org-card-logo,
  .org-card:hover .org-card-arrow {
    transform: none;
  }
}