/* Hero Section */
#hero {
    background: url('/frontend_assets/secondary-hero.jpeg') center/cover no-repeat;
   /* background-image: url("https://i.ibb.co/pb8wf1k/peit-school.jpg");*/
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    margin-top: 80px;
    text-align: center;
    color: white;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

#hero p {
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Programs Section */
#programs {
    padding: 80px 0;
    background-color: #f9f9f9;
}

#programs h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.program-card {
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.program-card img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #eee;
}

.program-card h3 {
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* Achievements Section */
#achievements {
    padding: 80px 0;
    background-color: #f5f5f5;
}

#achievements h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.achievements-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.achievement-card {
    width: 45%;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 20px;
}

.achievement-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.achievement-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.achievement-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.achievement-card p {
    font-size: 1rem;
    margin-top: 10px;
    color: #fff;
}

/* Student Life Section */
#student-life {
    padding: 80px 0;
    background-color: #fff;
}

.student-life-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.life-card {
    width: 30%;
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.life-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.life-card i {
    font-size: 3rem;
    color: #333;
}

.life-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 10px;
}

.life-card p {
    font-size: 1rem;
    color: #777;
    margin-top: 10px;
}

/* Gallery Section */
#gallery {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.gallery-item h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    #hero h1 {
        font-size: 2.5rem;
    }
  
    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .life-card {
        width: 45%;
    }

    .achievement-card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }
  
    #hero p {
        font-size: 1.2rem;
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .student-life-container {
        flex-direction: column;
        align-items: center;
    }

    .life-card {
        width: 80%;
    }

    .achievement-card {
        width: 80%;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 80px 0;
    }

    #hero h1 {
        font-size: 1.5rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .student-life-container {
        flex-direction: column;
        align-items: center;
    }

    .life-card {
        width: 90%;
    }

    .achievement-card {
        width: 90%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
