@import url(general.css);

/**************************/
/* NAVIGATION */
/**************************/
header {
  background-color: var(--secondary-dark-color);
  padding: var(--padding-nav-v) var(--padding-h);
  height: 8rem;
  width: 100%;
  text-align: center;
  position: relative;
}

.logo {
  text-align: center;
  display: inline-block;
  width: 6rem;
  height: 100%;
  object-fit: contain;
}
/**************************/
/* Live Pice */
/**************************/
.live-price-table {
  width: 70%;
  margin: 0 auto;
  align-self: center;
  font-size: 2.4rem;
  border-collapse: collapse;
}
.live-price-table :is(th, td) {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.live-price-table th {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 400;
}
.live-price-table td:first-child {
  color: var(--primary-dark-color);
  background-color: var(--primary-light-color);
  font-weight: 400;
}
.live-price-table th:first-child {
  width: 30%;
}
.live-price-table th:nth-child(1n + 2) {
  width: 35%;
}
.page-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}
.page-nav-btn {
  pointer-events: auto;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}
.page-nav-btn-gold {
  background: #c8a84e;
}
.page-nav-btn-silver {
  background: #9e9e9e;
}
.note {
  font-size: 2rem;
  color: #bbb;
  margin-top: 2rem;
  padding: 1.2rem 0;
}
.branch {
  font-size: 1.6rem;
  color: #003275;
  padding: 0.5rem 0;
}
/**************************/
/* Gold Profit */
/**************************/
.section-profit {
  margin-top: 6rem;
  text-align: center;
}
.profit-table {
  width: 90%;
  margin: 0 auto;
  margin-top: 5rem;
  align-self: center;
  font-size: 2.4rem;
  border-collapse: collapse; /* يدمج هوامش الجدول ويحسن التصفية */
}
.profit-table :is(th, td) {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.profit-table th:first-child {
  width: 30%;
}
.profit-table th {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 400;
}
.profit-table td:first-child {
  color: var(--primary-dark-color);
  background-color: var(--primary-light-color);
  font-weight: 400;
}
.button-profit {
  padding: 2rem 4rem;
  margin: 3rem auto;
  border: none;
  background-color: var(--primary-dark-color);
  color: var(--primary-light-color);
  cursor: pointer;
  border-radius: var(--border-radius);
  font-size: 2rem;
  font-weight: 400;
}
.input-number-profit {
  padding: 1rem 3rem;
  margin: 0;
}
/**************************/
/* FOOTER */
/**************************/

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 19rem;
  /* ----- */
  padding-top: 3.2rem;
  padding-bottom: 1.2rem;
  color: var(--seconda-light-color);
  background-color: var(--primary-light-color);
}
main {
  padding-bottom: 19rem; /* Footer height */
}
.footer-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.footer-logo {
  width: 6rem;
  height: auto;
  display: block;
  margin-bottom: 1.2rem;
}
.contacts-col {
  justify-self: start;
  text-align: start;
}
.address-col {
  text-align: center;
}
.logo-col {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}

.social-icon {
  height: 2.4rem;
  width: 2.4rem;
}

.footer-heading {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.contacts {
  font-style: normal;
  font-size: 1.6rem;
}

.address {
  margin-bottom: 2.4rem;
}

.footer-link:any-link {
  color: var(--light-color);
  font-size: 1.6rem;
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: var(--primary-color);
}

.copyright {
  font-size: 1.4rem;
  text-align: center;
  color: var(--secondary-dark-color);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(179, 179, 179, 0.3);
}
