/* Site-specific overrides on top of the Start Bootstrap Resume theme. */
body::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 8vw;
  min-width: 44px;
  max-width: 70px;
  height: 100vh;
  background: #0056b3;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 767.98px) {
  body::after {
    width: 24px;
    min-width: 14px;
    max-width: 30px;
  }
}

.container-fluid {
  position: relative;
  z-index: 1;
  padding-right: 90px !important;
}
@media (max-width: 767.98px) {
  .container-fluid { padding-right: 32px !important; }
}

h1.mb-0 {
  font-size: 2.4rem;
  font-weight: 700;
}
@media (max-width: 992px) {
  h1.mb-0 { font-size: 1.8rem; }
}
@media (max-width: 767.98px) {
  h1.mb-0 { font-size: 1.25rem; }
}

.navbar-brand img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
  border: 6px solid #fff;
  background: #e9ecef;
  transition: width 0.2s, height 0.2s;
}
@media (max-width: 992px) {
  .navbar-brand img { width: 140px; height: 140px; }
}
@media (max-width: 767.98px) {
  .navbar-brand img { width: 100px; height: 100px; }
}

/* The theme makes every section at least one screen tall; let content set the height. */
section.resume-section {
  min-height: 0 !important;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}
section.resume-section:first-of-type {
  padding-top: 3.5rem !important;
}
section.resume-section h2.mb-5 {
  margin-bottom: 1.5rem !important;
}
section.resume-section .resume-item.mb-5 {
  margin-bottom: 1.5rem !important;
}

.lang-switch a + a::before {
  content: "·";
  display: inline-block;
  margin: 0 0.5rem;
  color: #868e96;
}

.lang-switch {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.profile-links {
  list-style: none;
  padding: 0;
}
.profile-links li {
  margin-bottom: 0.4rem;
}

.book-cover-wrap {
  flex: 0 0 auto;
}

.book-cover {
  width: 220px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  margin: 0 2rem 1.5rem 0;
}

.chapter-list td {
  padding: 0.2rem 0.75rem 0.2rem 0;
  vertical-align: top;
}

section.resume-section h2:not(.h4) {
  font-size: 3rem;
}
@media (max-width: 767.98px) {
  section.resume-section h2:not(.h4) { font-size: 2rem; }
}

/* Compact language list at the bottom of the side menu. */
#sideNav .lang-nav {
  margin-top: 1rem;
  padding: 0 1rem;
  font-size: 0.8rem;
  line-height: 1.9;
  text-align: center;
}
#sideNav .lang-nav a {
  display: inline-block;
  margin: 0 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
#sideNav .lang-nav a:hover {
  color: #fff;
}

/* Right-to-left pages (Arabic): the side menu keeps its place; only the content area flows RTL. */
.container-fluid[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .book-cover {
  margin: 0 0 1.5rem 2rem;
}
[dir="rtl"] .social-icons a {
  margin-right: 0;
  margin-left: 1rem;
}
