/* ==================
All Publications Page
====================== */

/* Publications page */
body.blog {
  background-color: #fafef7 !important;
}

/* ── Green Matrix Photo Tint Effect (Added for Figma Match) ── */
.hero-post-thumb,
.publication-post-grid .post-thumb {
  overflow: hidden;
  display: block;
  position: relative;
}

.label_Feature {
  position: absolute;
  color: var(--dark-black);
  padding: 3px 10px;
  z-index: 5;
  top: 25px;
  left: 25px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: var(--font-jetbarnis-mono);
  background: var(--yellow);
  color: var(--deep-teal);
  padding: 12px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.84px;
}

.hero-post-thumb img,
.publication-post-grid .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Hero Post ── */
.publication-hero-post-card {
  padding-top: 65px;
}

.publication-hero-post-card .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 638fr) minmax(0, 599fr);
  gap: 50px;
  max-width: 1352px;
  padding: 0 20px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.publication-hero-post-card .hero-post-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 638 / 519;
  object-fit: cover;
}

.hero-post-thumb .hero-image-frame {
  height: 100%;
}

.publication-hero-post-card .hero-post-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.publication-hero-post-card .hero-post-thumb img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
}

.publication-hero-post-card .hero-post-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.publication-hero-post-card .post-category {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.publication-hero-post-card .label-tag {
  background-color: var(--yellow);
  color: var(--black);
  padding: 2px 6px;
}

.publication-hero-post-card h2 {
  line-height: 0.3;
}

.publication-hero-post-card h2 a {
  font-size: 46px !important;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.publication-hero-post-card h2 a:hover {
  /* color: var(--dark); */
}

.publication-hero-post-card .hero-summary {
  /* margin: 15px 0 20px 0; */
}

.publication-hero-post-card .hero-summary p {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  max-width: 560px;
  color: #3a3a38;
}

.publication-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: capitalize;
  padding-top: 2px;
  line-height: 0.7em;
}
.publication-meta .post-author {
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-outfit);
}

.publication-hero-post-card .brief-btn {
  margin-top: 8px;
}

/* ── Category filters ── */
.archive-filters {
  /* background: transparent; */
}
.archive-filters .archive-filters-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 65px;
  padding-bottom: 35px;
  max-width: 1360px;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
}
.archive-filter-btn {
  padding: 11px 20px;
  text-align: center;
  font-size: 16px;
  color: var(--dark-black);
  text-decoration: none;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font-outfit);
  transition: background 0.2s;
}

.archive-filter-btn.active {
  background: var(--deep-teal);
  color: var(--white);
}

.archive-filter-btn.active:hover {
  background: var(--deep-teal);
}

.archive-filter-btn:hover {
  /* background-color: rgb(223, 255, 0); */
  background-color: var(--yellow);
}

.archive-filter-btn.active:focus {
  color: var(--white);
}

/* ── Post grid ── */
.publication-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 95px;
  padding-top: 50px;
  max-width: 1360px;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
  margin-right: auto;
  width: 100%;
  justify-content: center;
}

.publication-post-grid .post-card {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0 !important;
  position: relative;
  box-shadow:
    0px 4px 20px 0px rgba(0, 0, 0, 0.1),
    -4px 4px 0px #00000012;
  background-color: var(--white);
  overflow: hidden;
  width: 100%;
}
.publication-post-grid .post-card:hover {
  transform: translateY(0);
}
.publication-post-grid .post-card:hover .post-thumb img {
  transform: scale(1);
}

.stretched-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.post-card a:not(.stretched-link) {
  position: relative;
  z-index: 2;
}

/* White Base Track Layer Setup */
.white-card-base {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.publication-post-grid .white-card-base .post-thumb {
  height: auto;
  width: 100%;
  aspect-ratio: 424 / 236;
  overflow: hidden;
  object-fit: cover;
}

.publication-post-grid .white-card-base .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images never distort across variable widths */
  display: block;
}

.publication-post-grid .white-card-base .post-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 28px 32px;
  align-items: flex-start;
}

.publication-post-grid .white-card-base .post-content .post-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.84px;
  white-space: nowrap;
  color: var(--Neutral-dark);
  padding-bottom: 14px;
  font-weight: 400;
  line-height: 16.27px;
}

