@import url(autumn.css);
@import url("pygment_highlights.css");

/* --- General --- */

:root {
  --font-sans: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-condensed: "Roboto Condensed", "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-slab: "Roboto Slab", "Roboto", "Times New Roman", serif;
  --font-hand: "Caveat", "Roboto", "Times New Roman", serif;
  --card-bg: rgba(240, 240, 240, 0.3);
  --card-border: rgba(225, 228, 232, 0.35);
  --card-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

html {
  background-color: #cfd8e3;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: #404040;
  position: relative;
  background: #FFF;
}
p {
  line-height: 1.5;
  margin: 10px 0;
}
p a {
  /* text-decoration: underline */
  color: #008AFF;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-slab);
  font-weight: 800;
}
.container[role="main"] h1 {
  font-size: 26px;
}
.container[role="main"] h2 {
  font-size: 22px;
}
.container[role="main"] h3 {
  font-size: 19px;
}
.container[role="main"] h4 {
  font-size: 16px;
}
.container[role="main"] h2,
.container[role="main"] h3,
.container[role="main"] h4 {
  text-align: center;
}
.container[role="main"] h2 {
  margin-top: 18px;
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 8px;
}
.section-divider {
  margin: 12px auto;
  max-width: 200px;
  border-color: rgba(0, 0, 0, 0.15);
}
a {
  color: #008AFF;
}
a:hover,
a:focus {
  color: #0085a1;
}
li.spaced{
  margin: 10px 0;
}
blockquote {
  color: #808080;
  font-style: italic;
}
blockquote p:first-child {
  margin-top: 0;
}
hr.small {
  max-width: 100px;
  margin: 15px auto;
  border-width: 4px;
  border-color: inherit;
  border-radius: 3px;
}

.main-content {
  padding-top: 60px;
}
@media only screen and (min-width: 768px) {
  .main-content {
    padding-top: 90px;
  }
}

.bio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  text-align: justify;
  font-size: 0.9em;
  line-height: 1.5;
}
.contact-card {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75em;
  padding: 5px 8px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 2fr);
  align-items: start;
  gap: 8px 12px;
}
.contact-card .contact-label {
  font-weight: 700;
}
.contact-card .contact-details {
  line-height: 1.35;
  font-size: 0.85em;
}
.contact-card .contact-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-card .contact-right {
  display: flex;
  flex-direction: column;
}
.bio-card p {
  margin: 0 0 12px;
}
.bio-card p:last-child {
  margin-bottom: 0;
}

.content-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  font-size: 0.9em;
  line-height: 1.5;
}
.content-card:last-child {
  margin-bottom: 0;
}
.content-card p {
  margin: 8px 0;
}
.content-card h3 {
  margin-top: 0;
}
.content-card .btn {
  margin: 6px 6px 0 0;
}
.link-pair {
  margin: 8px 0 0;
  text-align: center;
}
.link-pair a {
  display: inline;
  font-weight: 600;
}
.link-pair a + a::before {
  content: " | ";
  color: #6a6a6a;
  font-weight: 400;
}
.teaching-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.teaching-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.teaching-row.teaching-row-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.teaching-list .teaching-card {
  padding: 7px 9px;
  margin: 0;
  font-size: 0.78em;
  line-height: 1.3;
}
.teaching-list .teaching-card p {
  margin: 2px 0;
}
.teaching-list .teaching-past-title {
  margin: 6px 0 2px;
  font-size: 1em;
  line-height: 1.3;
  text-align: center;
}
.teaching-list .teaching-course-title {
  margin: 0 0 3px;
  font-size: 1em;
  line-height: 1.3;
  text-align: left;
}
.teaching-list .teaching-course-title-current {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.teaching-list .teaching-guide-inline {
  font-size: 0.92em;
  font-weight: 400;
  white-space: nowrap;
}
.teaching-list .teaching-calendar-label {
  margin-top: 4px;
}
.teaching-list .teaching-calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 2px 0 3px;
  font-size: 0.9em;
}
.teaching-list .teaching-calendar th,
.teaching-list .teaching-calendar td {
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 2px 3px;
  text-align: center;
  vertical-align: middle;
}
.teaching-list .teaching-calendar th {
  background: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}
