/* Removed mobile-specific body.page-index overrides to allow index page to inherit the
   same background and layout styles as the desktop view. */
/**
 * WEBSITE: https://themefisher.com
 * TWITTER: https://twitter.com/themefisher
 * FACEBOOK: https://www.facebook.com/themefisher
 * GITHUB: https://github.com/themefisher/
 */


.site-wrapper {
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
  min-height: 100vh;
  height: 100vh;
}
.pt-table {
  display: table;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.pt-tablecell.page-home {
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  vertical-align: top;
}
.page-home {
  min-height: 100vh;
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

/* page-classes: course grid and cards */
.page-classes .courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}
.page-classes .course-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 6px 18px rgba(23, 43, 77, 0.06);
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid rgba(23,43,77,0.04);
}
.page-classes .course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(23,43,77,0.09);
}
.page-classes .course-title {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #15395f;
  line-height: 1.25;
}
.page-classes .course-sub {
  margin: 0;
  color: #506880;
  font-size: 14px;
}

@media (max-width: 520px) {
  .page-classes .courses-grid { gap: 14px; }
  .page-classes .course-card { padding: 14px; }
  .page-classes .course-title { font-size: 18px; }
}

/* Obfuscated email styling */
.email-obfuscated {
  cursor: pointer;
  color: #0b66a3;
  text-decoration: underline dotted;
  user-select: none; /* discourage copy */
}
.email-obfuscated:focus {
  outline: 2px solid rgba(11,102,163,0.15);
  outline-offset: 2px;
}

/* avatar (circular profile photo with ring) */
.avatar {
  display: inline-block;
  width: 192px; /* doubled */
  height: 192px; /* doubled */
  border-radius: 50%;
  object-fit: cover;
  /* subtle inset + outer shadow for a gentle 3D avatar effect */
  box-shadow: inset 0 3px 8px rgba(11,102,163,0.04), 0 8px 24px rgba(11,102,163,0.06);
  /* subtle semi-transparent themed ring instead of stark white */
  border: 4px solid rgba(11,102,163,0.10);
  vertical-align: middle;
  margin-bottom: 12px;
}

.avatar-large { width: 192px; height: 192px; }

@media (max-width: 520px) {
  .avatar { width: 144px; height: 144px; }
  .avatar-large { width: 144px; height: 144px; }
}

/* position the email image next to the envelope icon */
.media-left .email-after-icon {
  display: block;
  margin-top: 8px;
  max-width: 100%;
  height: auto;
  /* match avatar display width for visual alignment */
  width: 192px;
}

@media (max-width: 520px) {
  .media-left .email-after-icon { width: 144px; }
}
a
/* center avatar, icon and email image inside left column */
.contact-block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

/* ensure the left column itself centers its inner block vertically */
.contact-left {
  display: flex;
  align-items: center;
  justify-content: center; /* horizontally center the inner block when single column */
}

/* make the main contact row a flex container so columns can align vertically */
.contact-main-row {
  display: flex;
  align-items: center; /* vertical align columns */
  justify-content: center; /* center single column in the row */
}

/* ensure the bootstrap column children stretch to the same height inside the flex row */
.contact-main-row > [class*='col-'] {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Specific overrides for the contact page to avoid clipping the avatar */
.page-contact .contact-block .media-left {
  max-width: none;    /* allow avatar to be wider than the small icon width */
  min-width: 0;
  font-size: 28px;    /* reasonable size for the envelope icon */
  padding-right: 0;
  text-align: center;
}

.page-contact .contact-block .media-left img.avatar {
  width: 192px;
  height: 192px;
  object-fit: cover;
  border-radius: 50%;
}


 .media-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-left: 0; /* removed large offset so elements sit centered in column */
 }

@media (max-width: 420px) {
  .media-left { margin-left: 12px; }
}

.media-left .tf-envelope2 {
  font-size: 28px;
  color: #0b66a3;
  margin: 10px 0;
}

a:hover, a:focus {
  color: #ababab;
  text-decoration: none;
  outline: 0 none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #1e2530;
  font-family: "Open Sans", sans-serif;
  margin: 0;
  line-height: 1.3;
}

p {
  margin-bottom: 20px;
  text-align: justify;
  text-align-last: left;
  -moz-text-align-last: left;
  text-justify: inter-ideograph;
  /* indent the first line instead of padding the whole paragraph */
  text-indent: 12px;
}
p:last-child {
  margin-bottom: 0;
}

/*
 * Selection color
 */
::-moz-selection {
  background-color: #fa6862;
  color: #fff;
}

::selection {
  background-color: #fa6862;
  color: #fff;
}

/*
 *  Reset bootstrap's default style
 */
.form-control::-webkit-input-placeholder,
::-webkit-input-placeholder {
  opacity: 1;
  color: inherit;
}

.form-control:-moz-placeholder,
:-moz-placeholder {
  /* Firefox 18- */
  opacity: 1;
  color: inherit;
}

.form-control::-moz-placeholder,
::-moz-placeholder {
  /* Firefox 19+ */
  opacity: 1;
  color: inherit;
}

.form-control:-ms-input-placeholder,
:-ms-input-placeholder {
  opacity: 1;
  color: inherit;
}

button,
input,
select,
textarea,
label {
  font-weight: 400;
}

.btn {
  transition: all 0.3s ease 0s;
}
.btn:hover, .btn:focus, .btn:active:focus {
  outline: 0 none;
}