.publication-post-grid .white-card-base .post-content h5 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 400;
  overflow: hidden;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-family: var(--font-helvetica);
}

.publication-post-grid .white-card-base .post-content h5 a {
  text-decoration: none;
  font-weight: 600;
}

.publication-post-grid .white-card-base .publication-summary {
  font-size: 15px;
  color: var(--dark);
  line-height: 22.48px;
  font-weight: 400;
  margin-top: -4px;
  letter-spacing: -0.08px;
  display: -webkit-box;
  font-family: var(--font-helvetica);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.publication-post-grid .white-card-base .static-footer-tags {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.84px;
  color: #79766f;
  white-space: nowrap;
  font-weight: 400;
  line-height: 16.27px;
}

.publication-post-grid .white-card-base .static-footer-tags .tag-separator {
  margin: 0 5px;
}

/* ==========================================================================
   SLIDING OVERLAY ENGINE (GREEN CARD TRACK)
   ========================================================================== */
.green-card-hover-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--deep-teal);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Keeps bottom-aligned stacked order stable */

  z-index: 3;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.25s ease;
}

/* Hover Action: Triggering the Slide Down Animation smoothly */
.publication-post-grid
  .post-card:not(.is-dark-card):hover
  .green-card-hover-drawer {
  transform: translateY(0);
  opacity: 1;
}

/* Green overlay text styling modifications */
.green-card-hover-drawer .publication-tags {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.green-card-hover-drawer .publication-tags .tag-separator {
  margin: 0 5px;
}

.green-card-hover-drawer .hover-title {
  font-family: var(---font-helvetica);
  line-height: 1.3em;
  font-size: 22px !important;
  font-weight: 400;
  letter-spacing: -1%;
  margin-bottom: 8px;
  color: var(--white) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.green-card-hover-drawer .hover-summary {
  font-size: 16px;
  color: #cdded5 !important;
  margin-bottom: 18px;
  line-height: 150%;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More Button Wrapper inside the Sliding Drawer */
.green-card-hover-drawer .card-hover-footer {
  padding-top: 15px;
  width: 100%;
}

.green-card-hover-drawer .card-hover-footer .read-more-link {
  font-family: var(--font-outfit), sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.publication-post-grid
  .post-card:not(.is-dark-card):hover
  .green-card-hover-drawer
  .card-hover-footer
  .read-more-link {
  gap: 10px;
}

/* ==========================================================================
   IS-DARK-CARD LEGACY HIGHLIGHT VARIANT (Preserved from old codebase)
   ========================================================================== */
.publication-post-grid .post-card.is-dark-card {
  background-color: var(--deep-teal) !important;
  padding: 40px 32px;
  min-height: 380px;
  justify-content: flex-start;
}

.publication-post-grid .is-dark-card .post-category {
  color: var(--yellow);
}

.publication-post-grid .is-dark-card h5 a {
  color: var(--white);
}

.publication-post-grid .is-dark-card .publication-summary {
  color: #cdded5;
}

.publication-post-grid .is-dark-card .read-more-link {
  color: var(--white);
  font-family: var(--font-jetbrains-mono);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
  display: inline-block;
  padding-top: 16px;
}

.no-posts-msg {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 20px;
  color: var(--dark-black);
  font-weight: 600;
  font-family: var(--font-outfit);
  padding: 60px 0;
}

.ajax-load-wrap-publications {
  display: flex;
  justify-content: center;
  margin-bottom: 125px;
}
.load-more-publications {
  border-radius: 0px;
  cursor: pointer;
}

.load-more-publications:hover {
  background: var(--green);
  border: 2px solid var(--deep-teal);
}

/* =========================
Single Publications Post Page
============================= */

.single-publication-page {
  padding-bottom: 0;
}

/* ── Breadcrumb Formatting (Updated Theme Integration) ── */
.pub-breadcrumb {
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.84px;
  text-transform: uppercase;
}

.pub-breadcrumb a {
  text-decoration: none;
}

.pub-breadcrumb a:hover {
  color: var(--dark);
  text-decoration: underline;
}

.pub-breadcrumb .bc-sep {
  font-size: 10px;
  position: relative;
  top: -1px;
  font-weight: 700;
}

.single-top-header {
  display: grid;
  grid-template-columns: 588fr 564fr;
  align-items: stretch;
  justify-content: center;
  gap: 48px;
  margin: 64px auto;
  max-width: 1200px;
}
.top-left-content-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Single Page Title ── */
.single-pub-title {
  font-size: 50px !important;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 108%;
  font-family: var(--font-outfit);
  color: #1c1c1f;
}

/* ── Summary ── */
.single-pub-summary {
  font-family: var(--font-inter);
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  max-width: 560px;
  color: var(--dark-black);
  margin-top: -4px;
}

.single-pub-wrap {
  padding-bottom: 60px;
}

.single-pub-wrap .publication-meta {
  line-height: 150%;
  font-size: 14px;
  flex-direction: column;
  align-items: start;
  gap: 4px;
}
.single-pub-wrap .publication-meta .post-author {
  font-weight: 600;
}
.single-pub-wrap .publication-meta .pub-date-time {
  font-weight: 400;
  gap: 8px;
  font-family: var(--font-inter);
  color: var(--dark);
  font-size: 14px;
  line-height: 150%;
}

.single-pub-wrap .publication-meta .pub-date-time .meta-dot {
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
}

/* ── Top Banner Featured Image (DITHER CANVAS INTEGRATION) ── */
.top-right-img {
  height: 100%;
  min-height: 375px;
  flex: 1;
  border-radius: 0px !important;
  overflow: hidden;
  object-fit: cover;
  position: relative;
}

.top-right-img .dither-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.top-right-img .dither-wrap:not(.no-effect) img.source-image {
  display: none !important;
}

.top-right-img .dither-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-right-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.publication-social-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-direction: column;
  padding-bottom: 36px;
}
.publication-social-links h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 150%;
  text-transform: uppercase;
  color: var(--dark-black);
  letter-spacing: 2%;
  position: relative;
}

.publication-social-links h3::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--dark-black);
  bottom: -16px;
  left: 0;
}

