/* Financial Calculators Category Page Styles */
/* Exact replica matching user specification & Calculator Archive design */

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

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

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

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

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

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

/* Page Header */
.fc-heading {
  font-size: 26px;
  font-weight: bold;
  color: #0844a4;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.fc-intro {
  font-size: 13.5px;
  color: #333333;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* Main Layout Row */
.fc-main-row {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* Left Categories Multi-Column Container */
.fc-categories-col {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

.fc-subcol {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Category Group */
.fc-category-group {
  margin: 0;
}

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

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

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

.fc-calc-list a {
  color: #0844a4;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

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

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

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

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

.fc-side-search-input {
  width: 100%;
  border: 1px solid #7f9db9;
  padding: 5px 8px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  background-color: #ffffff;
}

.fc-side-search-input:focus {
  border-color: #003366;
  box-shadow: 0 0 3px rgba(0, 51, 102, 0.25);
}

.fc-side-search-btn {
  background-color: #2b5a88;
  color: #ffffff;
  border: 1px solid #1b4570;
  border-left: none;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.fc-side-search-btn:hover {
  background-color: #1b4570;
}

/* Search Dropdown */
.fc-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;
}

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

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

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

.fc-search-item-cat {
  font-size: 10px;
  color: #555555;
  background-color: #edf2f7;
  padding: 1px 5px;
  border-radius: 2px;
}

.fc-search-no-results {
  padding: 9px 10px;
  font-size: 11.5px;
  color: #777777;
  text-align: center;
}

/* Sidebar Financial Calculators Box */
.fc-side-card {
  border: 1px solid #a3b8cc;
  margin-bottom: 15px;
  background-color: #ffffff;
}

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

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

.fc-side-card-grid a {
  color: #0844a4;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-side-card-grid a:hover {
  text-decoration: underline;
}

.fc-side-card-more {
  border-top: 1px solid #e0e0e0;
  padding: 6px 8px 6px 10px;
  font-size: 11.5px;
  background-color: #f7f9fa;
  text-align: left;
}

.fc-side-card-more a {
  color: #0844a4;
  text-decoration: none;
  font-weight: normal;
}

.fc-side-card-more a:hover {
  text-decoration: underline;
}

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

.fc-side-card-footer a {
  color: #0844a4;
  text-decoration: none;
}

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

.fc-side-card-footer .active-cat {
  font-weight: bold;
  color: #003366;
}

/* Quick Tool Modal */
.fc-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 15px;
}

.fc-modal-dialog {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #2b5a88;
}

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

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

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

.fc-modal-close-btn:hover {
  opacity: 0.8;
}

.fc-modal-body {
  padding: 16px;
  overflow-y: auto;
  font-size: 13px;
}

.fc-form-group {
  margin-bottom: 12px;
}

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

.fc-form-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  outline: none;
}

.fc-form-input:focus {
  border-color: #003366;
}

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

.fc-calc-btn:hover {
  background-color: #1b4570;
}

.fc-result-box {
  margin-top: 14px;
  padding: 10px 12px;
  background-color: #eaf1f8;
  border: 1px solid #a3b8cc;
  border-radius: 3px;
}

.fc-result-title {
  font-weight: bold;
  color: #003366;
  margin-bottom: 4px;
}

.fc-result-val {
  font-size: 15px;
  font-weight: bold;
  color: #2e7d32;
}

/* Responsive Media Queries */
@media (max-width: 820px) {
  .fc-main-row {
    flex-direction: column;
    gap: 25px;
  }
  
  .fc-sidebar-col {
    width: 100%;
  }

  .fc-side-search-form {
    max-width: 400px;
  }

  .fc-side-card {
    max-width: 400px;
  }
}

@media (max-width: 580px) {
  .fc-categories-col {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fc-heading {
    font-size: 22px;
  }
}