.btn-primary {
  background-color: #fa6862;
  border: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  height: 48px;
  line-height: 50px;
  padding: 0 42px;
  text-transform: uppercase;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary:active:focus {
  background-color: #f9423a;
}

.btn-border {
  border: 1px solid #d7d8db;
  display: inline-block;
  padding: 7px;
}

/*
 *  CSS Helper Class
 */
.clear:before, .clear:after {
  content: " ";
  display: table;
}
.clear:after {
  clear: both;
}

.pt-table {
  display: table;
  width: 100%;
  height: calc(100vh - 4px);
}

.pt-tablecell {
  display: table-cell;
  vertical-align: middle;
}

.overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.relative {
  position: relative;
}

.primary,
.link:hover {
  color: #fa6862;
}

.no-gutter {
  margin-left: 0;
  margin-right: 0;
}
.no-gutter > [class^=col-] {
  padding-left: 0;
  padding-right: 0;
}

.flex {
  display: -moz-flex;
  display: flex;
}

.flex-middle {
  -moz-align-items: center;
  align-items: center;
}

.space-between {
  -moz-justify-content: space-between;
  justify-content: space-between;
}

.nicescroll-cursors {
  background: #fa6862 !important;
}

.preloader {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
  display: -moz-flex;
  display: flex;
}
.preloader.active.hidden {
  display: none;
}

.loading-mask {
  background-color: #fa6862;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 20%;
  transition: all 0.6s cubic-bezier(0.61, 0, 0.6, 1) 0s;
}
.loading-mask:nth-child(2) {
  left: 20%;
  transition-delay: 0.1s;
}
.loading-mask:nth-child(3) {
  left: 40%;
  transition-delay: 0.2s;
}
.loading-mask:nth-child(4) {
  left: 60%;
  transition-delay: 0.3s;
}
.loading-mask:nth-child(5) {
  left: 80%;
  transition-delay: 0.4s;
}

.preloader.active.done {
  z-index: 0;
}
.preloader.active .loading-mask {
  width: 0;
}

/*------------------------------------------------
  Page transition overlay (cool animated transition)
-------------------------------------------------*/
.book-flip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3500;
  perspective: 1600px;
}
.book-flip .page {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.book-flip .page.right {
  right: 0;
  transform-origin: left center;
}
.book-flip .page.left {
  left: 0;
  transform-origin: right center;
}

/* next (forward) flip: rotate right page from 0 to -180deg */
.book-flip.flip-next .page.right {
  animation: flip-next 700ms cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes flip-next {
  0% { transform: rotateY(0deg); }
  60% { transform: rotateY(-140deg); }
  100% { transform: rotateY(-180deg); }
}

/* prev (back) flip: rotate left page from 0 to 180deg */
.book-flip.flip-prev .page.left {
  animation: flip-prev 700ms cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes flip-prev {
  0% { transform: rotateY(0deg); }
  60% { transform: rotateY(140deg); }
  100% { transform: rotateY(180deg); }
}

/* subtle shading for realism */
.book-flip .page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.0), rgba(0,0,0,0.12));
  pointer-events: none;
}

/*------------------------------------------------
	Start Styling
-------------------------------------------------*/
.site-wrapper {
  border-top: 4px solid #fa6862;
}

.page-close {
  font-size: 30px;
  position: absolute;
  right: 30px;
  top: 30px;
  z-index: 100;
}

.page-title {
  margin-bottom: 75px;
}
.page-title img {
  margin-bottom: 20px;
}
.page-title h2 {
  font-size: 40px;
  margin-bottom: 25px;
  position: relative;
  z-index: 0;
  font-weight: 900;
  text-transform: uppercase;
}
.page-title p {
  font-size: 26px;
}

@media only screen and (max-width: 767px) {
  .page-title p {
    font-size: 16px;
  }
}
.page-title .title-bg {
  color: rgba(30, 37, 48, 0.07);
  font-size: 26px;
  left: 0;
  letter-spacing: 2px;
  line-height: 1;
  position: absolute;
  right: 0;
  top: 50%;
  z-index: -1;
  transform: translateY(-50%);
}

.section-title {
  margin-bottom: 20px;
  overflow: hidden;
}
.section-title h3 {
  display: inline-block;
  position: relative;
}
.section-title h3::before {
  background-color: #1e2530;
  width: 96px;
  bottom: 14px;
}
.section-title h3::after {
  background-color: #fa6862;
  width: 73px;
}
.section-title.light h3 {
  color: #fff;
}
.section-title.light h3::before {
  background-color: #fff;
}

.page-nav {
  bottom: 40px;
  left: 0;
  position: absolute;
  right: 0;
}
.page-nav span {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}

/*------------------------------------------------
    Home Page
-------------------------------------------------*/
.page-home {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  vertical-align: middle;
}
.page-home .overlay {
  /* Blue-tinted gradient overlay to make the banner more vibrant and readable */
  background: linear-gradient(135deg, rgba(2,183,206,0.28) 0%, rgba(30,37,48,0.62) 60%);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* let clicks pass through if needed */
}

.page-home .overlay::after {
  /* subtle radial vignette to focus attention toward center */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.45) 80%);
  pointer-events: none;
}

/* End of container */
.hexagon-item {
  cursor: pointer;
  width: 200px;
  height: 173.2050807569px;
  float: left;
  margin-left: -29px;
  z-index: 0;
  position: relative;
  transform: rotate(30deg);
}
.hexagon-item:first-child {
  margin-left: 0;
}
.hexagon-item:hover {
  z-index: 1;
}
.hexagon-item:hover .hex-item:last-child {
  opacity: 1;
  transform: scale(1.3);
}
.hexagon-item:hover .hex-item:first-child {
  opacity: 1;
  transform: scale(1.2);
}
.hexagon-item:hover .hex-item:first-child div:before,
.hexagon-item:hover .hex-item:first-child div:after {
  height: 15px;
}
.hexagon-item:hover .hex-item div::before,
.hexagon-item:hover .hex-item div::after {
  background-color: #fa6862;
}
.hexagon-item:hover .hex-content svg {
  transform: scale(0.97);
}

.page-home .hexagon-item:nth-last-child(1),
.page-home .hexagon-item:nth-last-child(2),
.page-home .hexagon-item:nth-last-child(3) {
  transform: rotate(30deg) translate(87px, -80px);
}