.teaching-list .teaching-calendar .teaching-slot-active {
  background: rgba(0, 138, 255, 0.18);
  font-weight: 700;
}
.teaching-list .teaching-card .btn {
  margin-top: 4px;
  padding: 3px 8px;
  font-size: 0.92em;
}
@media only screen and (max-width: 767px) {
  .teaching-row.teaching-row-two {
    grid-template-columns: 1fr;
  }
}
.talk-card {
  position: relative;
  padding-top: 28px;
}
.talk-card .talk-date {
  position: absolute;
  top: -10px;
  right: 12px;
  font-size: 0.9em;
  font-family: var(--font-hand);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.85));
  color: #2b2b2b;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  transform: rotate(2deg);
}
.talks-grid .talks-column:first-child .talk-date {
  left: 12px;
  right: auto;
  transform: rotate(-2deg);
}
.talks-grid .talks-column:last-child .talk-date {
  right: 12px;
  left: auto;
  transform: rotate(2deg);
}
.talk-card .talk-title {
  display: block;
  text-align: center;
}

.update-card {
  font-size: 0.9em;
  line-height: 1.5;
}

.page-note {
  font-size: 0.85em;
  margin: 8px 0 10px;
}

.location-page {
  position: relative;
  min-height: 100vh;
  padding: 0;
}
.location-map-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.location-map-canvas iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.location-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 24, 38, 0.32), rgba(14, 24, 38, 0.18));
  pointer-events: none;
  z-index: 1;
}
.location-address-card {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px));
  background: rgba(20, 33, 49, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  color: #F5FAFF;
  text-align: center;
  z-index: 2;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-size: 0.84em;
  line-height: 1.35;
  cursor: pointer;
}
.location-address-card .contact-label {
  display: block;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.location-address-card .location-instruction {
  display: block;
  margin-bottom: 5px;
  font-size: 0.92em;
}

.contact-email-wrap {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 16px 24px;
  position: relative;
  z-index: 1;
}
.contact-email-card {
  width: min(560px, 100%);
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(10, 18, 30, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.contact-email-card p {
  margin: 6px 0;
}
.contact-email-card .contact-email-label {
  margin-bottom: 8px;
}
.contact-email-card .contact-email-text {
  font-size: 1.05em;
  margin: 0;
}

.page-transition {
  transition: transform 0.32s ease, opacity 0.32s ease;
  will-change: transform, opacity;
}
body.is-transitioning .page-transition {
  pointer-events: none;
}
body.nav-right .page-transition.is-leaving {
  transform: translateX(-8%);
  opacity: 0;
}
body.nav-left .page-transition.is-leaving {
  transform: translateX(8%);
  opacity: 0;
}
body.nav-right .page-transition.is-entering {
  transform: translateX(8%);
  opacity: 0;
}
body.nav-left .page-transition.is-entering {
  transform: translateX(-8%);
  opacity: 0;
}
.page-transition.is-entering-active {
  transform: translateX(0);
  opacity: 1;
}
.code-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  font-size: 0.9em;
}
.content-card.code-card h3 {
  font-size: 1em;
  line-height: 1.4;
  margin: 0 0 6px;
}
.code-card p {
  font-size: 1em;
  line-height: 1.5;
  margin: 6px 0;
}
.code-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.code-links.link-pair {
  display: block;
}
.code-links .btn {
  margin: 0;
}
.code-card .code-links a,
.code-card .code-links .btn,
.code-card .code-links a.btn {
  font-weight: 700 !important;
}
.code-card .card-media {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 340px;
}
.code-card .card-media-link {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}
.code-card .card-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  background: rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center bottom;
}
.code-card .card-media-link:hover img,
.code-card .card-media-link:focus img {
  transform: translateY(6px) scale(1.18);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
}
.code-card .card-media-link:hover,
.code-card .card-media-link:focus {
  z-index: 3;
}
@media only screen and (max-width: 767px) {
  .code-card {
    align-items: stretch;
  }
  .code-card .card-media {
    max-width: 360px;
    margin: 0 auto;
  }
}

.slides-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0 24px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 24px;
  justify-content: center;
}
.slide-preview {
  width: 200px;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.slide-frame {
  width: 100%;
  aspect-ratio: var(--frame-ratio, 16 / 9);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.slide-preview:hover .slide-frame,
.slide-preview:focus .slide-frame {
  transform: scale(1.45);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}
.slide-preview:hover,
.slide-preview:focus {
  z-index: 2;
}
.slide-frame embed,
.slide-frame iframe,
.slide-frame object {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}
.slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(255, 255, 255, 0.6);
}
.slide-frame.preview-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(232,240,248,0.95));
  color: #2f3640;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.slide-frame.preview-missing::before {
  content: attr(data-label);
}
.slide-preview.poster .slide-frame img {
  object-fit: fill;
}

