/* make header sticky */

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* adjuct logo size */
.site-header .header-image {
    width: 170px !important;
}

/* add bg color to header */

.site-header {
   /* background-color: #e5f4ed !important; */
}

.main-navigation, .main-navigation {
   /* background-color: #e5f4ed !important; */
}

/* MENU ITEM COLOR */
.main-navigation .main-nav ul li a {
    color: #0f97ff;
    transition: all 0.25s ease;
}

/* HOVER EFFECT */
.main-navigation .main-nav ul li a {
    position: relative;
}

.main-navigation .main-nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 3px;
    background: #0f97ff;
    transition: width 0.3s ease;
}

.main-navigation .main-nav ul li a:hover::after,
.main-navigation .main-nav ul li.current-menu-item > a::after {
    width: 100%;
}

/* ACTIVE MENU ITEM */
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
    background-color: rgba(30,42,56,0.08);
    border-bottom: 3px solid #1E2A38;
    color: #1E2A38;
	
	border-top-left-radius: 2px solid black;
}



/* hide footer copyright */
.copyright-bar {
	display: none !important;
}



/* hide homepage title */
.home .entry-title {
    display: none;
}

.home .site-main {
    margin-top: 0;
}


/* 3-column post grid */
.wp-block-query .wp-block-post-template{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:32px;
  list-style:none;
  margin:0;
  padding:0;
}

.wp-block-query .wp-block-post{
  display:flex;
  flex-direction:column;
  padding:24px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
  height:100%;
}

.wp-block-query .wp-block-post-title{
  margin:0 0 14px;
  font-size:1.35rem;
  line-height:1.3;
}

.wp-block-query .wp-block-post-title a{
  text-decoration:none;
  color:inherit;
}

.wp-block-query .wp-block-post-title a:hover{
  color:#1d4ed8;
}

.wp-block-query .wp-block-post-excerpt{
  margin-top:auto;
}

.wp-block-query .wp-block-post-excerpt__excerpt{
  margin:0;
  color:#4b5563;
  line-height:1.7;
  font-size:0.98rem;
}

/* Pagination styling */
.wp-block-query .wp-block-query-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:40px;
}