.publication-social-links .all-social-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.publication-social-links .social-icon,
.social-icon.copy-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f9f8f7;
  transition: 0.3s ease;
  padding: 5px;
  border: none;
  cursor: pointer;
}

.copy-link.copied::after {
  content: "Copied!";
  position: absolute;
  background: var(--black);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  margin-top: -55px;
}

.publication-social-links .social-icon:hover {
  transform: translateY(-2px);
  background: var(--green);
}

.publication-social-links img {
  width: 18px;
  height: 18px;
}

.single-pub-wrap .download-pdf-btn{
  padding: 24px;
  border-radius: 0;
  font-size: 18px;
}

/* ── Body Content Styles ── */
.single-pub-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  max-width: 672px;
  width: 100%;
  margin: 0 auto;
  padding-top: 112px;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 60px;
  overflow-x: hidden;
}
.single-pub-content h1,
.single-pub-content h2,
.single-pub-content h3,
.single-pub-content h4 {
  font-family: var(--font-outfit) !important;
}
.single-pub-content h4 {
  font-size: 40px !important;
  line-height: 110% !important;
  font-weight: 400 !important;
}
.single-pub-content h5 {
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 150% !important;
}
.single-pub-content h6 {
  font-size: 20px !important;
}

.single-pub-content figure {
  margin: 24px 0 !important;
}
.single-pub-content figure img {
  border-radius: 4px !important;
  height: 388px !important;
  /* aspect-ratio: none; */
  object-fit: cover;
}
.single-pub-content .wp-block-image figcaption {
  padding-top: 12px !important;
  text-align: center !important;
  font-size: 14px !important;
  color: var(--dark-black);
  margin-top: 0;
}

.single-pub-content p.wp-block-paragraph {
  margin-top: 20px;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark-black);
}

.single-pub-content ul,
.single-pub-content ol {
  margin: 20px 0;
}

.single-pub-content li {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--dark-black);
}

.single-pub-content ol li::marker{
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-inter);
}

.single-pub-content a {
  color: var(--dark);
  text-decoration: underline;
}

.single-pub-content blockquote {
  padding: 24px;
  font-size: 18px;
  border-radius: 8px;
  background: #EDFBE0;
  margin: 0 !important;
}
.single-pub-content blockquote h3,
.single-pub-content .wp-block-heading {
  color: var(--dark-black) !important;
  font-family: var(--font-outfit);
  font-weight: 400;
  font-size: 40px;
}
.single-pub-content blockquote .wp-block-paragraph strong {
  color: var(--deep-teal);
  font-size: 24px;
}
.single-pub-content pre {
  border-radius: 8px;
  padding: 24px;
  background-color: var(--white);
}

