@media (max-width: 360px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .filters-button-section {
        grid-template-columns: 1fr;
    }
}

header nav {
    background-color: darkgreen;
    color: white;
    padding: 10px 0;
    text-align: left;
    font-size: xx-large;


}

body {
    font-family: "Roboto", Arial, sans-serif;
    font-optical-sizing: auto;
}

head,
body,
footer {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    background-color: #f4f4f4;
    width: 900px;
}

header div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: blue;
    padding: 11px 20px;
    color: white
}

.home {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    color: #000;
    width: 900px;
    height: 800px;
    text-align: start;


}

h2 {
    background-color: darkgreen;
    color: white;
    font-size: xx-large;
    font-weight: bold;
    text-align: center;
    width: 100%;
    padding: 21px 0;

}

img:hover {
    transform: scale(1.04);

}

.student-photo-section,
.about-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    grid-row: 2;
    background-color: azure;

}

section.courses-section {
    grid-column: 1/-1;
    padding: 1.5rem;
    border-radius: 1.1rem;
    margin-bottom: 2rem;
}

section.student-photo-section {
    display: block;
    object-fit: cover;
    border-radius: .5rem;
    padding: 0 1rem;
    width: 275px;
    margin: 1rem auto 1rem auto;
    position: absolute;
    bottom: 15px;
    left: 601px;
;


}

img {
    border-radius: 2rem;
    position: relative;
    left: 30px;
    bottom: 30px;
    width: 200px;
    transition: transform 0.6s ease;
    padding: 1rem;

}

section.about-section {
    width: 540px;
    padding-left: 1.1rem;

}

h2.about-section {
    font-size: xx-large;
    font-weight: bold;
    text-align: center;
    padding: 0rem 2rem;
    bottom: 200px;


}



.home.event {
    width: 400px;
    height: 250px;
    padding-left: 2rem;
    border: 1.1rem;


}



.course-item:hover {
    transform: translateY(-8px) scale(1.05);
    background-color: orange;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);

}

.course-item:active {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.0.15);
}

.course-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.course-item p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    background-color: azure;
    color: #000;
}

.course {
    background: #fff;
    padding: 1.5rem;
    text-align:center;
    border-radius: 20px;
    box-shadow: 0 8px 20px red;
}

.filters-button-section {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(130px,1fr));
    gap: 100px;
    height: 50px;


    

}

.filter-button {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 2px solid #667eea;
    background: #fff;
    color: #667eea;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;

}

.filter-button:hover {
    background-color: #667eea;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.filter-button-active {
    background-color: #667eea;
    color: #fff;
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.5);
    
}
.filter-button:active  {
    transform: scale(0,98);
}


.course-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid lightgreen;
    background: green;
    color: black;
    font-weight: bolder;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 80px;
    width: 220px;
    

}
.socialmedia {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: azure;
    padding: 100px 0;
    align-items: center;
    height: 90px;
    position: absolute;
    top:1100px;
    left: 16px;
    width: 900px;


}
 .p-div  {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: blue;
    color: white;
    height: 150px;
    font-size: larger;
    font-weight: 600;
    align-items: center;
    width: 900px;
 }
