/*
Theme Name: UCLA WordPress Child
Theme URI: https://github.com/ucla/design-kit-wp-upstream
Template: ucla-wordpress
Author: UCLA Strategic Communications
Author URI: https://strategic-communications.ucla.edu/
Description: The UCLA Theme provides a set of resources for creating a site that aligns with the UCLA Design System. This theme includes a set of starter page templates you can choose from whether you want to build something simple or a complex site.
Tags: UCLA,Strategic Communications
Version: 2.0.0.1713824241
Updated: 2024-04-22 15:17:21

*/


/* Accessibility: Footer nav list styling (h6 replaced with ul/li) */
.ucla-dept-footer ul.ucla-dept-footer__nav-column,
.ucla-dept-footer ul.ucla-dept-footer__nav-column li {
  list-style: none !important;
  padding-left: 0;
  margin: 0;
}

ul.ucla-dept-footer__nav-column li.tertiary-nav-header a {
  text-decoration: none;
}

/* Accessibility: Footer section headings (h1 replaced with h2) */
h2.ucla-dept-footer__subheader {
  font-size: inherit;
  color: #ffffff;
}

a.hover-button.wp-block-read-more {
  color: #f2f6ff;
}
a.hover-button.wp-block-read-more:hover,
a.hover-button.wp-block-read-more:focus {
  color: #ffffff;
}

/* Alumni Information Form — floating form card on dark band */
.epss-alumni-form-card {
  box-shadow:
    0 30px 60px -25px rgba(0, 23, 64, 0.45),
    0 2px 8px rgba(0, 23, 64, 0.15);
}
.epss-alumni-form-card .gform_wrapper {
  margin: 0;
}

/* EPSS card patterns — used on alumni pages */
.epss-card {
  background: #fff;
  border-radius: 6px;
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.epss-card--floating {
  box-shadow:
    0 24px 48px -22px rgba(0, 23, 64, 0.4),
    0 2px 6px rgba(0, 23, 64, 0.1);
}
.epss-card--gentle {
  box-shadow: 0 2px 8px rgba(0, 23, 64, 0.05);
  border: 1px solid rgba(0, 23, 64, 0.07);
}
.epss-card .wp-block-buttons {
  margin-top: auto;
}
.epss-card .wp-block-button__link {
  font-size: 0.85rem;
  padding: 0.625rem 1.25rem;
}

/* Big stat-number display (used on alumni-database) */
.epss-stat__number {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--wp--preset--color--darker-gold);
  margin: 0 0 0.4rem;
}
.epss-stat__label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ============================================================
   Alumni Database (/alumni-database/, page-id 8256) — scoped
   Strip hovers, glassmorphism stat cards, 3D interactive table
   ============================================================ */

body.page-id-8256 .wp-block-group.alignfull {
  transition: box-shadow 0.6s ease, transform 0.6s ease;
  will-change: transform, box-shadow;
}
body.page-id-8256 .has-lighter-blue-background-color.alignfull:hover {
  box-shadow:
    inset 0 0 80px rgba(0, 85, 135, 0.08),
    0 10px 40px rgba(0, 85, 135, 0.05);
}
body.page-id-8256 .has-darker-blue-background-color.alignfull {
  background: linear-gradient(135deg,
    var(--wp--preset--color--darkest-blue) 0%,
    var(--wp--preset--color--darker-blue) 100%) !important;
}

@media (prefers-reduced-motion: no-preference) {
  body.page-id-8256 .has-darker-blue-background-color.alignfull:hover {
    box-shadow: 0 20px 50px rgba(0, 59, 92, 0.5);
    transform: translateY(-3px);
  }
}

body.page-id-8256 .epss-stats-grid > .wp-block-column {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}
body.page-id-8256 .epss-stats-grid > .wp-block-column::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  body.page-id-8256 .epss-stats-grid > .wp-block-column:hover {
    transform: translateY(-15px) scale(1.03);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
      0 25px 45px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(255, 199, 44, 0.15);
    border-color: rgba(255, 199, 44, 0.6);
  }
  body.page-id-8256 .epss-stats-grid > .wp-block-column:hover::after {
    left: 200%;
  }
}