.papers-page .content-card {
  padding: 10px 12px;
  margin-bottom: 0;
  font-size: 0.9em;
  line-height: 1.5;
}
.papers-page .content-card h3 {
  margin: 0 0 6px;
  font-size: 1em;
  line-height: 1.4;
}
.papers-page .content-card p {
  margin: 6px 0;
}
.papers-page .content-card .btn {
  margin-top: 4px;
  padding: 3px 8px;
  font-size: 0.92em;
}
.section-subtitle {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}
.section-subtitle.section-title,
.section-title.section-subtitle {
  font-size: 18px;
}

.papers-page {
  width: 100%;
}
.papers-page .papers-grid {
  width: 100%;
}

.code-grid,
.papers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.code-column,
.papers-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.papers-page .papers-column {
  gap: 6px;
}
.papers-page .papers-thesis-section {
  margin-top: 18px;
}
.papers-page .papers-thesis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
.papers-page .papers-thesis-grid .content-card {
  margin: 0;
  height: 100%;
}
.papers-page .papers-thesis-grid .papers-thesis-card-full {
  grid-column: 1 / -1;
}
.talks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  position: relative;
  width: 100%;
  margin: 0 auto 24px;
}
.talks-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media only screen and (min-width: 992px) {
  .code-grid::before,
  .papers-grid::before,
  .talks-grid::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(
      to bottom,
      rgba(74, 93, 112, 0) 0%,
      rgba(74, 93, 112, 0.5) 10%,
      rgba(74, 93, 112, 0.72) 50%,
      rgba(74, 93, 112, 0.5) 90%,
      rgba(74, 93, 112, 0) 100%
    );
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.28),
      0 0 10px rgba(53, 70, 86, 0.35);
    pointer-events: none;
  }
}
@media only screen and (max-width: 991px) {
  .code-grid,
  .papers-grid,
  .talks-grid {
    grid-template-columns: 1fr;
  }
  .papers-page .papers-thesis-grid {
    grid-template-columns: 1fr;
  }
}
@media only screen and (max-width: 600px) {
  .slides-strip {
    justify-content: center;
  }
  .slide-preview {
    width: 160px;
  }
}

.main-explain-area {
  font-family: var(--font-sans);
  padding: 15px inherit;
}

.hideme {
  display: none;
}

::-moz-selection {
  color: white;
  text-shadow: none;
  background: #0085a1;
}
::selection {
  color: white;
  text-shadow: none;
  background: #0085a1;
}
img::selection {
  color: white;
  background: transparent;
}
img::-moz-selection {
  color: white;
  background: transparent;
}

img {
  max-width: 100%;
}

.disqus-comments {
  margin-top: 30px;
}

@media only screen and (min-width: 768px) {
  .disqus-comments {
    margin-top: 40px;
  }
}

/* --- Navbar --- */

.navbar-custom {
  background: #6C8EAD;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-condensed);
  transition: background-color 0.55s ease, border-color 0.55s ease;
}

.navbar-custom .navbar-nav > li > a {
  text-transform: uppercase;
  font-size: clamp(10px, 0.95vw, 13px);
  letter-spacing: 1.3px;
  padding: clamp(5px, 0.7vw, 9px) clamp(9px, 1.4vw, 16px);
  margin: 6px 0;
  min-width: clamp(68px, 6.5vw, 104px);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav > li > a {
  font-weight: 800;
  color: #F7FAFF;
}

.navbar-custom .navbar-header,
.navbar-custom .navbar-nav {
  position: relative;
  z-index: 2;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus ,
.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.25);
}

