* {
     margin: 0px;
     padding: 0px;
     box-sizing: border-box;
}
html{
	height:100%;
}
main{
	flex:1;
}
 body {
	 height:100%;
	 display: flex;
     flex-direction: column;
     font-family: "Arial", sans-serif;
     background-color: #f9f9f9;
     line-height: 1.6;
     direction: rtl;
	 
}
 header {
     background-color: #ffcc99;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-wrap: wrap;
     position: relative;
}
 .logo {
     position: absolute;
     right: 20px;
     height: 70px;
     width: auto;
}
 .title-box {
     text-align: center;
}
 .title-box h1 {
     font-size: 2em;
     color: #cc5200;
}
 .title-box p {
     font-size: 1em;
     color: #333;
}
 nav {
     background-color: #ffb366;
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 20px;
     padding: 10px;
}
 nav a {
     color: white;
     text-decoration: none;
     font-weight: bold;
}
 nav a:hover {
     text-decoration: underline;
}
footer {
     background-color: #ffb366;
     color: white;
     text-align: center;
     padding: 60px;
     font-size: 1em;
     position:relative;
}
 footer p {
     max-width: 90%;
     margin: auto;
     line-height: 1.6;
}
@media screen and (max-width: 600px) {
     header {
         flex-direction: column;
         align-items: center;
    }
     .logo {
         position: static;
         margin-bottom: 10px;
         width: 40%;
         height: auto;
    }
    .title-box {
         text-align: center;
    }
     .title-box h1 {
         font-size: 150%;
    }
    nav {
         flex-direction: column;
         gap: 10px;
         text-align: center;
    }
	footer {
         padding: 40px 10px;
    }
}
@media screen and (max-width: 400px) {
     footer {
         font-size:100%;
    }
}
 @media screen and (max-width: 200px) {
     footer {
         font-size:70%;
    }
}
 @media screen and (max-width: 150px) {
     footer {
         font-size:50%;
    }
}
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  direction: rtl; 
  font-family: Arial, sans-serif;
}
main h1 {
	color: #cc5200;
  text-align: center;
  margin-bottom: 60px;
}
.afirst, .asecond, .athird {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}
.abfirst, .absecond, .abthird {
     display: inline-block;
     width: 300px;
     height: 50%;
     margin: 15px;
     padding: 15px;
}
.bsecond img, .bthird img,.bfirst img {
     width: 100%;
     height:50%;
     object-fit: cover; 
}
.afirst :first-child {
  background-color: #f1f1f8;
}
.asecond :last-child {
  background-color: #e6f0ec;
}
.athird :first-child {
  background-color: #f2f2f2;
}
.bfirst p,.bsecond p,.bthird p {
  line-height: 1.8;
  font-size: 1.1em;
  
}
.bfirst h2,.bsecond h2,.bthird h2  {
  margin-bottom: 20px;
  font-size: 1.5em;
}

@media screen and (max-width: 350px) {
	.bfirst, .bsecond, .bthird {
		padding:0;
		margin:0;
	}
	main {
		padding:0;
	}
}
@media screen and (max-width: 300px) {
	.bfirst, .bsecond, .bthird {
		width:80%;
	}
}
@media screen and (max-width: 100px) {
	.bfirst, .bsecond, .bthird {
		font-size:50%;
	}
	main h1{
		font-size:150%;
	}
	#Mofficials{
		font-size:50%;
	}
}
.hide {
  display: none;
}