body.page-id-8256 .epss-stats-grid .epss-stat__number {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--wp--preset--color--ucla-gold);
  text-shadow: 0 5px 15px rgba(255, 199, 44, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
  body.page-id-8256 .epss-stats-grid > .wp-block-column:hover .epss-stat__number {
    transform: scale(1.15);
    color: #ffffff;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  }
}

body.page-id-8256 .wp-block-group.scrollable {
  border: none !important;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 85, 135, 0.1), 0 5px 15px rgba(0, 0, 0, 0.03);
  background: #ffffff;
  overflow: hidden;
  transition: box-shadow 0.5s ease;
}
body.page-id-8256 .wp-block-group.scrollable:hover {
  box-shadow: 0 30px 60px rgba(0, 85, 135, 0.15), 0 10px 25px rgba(0, 0, 0, 0.05);
}

body.page-id-8256 figure.wp-block-table table {
  border-collapse: separate !important;
  border-spacing: 0 6px !important;
  width: 100%;
  background-color: transparent;
  margin: 0;
  padding: 0 12px 12px 12px;
}
body.page-id-8256 figure.wp-block-table thead th {
  background-color: rgba(0, 59, 92, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 1.5rem 1rem;
  border: none;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
body.page-id-8256 figure.wp-block-table thead th:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
body.page-id-8256 figure.wp-block-table thead th:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

body.page-id-8256 figure.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: rgba(218, 235, 254, 0.4) !important;
}
body.page-id-8256 figure.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background-color: #ffffff !important;
}

body.page-id-8256 figure.wp-block-table tbody tr {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}
body.page-id-8256 figure.wp-block-table tbody td {
  padding: 1.25rem 1rem;
  border: none !important;
  color: var(--wp--preset--color--gray-80);
  font-size: 0.95rem;
  vertical-align: middle;
  transition: color 0.3s ease;
}
body.page-id-8256 figure.wp-block-table tbody td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-left: 5px solid transparent !important;
}
body.page-id-8256 figure.wp-block-table tbody td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-right: 5px solid transparent !important;
}

@media (prefers-reduced-motion: no-preference) {
  body.page-id-8256 figure.wp-block-table tbody tr:hover {
    background-color: #ffffff !important;
    transform: scale(1.015) translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 85, 135, 0.15), 0 8px 15px rgba(0, 0, 0, 0.08);
    z-index: 10;
  }
  body.page-id-8256 figure.wp-block-table tbody tr:hover td:first-child {
    border-left: 5px solid var(--wp--preset--color--ucla-gold) !important;
  }
  body.page-id-8256 figure.wp-block-table tbody tr:hover td:last-child {
    border-right: 5px solid var(--wp--preset--color--ucla-gold) !important;
  }
  body.page-id-8256 figure.wp-block-table tbody tr:hover td {
    color: var(--wp--preset--color--darkest-blue);
    font-weight: 600;
  }
}

/* Mobile: convert the 8-column data table into stacked card rows.
   Below 768px the table breaks because 8 fixed-width columns get
   ~45px each and text wraps character-by-character. We hide the
   thead, make each <tr> a card, and label each <td> via ::before. */
@media (max-width: 768px) {
  body.page-id-8256 .wp-block-group.scrollable {
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border: none !important;
  }
  body.page-id-8256 figure.wp-block-table {
    margin: 0;
  }
  body.page-id-8256 figure.wp-block-table table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    display: block;
    width: 100%;
    padding: 0;
  }
  body.page-id-8256 figure.wp-block-table thead {
    display: none;
  }
  body.page-id-8256 figure.wp-block-table tbody {
    display: block;
    width: 100%;
  }
  body.page-id-8256 figure.wp-block-table tbody tr {
    display: block;
    margin: 0 0 1rem;
    padding: 1.25rem;
    background: #ffffff !important;
    border: 1px solid rgba(0, 23, 64, 0.08);
    border-left: 4px solid var(--wp--preset--color--ucla-gold);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 85, 135, 0.06);
    transform: none !important;
    z-index: auto !important;
  }
  body.page-id-8256 figure.wp-block-table tbody tr:hover {
    transform: none !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 85, 135, 0.06);
  }
  body.page-id-8256 figure.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
  body.page-id-8256 figure.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background: #ffffff !important;
  }
  body.page-id-8256 figure.wp-block-table tbody td {
    display: block;
    padding: 0.55rem 0 0;
    border: none !important;
    border-radius: 0 !important;
    color: var(--wp--preset--color--darkest-blue);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
  }
  body.page-id-8256 figure.wp-block-table tbody td:first-child {
    padding-top: 0;
  }
  body.page-id-8256 figure.wp-block-table tbody td:first-child,
  body.page-id-8256 figure.wp-block-table tbody td:last-child {
    border-left: none !important;
    border-right: none !important;
  }
  body.page-id-8256 figure.wp-block-table tbody td::before {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wp--preset--color--darker-gold);
    margin-bottom: 0.2rem;
  }
  body.page-id-8256 figure.wp-block-table tbody td:nth-child(1)::before { content: "Year"; }
  body.page-id-8256 figure.wp-block-table tbody td:nth-child(2)::before { content: "Degree"; }
  body.page-id-8256 figure.wp-block-table tbody td:nth-child(3)::before { content: "First Name"; }
  body.page-id-8256 figure.wp-block-table tbody td:nth-child(4)::before { content: "Last Name"; }
  body.page-id-8256 figure.wp-block-table tbody td:nth-child(5)::before { content: "Thesis Title"; }
  body.page-id-8256 figure.wp-block-table tbody td:nth-child(6)::before { content: "Position"; }
  body.page-id-8256 figure.wp-block-table tbody td:nth-child(7)::before { content: "Institution"; }
  body.page-id-8256 figure.wp-block-table tbody td:nth-child(8)::before { content: "Advisor"; }
}