.hex-item {
  position: absolute;
  top: 0;
  left: 50px;
  width: 100px;
  height: 173.2050807569px;
}
.hex-item:first-child {
  z-index: 0;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hex-item:last-child {
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}
.hex-item div {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  width: 100px;
  height: 173.2050807569px;
  transform-origin: center center;
}
.hex-item div::before, .hex-item div::after {
  background-color: #1e2530;
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
}
.hex-item div:before {
  top: 0;
}
.hex-item div:after {
  bottom: 0;
}
.hex-item div:nth-child(1) {
  transform: rotate(0deg);
}
.hex-item div:nth-child(2) {
  transform: rotate(60deg);
}
.hex-item div:nth-child(3) {
  transform: rotate(120deg);
}

.hex-content {
  color: #fff;
  display: block;
  height: 180px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  transform: rotate(-30deg);
  width: 156px;
}
.hex-content .hex-content-inner {
  left: 50%;
  margin: -3px 0 0 2px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}
.hex-content .icon {
  display: block;
  font-size: 36px;
  line-height: 30px;
  margin-bottom: 11px;
}
.hex-content .icon.icon-combo { position: relative; display: inline-block; width: 46px; height: 40px; }
.hex-content .icon.icon-combo i { font-size: 36px; line-height: 1; display: inline-block; color: #fff; text-shadow: 0 6px 14px rgba(0,0,0,0.45); }
/* make the gear tuck behind the wrench head to appear mechanically connected */
.hex-content .icon.icon-combo i.tf-ion-gear-a { position: absolute; left: 22px; top: -2px; font-size: 20px; opacity: 0.95; transform: rotate(18deg) scale(0.68); z-index: 1; color: rgba(255,255,255,0.95); }
.hex-content .icon.icon-combo i.tf-ion-wrench { position: absolute; left: 6px; top: 4px; z-index: 2; }
.hex-content .title {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 30px;
  text-transform: uppercase;
}
.hex-content svg {
  left: -7px;
  position: absolute;
  top: -13px;
  transform: scale(0.87);
  z-index: -1;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
}
.hex-content:hover {
  color: #fff;
}

/*------------------------------------------------
    Welcome Page
-------------------------------------------------*/
.author-image-large {
  position: absolute;
  right: 0;
  top: 0;
}
.author-image-large img {
  height: calc(100vh - 4px);
}

/*------------------------------------------------
    About Page
-------------------------------------------------*/
.about-author {
  margin-bottom: 23px;
  -moz-align-items: center;
  align-items: center;
  display: -moz-flex;
  display: flex;
}
.about-author .author-thumb {
  background-color: #fff;
  border: 5px solid #1e2530;
  margin-right: 30px;
  padding: 5px;
}
.about-author .author-thumb img {
  border: 2px solid #1e2530;
  width: 145px;
}
.about-author .author-desc p {
  color: #1e2530;
  font-family: "Open Sans", sans-serif;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.about-author .author-desc b {
  font-family: "Open Sans", sans-serif;
}

.progress {
  background-color: #1e2530;
  border-radius: 2px;
  height: auto;
  min-height: 45px;
  -moz-align-items: center;
  align-items: center;
  display: -moz-flex;
  display: flex;
}
.progress > div {
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
}
.progress .skill-name {
  border-right: 2px solid #2e333a;
  min-width: 160px;
  text-align: center;
  text-transform: uppercase;
}
.progress .skill-bar {
  background-color: #07080b;
  border-radius: 15px;
  margin: 0 15px;
  -moz-flex-grow: 1;
  flex-grow: 1;
}
.progress .bar {
  background-color: #fa6862;
  border-radius: 10px;
  height: 8px;
  width: 0;
}
.progress .skill-lavel {
  border-left: 2px solid #2e333a;
  min-width: 70px;
  text-align: center;
  -moz-align-items: flex-end;
  align-items: flex-end;
  transition: all 0.3s ease 0s;
}

.filter {
  margin-bottom: 30px;
}
.filter a {
  border-bottom: 2px solid transparent;
}
.filter .active {
  color: #fa6862;
  border-bottom-color: #fa6862;
}

.works-item {
  font-family: "Open Sans", sans-serif;
  margin-bottom: 30px;
  position: relative;
}
.works-item img {
  width: 100%;
}
.works-item .overlay {
  background-color: rgba(30, 37, 48, 0.96);
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  transition: all 0.3s ease 0s;
  transform: scale(0);
}
.works-item .overlay::before {
  border: 1px solid #fff;
  bottom: 15px;
  content: "";
  left: 15px;
  position: absolute;
  right: 15px;
  top: 15px;
}
.works-item .works-inner {
  left: 50%;
  position: absolute;
  text-align: center;
  top: 50%;
  white-space: nowrap;
  transition: all 0.3s ease 0s;
  transform: translate3d(0px, 0px, 0px) scale(0);
}
.works-item h4 {
  color: #fa6862;
  font-weight: 700;
  text-transform: uppercase;
}
.works-item p {
  color: #fff;
  font-size: 12px;
  font-weight: 400;
}
.works-item:hover .overlay {
  transform: scale(1);
}
.works-item:hover .works-inner {
  transform: translate(-50%, -50%) scale(1);
}

.history-block {
  background-color: #1e2530;
  position: relative;
}
.history-block .section-title {
  background-color: #1e2530;
  border-bottom: 1px solid #293342;
  left: 0;
  margin-bottom: 0;
  padding: 15px 34px 14px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.nicescroll-rails {
  z-index: 2;
}

.history-scroller {
  padding-top: 82px;
  max-height: 377px;
}

.history-item {
  display: table;
  font-family: "Open Sans", sans-serif;
  padding-left: 32px;
  margin-bottom: 20px;
  width: 100%;
}
.history-item > * {
  display: table-cell;
  vertical-align: middle;
}
.history-item .history-icon {
  padding-right: 25px;
  position: relative;
  width: 66px;
}
.history-item .history-icon i {
  font-size: 18px;
  position: absolute;
  top: 50%;
  left: calc(50% - 12.5px);
  transform: translate(-50%, -50%);
}
.history-item h5 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.96px;
  text-transform: uppercase;
}
.history-item span {
  color: #aaaaaa;
  font-size: 12px;
}

.history-hex {
  display: block;
  position: relative;
  width: 66px;
  height: 38.11px;
  background-color: #293342;
  margin: 19.05px 0;
}
.history-hex::before, .history-hex::after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 33px solid transparent;
  border-right: 33px solid transparent;
}
.history-hex::before {
  bottom: 100%;
  border-bottom: 19.05px solid #293342;
}
.history-hex::after {
  top: 100%;
  width: 0;
  border-top: 19.05px solid #293342;
}

.service-hex {
  float: left;
  position: relative;
  width: 20%;
  z-index: 1;
}
.service-hex svg {
  transform: scale(1.08);
  transition: all 0.4s ease 0s;
}
.service-hex .st0 {
  stroke: #1e2530;
  fill: #fff;
}
.service-hex .st1 {
  fill: #1e2530;
}
.service-hex .content {
  color: #fff;
  left: 50%;
  position: absolute;
  text-align: center;
  top: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
}
.service-hex .icon {
  font-size: 30px;
  margin-bottom: 9px;
}
.service-hex h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
}
.service-hex p {
  font-size: 14px;
  height: 0;
  line-height: 24px;
  overflow: hidden;
  transition: all 0.4s ease 0s;
}
.service-hex:hover {
  z-index: 2;
}
.service-hex:hover svg {
  transform: scale(1.5);
}
.service-hex:hover .st1 {
  fill: #fa6862;
}
.service-hex:hover .content {
  width: 135%;
}
.service-hex:hover p {
  height: 72px;
}

.testimonials .item {
  padding-top: 33px;
}
.testimonials .thumb {
  float: left;
  margin-top: -20px;
}
.testimonials .thumb img {
  width: auto;
}
@media only screen and (max-width: 991px) {
  .testimonials .thumb {
    float: none;
    margin-top: 0;
    margin: auto;
  }
}
.testimonials .text {
  border: 1px solid #cecece;
  font-size: 14px;
  font-style: italic;
  line-height: 24px;
  margin-left: 50px;
  padding: 27px 30px 29px 142px;
}
@media only screen and (max-width: 991px) {
  .testimonials .text {
    padding: 29px 30px 29px 30px;
    margin-bottom: 20px;
    text-align: center;
  }
}
.testimonials figcaption {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding-top: 15px;
  text-align: center;
}
.testimonials h4 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
}
.testimonials span {
  font-size: 12px;
}
.testimonials .slick-slide {
  margin: 0 15px;
}
.testimonials .slick-slide:focus {
  outline: 0;
}
.testimonials .slick-slide:nth-child(2n) .thumb {
  float: right;
}
@media only screen and (max-width: 991px) {
  .testimonials .slick-slide:nth-child(2n) .thumb {
    float: none;
  }
}
.testimonials .slick-slide:nth-child(2n) .text {
  margin-left: 0;
  margin-right: 50px;
  padding: 27px 142px 29px 30px;
}
@media only screen and (max-width: 991px) {
  .testimonials .slick-slide:nth-child(2n) .text {
    padding: 29px 30px 29px 30px;
    margin-right: 0;
  }
}
.testimonials .slick-dots {
  text-align: center;
}
.testimonials .slick-dots button {
  border: 2px solid #1e2530;
  border-radius: 15px;
  display: inline-block;
  height: 11px;
  margin: 0 4px;
  width: 11px;
  transition: all 0.3s ease 0s;
}
.testimonials .slick-dots button:before {
  display: none;
}
.testimonials .slick-dots .slick-active button {
  border-color: #fa6862;
}

