/* ======================
   Global Reset & Fonts
====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

/* ======================
   Header & Navigation
====================== */
header {
  background-color: #dcdcdc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header img {
  height: 60px;
}

header nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #C41E3A; /* قرمز لوگو */
  font-weight: bold;
  transition: 0.3s;
}

header nav a:hover {
  color: #555;
}

/* ======================
   Hero Section
====================== */
.hero {
  position: relative;
  background: url('images/hero_combined.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero::before {
  content: "";
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.4);
  z-index:0;
}

.hero h1, .hero p, .hero a {
  position: relative;
  z-index:1;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero .button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #C41E3A;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.hero .button:hover {
  background-color: #a71a33;
}

/* ======================
   Sections
====================== */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
  color: #333;
}

/* ======================
   Grid & Cards
====================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  padding: 15px;
  font-size: 20px;
  color: #C41E3A;
}

.card .button {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.card .button:hover {
  background-color: #C41E3A;
}

/* ======================
   Forms
====================== */
form {
  max-width: 600px;
  margin: 0 auto;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0 20px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

button[type="submit"] {
  padding: 12px 25px;
  background-color: #C41E3A;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button[type="submit"]:hover {
  background-color: #a71a33;
}

/* ======================
   Footer
====================== */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* ======================
   Responsive
====================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 16px;
  }
}