* {
  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;
  position: relative;
}

nav a:hover {
  text-decoration: underline;
}

.page-header {
  background-color: #fff0e6;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 30px;
}

.page-header h1 {
  color: #cc5200;
  font-size: 2.5em;
  margin-bottom: 15px;
}

.page-header p {
  color: #666;
  font-size: 1.2em;
}
.tips-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tips-container h2 {
    text-align: center;
    color: #cc5200;
    font-size: 120%;
    margin-bottom: 30px;
    border-bottom: 3px solid #ffb366;
    padding-bottom: 15px;
}

.tip-category {
    margin-bottom: 20px;
    border: 2px solid #ffcc99;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
}

.category-header {
    background: linear-gradient(135deg, #ffcc99, #ffb366);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.category-header h3 {
    font-size: 120%em;
    color: #cc5200;
    margin: 0;
    font-weight: bold;
}

.expand-icon {
    font-size: 1.5em;
    color: #cc5200;
    transition: transform 0.3s ease, color 0.3s ease;
}



.tips-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #fff0e6;
}
.tip-item {
    padding: 20px;
    border-bottom: 1px solid #ffcc99;
    opacity: 0;
    
}

.tip-category.expanded .tip-item {
    opacity: 1;
    
}

.tip-item:last-child {
    border-bottom: none;
}

.tip-item h4 {
    color: #e65c00;
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.tip-item h4::before {
    color: #ffb366;
    margin-left: 8px;
    font-size: 0.8em;
}

.tip-item p {
    color: #333;
    font-size: 1em;
    line-height: 1.7;
    padding-right: 20px;
}

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) {
    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%;
    }
}


@media screen and (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        position: static;
        margin-bottom: 10px;
        width: 40%;
        height: auto;
        max-width: 150px;
    }

    .title-box h1 {
        font-size: 1.5em;
    }

    nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
@media screen and (max-width: 250px) {
	.page-header{
		font-size:80%;
	}
}
@media screen and (max-width: 200px) {
	.tip-item{
		font-size:70%;
	}
	.page-header{
		font-size:60%;
	}
}
@media screen and (max-width: 170px) {
	.tip-item{
		font-size:30%;
	}
	.category-header{
		font-size:50%;
	}
	.page-header{
		font-size:50%;
	}
}
@media screen and (max-width: 150px){
	.page-header{
		font-size:40%;
	}
	.tips-container h2{
		font-size:80%;
	}
	.category-header{
		justify-content:center;
		
	}
	.tip-item{
		padding-right:0px;
		padding-left:0px;
	}
	.tip-item p{
		padding:0px;
	}
	.tip-category{
		width:100%;
	}
}
@media screen and (max-width: 100px){
	.page-header{
		font-size:30%;
	}
	.tips-container h2{
		font-size:70%;
	}
	.tip-category{
		width:110%;
		font-size:40%;
	}
}