.tm-hex {
  position: relative;
  width: 170px;
  height: 98.15px;
  margin: 49.07px 0;
  background-size: auto 182.4427px;
  background-position: center;
  border-left: solid 6px #1e2530;
  border-right: solid 6px #1e2530;
}
@media only screen and (max-width: 991px) {
  .tm-hex {
    margin: 49.07px auto;
  }
}
.tm-hex::after {
  content: "";
  position: absolute;
  top: 3.4641px;
  left: 0;
  width: 158px;
  height: 91.2213px;
  z-index: 2;
  background: inherit;
}
.tm-hex .hexTop,
.tm-hex .hexBottom {
  position: absolute;
  z-index: 1;
  width: 120.21px;
  height: 120.21px;
  overflow: hidden;
  background: inherit;
  left: 18.9px;
  transform: scaleY(0.5774) rotate(-45deg);
}
.tm-hex .hexTop::before, .tm-hex .hexTop::after,
.tm-hex .hexBottom::before,
.tm-hex .hexBottom::after {
  content: "";
  position: absolute;
  width: 158px;
  height: 91.221342532px;
  background: inherit;
  transform-origin: 0 0;
  transform: rotate(45deg) scaleY(1.7321) translateY(-45.6107px);
}
.tm-hex .hexTop {
  top: -60.1041px;
  border-top: solid 8.4853px #1e2530;
  border-right: solid 8.4853px #1e2530;
}
.tm-hex .hexTop::after {
  background-position: center top;
}
.tm-hex .hexBottom {
  bottom: -60.1041px;
  border-bottom: solid 8.4853px #1e2530;
  border-left: solid 8.4853px #1e2530;
}
.tm-hex .hexBottom::after {
  background-position: center bottom;
}

.contact-block {
  margin-bottom: 30px;
}
.contact-block:last-child {
  margin-bottom: 0;
}
.contact-block .media-left {
  font-size: 40px;
  max-width: 50px;
  min-width: 50px;
  padding-right: 0;
  text-align: center;
}
.contact-block .media-body {
  padding-left: 30px;
}
.contact-block h4 {
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 600;
}
.contact-block p {
  font-weight: 400;
  font-size: 15px;
}

.contact-social {
  list-style: outside none none;
  margin: 0;
  padding: 0;
}
.contact-social li {
  display: inline-block;
  position: relative;
  width: 43px;
}
.contact-social li a {
  color: #fff;
  display: block;
  font-size: 14px;
  height: 50px;
  left: 50%;
  line-height: 50px;
  position: absolute;
  text-align: center;
  top: 50%;
  width: 43px;
  transform: translate(-50%, -50%);
}
.contact-social li:hover span {
  background-color: #fa6862;
}
.contact-social li:hover span::before {
  border-bottom-color: #fa6862;
}
.contact-social li:hover span::after {
  border-top-color: #fa6862;
}

.contact-social-hex {
  display: block;
  position: relative;
  width: 43px;
  height: 24.83px;
  background-color: #1e2530;
  margin: 12.41px 0;
  transition: all 0.3s ease 0s;
}
.contact-social-hex::before, .contact-social-hex::after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 21.5px solid transparent;
  border-right: 21.5px solid transparent;
  transition: all 0.3s ease 0s;
}
.contact-social-hex::before {
  bottom: 100%;
  border-bottom: 12.41px solid #1e2530;
}
.contact-social-hex::after {
  top: 100%;
  width: 0;
  border-top: 12.41px solid #1e2530;
}
.contact-social-hex:hover::after {
  border-bottom-color: #fa6862;
}
.contact-social-hex:hover::before {
  border-top-color: #fa6862;
}

.contact-form .input-field {
  margin-bottom: 10px;
}
.contact-form .input-field.name {
  margin-right: 5px;
}
.contact-form .input-field.email {
  margin-left: 5px;
}
.contact-form .input-field label.error {
  color: #ff0000;
  font-size: 13px;
  margin: 0;
}
.contact-form .input-icon {
  background-color: #1e2530;
  border-radius: 3px 0 0 3px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 48px;
  min-width: 53px;
  text-align: center;
  left: 0;
  line-height: 48px;
  min-width: 53px;
  position: absolute;
  top: 0;
}
.contact-form .form-control {
  background-color: #1e2530;
  color: #bcbcbc;
  border: 0 none;
  border-radius: 3px;
  height: 48px;
  padding-left: 70px;
  width: 100%;
  font-family: "Open Sans", sans-serif;
}
.contact-form .form-control:focus {
  box-shadow: none;
  color: #fff;
}
.contact-form textarea.form-control {
  border-radius: 3px;
  height: 120px;
  padding: 15px 10px 15px 70px;
}
.contact-form .message .input-icon {
  position: absolute;
  left: 0;
  top: 0;
}