/* ============================================================
   Alumni Information (/alumni-information/, postid 6621) — scoped
   Magical cards, premium buttons, gradient backgrounds, text shimmer,
   staggered column fade-in
   ============================================================ */

body.postid-6621 {
  --ucla-blue: #2774AE;
  --ucla-gold: #FFD100;
  --ucla-darkest-blue: #003B5C;
  --ucla-darker-blue: #005587;
  --ucla-lightest-blue: #DAEBFE;
  --transition-snappy: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.postid-6621 .epss-card {
  transition: transform var(--transition-snappy),
              box-shadow var(--transition-snappy),
              border-color var(--transition-snappy);
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px -10px rgba(0, 59, 92, 0.08);
  padding: 2.5rem 2rem !important;
  height: 100%;
}

body.postid-6621 .epss-card svg {
  transition: transform var(--transition-snappy),
              color var(--transition-snappy),
              filter var(--transition-snappy);
}

@media (prefers-reduced-motion: no-preference) {
  body.postid-6621 .epss-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -15px rgba(0, 59, 92, 0.25);
    border-color: var(--ucla-gold);
  }
  body.postid-6621 .epss-card:hover svg {
    transform: scale(1.2) rotate(-5deg);
    color: var(--ucla-gold) !important;
    filter: drop-shadow(0 4px 8px rgba(255, 209, 0, 0.5));
  }
}

body.postid-6621 .wp-block-button__link {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(39, 116, 174, 0.3) !important;
  border: 2px solid transparent !important;
  z-index: 1;
}
body.postid-6621 .wp-block-button__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, var(--ucla-darker-blue), var(--ucla-darkest-blue));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}
body.postid-6621 .wp-block-button__link:hover::before {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  body.postid-6621 .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 116, 174, 0.5) !important;
    color: #fff !important;
    border-color: var(--ucla-gold) !important;
  }
}

body.postid-6621 .has-lighter-blue-background-color {
  background: linear-gradient(135deg, var(--ucla-lightest-blue) 0%, #f0f6ff 100%) !important;
}
body.postid-6621 .has-darker-blue-background-color {
  background: linear-gradient(135deg, var(--ucla-darkest-blue) 0%, var(--ucla-darker-blue) 100%) !important;
  box-shadow: inset 0 10px 40px rgba(0, 0, 0, 0.15);
}

body.postid-6621 .has-darkest-blue-color.wp-block-heading {
  background: linear-gradient(to right, var(--ucla-darkest-blue), var(--ucla-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.postid-6621 .has-white-color.wp-block-heading {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes epssFadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  body.postid-6621 .wp-block-column {
    animation: epssFadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) backwards;
  }
  body.postid-6621 .wp-block-columns .wp-block-column:nth-child(1) { animation-delay: 0.10s; }
  body.postid-6621 .wp-block-columns .wp-block-column:nth-child(2) { animation-delay: 0.25s; }
  body.postid-6621 .wp-block-columns .wp-block-column:nth-child(3) { animation-delay: 0.40s; }
  body.postid-6621 .wp-block-columns .wp-block-column:nth-child(4) { animation-delay: 0.55s; }
}
