/* Panel container styling */

.stat-line {
  background: #fbfbfb;
}
.fbox {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px; /* space between blocks */
  overflow: hidden;
  border: 1px solid #eee;
  position: relative;
}
.fbox {
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0) !important;
  border: none;
}
/* Divider between multiple fbox blocks */
.fbox:not(:last-child)::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(to right, transparent, #ccc, transparent);
  margin: 25px auto 0 auto;
  width: 80%;
}

/* Panel heading */
.fbox .panel-heading {
  background: #f9fafb;
  border-bottom: 1px solid #eee;
  padding: 12px 18px;
}

.fbox .panel-heading h2 {
  font-size: 18px;
  margin: 0;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fbox .panel-heading i {
  color: white;
  font-size: 13px;
  padding: 5px;
  border-radius: 3px;
  background: #00cbffa8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Table styling */
.fbox table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.fbox thead {
  background: #f1f3f6;
}

.fbox thead th {
  color: #1d3557 !important;
  font-weight: 600 !important;
  text-align: center;
  border: none !important;
  font-size: 14px !important;
  padding: 12px !important;
}

.fbox tbody td {
  text-align: center;
  padding: 12px;
  border-top: 1px solid #f0f0f0 !important;
  font-size: 14px;
  color: #333;
}

/* Zebra striping softer */
.fbox tbody tr:nth-child(odd) {
  background: #fafafa;
}

/* Hover effect */
.fbox tbody tr:hover {
  background: #eef6ff;
  transition: 0.3s;
}
.flex-wrapper {
  display: flex;
  align-items: stretch; /* ارتفاع‌ها هماهنگ شوند */
}

.big-col {
  flex: 4; /* سه چهارم */
  background: #fff;
  border-radius: 12px; /* گردی گوشه‌ها */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.small-col {
  max-width: 300px;
  min-width: 240px;
  flex: 1;
  background: #f9f9f9;
  margin-top: 30px;
  margin-bottom: 30px;
  overflow: hidden;
  margin-left: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 20px;
  height: fit-content;
}

:dir(ltr) .small-col {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

:dir(rtl) .small-col {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.small-col-cover-holder {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 150px;
  z-index: -1;
}
/* جلوگیری از سایه در نقطه اتصال */
.small-col {
  margin-right: -1px; /* چسباندن به بزرگه */
}

/* دکمه همبرگر */
.hamburger {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

/* ساید منو */
.side-menu {
  position: fixed;
  display: none;
  top: 0;
  right: -250px; /* پنهان در ابتدا */
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 20px;
  overflow-x: scroll;
}

.side-menu.open {
  right: 0;
}

.side-menu .close-btn {
  font-size: 28px;
  text-decoration: none;
  position: absolute;
  top: 10px;
  left: 15px;
  cursor: pointer;
}

.side-menu ul {
  list-style: none;
  margin: 60px 0 0;
  padding: 0;
}

.side-menu ul li {
  margin-bottom: 15px;
}

.side-menu ul li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}
/* پیش‌فرض: همبرگر مخفی */
.hamburger {
  display: none;
}

/* نمایش/مخفی کردن برای موبایل */
@media (max-width: 767px) {
  .small-col-wrapper {
    display: none; /* ستون کوچیک مخفی */
  }
  .side-menu,
  .hamburger {
    display: block; /* همبرگر فقط در موبایل */
  }
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 15px;
  object-fit: cover;
}

.name {
  margin: 10px 0 5px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.rank {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  text-align: center;
}

.info {
  font-size: 13px;
  color: #444;
  margin: 15px 0;
  text-align: center;
}

.qr-box {
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;
  margin: 15px 0;
}

.qr-img {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.circle-btn.resume {
  backgrsdfound: #f1c40f; /* طلایی برای رزومه */
}

.circle-btn.email {
  backgrousdfnd: #27ae60; /* سبز برای ایمیل */
}

.buttons {
  margin-top: 15px;
  width: 100%;
}

.buttons .btn {
  margin: 5px 0;
  width: 100%;
  border-radius: 20px;
}

.side-menu-small {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  width: 100%;
}

.side-menu-small li {
  margin-bottom: 8px;
}

.side-menu-small a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: all 0.2s ease;
}

.side-menu-small a:hover {
  background: #f0f0f0;
  color: #000;
}
.links-bar {
  position: relative;
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links-list li {
  display: inline-block;
}

.label-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 1px 1px 5px #cccccc;
  background: #f5f5f5;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.label-link:hover {
  background: #e0e0e0;
  color: #000;
}

/* دکمه همبرگر (فقط موبایل) */
.links-toggle {
  display: none;
  position: absolute;
  left: 0;
  top: 5px;
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
}

@media (max-width: 767px) {
  .links-list {
    padding-left: 50px;
  }
  .links-toggle {
    display: block;
  }
}

.profile-header-box {
  display: none;
  align-items: center;
  margin-bottom: 25px;
}
@media (max-width: 767px) {
  .profile-header-box {
    display: flex;
  }
}
.profile-avatar-new {
  margin-left: 15px; /* فاصله بین عکس و متن */
  flex-shrink: 0;
}

.profile-avatar-new img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.profile-name {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.profile-main-label {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  color: #c62828; /* قرمز شیک */
  font-weight: 600;
}

.profile-extra {
  margin-top: 6px;
  font-size: 13px;
  color: #777;
}

.profile-description {
  position: relative;
  margin-bottom: 20px;
}

.desc-content {
  max-height: 4.5em; /* حدود 3 خط */
  overflow: hidden;
  position: relative;
  line-height: 1.5em;
  transition: max-height 0.4s ease;
}

.desc-content:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2em;
  width: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.profile-description.expanded .desc-content {
  max-height: 1000px; /* باز شدن */
}

.profile-description.expanded .desc-content:after {
  display: none;
}

.toggle-desc {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #0066cc;
  cursor: pointer;
  text-decoration: none;
}
.toggle-desc:hover {
  text-decoration: underline;
}

.nav-tabs {
  border-bottom: none; /* remove bootstrap default */
  /* text-align: center; */
}

.nav-tabs > li {
  float: none;
  display: inline-block;
  margin: 0 10px;
}

/* Tab link */
.nav-tabs > li > a {
  border: none;
  color: #444;
  font-size: 15px;
  padding: 10px 15px;
  position: relative;
  transition: all 0.3s ease;
}

/* Remove default hover border */
.nav-tabs > li > a:hover {
  background: none;
  color: #d32f2f;
}

/* Active tab effect */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  border: none;
  background: none;
  color: #d32f2f;
  font-weight: bold;
  transform: scale(1.1); /* slightly bigger */
}

/* Red underline (gradient) */
.nav-tabs > li.active > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(to right, #ff4e50, #d32f2f);
  animation: underlineSlide 0.3s ease;
}

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: -20px;
}

.language-switcher .lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 32px;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;

    border-radius: 8px;
    text-decoration: none;

    color: #344054;
    background-color: #f2f4f7;
    border: 1px solid #d0d5dd;

    transition: all 0.2s ease;
}

.language-switcher .lang-pill:hover {
    background-color: #e4e7ec;
    border-color: #98a2b3;
    color: #101828;
}

/* Small animation for underline */
@keyframes underlineSlide {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
