* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

body {
  font-family: 'Rudaw', Tahoma, sans-serif;
  background: #eeeded;
  color: #07427d;
  line-height: 1.5;
}

@font-face {
  font-family: 'Rudaw';
  src: url('fonts/Rudaw.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

header {
  position: relative;
  background: url("pic/header.jpg") center/cover no-repeat;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.header-datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  margin-right: 2rem;
  margin-top: 7rem; 
  gap: 0.2rem;
}

#date {
  font-size: 22px;
  font-weight: bold;
  color: #07427d;
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
}

#time-day {
  font-size: 18px;
  color: #07427d;
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.header-logo {
  width: 250px;
  height: auto;
}

.container {
  max-width: 900px;
  margin: 0.1rem auto;
  padding: 0.8rem;
}

.table-wrapper {
  overflow-x: auto;
}

.currency-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}

.currency-table th,
.currency-table td {
  text-align: center;
  padding: 0.5rem;
  font-size: 16px;
  vertical-align: middle;
  height: 60px;
}

.currency-table th {
  font-size: 20px;
  background: #07427d;
  color: white;
  font-weight: bold;

}
.currency-table td {
  font-weight: bold;
  font-size: 18px;

}
.currency-name {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: right;
  direction: rtl;
  padding-right: 5px;
}

.currency-name img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.currency-name span {
  flex: 1;
  display: inline-block;
  text-align: right;
}

.buy, .sell {
  display: inline-block;
  min-width: 80px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: #000;
  font-size: 17px;
  background: rgba(7, 66, 125, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

footer {
  background: #07427d;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem;
  color: white;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.footer-social img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  padding: 4px;
  transition: transform 0.2s ease-in-out;
}

.footer-social img:hover {
  transform: scale(1.15);
}

.footer-phones {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

.footer-phones a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.footer-phones a:hover {
  text-decoration: underline;
}

.footer-address {
  font-size: 14px;
}

@media (max-width: 768px) {
  header { height: 280px; }
  #date { font-size: 18px; }
  #time-day { font-size: 16px; }
  .header-logo { width: 200px; }
  .currency-table th,
  .currency-table td { font-size: 16px; }
}

@media (max-width: 480px) {
  header { height: 220px; }
  #date { font-size: 16px; }
  #time-day { font-size: 14px; }
  .header-logo { width: 160px; }
  .currency-table th,
  .currency-table td { font-size: 14px; }
}