.navbar-custom .navbar-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0 12px;
  flex-wrap: wrap;
  row-gap: 8px;
}
.navbar-custom .navbar-social a {
  color: #F7FAFF;
  background: rgba(255, 255, 255, 0.18);
  width: clamp(30px, 3vw, 40px);
  height: clamp(30px, 3vw, 40px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 1.5vw, 18px);
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.navbar-custom .navbar-social a[data-location-link] {
  margin-left: 10px;
}
.navbar-custom .navbar-social a:hover,
.navbar-custom .navbar-social a:focus {
  background: rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  transform: translateY(-1px);
}
.navbar-custom .navbar-social .ai {
  font-size: 18px;
}

.navbar-custom .container-fluid {
  position: relative;
}
.navbar-custom .navbar-location-home {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%) translateY(-16px) scale(0.88);
  width: clamp(30px, 3vw, 40px);
  height: clamp(30px, 3vw, 40px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #F7FAFF;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
  z-index: 3;
}
.navbar-custom .navbar-location-home:hover,
.navbar-custom .navbar-location-home:focus {
  background: rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
}
.navbar-custom .navbar-location-home-icon {
  line-height: 1;
  font-size: clamp(14px, 1.5vw, 18px);
}
body.location-mode .navbar-custom .navbar-location-home,
body.page-state-ready:not(.on-home-page) .navbar-custom .navbar-location-home,
.navbar-custom.top-nav-short .navbar-location-home {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.navbar-custom .navbar-brand-logo {
  padding-top: 0;
  -webkit-transition: padding .5s ease-in-out;
  -moz-transition: padding .5s ease-in-out;
  transition: padding .5s ease-in-out;  
}
.navbar-custom .navbar-brand-logo img {
  height: 50px;
  -webkit-transition: height .5s ease-in-out;
  -moz-transition: height .5s ease-in-out;
  transition: height .5s ease-in-out;
}
.navbar-custom.top-nav-short .navbar-brand-logo {
  padding-top: 5px;
}
.navbar-custom.top-nav-short .navbar-brand-logo img {
  height: 40px;
}

@media only screen and (min-width: 768px) {
  .navbar-custom {
    padding: 20px 0;
    -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
    -moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
    transition: background .5s ease-in-out,padding .5s ease-in-out;
  }

  .navbar-custom .navbar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 1 auto;
    min-width: 0;
  }
  .navbar-custom .navbar-brand {
    float: none;
  }
  .navbar-custom .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 140px;
  }
  .navbar-custom .navbar-social {
    margin: 0;
    flex: 0 1 auto;
  }

  .navbar-custom.top-nav-short {
    padding: 0;
  }

  .navbar-custom .navbar-nav.navbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin-right: 0;
    margin-left: 0;
    gap: 10px;
    margin-left: auto;
    max-width: 100%;
  }
  .navbar-custom .navbar-nav.navbar-right > li {
    float: none;
  }
  .navbar-custom .navbar-nav.navbar-right > li.nav-item-blog {
    order: 999;
  }
}

.navbar-custom .avatar-container {
  opacity: 1;
  position: absolute;
  -webkit-transition: opacity 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out;
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  left: 50%;
  width: 100px;
  margin-top: -22px;
  z-index: 1;
  transform: translateY(0) scale(1);
}
.navbar-custom .avatar-container  .avatar-img-border {
  width: 100%;
  border-radius: 10%;
  margin-left: -50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(0, 0, 0, .8);
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .8);
  -moz-box-shadow: 0 0 8px rgba(0, 0, 0, .8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center bottom;
}
.navbar-custom .avatar-container  .avatar-img {
  width: 100%;
  border-radius: 10%;
  display: block;
}
.navbar-custom .avatar-container .avatar-home-link {
  position: relative;
  display: block;
}
.navbar-custom .avatar-container .avatar-home-icon {
  position: absolute;
  top: auto;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(19, 30, 45, 0.92);
  color: #FFFFFF;
  font-size: 8px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}
.navbar-custom .avatar-container:hover .avatar-img-border {
  transform: translateY(6px) scale(1.18);
  box-shadow: 0 0 12px rgba(0, 0, 0, .85);
}

.navbar-custom.top-nav-short .avatar-container,
body.location-mode .navbar-custom .avatar-container,
body.page-state-ready:not(.on-home-page) .navbar-custom .avatar-container {
  opacity: 0;
  transform: translateY(-70px) scale(0.72);
  pointer-events: none;
}