.msg-success,
.msg-failed {
  display: none;
  margin-top: 15px;
}

.msg-success {
  color: #fa6862;
}

.pt-table.desktop-768 .pt-tablecell {
  padding-bottom: 110px;
  padding-top: 60px;
}
.pt-table.desktop-768 .pt-tablecell .page-nav {
  bottom: 40px;
}

/* =================================== */
/*  Color Switcher
/* =================================== */
.preview-wrapper {
  background-color: #fff;
  border: 1px solid #ddd;
  border-right: 0;
  color: #333;
  height: 150px;
  right: 0px;
  position: fixed;
  top: 100px;
  width: 260px;
  z-index: 1200;
  transition: all 0.4s ease-in-out 0s;
  transform: translateX(100%);
}

.preview-wrapper.extend {
  transform: translateX(0px);
}

.switcher-head {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  height: 46px;
  line-height: 46px;
  position: relative;
}

.switcher-head span {
  border-bottom: 2px solid #eeeeee;
  display: block;
  margin: 0 20px;
}

.switcher-trigger {
  /* hide the trigger since the switcher should not be toggled manually */
  display: none;
}

.switcher-body {
  background-color: #fff;
  height: calc(100% - 50px);
  left: 0;
  padding: 20px;
  position: fixed;
  right: 0;
  top: 47px;
  outline: none;
}

.switcher-body h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.switcher-body select {
  border: 1px solid #e5e5e5;
  height: 40px;
  margin-bottom: 20px;
  width: 100%;
  -webklit--appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
          appearance: none;
}

.color-options {
  margin-bottom: 10px;
  padding: 0;
}

.color-options li {
  display: inline-block;
  /* unified blue swatches */
  background-color: #02b7ce;
  height: 30px;
  margin-bottom: 10px;
  margin-right: 6px;
  text-indent: -9999em;
  width: 30px;
  cursor: pointer;
}

.color-options li.c0 {
  background-color: #02b7ce;
}

.color-options li.c1 {
  background-color: #02b7ce;
}

.color-options li.c2 {
  background-color: #02b7ce;
}

.color-options li.c3 {
  background-color: #02b7ce;
}

.pattern-options li {
  font-family: "Roboto", sans-serif;
  border: 1px solid #cccccc;
  cursor: pointer;
  float: left;
  height: 40px;
  margin: 0 10px 10px 0;
  text-transform: capitalize;
  width: 50px;
}

.pattern-options li:last-child {
  border: 0 none;
  height: auto;
  padding-top: 8px;
  width: auto;
}

.pattern-options li img {
  width: 100%;
  height: 100%;
}

/*------------------------------------------------
	Responsive Media Queries
-------------------------------------------------*/
/*============================================================
	Macbook pro 13 inch
==============================================================*/
/*============================================================
	For Small Desktop / tablet landscape
==============================================================*/
@media (min-width: 980px) and (max-width: 1150px) {
  .author-image-large img {
    height: calc(80vh - 4px);
  }
}
/*============================================================
	Tablet (Portrait) Design for a width of 768px
==============================================================*/
@media (min-width: 768px) and (max-width: 979px) {
  body {
    overflow-x: hidden;
  }
  .page-title h2 {
    font-size: 40px;
  }
  .page-title .title-bg {
    font-size: 26px;
  }
  .author-image-large {
    position: static;
    margin-bottom: 50px;
  }
  .author-image-large img {
    display: block;
    height: auto;
    margin: 0 auto;
    width: 50%;
  }
  .about-author + p {
    margin-bottom: 50px;
  }
  .service-hex {
    width: 33.3333%;
  }
  .service-hex:hover {
    z-index: 2;
  }
  .service-hex:hover svg {
    transform: scale(1.5);
  }
  .service-hex:hover .content {
    width: 105%;
  }
  .service-hex:nth-child(4), .service-hex:nth-child(5) {
    transform: translate(50%, -15%);
  }
  .testimonials .item {
    padding-top: 45px;
  }
  .testimonials .thumb {
    margin-top: -45px;
  }
  .history-item .history-text {
    padding-right: 15px;
  }
  .page-nav {
    bottom: auto;
  }
  .page-nav .flex {
    display: block;
    text-align: center;
  }
  .page-nav .flex span {
    display: block;
    margin: 20px 0;
  }
}
/*============================================================
	Mobile (Portrait) Design for a width of 320px
==============================================================*/
@media only screen and (max-width: 767px) {
  body {
    overflow-x: hidden;
  }
  .pt-table {
    height: auto;
  }
  .pt-table,
.pt-tablecell {
    display: block;
  }
  .page-title {
    margin-bottom: 45px;
  }
  .page-title h2 {
    font-size: 35px;
  }
  .page-title .title-bg {
    font-size: 26px;
  }
  .hexagon-item {
    float: none;
    margin: 0 auto 50px;
  }
  .hexagon-item:first-child {
    margin-left: auto;
  }
  .page-home .hexagon-item:nth-last-child(1),
.page-home .hexagon-item:nth-last-child(2),
.page-home .hexagon-item:nth-last-child(3) {
    transform: rotate(30deg) translate(0px, 0px);
  }
  .author-image-large {
    position: static;
    margin-bottom: 50px;
  }
  .author-image-large img {
    display: block;
    height: auto;
    margin: 0 auto;
    width: 50%;
  }
  .about-author {
    display: block;
  }
  .about-author .author-thumb {
    border: 0 none;
    margin-bottom: 15px;
    margin-right: 0;
    padding: 0;
  }
  .about-author .author-desc b {
    display: block;
  }
  .about-author + p {
    margin-bottom: 50px;
  }
  .progress {
    display: block;
  }
  .progress .skill-name {
    border-right: 0;
    margin: 0 15px;
    min-width: auto;
    text-align: left;
  }
  .progress .skill-lavel {
    border-left: 0;
    margin: 0 15px;
    min-width: auto;
    text-align: left;
  }
  .service-hex {
    float: none;
    margin: 0 auto 40px;
    width: 60%;
  }
  .service-hex:last-child {
    margin-bottom: 0;
  }
  .service-hex:hover svg {
    transform: scale(1.8);
  }
  .service-hex:hover .content {
    width: 120%;
  }
  .history-block {
    margin-bottom: 30px;
  }
  .contact-form .input-field.name {
    margin-right: 0;
  }
  .page-nav {
    bottom: auto;
  }
  .page-nav .flex {
    display: block;
    text-align: center;
  }
  .page-nav .flex span {
    display: block;
    margin: 20px 0;
  }
}
/* Left column (welcome) paragraphs: reduce font-size by 2px on medium+ screens */
@media (min-width: 768px) {
  .page-welcome .col-md-6 p,
  .page-welcome .col-md-6 .justify-right p {
    /* keep these in line with the global body size */
    font-size: 18px;
    /* using text-indent in the global p rule; remove extra padding here */
    padding-left: 0;
  }
}
.dark {
  background-color: #0c0f15;
}
.dark .page-home .overlay {
  background-color: rgba(14, 17, 24, 0.97);
}
.dark .page-title h2 {
  color: #ffffff;
}
.dark .page-title .title-bg {
  color: rgba(70, 88, 124, 0.06);
}
.dark .section-title h3::before {
  background-color: #fff;
}
.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6,
.dark .about-author .author-desc p {
  color: #fff;
}
.dark .switcher-body h4 {
  color: #0c0f15;
}
.dark .service-hex .st0 {
  fill: transparent;
}
.dark .service-hex:hover .st0 {
  fill: #fff;
}
.dark .testimonials .text,
.dark .btn-border {
  border-color: #1e2530;
}

