:root {
  --tmp-primary: #001a33; /* Dark Navy */
  --tmp-accent: #f15a24; /* Orange */
  --tmp-text-light: #ffffff;
  --tmp-text-dark: #333333;
  --tmp-border: #e1e1e1;
  --tmp-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --tmp-sheet-bg: #ffffff;
}

.slick-next:focus,
.slick-next:hover,
.slick-prev:focus,
.slick-prev:hover {
  background: #c2c2c2;
}

.tmp-container {
  width: 100%;
  margin: 40px 0;
}

.tmp-section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--tmp-primary);
  text-transform: uppercase;
  margin-bottom: 50px !important;
  letter-spacing: 1px;
  font-weight: 500;
}

.tmp-grid {
  display: block; /* Slick handles display */
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  padding: 0 50px;
}

/* Slick Custom Arrows */
.tmp-slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #c2c2c2; /* Match screenshot grey block */
  border: none;
  width: 60px;
  height: 60px; /* Taller rectangular block */
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  padding: 0;
}

.tmp-slick-arrow:hover {
  background: var(--tmp-accent);
}

.tmp-slick-arrow svg {
  width: 20px; /* Adjust size as needed */
  height: auto;
  color: #ffffff; /* White icon as per screenshot */
  display: block;
}

.slick-prev {
  left: 2;
}
.slick-next {
  right: 2;
}

/* Ensure arrows are always visible */
.tmp-slick-arrow,
.tmp-slick-arrow.slick-disabled,
.tmp-slick-arrow.slick-hidden {
  display: flex !important;
  visibility: visible !important;
  cursor: not-allowed;
  background-color: #c2c2c2;
}

/* Always visible, styled as disabled if no more */
.tmp-slick-arrow.slick-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #c2c2c2 !important;
}

/* Hide default slick-theme arrows */
.tmp-slick-arrow:before {
  content: none !important;
}

.slick-list {
  margin: 0 -7.5px;
}

/* Ensure equal height for slick slides */
.tmp-slider-init .slick-track {
  display: flex !important;
}

.tmp-slider-init .slick-slide {
  height: auto !important;
  display: flex !important;
}

.tmp-slider-init .slick-slide > div {
  width: 100%;
  display: flex;
}

.tmp-item {
  margin: 0 7.5px;
  background: var(--tmp-primary);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex !important;
  flex-direction: column;
  height: 100%;
  width: calc(100% - 15px);
}

.tmp-item:hover {
  transform: translateY(-5px);
}

.tmp-item-image {
  aspect-ratio: 1/1.2;
  overflow: hidden;
  flex-shrink: 0;
}

.tmp-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tmp-item-info {
  padding: 20px;
  color: var(--tmp-text-light);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.tmp-item-name {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  display: block !important;
  visibility: visible !important;
  min-height: 2.4em; /* Approx 2 lines */
}

.tmp-item-designation {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 10px;
  font-weight: 400;
  min-height: 2.8em; /* Approx 2 lines for longer titles */
  line-height: 1.4;
}

.tmp-item-status {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
  min-height: 1.2em;
}

.tmp-view-more {
  background: var(--tmp-accent);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.tmp-view-more:hover {
  background: #d4491c;
  letter-spacing: 0.5px;
}

/* --- TRUE BOTTOM SHEET STYLING --- */
.tmp-bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  visibility: hidden;
  display: flex;
  align-items: flex-end; /* Align sheet to bottom */
  justify-content: center;
}

.tmp-bottom-sheet.is-active {
  visibility: visible;
}

.tmp-sheet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tmp-bottom-sheet.is-active .tmp-sheet-overlay {
  opacity: 1;
}

.tmp-sheet-container {
  width: 100%;
  max-width: 100%; /* Full width */
  background: var(--tmp-sheet-bg);
  position: relative;
  z-index: 1000000;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  height: 60vh; /* Exactly 60% of viewport height */
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  padding: 40px 40px 40px;
}

.tmp-bottom-sheet.is-active .tmp-sheet-container {
  transform: translateY(0);
}

.tmp-sheet-close svg {
  height: 60px;
  width: 60px;
  position: absolute;
  top: 0;
  right: 0;
  padding: 18px;
  color: #0e285a;
  cursor: pointer;
  z-index: 2;
}

.tmp-sheet-close:hover {
  opacity: 1;
}

/* Sheet Body / Details */
.tmp-detail-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.tmp-detail-left {
  flex: 0 0 320px;
}

.tmp-detail-left img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--tmp-shadow);
}

.tmp-detail-right {
  flex: 1;
}

.tmp-no-image .tmp-detail-right {
  flex: 0 0 100%;
}

.tmp-detail-right h2 {
  margin: 0 0 5px 0;
  font-size: 2.4rem;
  color: var(--tmp-primary);
  font-weight: 800;
}

.tmp-detail-designation {
  color: var(--tmp-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--tmp-accent);
  padding-bottom: 10px;
  display: inline-block;
  font-size: 0.9rem;
}

.tmp-detail-meta {
  margin-bottom: 30px;
}

.tmp-detail-meta p {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  color: var(--tmp-primary);
}

.tmp-detail-meta p strong {
  font-weight: 800;
  color: var(--tmp-primary);
}

.tmp-detail-meta p span {
  font-weight: 700;
  color: var(--tmp-accent);
}

.tmp-detail-bio {
  line-height: 1.7;
  color: #444;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 850px) {
  .tmp-detail-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tmp-detail-left {
    flex: 0 0 auto;
    width: 250px;
  }
  .tmp-sheet-container {
    padding-top: 40px;
  }
}

@media (max-width: 600px) {
  .tmp-sheet-container {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
  }
  .tmp-detail-right h2 {
    font-size: 1.8rem;
  }
}

/* Loader */
.tmp-loader {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--tmp-accent);
  border-radius: 50%;
  animation: tmp-spin 0.8s linear infinite;
  margin: 60px auto;
}

@keyframes tmp-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scroll Lock */
body.tmp-no-scroll {
  overflow: hidden !important;
}

/* RTL Support */
body.rtl .tmp-item-info {
  text-align: right;
}

body.rtl .slick-prev {
  left: auto;
  right: 2px; /* Swap position */
}

body.rtl .slick-next {
  right: auto;
  left: 2px; /* Swap position */
}

body.rtl .tmp-sheet-close svg {
  right: auto;
  left: 0;
}

body.rtl .tmp-detail-right {
  text-align: right;
}
