/* Other Calculators Directory Page Styles */
/* Exact pixel-level match to Calculator Archive & user reference image */

.other-page-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 18px 40px;
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
}

/* Breadcrumbs */
.other-breadcrumbs {
  font-size: 13px;
  color: #555555;
  margin-bottom: 12px;
}

.other-breadcrumbs a {
  color: #0844a4;
  text-decoration: none;
}

.other-breadcrumbs a:hover {
  text-decoration: underline;
}

.other-breadcrumbs .sep {
  margin: 0 4px;
  color: #666666;
}

.other-breadcrumbs .current {
  color: #333333;
  font-weight: normal;
}

/* Page Header Row */
.other-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.other-heading {
  font-size: 26px;
  font-weight: bold;
  color: #0844a4;
  margin: 0;
  line-height: 1.2;
}

.other-header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0844a4;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}

.other-header-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: background-color 0.15s;
}

.other-header-icons span:hover {
  background-color: #e8f0fe;
}

/* Main Layout: 2 Columns of categories + Sidebar */
.other-main-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* Left & Center categories container */
.other-categories-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.other-col {
  display: flex;
  flex-direction: column;
}

/* Category group */
.other-group {
  margin-bottom: 22px;
}

.other-group-title {
  font-size: 15px;
  font-weight: bold;
  color: #000000;
  margin: 0 0 8px 0;
  padding: 0;
  line-height: 1.3;
}

.other-calc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.other-calc-list li {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.other-calc-list a {
  color: #0844a4;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.other-calc-list a:hover {
  text-decoration: underline;
  color: #002277;
}

/* Sidebar Column */
.other-sidebar-col {
  width: 270px;
  flex-shrink: 0;
}

/* Search Form matching image */
.other-side-search-form {
  display: flex;
  margin-bottom: 18px;
  position: relative;
}

.other-side-search-wrap {
  position: relative;
  flex: 1;
}

.other-side-search-input {
  width: 100%;
  height: 27px;
  border: 1px solid #7f9db9;
  padding: 2px 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background-color: #ffffff;
  box-sizing: border-box;
}

.other-side-search-input:focus {
  border-color: #0844a4;
}

.other-side-search-btn {
  height: 27px;
  background-color: #2b5a88;
  color: #ffffff;
  border: 1px solid #1b4570;
  padding: 0 16px;
  font-size: 13px;
  font-weight: normal;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.other-side-search-btn:hover {
  background-color: #1f476a;
}

/* Search Dropdown */
.other-search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #7f9db9;
  border-top: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
}

.other-search-dropdown.active {
  display: block;
}

.other-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 9px;
  font-size: 12px;
  color: #222222;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.other-search-item:hover,
.other-search-item.highlighted {
  background-color: #eaf1f8;
  color: #003366;
}

.other-search-item-cat {
  font-size: 10.5px;
  color: #777777;
}

/* Sidebar Card matching Image */
.other-side-card {
  border: 1px solid #2b5a88;
  background-color: #ffffff;
}

.other-side-card-title {
  background-color: #2b5a88;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 8px;
}

.other-side-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 10px;
  gap: 3px 12px;
  font-size: 11.5px;
  background-color: #ffffff;
}

.other-side-card-grid a {
  color: #0844a4;
  text-decoration: underline;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.other-side-card-grid a:hover {
  color: #002277;
}

.other-side-card-footer {
  background-color: #eef2f6;
  border-top: 1px solid #d0dbe5;
  padding: 6px 8px;
  font-size: 11px;
  color: #555555;
  text-align: center;
}

.other-side-card-footer a {
  color: #0844a4;
  text-decoration: none;
  margin: 0 2px;
}

.other-side-card-footer a:hover {
  text-decoration: underline;
}

.other-side-card-footer a.active-cat {
  color: #000000;
  font-weight: bold;
  cursor: default;
  text-decoration: none;
}

/* Quick Calculation Modal */
.other-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.other-modal-backdrop.active {
  display: flex;
}

.other-modal-dialog {
  background-color: #ffffff;
  border: 1px solid #7f9db9;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.other-modal-header {
  background-color: #2b5a88;
  color: #ffffff;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.other-modal-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.other-modal-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.85;
}

.other-modal-close-btn:hover {
  opacity: 1;
}

.other-modal-body {
  padding: 16px;
  overflow-y: auto;
  font-size: 13px;
  color: #333333;
}

/* Modal Form Styles */
.other-form-group {
  margin-bottom: 12px;
}

.other-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 4px;
}

.other-form-input,
.other-form-select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  font-size: 13px;
  box-sizing: border-box;
  background-color: #ffffff;
}

.other-form-input:focus,
.other-form-select:focus {
  border-color: #0844a4;
  outline: none;
}

.other-form-btn {
  background-color: #2b5a88;
  color: #ffffff;
  border: 1px solid #1b4570;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 6px;
}

.other-form-btn:hover {
  background-color: #1f476a;
}

.other-result-box {
  margin-top: 14px;
  padding: 12px;
  background-color: #f1f5f9;
  border-left: 4px solid #0844a4;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
}

.other-result-box strong {
  color: #0844a4;
  font-size: 14px;
}

/* Responsive Media Queries */
@media (max-width: 820px) {
  .other-main-layout {
    flex-direction: column;
    gap: 24px;
  }

  .other-sidebar-col {
    width: 100%;
  }

  .other-categories-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
