* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
  }
.container {
        background-color: lightgray;
        line-height: 1.6;

}
/*Header section*/
header {
        display: flex;
        position: sticky;
        z-index: 1000;
        width: 100%;
        top: 0;
        height: auto;
        background-color:lightgray;
        color: black;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px; 
}
.logo h3 {
        font-family: poppin, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-weight:bold ;
        font-size: 2rem;
        text-decoration: underline;
        justify-content: center;
        align-items: center;
}
.logo p {
        font-family: poppin,system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-style: italic;
        letter-spacing: 2px;
        word-spacing: 5px;
      }
.nav a{
        color: black;
        font-size: 20px;
        justify-content: space-between;
        align-items: center;
        margin-left: 10px;
        text-decoration: none;
        gap: 40px;
}
.nav a:hover {
        color: gray;
        text-decoration: underline;
}
/*Hero section*/

.hero {
        height: 50vh;
        text-align: center;
        padding: 80px 20px;
        background:linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
        url('https://picsum.photos/id/10/1200/400') center/cover no-repeat;
        color: white;
}
.hero h2 {
        font-size: 25px;
        font-family: lucida Impact , sans-serif;
        font-style: italic;
        margin-bottom: 10px;       
}
.hero p {
        font-size: 20px;
        margin-bottom: 10px;
}
.courses {
        padding: 40px 20px;
        text-align: center;
}
.courses h2 {
        font-family: popin,system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-size: 30px;
         margin-bottom: 20px;
}
.course-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
}
.course-card {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s;
        
}
.course-card img {
        width: 100%;         
        height: 300px;        
        object-fit: cover;    
        display: block;
        border-top-left-radius: 12px;  
        border-top-right-radius: 12px;

}

.course-card:hover {
    transform: translateY(-5px);
}
.course-card h3 {
        margin: 10px;
        font-size: 20px;
        font-family: lucida Impact , sans-serif;
        font-weight: bold;
}
.course-card p {
        font-family: poppin, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        margin: 0 10px 10px;
        font-size: 15px;
        color: #555;
}
.course-card span {
        display: block;
        margin: 10px;
        font-weight: bold;
        color: #2c3e50;
}
/*contact section*/
.contact {
        padding: 50px 20px;
        text-align: center;
        background-color: grey;
}
    .contact h2{
        font-family: poppin,system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
  .contact form {
        max-width: 400px;
        margin: 20px auto;
        display: flex;
        flex-direction: column;        
}
.contact input, .contact textarea {
        margin-bottom: 10px;
        padding: 15px;
        border-radius: 5px;
        border: 1px solid #ccc;
}        

.contact button {
        padding: 10px;
        background: #5b90c5;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
}
.contact button:hover {
        background: #34495e;
}
/*Footer*/
.footer {   
        font-family: poppin,system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-size: 15px;
        font-weight: bold;
        text-align: center;
        background-color: lightgray ;
        color: black;
        padding: 5px 5px;
        
}
/* For tablets (max width 768px) */
@media (max-width: 768px) {
header {
        flex-direction: column;
        text-align: center;
}

.nav {
        margin-top: 10px;
}

.hero {
        height: auto;
        padding: 50px 10px;
}

.hero h2 {
        font-size: 20px;
}

.hero p {
        font-size: 16px;
}

.course-card img {
        height: 200px;
}
}

/* For mobile devices (max width 480px) *//*
@media (max-width: 480px) {
    .logo h3 {
        font-size: 1.5rem;
    }

    .nav a {
        font-size: 16px;
        margin-left: 5px;
    }

    .hero {
        padding: 40px 10px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero p {
        font-size: 14px;
    }

    .courses h2 {
        font-size: 22px;
    }

    .course-card h3 {
        font-size: 18px;
    }

    .course-card p {
        font-size: 14px;
    }

    .contact {
        padding: 30px 10px;
    }

    .contact form {
        width: 100%;
        padding: 0 10px;
    }
}

