
/* Normal CSS (Desktop) */

/* Reset + Gobal */
body{
    font-family: Arial, sans-serif;
    margin: 0;
    padding:0;
    background-color: #f0f2f5;
}
/* Layout*/
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color:darkblue;
    color: white;
    padding: 15px;
    text-align: center;
    background: linear-gradient( to right, #1e3c72, #2a5298 );
}
nav{
    display: flex;
    justify-content: center;
    gap: 20px;
}

section {
  padding: 40px;
  text-align: center;
  background: white;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    max-width: 800px;
    margin: 50px auto;
}
footer{
    background-color: #333;
    color: white;
    text-align: center;

}
 
/* Components */
nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    text-align: center;
    
}
 ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
 }
 ul li{
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
 }

 /* Typgraphy */
 header h1{
    color: white;
 }
 p{
    line-height: 1.6;
 }
h2{
    color: #333;
}
 
/*Effect*/
nav a:hover{
    text-decoration: underline;
    color: black;
    transition: 0.3s;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;

} 
.hero img{
    margin-top: 15px;
    border-radius: 10px;
}

/* Advanced */
section:nth-of-type(even) {
    background-color: #f4f4f4;
}
section a {
    display: inline-block;
    padding: 10px 15px;
    background-color: darkblue;
    color: white;
    border-radius: 5px;
}

/*responsive CSS (Mobile) */

@media (max-width: 768px){
    header {
        flex-direction: column;
        text-align: center;
    }

 nav{ 
    flex-direction: column;
 }

 nav a {
display: block;
padding: 10px;
 }
 ul{
    flex-direction: column;
    padding: 20px;
 }
 img{
    max-width: 100%;
    height: auto;
 }
}
.container {
    max-width: 800px;
    margin: auto;
}