.wp-block-query .wp-block-query-pagination-numbers{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.wp-block-query .page-numbers,
.wp-block-query .wp-block-query-pagination-next,
.wp-block-query .wp-block-query-pagination-previous{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  height:44px;
  padding:0 16px;
  border:1px solid #d1d5db;
  border-radius:999px;
  background:#fff;
  color:#111827;
  text-decoration:none;
  font-weight:600;
  transition:all 0.25s ease;
}

.wp-block-query .page-numbers:hover,
.wp-block-query .wp-block-query-pagination-next:hover,
.wp-block-query .wp-block-query-pagination-previous:hover{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.wp-block-query .page-numbers.current{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.wp-block-query .page-numbers.dots{
  border:none;
  background:transparent;
  min-width:auto;
  padding:0 4px;
  height:auto;
}

/* Tablet */
@media (max-width: 1024px){
  .wp-block-query .wp-block-post-template{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 767px){
  .wp-block-query .wp-block-post-template{
    grid-template-columns:1fr;
  }

  .wp-block-query .wp-block-query-pagination{
    gap:10px;
  }

  .wp-block-query .page-numbers,
  .wp-block-query .wp-block-query-pagination-next,
  .wp-block-query .wp-block-query-pagination-previous{
    min-width:40px;
    height:40px;
    padding:0 14px;
  }
}

/* Read More link */
.wp-block-post-excerpt__more-text{
  margin-top:16px;
}

.wp-block-post-excerpt__more-link{
  display:inline-block;
  font-size:0.9rem;
  font-weight:600;
  text-decoration:none;
  color:#111827;
  padding:8px 16px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#fff;
  transition:all .25s ease;
}

.wp-block-post-excerpt__more-link:hover{
  background:#111827;
  color:#fff;
  border-color:#111827;
  transform:translateY(-1px);
}


/* Publications Page*/

.post-228{
  --pub-text: #334155;
  --pub-heading: #0f172a;
  --pub-link: #1d4ed8;
  --pub-link-hover: #1e3a8a;
  --pub-border: #e2e8f0;
  --pub-soft: #f8fafc;
  --pub-accent: #0f172a;
}

.post-228 .inside-article{
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 28px 72px;
}

.post-228 .entry-header{
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--pub-border);
}

.post-228 .entry-title{
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--pub-heading);
}

.post-228 .entry-content{
  color: var(--pub-text);
  font-size: 1.05rem;
  line-height: 1.9;
}

/* Reset default paragraph look */
.post-228 .entry-content > p{
  position: relative;
  margin: 0 0 14px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--pub-border);
  border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Hover for publication rows */
.post-228 .entry-content > p:hover{
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* Section headings */
.post-228 .entry-content > p:has(strong:first-child){
  margin-top: 42px;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.post-228 .entry-content > p:has(strong:first-child) strong{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pub-accent);
}

.post-228 .entry-content > p:has(strong:first-child) strong::before{
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--pub-accent);
  border-radius: 999px;
}

/* First section heading should not have too much top gap */
.post-228 .entry-content > p:first-child:has(strong:first-child){
  margin-top: 0;
}

/* Links */
.post-228 .entry-content a{
  color: var(--pub-link);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.post-228 .entry-content a:hover{
  color: var(--pub-link-hover);
  text-decoration: underline;
}

/* Titles / book names */
.post-228 .entry-content em{
  color: var(--pub-heading);
  font-style: italic;
}

/* Strong text inside entries */
.post-228 .entry-content strong{
  color: var(--pub-heading);
}

/* Clean imported odd classes */
.post-228 .entry-content .a-size-large,
.post-228 .entry-content .a-spacing-none{
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  font-weight: inherit !important;
}

/* Clean nested spans from copied content */
.post-228 .entry-content span{
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Slightly richer typography */
.post-228 .entry-content p{
  text-wrap: pretty;
}

/* Optional subtle alternating feel */
.post-228 .entry-content > p:nth-of-type(even):not(:has(strong:first-child)){
  background: var(--pub-soft);
}

/* Better spacing around grouped entries */
.post-228 .entry-content > p + p{
  margin-top: 0;
}

/* Make long citations easier to read */
.post-228 .entry-content{
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Mobile */
@media (max-width: 768px){
  .post-228 .inside-article{
    padding: 36px 18px 52px;
  }

  .post-228 .entry-header{
    margin-bottom: 28px;
    padding-bottom: 18px;
  }

  .post-228 .entry-content{
    font-size: 1rem;
    line-height: 1.8;
  }

  .post-228 .entry-content > p{
    padding: 16px 16px;
    border-radius: 14px;
  }

  .post-228 .entry-content > p:has(strong:first-child){
    margin-top: 32px;
    margin-bottom: 14px;
  }

  .post-228 .entry-content > p:has(strong:first-child) strong{
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .post-228 .entry-content > p:has(strong:first-child) strong::before{
    width: 24px;
  }
}

/* copyright */
.site-copyright{
  margin: 0;
  font-size: 16px;
	padding: 10px;
  color: #666;
  text-align: center;
}
.site-info {
  background-color: #111;
}

/* Footer Social / Connect */
/* Center footer widget content */
#footer-widgets .inside-footer-widgets{
  text-align: center;
}

/* Center the columns wrapper */
#footer-widgets .wp-block-columns{
  justify-content: center;
  margin-bottom: 0;
}

/* Stack connect text above social icons */
#footer-widgets .wp-block-column{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Connect text block */
.jp-connect{
  text-align: center;
  margin-bottom: 14px;
}

.jp-connect-title{
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 6px;
  color: #111;
}

.jp-connect-text{
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Social links wrapper */
.jp-social-links{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

/* Social pill links */
.jp-social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #111;
  transition: all .25s ease;
}

.jp-social-link:hover{
  background: #fff;
  color: #111;
  border-color: #111;
  transform: translateY(-2px);
}

/* SVG icons */
.jp-icon{
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Optional: make footer spacing feel better */
#footer-widgets{
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Mobile */
@media (max-width: 768px){
  .jp-connect-title{
    font-size: 17px;
  }

  .jp-connect-text{
    font-size: 13px;
    max-width: 100%;
  }

  .jp-social-links{
    gap: 12px;
    margin-top: 14px;
  }

  .jp-social-link{
    font-size: 13px;
    padding: 8px 14px;
  }

  .jp-icon{
    width: 20px;
    height: 20px;
  }
}


/* 
   Books page grid section 
*/


.book-section-grid {
  --book-gap: 0.35rem;
  --book-card-radius: 18px;
  --book-card-padding: 1rem;
  --book-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  --book-shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.08);
  --book-border: 1px solid #edeeefb0;
  --book-title-color: #111111;
  --book-button-bg: #111111;
  --book-button-text: #ffffff;
  --book-button-hover-bg: #2b2b2b;
  --book-card-bg: #edeeefb0;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--book-gap);
  align-items: start;
  width: 100%;
  margin: 0 auto;
}

/* card */
.book-section-grid > .wp-block-column {
  margin-left: 20px !important;
	margin-right: 20px !important;
  min-width: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--book-card-bg);
  border: var(--book-border);
  border-radius: var(--book-card-radius);
  box-shadow: var(--book-shadow);
  padding: var(--book-card-padding);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-section-grid > .wp-block-column:hover {
  transform: translateY(-3px);
  box-shadow: var(--book-shadow-hover);
}

/* flatten extra WP wrappers */
.book-section-grid .wp-block-group,
.book-section-grid .wp-block-group__inner-container {
  display: contents;
}

/* remove empty wrappers completely */
.book-section-grid .wp-block-group:empty,
.book-section-grid .wp-block-group__inner-container:empty {
  display: none !important;
}

/* image wrapper */
.book-section-grid .wp-block-image {
  margin: 0 0 0.85rem 0;
  width: 100%;
  text-align: center;
}

.book-section-grid .wp-block-image a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

/* image */
.book-section-grid .wp-block-image img {
  display: block;
  width: auto;
  max-width: 220px;
  height: 320px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-section-grid > .wp-block-column:hover .wp-block-image img {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

/* title */
.book-section-grid .wp-block-heading {
  margin: 0 0 0.8rem 0;
  color: var(--book-title-color);
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
}

/* button */
.book-section-grid .gb-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--book-button-bg);
  color: var(--book-button-text) !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.book-section-grid .gb-text:hover,
.book-section-grid .gb-text:focus {
  background: var(--book-button-hover-bg);
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* tablet */
@media (max-width: 1024px) {
  .book-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-section-grid .wp-block-image img {
    max-width: 210px;
    height: 305px;
  }
}

/* mobile */
@media (max-width: 767px) {
  .book-section-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .book-section-grid > .wp-block-column {
    padding: 0.9rem;
  }

  .book-section-grid .wp-block-image {
    margin-bottom: 0.75rem;
  }

  .book-section-grid .wp-block-image img {
    max-width: 200px;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .book-section-grid .wp-block-heading {
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
  }
}