/*
 Theme Name:   LiFi-Centre
 Theme URI:    https://lificentre.com
 Description:  LiFi Centre theme
 Author:       LiFi Centre
 Author URI:   https://lificentre.com
 Template:     generatepress
 Version:      1.0
*/

blockquote {
  font-style: normal;
}

/* Hero */
.person-hero {
  background: linear-gradient(135deg, #f7f8fa, #eef1f5);
  border-radius: 18px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
}

.person-hero-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
  margin: 0 auto;
}

/* Photo */
.person-photo img {
  border-radius: 50%;
  width: 220px;
  height: 220px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Meta */
.person-name {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.person-position {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
}

.person-teams {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: #777;
}

/* Bio */

.person-bio-inner {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Team archive layout */
/* Team section */
.team-group {
  margin-bottom: 4rem;
}

.team-group-title {
  /* font-size: 1.6rem; */
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

/* Reuse existing grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
}

.team-archive-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.team-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.team-intro {
  font-size: 1.1rem;
  color: #222;
}

/* Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
}

/* Card */
.team-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Link reset */
.team-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Image */
.team-image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.team-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

/* Content */
.team-card-content {
  padding: 1.5rem;
  text-align: center;
}

.team-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.team-position {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #777;
}

span.aioseo-breadcrumb,
.aioseo-breadcrumb-separator,
span.aioseo-breadcrumb a {
  color: #222;
}

/* Limit AIOSEO breadcrumbs length */
.aioseo-breadcrumbs {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.aioseo-breadcrumbs span.aioseo-breadcrumb {
  display: inline-flex;
  align-items: center;
  vertical-align: baseline;
  line-height: 1.5;
}

.aioseo-breadcrumbs span.aioseo-breadcrumb a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: baseline;
  line-height: inherit;
}

.aioseo-breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  vertical-align: baseline;
  line-height: 1.5;
}

/* Projects archive */
.projects-archive-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.projects-title {
  font-size: 2.5em;
  margin-bottom: 0.5rem;
}

.projects-intro {
  font-size: 1.1rem;
  color: #222;
}

.projects-archive-intro {
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #222;
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Page Hero */
.page-hero {
  padding: 4rem 0;
  position: relative;
  height: 500px;
}

.inside-page-hero {
  max-width: 1280px;
  margin: 0 auto;
}

.grid-container {
  padding: 48px 0;
}

.page-hero .inside-page-hero.grid-container {
  max-width: calc(1280px - 0px - 0px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 0 !important;
}

.page-hero-title {
  font-size: 2.5em;
  font-weight: 900;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.page-hero-description {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 800px;
  font-weight: 700;
}

.separate-containers .site-main {
  margin: 0;
}

.page-hero-breadcrumbs {
  margin-top: 1.5rem;
}

.page-hero-breadcrumbs .aioseo-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-hero-breadcrumbs .aioseo-breadcrumb,
.page-hero-breadcrumbs .aioseo-breadcrumb-separator {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.page-hero-breadcrumbs .aioseo-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-hero-breadcrumbs .aioseo-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-hero-breadcrumbs .aioseo-breadcrumb:last-child {
  color: #fff;
  font-weight: 500;
}

/* Card */
.project-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.18);
}

.project-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Image */
.project-image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 18px 18px 0 0;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

/* Content */
.project-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #333;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: #873356;
}

.project-excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #222;
  font-weight: 600;
}

/* Posts archive */
.posts-archive-intro {
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #222;
}

.entry-meta {
  margin-top: 0;
}

/* Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

/* Card */
.post-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.18);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Prevent link clicks in editor */
.post-card-link-editor {
  pointer-events: none;
  cursor: default;
}

/* News Ticker Block */
.news-ticker-container {
  display: flex;
  align-items: center;
  background: #122f46;
  overflow: hidden;
  position: relative;
}

.news-ticker-label {
  flex-shrink: 0;
  padding: 0.5rem 2rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  white-space: nowrap;
  position: relative;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.news-ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding-left: 0;
  background: transparent;
}

.news-ticker-scroll {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll linear infinite;
  animation-duration: calc(var(--ticker-speed, 50) * 1s);
}

.news-ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 1.5rem;
  white-space: nowrap;
  padding: 0.25rem 0.75rem;
  background: transparent;
  border-radius: 4px;
  transition: background 0.2s ease;
  vertical-align: middle;
  height: 100%;
}

.news-ticker-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.news-ticker-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  margin-right: 0.75rem;
  font-weight: 600;
  padding: 0;
  background: transparent;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: none;
  display: inline-block;
  line-height: 1.5;
  vertical-align: middle;
}

.news-ticker-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  display: inline-block;
  line-height: 1.5;
  vertical-align: middle;
}

.news-ticker-link:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.news-ticker-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.news-ticker-link:hover::after {
  width: 100%;
}

