:root {
  --main-color: #63B1B1;
  --secondary-color: #b0e3ee;
  --white: #ffffff;
  --text-color: #333;
}

body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  background-color: var(--white);
  color: var(--text-color);
}

header {
  background-color: var(--main-color);
  color: var(--white);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header .logo h2 {
  margin: 0;
  font-weight: 700;
}

header .logo p {
  margin: 0;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
}

nav ul li a:hover {
  text-decoration: underline;
}

.hero {
  text-align: center;
  background-color: var(--white);
  margin: 20px auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero span {
  color: var(--main-color);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 320px; /* ?? ??? ????? ????? ?????? ?????? ?? ?? */
  gap: 20px;
  padding: 20px;
  margin-left: 100px;
  margin-right: 100px;
}

.post {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post img {
  width: 100%;
  height: 60%;
  object-fit: cover;
}

.post h2 {
  margin: 10px;
  font-size: 1.2rem;
  color: var(--main-color);
}

.post p {
  margin: 0 10px 10px;
  color: #555;
  line-height: 1.6;
}



.post a {
  display: block;
  text-align: center;
  background-color: var(--main-color);
  color: var(--white);
  text-decoration: none;
  padding: 10px;
  border-top: 1px solid #eee;
  font-weight: 600;
}


/* ?? ?????? ?????? */
.post.tall {
  grid-row: span 2; /* ???? ?????? ???? ????? */
}

/* ????? ??????: ???? ?????? */
.post.wide1 {
  grid-column: span 2;
}

/* ???????: ????? ??? ?????? */
.post:hover {
  transform: translateY(-5px);
}


.post1 {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  
}


footer {
  background-color: var(--main-color);
  color: var(--white);
  text-align: center;
  padding: 20px 10px;
  margin-top: 30px;
}



/* ?? ?????? ?????? */

/* === ???? ???? ???? ?????? === */
.post.wide {
  grid-column: span 2;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
}

/* === ????????? ??????? === */
.wide-carousel {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.wide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1s ease;
  text-align: center;
  background: #fff;
}

.wide-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.wide-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.wide-item h3 {
  margin: 10px 0 5px;
  color: #222;
}

.wide-item p {
  color: #555;
  font-size: 0.9rem;
  padding: 0 10px;
}



 .search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px auto;
  max-width: 600px;
  border: 2px solid #ddd;
  border-radius: 25px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.search-bar select {
  border: none;
  outline: none;
  padding: 10px;
  background: #f7f7f7;
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 30%;
}

.search-bar input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 15px;
}

 .search-bar button {
  border: none;
  background: #63B1B1;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s;
}

 .search-bar button:hover {
  background: #0056b3;
}

/* ?????????? */
.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  z-index: 999;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0 0 10px 10px;
}
.suggestions div {
  padding: 8px;
  cursor: pointer;
}
 .suggestions div:hover {
  background: #f0f0f0;
}

/* ?????? ?? ?????? */
@media (max-width: 600px) {
  .search-bar {
    flex-direction: column;
    border-radius: 10px;
	  width: 100%;
  }
   .search-bar select
	 {
    width: 100%;
    border-radius: 0;
  }
 .search-bar input 
   {
    width: 100%;
    border-radius: 0;
	   height:20px;
  }
	 .search-bar button
	 {
    width: 50%;
    border-radius: 0;
  }
}



/* ???? ????? ??????? ??????? */
@media (max-width: 768px) {
  .post.wide1 {
    grid-column: span 1; /* ???? ????? ??????? ?? ??????? */
  }
  .post.tall {
    grid-row: span 1;
  }
  .posts-grid {
 
  margin-left: 10px;
  margin-right: 10px;
}
  
 
}