/* Utility: full-bleed section with justified text */
.full-width-justify {
  /* make the element span the full viewport width while staying in flow */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;

  /* spacing and readable measure */
  padding: 24px 40px;
  max-width: 100%;

  /* text justification */
  text-align: justify;
  text-justify: inter-ideograph; /* better justification for CJK */
}

/* keep last line left-aligned for better readability */
.full-width-justify p:last-child {
  text-align: left;
}

/* Floating/bubble animation for a line of text (keeps element in flow; uses transform only) */
.bubble-wrap {
  display: inline-block; /* keep in flow and allow transform */
}
.bubble {
  display: inline-block;
  will-change: transform, opacity;
  animation: floatBubble 4s ease-in-out infinite;
  /* slightly smoother motion */
}
.bubble.slow {
  animation-duration: 9s;
}
.bubble.fast {
  animation-duration: 4.5s;
}

@keyframes floatBubble {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  25% {
    transform: translate(-20px, -12px) scale(1.02);
    opacity: 0.96;
  }
  50% {
    transform: translate(24px, -24px) scale(1.06);
    opacity: 0.92;
  }
  75% {
    transform: translate(-16px, 16px) scale(1.02);
    opacity: 0.96;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

/* Top floating overlay area: sits above page content but below nav/important UI */
.page-home {
  position: relative;
}
.float-area {
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  width: 100%;
  height: auto;
  pointer-events: none;
  overflow: visible;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.float-area .float-clone {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  animation: none !important;
  white-space: pre-line;
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.25);
  will-change: auto;
  pointer-events: none;
  text-align: center;
  margin: 0 auto;
}
.float-area .float-clone {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  white-space: pre-line;
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.25);
  will-change: transform, opacity;
  pointer-events: none;
  text-align: center;
  margin: 0 auto;
}


/* Utility: justify text so both left and right edges align while keeping element position */
.justify-right {
  text-align: justify;
  text-align-last: justify;
  -moz-text-align-last: justify;
  text-justify: inter-ideograph; /* improve justification for CJK text */
}

/* About page: timeline and research areas styling */
.about-clean {
  padding: 1px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Ensure the bubble text (home page) is centered and uses block layout for consistent wrapping */
.page-title.home { text-align: center; }
.page-title.home .bubble-wrap { display: block; text-align: center; }
.page-title.home .bubble { display: inline-block; text-align: center; }
/* Make the about page content sit toward the top instead of vertically centered */
.pt-tablecell.page-about {
  vertical-align: top;
  padding-top: 0; /* we keep the visible gap close to 10px using .about-clean padding */
}

/* Tighten spacing for About page: bring the page-title closer to the about content */
.pt-tablecell.page-about .page-title {
  margin-bottom: 12px; /* reduce the large 75px default only on about page */
}
.pt-tablecell.page-about .page-title h2 {
  margin-bottom: 6px; /* slightly reduce spacing below the H2 */
}
.pt-tablecell.page-about .about-clean .section-sub {
  margin-top: 10px; /* pull the section label closer to the title */
  margin-bottom: 6px;
}
.pt-tablecell.page-papers {
  vertical-align: top;
  padding-top: 6px; /* small breathing room above table */
}

/* Tighten spacing for Projects (page-papers): bring page-title closer to the table */
.pt-tablecell.page-papers .page-title {
  margin-bottom: 12px; /* much smaller than the default 75px */
}
.pt-tablecell.page-papers .page-title h2 {
  margin-bottom: 6px;
}
.pt-tablecell.page-papers .page-title + .row {
  margin-top: 6px;
}
.about-clean h2 {
  font-size: 36px;
  margin-bottom: 18px;
  text-align: center;
}
/* Equipment images: make them match the text/content width and be responsive */
.about-clean .equipment-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 14px 0; /* small vertical breathing room */
}

/* Projects table styling */
.projects-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Microsoft Yahei", "Open Sans", Arial, sans-serif;
}
.projects-table thead th {
  background: #f5f7fa;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.08);
  font-weight: 600;
}
.projects-table tbody td {
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
}
.projects-table tbody tr:nth-child(odd) {
  background: rgba(30,37,48,0.02);
}
.table-responsive { overflow-x: auto; }

@media (max-width: 600px) {
  .projects-table thead { display: none; }
  .projects-table tbody td { display: block; width: 100%; box-sizing: border-box; }
  .projects-table tbody td:before { content: attr(data-label); font-weight: 600; display: inline-block; width: 40%; }
  .projects-table tbody tr { margin-bottom: 12px; display: block; border: 1px solid rgba(0,0,0,0.06); }
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 30px 0 40px;
  border-left: 3px solid rgba(30,37,48,0.08);
}
.timeline li {
  position: relative;
  padding: 12px 20px 12px 36px;
  margin-bottom: 18px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 18px;
  width: 16px;
  height: 16px;
  background: #fa6862;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(250,104,98,0.06);
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 28px;
  margin-top: 10px;
}
.research-grid li {
  background: rgba(255,255,255,0.02);
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  font-size: 18px; /* match timeline / body text size */
}
.about-clean .section-sub {
  color: #1e2530;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 22px; /* increased by 4px from base 18px */
}

