/* Core lightweight CSS framework for Yemen Gate */
/* Basic reset */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  background-color: #ffffff;
  color: #343a40;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Links */
a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  text-decoration: underline;
  color: #0056b3;
}

/* Containers and grid */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  max-width: 1200px;
}

section.container {
  margin-top:2rem;
  margin-bottom:2rem;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}
.col {
  flex: 1 0 0%;
  padding-left: 1rem;
  padding-right: 1rem;
}
.grid {
  display:flex;
  flex-wrap:wrap;
  margin-left:-1rem;
  margin-right:-1rem;
}
.grid > * {
  flex:1 0 0%;
  padding-left:1rem;
  padding-right:1rem;
}

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #dddddd;
}
.navbar .menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.navbar .menu li {
  margin-left: 1.5rem;
}
.navbar .menu a {
  color: #343a40;
  text-decoration: none;
}

/* Buttons */
button, .btn, input[type="submit"], input[type="button"] {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 1px solid #007bff;
  background-color: #007bff;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.125rem;
  font-family: inherit;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
button.secondary, .btn.secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}
button:disabled, .btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}
button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
button:focus, .btn:focus, input[type="submit"]:focus, input[type="button"]:focus {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: #fff;
  color: #343a40;
}
label {
  display: block;
  margin-bottom: 0.5rem;
}

/* Cards */
.card, .compact-card {
  border: 1px solid #dddddd;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }

/* Responsive navigation */
.menu-toggle {
  display: none;
}
@media (max-width: 600px) {
  .navbar .menu {
    flex-direction: column;
    display: none;
  }
  .navbar .menu.active {
    display: flex;
  }
  .navbar .menu li {
    margin: 0.5rem 0;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: 1px solid #343a40;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
  }
}