.single-pub-content .wp-block-buttons {
  display: flex;
  justify-content: center;
}

.single-pub-content .wp-element-button {
  border-radius: 0;
  padding: 24px;
  background: transparent;
  color: var(--deep-teal);
  border: 2px solid var(--deep-teal);
  width: fit-content;
  display: block;
  text-decoration: none !important;
  font-weight: 900;
  font-family: var(--font-outfit);
  text-transform: capitalize;
  line-height: 1.001;
  letter-spacing: 1%;
  font-size: 18px;
  text-align: center;
  transition: all 0.25s linear;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.single-pub-content .wp-element-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--deep-teal);
  transition: width 0.3s ease-in-out;
  z-index: -1;
}
.single-pub-content .wp-element-button:hover {
  color: var(--white);
}
.single-pub-content .wp-element-button:hover::before {
  width: 100%;
}

.single-pub-content .wp-block-group {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* ── Content Table Layout Framework ── */
.single-pub-content table {
  border-collapse: separate;
  border-spacing: 0;
  /* margin: 14px 0; */
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--white) !important;
}

.single-pub-content table thead th {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px;
  text-align: left;
  border: none;
  font-family: var(--font-jetbarnis-mono);
  background-color: var(--deep-teal);
  color: var(--white);
}

.single-pub-content table thead th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.single-pub-content table thead th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.single-pub-content table tbody td {
  padding: 16px;
  border: none;
  border-bottom: 1px solid #efefef;
  color: var(--dark-black);
  vertical-align: middle;
  font-size: 14px;
}

.single-pub-content table tbody tr:last-child td {
  border-bottom: none;
}

.single-pub-content table tbody td:last-child {
  font-weight: 700;
}

/* ── Authors ── */
.single-pub-authors {
  padding: 32px 0;
  /* border-top: 1px solid #cacaca; */
}

.single-pub-authors .auhtor-title {
  /* font-family: var(--font-jetbrains-mono); */
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  /* letter-spacing: 0.1em; */
  color: var(--deep-teal);
  margin-bottom: 10px;
}

.author-names {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-black);
  margin: 0;
}

/* ── Tags  ── */
.single-pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #cacaca;
}

.pub-tag {
  font-weight: 600;
  color: var(--dark);
  padding: 4px 10px;
  border-radius: 4px;
}
.pub-tag::before {
  background-color: transparent;
  color: var(--dark);
}
.pub-tag:hover {
  color: var(--dark);
}

/* ==========================================================================
   ── RELATED POSTS BRAND NEW DESIGN ALIGNMENT ──
   ========================================================================== */
.single-pub-related {
  padding-bottom: 112px;
  padding-top: 52px;
  padding-left: 0;
  padding-right: 0;
}

.single-pub-related .container {
  border-top: 1px solid #000;
  padding-top: 40px;
}

.single-pub-related .relatedpost-topbar {
  display: flex;
  /* align-items: flex-end; */
  justify-content: space-between;
  margin-bottom: 60px;
}

.single-pub-related
  .relatedpost-topbar
  .header-content
  .related-post-subheading {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
  font-family: var(--font-outfit), sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--dark-black);
}

.single-pub-related .relatedpost-topbar .header-content .related-heading {
  font-family: var(--font-outfit);
  font-size: 50px;
  line-height: 108%;
  letter-spacing: 0%;
  font-weight: 400;
  color: var(--dark);
}

.single-pub-related .relatedpost-topbar .header-content .related-post-desc {
  font-size: 18px;
  line-height: 150%;
  margin-top: 20px;
  color: var(--Neutral-dark);
}

.relatedpost-topbar .all-blogs-btn a {
  font-size: 18px;
  padding: 24px;
  font-weight: 800;
}

/* Standard meta indicators initialization rules */
.pub-date-time {
  font-size: 13px;
  color: #79766f;
  display: flex;
  gap: 14px;
}

.meta-dot {
  font-size: 7px;
  color: #b7b3aa;
}

/* Force Related loop container elements to inherit the full-bleed grid layout setup */
.single-pub-related .publication-post-grid {
  padding: 0;
}