.navbar-custom.top-nav-expanded .avatar-container  {
  display: none;
}

@media only screen and (min-width: 768px) {
  .navbar-custom .avatar-container {
    width: 125px;
    margin-top: -30px;
  }
  
  .navbar-custom .avatar-container  .avatar-img-border {
    width: 100%;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
    -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
    -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
  }
  
  .navbar-custom .avatar-container  .avatar-img {
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .navbar-custom .navbar-nav > li > a {
    min-width: 0;
    width: 100%;
  }
  .navbar-custom .navbar-nav.navbar-right {
    gap: 6px;
  }
  .navbar-custom .navbar-social {
    gap: 6px;
    margin: 8px 0 0 8px;
  }
  .navbar-custom .navbar-social a[data-location-link] {
    margin-left: 6px;
  }
  .navbar-custom .navbar-social a {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .navbar-custom .navbar-social .ai {
    font-size: 14px;
  }
  .navbar-custom .navbar-location-home {
    width: 30px;
    height: 30px;
    top: 8px;
  }
  .navbar-custom .navbar-location-home-icon {
    font-size: 14px;
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .location-address-card {
    bottom: 10px;
    font-size: 0.8em;
  }
}

/* Multi-level navigation links */
.navbar-custom .nav .navlinks-container {
  position: relative;
}
.navbar-custom .nav .navlinks-parent:after {
  content: " \25BC";
}
.navbar-custom .nav .navlinks-children {
  width: 100%;
  display: none;
  word-break: break-word;
}
.navbar-custom .nav .navlinks-container .navlinks-children a {
  display: block;
  padding: 10px;
  padding-left: 30px;
  background: #f2f6fa;
  text-decoration: none !important;
  border-width: 0 1px 1px 1px;
  font-weight: normal;
}
@media only screen and (max-width: 767px) {
  .navbar-custom .nav .navlinks-container.show-children {
    background: rgba(255, 255, 255, 0.18);
  }
  .navbar-custom .nav .navlinks-container.show-children .navlinks-children {
    display: block;
  }
}
@media only screen and (min-width: 768px) {
  .navbar-custom .nav .navlinks-container {
    text-align: center;
  }  
  .navbar-custom .nav .navlinks-container:hover {
    background: rgba(255, 255, 255, 0.18);
  }
  .navbar-custom .nav .navlinks-container:hover .navlinks-children {
    display: block;
  }
  .navbar-custom .nav .navlinks-children {
    position: absolute;
  }
  .navbar-custom .nav .navlinks-container .navlinks-children a {
    padding-left: 10px;
    border: 1px solid #dfe7ef;
    border-width: 0 1px 1px;
  }
}

/* --- Footer --- */

footer {
  padding: 30px 0;
  background: #F5F5F5;
  border-top: 1px #EAEAEA solid;
  margin-top: 50px;
  font-size: 14px;
}

footer a {
  color: #404040;
}

footer .list-inline {
  margin: 0;
  padding: 0;
}
footer .copyright {
  font-family: var(--font-sans);
  text-align: center;
  margin-bottom: 0;
}
footer .theme-by {
  text-align: center;
  margin: 10px 0 0;
}

@media only screen and (min-width: 768px) {
  footer {
    padding: 50px 0;
  }
  footer .footer-links {
    font-size: 18px;
  }
  footer .copyright {
    font-size: 16px;
  }
}
 
/* --- Post preview --- */

.post-preview {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

@media only screen and (min-width: 768px) {
  .post-preview {
    padding: 35px 0;
  }
}

.post-preview:last-child {
  border-bottom: 0;
}

.post-preview a {
  text-decoration: none;
  color: #404040;
}

.post-preview a:focus,
.post-preview a:hover {
  text-decoration: none;
  color: #0085a1;
}

.post-preview .post-title {
  font-size: 24px;
  margin-top: 0;
}
.post-preview .post-subtitle {
  margin: 0;
  font-weight: 300;
  margin-bottom: 10px;
}
.post-preview .post-meta,
.post-heading .post-meta {
  color: #808080;
  font-size: 18px;
  font-style: italic;
  margin: 0 0 10px;
}
.post-preview .post-entry {
  font-family: var(--font-sans);
}
.post-entry-container {
  display: inline-block;
  width: 100%;
}
.post-entry {
  width: 100%;
}
.post-image {
  float: right;
  height: 192px;
  width: 192px;
  margin-top: -35px;
  filter: grayscale(90%);
}
.post-image:hover {
  filter: grayscale(0%);
}
.post-image img {
  border-radius: 100px;
  height: 192px;
  width: 192px;
}
.post-preview .post-read-more {
  font-weight: 800;
}

@media only screen and (min-width: 768px) {
  .post-preview .post-title {
    font-size: 24px;
  }
}

/* --- Tags --- */

.blog-tags {
  font-family: var(--font-condensed);
  color: #999;
  font-size: 15px;
  margin-bottom: 30px;
}

.blog-tags a {
  color: #008AFF;
  text-decoration: none;
  padding: 0px 5px;
}

.blog-tags a:hover {
  border-radius: 2px;
  color: #008AFF;
  background-color: #CCC;
}

.post-preview .blog-tags {
  margin-top: 5px;
  margin-bottom: 0;
}

@media only screen and (min-width: 768px) {
  .post-preview .blog-tags {
    margin-top: 10px;
  }
}

@media only screen and (max-width: 500px) {
  .post-image, .post-image img {
    height: 100px;
    width: 100px;
  }
  
  .post-image {
    width: 100%;
    text-align: center;
    margin-top: 0;
    float: left;
  }
}
/* --- Post and page headers --- */

.intro-header {
  margin: 80px 0 20px;
  position: relative;
}
.intro-header.big-img {
  background: no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  margin-top: 51px; /* The small navbar is 50px tall + 1px border */
  margin-bottom: 35px;
}
.intro-header.big-img  .big-img-transition {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  -webkit-transition: opacity 1s linear;
  -moz-transition: opacity 1s linear;
  transition: opacity 1s linear;
}
.intro-header .page-heading {
  text-align: center;
}
.intro-header.no-img .page-heading,
.intro-header.no-img .post-heading {
  padding-top: 72px;
}
body.page-state-ready:not(.on-home-page) .intro-header.no-img .page-heading,
body.page-state-ready:not(.on-home-page) .intro-header.no-img .post-heading {
  padding-top: 44px;
}
@media only screen and (max-width: 767px) {
  .intro-header.no-img .page-heading,
  .intro-header.no-img .post-heading {
    padding-top: 98px;
  }
  body.page-state-ready:not(.on-home-page) .intro-header.no-img .page-heading,
  body.page-state-ready:not(.on-home-page) .intro-header.no-img .post-heading {
    padding-top: 68px;
  }
}
.intro-header.big-img .page-heading,
.intro-header.big-img .post-heading {
  padding: 100px 0;
  color: #FFF;
  text-shadow: 1px 1px 3px #000;
}
.intro-header .page-heading h1 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 30px;
}
.intro-header .post-heading h1 {
  margin-top: 0;
  font-size: 25px;
}
.intro-header .page-heading .page-subheading,
.intro-header .post-heading .post-subheading {
  font-size: 23px;
  line-height: 1.1;
  display: block;
  font-family: var(--font-sans);
  font-weight: 300;
  margin: 6px 0 0;
}
.intro-header .post-heading .post-subheading {
  margin-bottom: 12px;
}
.intro-header.big-img .page-heading .page-subheading,
.intro-header.big-img .post-heading .post-subheading {
  font-weight: 400;
}
.intro-header.big-img .page-heading hr {
  box-shadow: 1px 1px 3px #000;
  -webkit-box-shadow: 1px 1px 3px #000;
  -moz-box-shadow: 1px 1px 3px #000;
}
.intro-header.big-img .post-heading .post-meta {
  color: #EEE;
}
.intro-header.big-img .img-desc {
  background: rgba(30, 30, 30, 0.6);
  position: absolute;
  padding: 5px 10px;
  font-size: 11px;
  color: #EEE;
  font-family: var(--font-sans);
  right: 0;
  bottom: 0;
  display: none;
}
@media only screen and (min-width: 768px) {
  .intro-header {
    margin-top: 130px;
  }
  .intro-header.no-img .page-heading,
  .intro-header.no-img .post-heading {
    padding-top: 90px;
  }
  .intro-header.big-img {
    margin-top: 91px;  /* Full navbar is small navbar + 20px padding on each side when expanded */
  }	
  .intro-header.big-img .page-heading,
  .intro-header.big-img .post-heading  {
    padding: 150px 0;
  }  
  .intro-header .page-heading h1 {
    font-size: 30px;
  }
  .intro-header .post-heading h1 {
    font-size: 20px;
  }
  .intro-header.big-img .img-desc {
    font-size: 14px;
  }
}

.header-section.has-img .no-img {
  margin-top: 0;
  background: #FCFCFC;
  margin: 0 0 40px;
  padding: 20px 0;
  box-shadow: 0 0 5px #AAA;
}
/* Many phones are 320 or 360px, so make sure images are a proper aspect ratio in those cases */
.header-section.has-img .intro-header.no-img {
  display: none;
}
@media only screen and (max-width: 365px) {
  .header-section.has-img .intro-header.no-img {
    display: block;
  }
  .intro-header.big-img {
    width: 100%;
    height: 220px;
  }
  .intro-header.big-img .page-heading,
  .intro-header.big-img .post-heading {
    display: none;
  }
  .header-section.has-img .big-img {
    margin-bottom: 0;
  }  
} 
@media only screen and (max-width: 325px) { 
  .intro-header.big-img {
    height: 200px;
  }
}

.caption {
  text-align: center;
  font-size: 14px;
  padding: 10px;
  font-style: italic;
  margin: 0;
  display: block;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

/* --- Pager --- */

.pager li a {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 10px 5px;
  background: #FFF;
  border-radius: 0;
  color: #404040;
}
@media only screen and (min-width: 768px) {
  .pager li a {
    padding: 15px 25px;
  }
}
.pager li a:hover,
.pager li a:focus {
  color: #FFF;
  background: #0085a1;
  border: 1px solid #0085a1;
}

.pager {
  margin: 10px 0 0;
}

.pager.blog-pager {
  margin-top: 0;
}

@media only screen and (min-width: 768px) {
  .pager.blog-pager  {
    margin-top: 10px;
  }
}

/* --- Tables --- */

table {
  padding: 0;
}
table tr {
  border-top: 1px solid #cccccc;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}
table tr:nth-child(2n) {
  background-color: #f8f8f8;
}
table tr th {
  font-weight: bold;
  border: 1px solid #cccccc;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}
table tr td {
  border: 1px solid #cccccc;
  text-align: left;
  margin: 0;
  padding: 6px 13px;
}
table tr th :first-child,
table tr td :first-child {
  margin-top: 0;
}
table tr th :last-child,
table tr td :last-child {
  margin-bottom: 0;
}

/* --- Code blocks --- */

pre {
  font-size: 16px;
  line-height: 1.5em;
}
pre code {
  white-space: pre;
}
pre.highlight, .highlight > pre, td.code pre {
  background: #FAFAFA;
  background-image: linear-gradient(#F9F9F9 50%, #FDFDFD 50%);
  background-repeat: repeat;
  background-size: 3em 3em;
  background-position: 0px 10px;
  border-left: 7px solid #444;
}
code table, code table td, code table th, code table tbody, code table tr,
td.gutter pre {
  padding: 0;
  border: none;
  background-color: #fff;
}
.highlight > pre {
  padding: 0;
}
td.code pre {
  border-width: 0 0 0 2px;
  border-style: solid;
  border-color: #444;
  border-radius: 0;
}
td.gutter {
  padding-top: 3px;
}

/* --- Social media sharing section --- */

#social-share-section {
  margin-bottom: 30px;
}



/* --- Background Personalizado --- */
body {
    /* 1. La imagen de fondo */
    background-image: url("/assets/images/buceo.jpg"); 
    
    /* 2. Ajustes de posición */
    background-size: cover;       /* Cubre toda la pantalla */
    background-position: center;  /* Centrada */
    background-attachment: fixed; /* Fija al hacer scroll */
    background-repeat: no-repeat;
    
    /* 3. El filtro blanco para leer el texto */
    /* Si pones 0.9 es casi blanco sólido. 0.7 o 0.8 deja ver más la foto */
    background-color: rgba(255, 255, 255, 0.70) !important; 
    
    /* 4. Mezcla la imagen con el color blanco */
    background-blend-mode: overlay;
}