.news-ticker-separator {
  color: rgba(255, 255, 255, 0.5);
  margin-left: 1.5rem;
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.5;
  position: relative;
  width: 6px;
  height: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.news-ticker-separator::before {
  content: "▶";
  display: inline-block;
  font-size: 0.45rem;
  vertical-align: middle;
  line-height: 1;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover */
.news-ticker-container:hover .news-ticker-scroll {
  animation-play-state: paused;
}

/* Editor preview */
.lificentre-news-ticker-preview .news-ticker-scroll {
  animation: none;
}

.lificentre-news-ticker-preview .news-ticker-link {
  pointer-events: none;
  cursor: default;
}

/* Image */
.post-image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 18px 18px 0 0;
}

.post-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover img {
  transform: scale(1.05);
}

/* Content */
.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-category-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #873356;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.post-title {
  margin: 0 0 0.75rem;
  font-size: 22px;
  color: #333;
  transition: color 0.3s ease;
  display: block;
  visibility: visible;
  font-weight: 600;
}

.post-card:hover .post-title {
  color: #873356;
}

.post-excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #222;
}

/* Pagination - Unified styles for all paginations */
.pagination,
.posts-navigation,
.paging-navigation,
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 3rem 0;
  padding: 0;
  list-style: none;
}

.pagination a,
.pagination span,
.posts-navigation a,
.posts-navigation span,
.paging-navigation a,
.paging-navigation span,
.nav-links a,
.nav-links span,
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pagination a:hover,
.posts-navigation a:hover,
.paging-navigation a:hover,
.nav-links a:hover,
.page-numbers:hover {
  background: #873356;
  color: #fff;
  border-color: #873356;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(135, 51, 86, 0.2);
}

.pagination .current,
.pagination span.current,
.posts-navigation .current,
.posts-navigation span.current,
.paging-navigation .current,
.paging-navigation span.current,
.nav-links .current,
.nav-links span.current,
.page-numbers.current {
  background: #873356;
  color: #fff;
  border-color: #873356;
  font-weight: 600;
  cursor: default;
}

.pagination .dots,
.pagination span.dots,
.page-numbers.dots {
  background: transparent;
  border: none;
  color: #999;
  cursor: default;
}

.pagination .dots:hover,
.page-numbers.dots:hover {
  background: transparent;
  color: #999;
  transform: none;
  box-shadow: none;
}

/* TeachPress pagination */
.tablenav {
  padding-top: 5px;
  margin: 6px 0 4px;
  height: auto;
  vertical-align: middle;
  width: 100%;
}

.tablenav-pages {
  float: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tablenav-pages a,
.tablenav-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1;
}

.tablenav-pages a.button,
.tablenav-pages .page-numbers.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  vertical-align: middle;
}

.tablenav-pages a:hover {
  background: #873356;
  color: #fff;
  border-color: #873356;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(135, 51, 86, 0.2);
}

.tablenav-pages span.inactive,
.tablenav-pages .current {
  background: #873356;
  color: #fff;
  border-color: #873356;
  font-weight: 600;
  cursor: default;
}

.tablenav-pages .page-numbers {
  display: inline-flex;
}

.tablenav-pages a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tablenav-pages a.disabled:hover {
  background: #fff;
  color: #333;
  border-color: #e0e0e0;
  transform: none;
  box-shadow: none;
}

/* Single project */
.project-hero {
  background: linear-gradient(135deg, #e2ebfd, #eef1f5);
  border-radius: 18px;
  margin-bottom: 3rem;
  padding: 3rem 2rem;
}

.project-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
}

/* Image */

.project-image {
  padding: 10px;
}
.project-image img {
  border-radius: 14px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Meta */
.project-meta {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
}

.project-logo img {
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.project-title {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
}

.project-description {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #fff;
}

.project-hero .project-description {
  color: #222;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.project-content-inner {
  font-size: 1.05rem;
  line-height: 1.8;
}

.aioseo-breadcrumbs span.aioseo-breadcrumb {
  margin: 0 5px;
}

/* Footer menu styles */
.footer-widgets-container .widget_nav_menu .menu a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-widgets-container .widget_nav_menu .menu a:hover {
  color: #9a0026;
  text-decoration: underline;
}

.footer-widgets-container hr {
  margin-top: 0;
}

.tp_pub_type {
  display: none !important;
}

/* Footer Copyright Two-Column Layout */
.footer-copyright-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.footer-copyright-left {
  flex: 0 0 auto;
}

.footer-copyright-right {
  flex: 0 0 auto;
}

.footer-copyright-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copyright-menu li {
  margin: 0;
  padding: 0;
}

.footer-copyright-menu a {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-copyright-menu a:hover {
  color: #873356;
}

@media (max-width: 768px) {
  .footer-copyright-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copyright-menu {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.copyright-bar {
  width: 100%;
}

.footer-copyright-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footer-copyright-menu {
  list-style-type: none;
}

.footer-copyright-menu li a {
  text-decoration: underline;
}

.site-header .header-image {
  width: 200px !important;
}

/* .inside-footer-widgets .widget_text {
  margin-bottom: 15px !important;
} */

/* PUBLICATIONS */

.teachpress_filter {
  display: flex;
  align-items: center;
}

#tp_search_input_field {
  width: 100% !important;
}

#nav_menu-7 {
  margin-bottom: 12px;
}

.inside-article {
  padding: 0 !important;
}

.inside-header {
  padding: 0 !important;
}

#page {
  padding: 0 !important;
}

footer .grid-container {
  padding: 15px 0 !important;
}

#main {
  padding: 48px 0;
}

.home #main {
  padding: 0 !important;
}

/* .site-main p:last-of-type {
  margin-bottom: 0;
} */

.wp-block-image figcaption {
  text-align: left;
}