/* Desktop/mobile button visibility */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.related-view-all {
  display: none;
  justify-content: center;
  margin-top: 40px;
}

/* =========================
Events Table Section
============================= */
.event-table-section {
  background-color: var(--golden);
  color: #ffffff;
  padding: 64px 0;
}

.event-heading h2 {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.event-heading {
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.sm-text {
  color: #282828;
}

.events .table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.events .table {
  border: 1px solid rgba(3, 3, 3, 0.15);
  margin-bottom: 0;
  border-collapse: collapse;
  width: 100%;
  overflow-x: auto;
  table-layout: fixed;
}
.table-scroll.upcoming-table-wrapper {
  border: 1px solid rgba(3, 3, 3, 0.15);
  margin-bottom: 20px;
}
.events .upcoming-table {
  border: none;
}
.events .past-table {
  width: 100%;
  border: none;
  color: var(--Neutral-dark);
}
.past-table-wrapper {
  overflow: hidden;
  border: 1px solid rgba(3, 3, 3, 0.15);
}

.event-table-heading {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: start;
  background-color: white;
}
.past-table-heading {
  margin-top: 64px;
}
.event-table-heading h3 {
  letter-spacing: -0.01em;
  line-height: 140%;
  font-weight: 700;
}
.event-footer-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
}
.event-footer-buttons a {
  color: white;
  border-color: white;
}

.table-scroll {
  background: #fff;
  margin-bottom: 40px;
}

table.table {
  width: 100%;
  border-collapse: collapse;
  color: #000;
}

/* ── thead border ── */
.event-table-section .events thead tr th {
  font-family: "JetBrains Mono";
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
  text-align: start;
  text-align: left;
  padding: 15px 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── tbody td borders ── */
.event-table-section .events tbody tr td {
  text-align: start;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 150%;
  padding: 25px;
  vertical-align: middle;
  background-color: #f2fedb;
}

.event-table-section .events tbody tr:last-child td {
  border-bottom: none !important;
  border-end-end-radius: 8px;
  border-end-start-radius: 8px;
}

.event-table-section .events tbody tr.row-odd td,
.event-table-section .events tbody tr.row-even td {
  background: #fff;
}
.event-row:not(.row-odd) + .accordian-content,
.event-row:not(.row-odd) + .accordian-content td {
  background-color: #f2fedb !important;
}

.event-table-section .events table th:nth-child(1),
.event-table-section .events table td:nth-child(1) {
  width: 35%;
}
.event-table-section .events table th:nth-child(2),
.event-table-section .events table td:nth-child(2) {
  width: 25%;
}
.event-table-section .events table th:nth-child(3),
.event-table-section .events table td:nth-child(3) {
  width: 19%;
}
.event-table-section .events table th:nth-child(4),
.event-table-section .events table td:nth-child(4) {
  width: 20%;
}
.event-table-section .events table th:nth-child(5),
.event-table-section .events table td:nth-child(5) {
  width: 5%;
}

.format-badge {
  background: #d4f400;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.event-table-section .events tr.row-even td .badge,
.event-table-section .events tr.row-even td .format-badge {
  background: #d4f400 !important;
  color: #000000 !important;
}

.event-table-section .events tr.row-odd td .badge,
.event-table-section .events tr.row-odd td .format-badge {
  background: #e2ffb3 !important;
  color: #2e4a00 !important;
}
/* ── Accordion ── */

.event-table-section .events tbody tr.accordian-content td {
  padding: 0 !important;
  border-bottom: none !important;
}

.event-table-section .accordion-inner {
  padding: 28px 24px;
  overflow: hidden;
  /* display: none; */
  border-top: none;
  border-bottom: 1px solid rgba(3, 3, 3, 0.15) !important;
}
.accordian-content {
  display: none;
}

.accordian-content td {
  background: #fff !important;
}
.event-table-section .has-accordion {
  cursor: pointer;
}

.accordion-icon-toggle {
  display: inline-block;
  transition: transform 3s ease;
}

.accordion-trigger-cell {
  text-align: right;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}
.event-table-section .events .event-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.event-title-text {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.event-table-section .events .event-title-wrap img {
  width: 24px;
  height: 24px;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.event-table-section .has-accordion.active .event-title-wrap img {
  transform: rotate(0deg);
}

.accordion-icon-toggle {
  font-size: 20px;
  font-weight: 900;
}

/* ── See more ── */
.event-table-section .events tbody tr .see-more {
  font-weight: 600;
  text-decoration: underline;
  line-height: 150%;
  font-size: 16px;
  white-space: nowrap;
}
.event-table-section .events tbody tr .see-more a {
  color: var(--dark);
  text-decoration: underline;
}

.event-footer-buttons .secondary-btn:first-child {
  font-weight: 500;
}

.event-footer-buttons .secondary-btn:first-child::after {
  display: none;
  content: none;
}

/* ── Responsive ── */
@media screen and (max-width: 997px) {
  /* ==================
All Publications Page
====================== */
  .publication-hero-post-card {
    padding: 0 0px;
  }
  .publication-hero-post-card .hero-content {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 24px;
  }

  .publication-hero-post-card .hero-post-thumb img {
    height: 300px;
    display: block;
    width: 100%;
  }
  .publication-hero-post-card .hero-post-content {
    padding: 26px 22px 34px;
  }

  .publication-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* =========================
Single Publications Post Page
============================= */
  .single-top-header {
    grid-template-columns: 1fr;
    margin: 24px 0;
    gap: 35px;
  }

  .single-pub-content {
    padding: 24px 0;
  }

  .single-pub-related {
    padding: 64px 0;
  }

  .single-pub-related .relatedpost-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
  }
}

.single-pub-content figure img {
  border-radius: 8px;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex;
  }

  .related-view-all {
    display: flex;
    justify-content: end;
  }

  /* ==================
All Publications Page
====================== */
  .publications-list {
    padding-bottom: 20px;
    margin-top: -20px;
  }
  .publication-post-grid {
    grid-template-columns: 1fr;
    padding-top: 25px;
  }

  .archive-filters .archive-filters-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-left: 20px;
    padding-right: 20px;
  }
  .publication-hero-post-card {
    padding: 0px 0px 0px 0px;
  }

  .publication-hero-post-card .hero-post-thumb img {
    height: 220px;
    width: 100%;
  }

  .publication-hero-post-card h2 a {
    font-size: 32px !important;
  }

  .publication-hero-post-card .hero-post-content {
    gap: 18px;
    padding: 26px 22px 34px;
  }
  .archive-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 14px;
  }

  .ajax-load-wrap-publications {
    margin-bottom: 60px;
  }

  /* =========================
Single Publications Post Page
============================= */

  .single-pub-content figure {
    margin: 40px 0 !important;
  }

  .single-pub-content .wp-block-group {
    display: flex;
    justify-content: flex-start;
    padding: 8px 0;
  }

  .single-pub-content .wp-block-group .wp-block-group__inner-container {
    min-width: 0;
    width: 100%;
  }

  .single-pub-content figure.wp-block-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .single-pub-content figure.wp-block-table table,
  .single-pub-content .has-fixed-layout {
    min-width: 600px;
    width: 600px !important;
    table-layout: auto !important;
  }

  .single-pub-content .wp-block-image figcaption {
    text-align: start !important;
    padding-top: 0px !important;
  }

  .single-pub-content .wp-block-group {
    display: flex;
    justify-content: flex-start;
    padding: 8px 0;
  }
  .single-pub-content .wp-block-group .wp-block-social-links {
    padding-left: 0;
    display: flex;
    justify-content: flex-start;
  }
  .single-pub-content .wp-block-group .wp-block-heading {
    text-align: start;
  }
  .single-pub-content p.wp-block-paragraph {
    line-height: 1.5;
  }

  .single-pub-content blockquote {
    padding-left: 0;
    padding-right: 0;
    background: none;
    color: #EDFBE0;
  }

  .single-pub-title {
    font-size: 32px !important;
  }

  .single-pub-summary {
    /* font-size: 18px;
    line-height: 28px;
    margin-bottom: 32px; */
  }

  .single-pub-related {
    padding: 64px 0;
  }

  .single-pub-related .relatedpost-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 48px;
  }

  .single-pub-related .relatedpost-topbar .related-heading {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .single-pub-related .relatedpost-topbar .related-post-subheading {
    margin-bottom: 12px;
  }
  .single-pub-related .relatedpost-topbar .related-post-desc {
    margin: 0;
  }

  /* Related posts grid: single column on mobile */
  .single-pub-related .publication-post-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0;
  }

  .single-pub-related
    .publication-post-grid
    .post-card
    .post-content
    .post-top-meta {
    font-size: 12px;
  }

  .publication-post-grid .post-content h5 a {
    font-size: 20px;
  }
  .publication-post-grid .post-card .post-content .publication-summary {
    font-size: 14px;
  }
  .publication-meta {
    flex-direction: column;
    align-items: start;
    gap: 5px;
    line-height: 150%;
  }
  .single-pub-related
    .publication-post-grid
    .post-card
    .post-content
    .read-more-btn {
    font-size: 14px;
  }
  .related-view-all {
    margin-top: 48px;
  }

  .single-pub-tags {
    margin-bottom: 24px;
    margin-top: 32px;
    margin-top: 8px;
  }

  /* =========================
Events Table Section
============================= */
  .event-table-section {
    padding: 40px 0px;
  }

  .event-heading {
    margin-bottom: 22px;
    text-align: left;
  }
  .event-heading h3 {
    font-size: 34px;
  }
  .event-table-heading {
    gap: 8px;
  }
  .event-table-heading .dark-black {
    font-size: 22px;
  }

  .past-table-heading {
    margin-bottom: 0px;
    margin-top: 16px;
  }
  .past-table-heading h5 {
    font-size: 22px;
    font-weight: 400;
  }

  .event-table-section .events thead tr th {
    padding: 10px 16px;
    font-size: 14px;
  }
  .event-table-section .events thead tr th.see-more-th {
    width: 100px;
  }
  .event-title-text {
    width: 200px;
  }
  .event-table-section .events tbody tr td,
  .event-table-section .events tbody tr.accordian-content td {
    padding: 16px 12px;
    font-size: 14px;
  }
  /* new */

  .past-table thead {
    display: none;
  }

  .past-table,
  .past-table tbody,
  .past-table tr:not(.accordian-content),
  .past-table td {
    display: block;
    width: 100%;
  }

  .past-table-wrapper {
    border: none;
    overflow: visible;
  }

  .past-table tr.event-row {
    position: relative;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(3, 3, 3, 0.15);
    background: #fff;
  }

  .past-table tr.event-row.row-odd {
    background: #f5fce9;
  }

  .past-table tr.event-row td {
    padding: 0 !important;
    border: none;
    background: transparent !important;
    width: 100% !important;
  }
  .format-badge {
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  /* Event Title */
  .past-table tr.event-row td:nth-child(1) {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 6px;
    max-width: 180px;
  }

  /* Chapter hide */
  .past-table tr.event-row td:nth-child(2) {
    display: none;
  }

  /* Badge */
  .past-table tr.event-row td:nth-child(3) {
    display: inline-block;
    width: auto !important;
    margin-right: 8px;
    vertical-align: middle;
  }
  table .event-row td.empty-td {
    display: none !important;
  }

  /* Date */
  .past-table tr.event-row td:nth-child(4) {
    display: inline-block;
    width: auto !important;
    color: #777;
    font-size: 12px !important;
    vertical-align: middle;
  }

  /* Plus icon */
  .past-table tr.event-row td:nth-child(5) {
    position: absolute;
    right: 24px;
    top: 24px;
    width: auto !important;
    text-align: right;
  }

  .accordion-icon-toggle {
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
  }

  .has-accordion.active .accordion-icon-toggle {
    content: "−";
  }

  /* Accordion */
  .accordian-content {
    display: none;
  }

  .accordian-content td {
    padding: 0 !important;
    background: #f5fce9 !important;
  }

  .accordion-inner {
    padding: 20px 28px 28px !important;
    border: none !important;
  }

  .accordion-inner p:last-child {
    margin-bottom: 0;
  }

  .events table td:nth-child(1) {
    width: 100% !important;
  }

  .events .table-scroll {
    overflow: visible !important;
  }

  .past-table-wrapper {
    overflow: visible !important;
    border: none;
  }

  .past-table {
    display: block;
    width: 100%;
  }

  .past-table,
  .past-table tbody,
  .past-table tr:not(.accordian-content),
  .past-table td {
    display: block;
    width: 100% !important;
  }

  .event-footer-buttons {
    flex-wrap: wrap;
    gap: 20px 40px;
  }
}