/* Avoid excessive spacing for inline elements */
.justify-right a, .justify-right strong, .justify-right em {
  display: inline-block;
}

/* Site-wide: force all body paragraph text to 14px for consistency */
/* This targets common paragraph/text selectors and uses !important to override previous rules */
body, p, .page-title p, .page-welcome p, .page-welcome .justify-right p, .page-welcome .col-md-6 p, .page-welcome .col-md-6 .justify-right p, .contact-block p, .testimonials .text, .works-item p, .about-author .author-desc p, .history-item span {
  /* Force a consistent, site-wide body text size and line-height */
  font-size: 18px !important;
  line-height: 24px !important;
}

/* End of overrides */

/* ------------------------------------------------
   Fixed bottom page-nav and mobile floating buttons
   (site-wide shared styles moved from inline in papers.html)
--------------------------------------------------*/
.page-nav.fixed-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.80);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  padding: 6px 0;
  backdrop-filter: blur(4px);
}
.site-wrapper {
  padding-bottom: 0;
  border-top: none;
}
.page-nav.fixed-bottom .container { display: flex; align-items: center; justify-content: space-between; position: relative; width:100%; max-width:none !important; margin:0; padding-left:0; padding-right:0; box-sizing:border-box; }
.page-nav.fixed-bottom .link { color: inherit; }
.page-nav.fixed-bottom .prev-page,
.page-nav.fixed-bottom .next-page {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.page-nav.fixed-bottom .prev-page { left: 8px; }
.page-nav.fixed-bottom .next-page { right: 8px; }
.page-nav.fixed-bottom .container .copyright { display: block; margin: 0 auto; text-align: center; }

/* Ensure the inner flex wrapper and the prev/next elements align consistently across pages.
   Some pages include an extra .flex wrapper; force that wrapper to use full-width flexbox
   and let prev/next participate in the normal flow instead of absolute positioning. */
.page-nav.fixed-bottom .container .flex {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.page-nav.fixed-bottom .prev-page,
.page-nav.fixed-bottom .next-page {
  position: static !important;
  top: auto !important;
  transform: none !important;
}
.page-nav.fixed-bottom .container .copyright {
  margin: 0 auto;
}

/* Remove container default horizontal padding so prev/next can sit flush to viewport edges
   while keeping a tiny touch-safe inner padding on the link itself. */
.page-nav.fixed-bottom .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.page-nav.fixed-bottom .prev-page a,
.page-nav.fixed-bottom .next-page a {
  display: inline-block;
  padding: 0; /* flush to the container edges as requested */
}

.floating-nav-mobile { display: none; }
@media (max-width: 767px) {
  .page-nav.fixed-bottom { display: none; }
  .floating-nav-mobile { display: block; pointer-events: none; }
  .floating-nav-mobile .nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.56);
    color: #fff;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    touch-action: manipulation;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  }
  .floating-nav-mobile .nav-btn.prev { left: 14px; }
  .floating-nav-mobile .nav-btn.next { right: 14px; }
  .floating-nav-mobile .nav-btn i { font-size: 22px; line-height: 1; }
  .floating-nav-mobile .nav-btn:active,
  .floating-nav-mobile .nav-btn:focus {
    transform: translateY(-50%) scale(0.94);
    box-shadow: 0 6px 16px rgba(0,0,0,0.32);
    background: rgba(0,0,0,0.72);
    outline: none;
  }
  .floating-nav-mobile .nav-btn:focus-visible {
    box-shadow: 0 6px 18px rgba(0,0,0,0.36), 0 0 0 3px rgba(0,123,255,0.12);
  }
}

/* ----------------------------------------------------------------- */
/* Home page (index) specific footer styling                         */
/* Keep the affiliation text but style it to match the index motif:   */
/* serif, slightly italic, softly boxed and centered; hide prev/next  */
/* to keep the home view minimal and consistent with the banner.     */
/* ----------------------------------------------------------------- */
.page-home .page-nav.fixed-bottom {
  background: transparent; /* let the page banner show through */
  box-shadow: none;
  padding: 0 8px 18px; /* small bottom spacing for breathing room */
  bottom: 18px; /* lift slightly above edges to match home spacing */
}
.page-home .page-nav.fixed-bottom .container {
  max-width: 980px; /* constrain width to main content rhythm */
  margin: 0 auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.page-home .page-nav.fixed-bottom .container .flex {
  justify-content: center;
}
.page-home .page-nav.fixed-bottom .prev-page,
.page-home .page-nav.fixed-bottom .next-page {
  display: none; /* simplify home footer */
}
.page-home .page-nav.fixed-bottom .copyright {
  display: inline-block;
  font-family: "Libre Baskerville", serif;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(30,37,48,0.68);
  text-transform: none;
  font-style: italic;
  letter-spacing: 0.2px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(11,102,163,0.05);
}

/* hide the floating mobile nav on the home page so only the affiliation remains */
.page-home .floating-nav-mobile { display: none !important; }
.page-home .page-nav.fixed-bottom { background: transparent !important; box-shadow: none !important; }

/* Soften and harmonize Prev / Copyright / Next appearance across viewports */
.page-nav.fixed-bottom .prev-page a.link,
.page-nav.fixed-bottom .next-page a.link {
  color: rgba(30,37,48,0.6);
  opacity: 0.92;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}
.page-nav.fixed-bottom .prev-page a.link:hover,
.page-nav.fixed-bottom .next-page a.link:hover {
  color: rgba(30,37,48,1);
  opacity: 1;
  transform: translateY(-2px);
}

/* Slightly more translucent home affiliation by default so it doesn't feel harsh on the banner */
.page-home .page-nav.fixed-bottom .copyright {
  color: rgba(30,37,48,0.4);
  background: rgba(255,255,255,0.5);
  transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.page-home .page-nav.fixed-bottom .copyright:hover {
  color: rgba(30,37,48,0.96);
  background: rgba(255,255,255,0.94);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11,102,163,0.06);
}

/* Mobile floating nav: keep icons slightly muted until hover/focus */
.floating-nav-mobile .nav-btn { opacity: 0.92; transition: opacity .12s ease, transform .12s ease; }
.floating-nav-mobile .nav-btn:hover, .floating-nav-mobile .nav-btn:focus { opacity: 1; transform: translateY(-3px); }

/* =========================
   Dark theme contrast tweaks
   Ensure footer items remain legible on dark backgrounds
   ========================= */
.dark .page-home .page-nav.fixed-bottom {
  /* keep transparent feel but ensure contrast via darker translucent box behind the signature */
  background: transparent; /* allow banner to show through */
}
.dark .page-home .page-nav.fixed-bottom .copyright {
  color: rgba(255,255,255,0.92);       /* bright text for legibility */
  background: rgba(6,10,15,0.55);      /* darker translucent backing for contrast */
  box-shadow: 0 8px 24px rgba(0,0,0,0.48);
}
.dark .page-home .page-nav.fixed-bottom .copyright:hover {
  color: rgba(255,255,255,0.98);
  background: rgba(6,10,15,0.68);
  box-shadow: 0 12px 38px rgba(0,0,0,0.56);
}

/* Footer prev/next links in dark theme: softer by default, clearer on hover */
.dark .page-nav.fixed-bottom .prev-page a.link,
.dark .page-nav.fixed-bottom .next-page a.link {
  color: rgba(255,255,255,0.72);
  opacity: 0.94;
}
.dark .page-nav.fixed-bottom .prev-page a.link:hover,
.dark .page-nav.fixed-bottom .next-page a.link:hover {
  color: rgba(255,255,255,1);
  opacity: 1;
}

/* Mobile floating nav adaptation for dark: lighter translucent circles */
.dark .floating-nav-mobile .nav-btn {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.96);
  box-shadow: 0 6px 18px rgba(0,0,0,0.48);
}
.dark .floating-nav-mobile .nav-btn:focus,
.dark .floating-nav-mobile .nav-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

/* Projects table: center the '岗位' column content (third column) */
.table-responsive .projects-table th:nth-child(3),
.table-responsive .projects-table td:nth-child(3),
.projects-table td[data-label="岗位"] {
  display: table-cell;
  text-align: center !important;    /* force horizontal centering */
  vertical-align: middle !important; /* force vertical centering */
  text-indent: 0 !important;        /* remove any paragraph indent inside cells */
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Also center the first column ('起止时间') to match header alignment */
.table-responsive .projects-table th:nth-child(1),
.table-responsive .projects-table td:nth-child(1),
.projects-table td[data-label="起止时间"] {
  display: table-cell;
  text-align: center !important;
  vertical-align: middle !important;
  text-indent: 0 !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

@media (max-width: 520px) {
  .projects-table td[data-label="起止时间"],
  .projects-table td:nth-child(1) {
    text-align: center !important;
  }
}


/*# sourceMappingURL=style.css.map */

/* -------------------------------------------------
   Page-specific overrides
   Bump font sizes on the Papers page by +2px without
   editing inline styles. Uses attribute selectors to
   target inline 'font-size:16px' and 'font-size:14px'.
   This is intentionally scoped to `.page-papers` and
   uses !important to override inline declarations.
   -------------------------------------------------*/
.page-papers [style*="font-size:16px"] {
  font-size: 18px !important;
}
.page-papers [style*="font-size:14px"] {
  font-size: 16px !important;
}
/* Ensure paragraph text without explicit inline sizes is slightly larger too */
.page-papers p {
  font-size: 20px; /* most paragraphs in this page were 18px body / 16px inline; 20px gives a visible +2px increase */
}
.page-papers .paper-title-link {
  text-decoration: underline;
  color: inherit;
}

/* Improved layout & typography for the Papers page */
.page-papers .container {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.page-papers {
  background: #ffffff; /* keep clean white background for the list */
  padding: 36px 18px 80px;
}
.page-papers p { /* override global paragraph indentation and justification for readability */
  text-indent: 0 !important;
  text-align: left !important;
  color: #333333;
  line-height: 1.6;
}
.page-papers .paper-entry { /* title paragraph wrapper added by JS */
  margin-top: 18px;
  margin-bottom: 6px;
}
.page-papers .paper-entry .paper-title-link {
  display: block;
  font-weight: 700;
  font-size: 1.08em;
  color: #222222;
}
.page-papers .paper-entry + p { /* the following paragraph(s) (authors/journal) */
  margin-top: 6px;
  margin-bottom: 10px;
  font-style: normal;
  color: #555555;
}
.page-papers p img { vertical-align: middle; margin-right: 6px; }
.page-papers a.paper-title-link:hover { color: #fa6862; }
.page-papers .MsoNormal { margin: 0 0 8px 0; }

/* Small screen adjustments */
@media (max-width: 767px) {
  .page-papers .container { padding-left: 8px; padding-right: 8px; }
  .page-papers .paper-entry .paper-title-link { font-size: 1.03em; }
  .page-papers p { font-size: 17px; }
}

/* Force index (home) page on small screens to use the same banner/layout as desktop
   This reverses previous mobile-only tweaks for the index page so the visual
   appearance matches the normal (desktop) presentation. */
@media only screen and (max-width: 767px) {
  body.page-index .pt-table {
    display: table !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.page-index .pt-tablecell.page-home {
    display: table-cell !important;
    vertical-align: top !important;
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 0 !important;
  }
  body.page-index .page-home {
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
  }
  body.page-index .page-home .overlay { display: block; }

/* Centralized banner background for index page
   Keeps the background image in CSS (single source of truth) and ensures
   consistent desktop/mobile rendering. This rule is intentionally specific
   and placed at the end of the stylesheet so it overrides earlier declarations. */
body.page-index .pt-tablecell.page-home,
body.page-index .page-home {
  background-image: url('../images/banner.jpg') !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* Desktop-specific banner overlay and contrast
   Ensure desktop background/overlay color, opacity and contrast match mobile. */
@media only screen and (min-width: 768px) {
  body.page-index .pt-tablecell.page-home,
  body.page-index .page-home {
    /* same banner image (already set) but ensure no additional tinting */
    background-blend-mode: normal !important;
  }
  /* Overlay layer: make sure overlay uses the same RGBA used on mobile for contrast */
  body.page-index .page-home .overlay {
    position: absolute !important;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(6,10,15,0.55) !important; /* matches mobile translucent backing */
    mix-blend-mode: normal !important;
    pointer-events: none !important;
  }
}

/* Strong override for the index overlay so banner image is visible everywhere
   This applies to the index page regardless of viewport and overrides earlier
   .page-home .overlay declarations that might be opaque. */
body.page-index .page-home .overlay {
  background: rgba(6,10,15,0.55) !important;
}
}
