/* ==============================
   HOMEPAGE-SPECIFIC STYLES
   ============================== */

/* ---- Homepage sidebar ---- */
.hp-sidebar {
  display: block;
  width: 100%;
  border-left: 2px solid #d0d3d8;
  padding-left: 16px;
  box-sizing: border-box;
}

.hp-sidebar-box {
  display: block;
  width: 100%;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.hp-sidebar-head {
  display: block;
  background-color: #1b2152;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px 4px 0 0;
  margin: 0;
  border: none;
}

.hp-sidebar-links {
  list-style: none;
  margin: 0;
  padding: 10px 0 0 0;
  border: 1px solid #d0d3d8;
  border-top: none;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}
.hp-sidebar-links li { display: block; margin: 0; padding: 0; }
.hp-sidebar-links li a {
  display: block;
  padding: 8px 12px 8px 16px;
  color: #333;
  background: #fff;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: padding-left 0.15s, background 0.15s;
}
.hp-sidebar-links li:last-child a { border-bottom: none; }
.hp-sidebar-links li a:hover { color: #1b2152; background: #f0f1f3; padding-left: 20px; }

.hp-sidebar-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 0 0 4px 4px;
  border: 1px solid #d0d3d8;
  border-top: none;
}
.hp-sidebar-img--plain {
  border-radius: 4px !important;
  border-top: 1px solid #d0d3d8 !important;
}
.hp-sidebar-img-pad {
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #d0d3d8;
  border-radius: 0 0 4px 4px;
}

.hp-sidebar-dl-btn {
  display: block;
  text-align: center;
  padding: 8px;
  background: #f0f1f3;
  color: #1b2152;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #d0d3d8;
  border-top: none;
  border-radius: 0 0 4px 4px;
}
.hp-sidebar-dl-btn:hover { background: #1b2152; color: #fff; }

/* ---- Gallery + Specials bottom section ---- */
.hp-bottom-section {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 8px 24px 20px;
}

.hp-bottom-left { flex: 0 0 50%; }

.hp-bottom-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.hp-gallery-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.13);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hp-gallery-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.hp-gallery-card img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s;
}
.hp-gallery-card:hover img { transform: scale(1.04); }

.hp-special-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.10);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hp-special-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.hp-special-card img {
  width: 100% !important;
  height: 140px !important;
  object-fit: cover !important;
  display: block !important;
}
.hp-special-head {
  color: #1b2152;
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  padding: 10px 12px 6px;
  border-bottom: 2px solid #5c6578;
}
.hp-special-body { padding: 10px 12px 12px; }
.hp-special-body p { font-size: 15px; color: #444; line-height: 2; margin: 0; }

/* Transparent overlay for popup */
#thover {
  position: fixed;
  width: 100%;
  height: 100%;
  opacity: .6;
}

/* Popup box */
#tpopup {
  z-index: 99999;
  position: absolute;
  width: 882px;
  height: 488px;
  background: #fff;
  left: 50%;
  top: 50%;
  border-radius: 5px;
  margin-left: -440px;
  margin-top: -250px;
  text-align: center;
  box-shadow: 0 0 10px 0 #000;
}
#tclose {
  position: absolute;
  background: black;
  color: white;
  right: -15px;
  top: -15px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 8px;
  font-weight: bold;
  font-family: 'Arial Black', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 0 10px 0 #000;
}

/* Vacancy CTA button */
.button-32 {
  background-color: #fff000;
  border-radius: 12px;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  padding: 10px 15px;
  text-align: center;
  transition: 200ms;
  width: 32%;
  box-sizing: border-box;
  border: 0;
  font-size: 16px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  display: inline-block;
  text-decoration: none;
}
.button-32:not(:disabled):hover,
.button-32:not(:disabled):focus {
  outline: 0;
  background: #f4e603;
  box-shadow: 0 0 0 2px rgba(0,0,0,.2), 0 3px 8px 0 rgba(0,0,0,.15);
}

/* Floating download link icon */
.download { float: right; }
.download:hover { color: red; }

/* Job popup overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.popup-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff4d4d;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}
