/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Header Styles */
.header {
    text-align: center;
    background: linear-gradient(135deg, #7e57c2, #ab47bc);
    color: #fff;
    padding: 50px 20px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    margin: 0;
}

/* Program Cards Section */
.programs {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
    justify-content: space-around; /* Adjust alignment for small screens */
}

.program-card {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px; /* Adds space between rows of cards */
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.program-card .icon {
    font-size: 3rem;
    color: #7e57c2;
    margin-bottom: 15px;
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.program-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.program-card .btn {
    background-color: #7e57c2;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.program-card .btn:hover {
    background-color: #5e35b1;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 500px; /* Adjust width as needed */
}

.popup-content ul {
    list-style-type: none;
    padding: 0;
}

.close-btn {
    background-color: #7e57c2;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
}

/* Footer Styles */
.footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 190px;
    color: #333333;
    font-size: 12px;
}

/* Media Queries for Responsiveness */

/* Small Screens (Mobile) */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 1rem;
    }

    .programs {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center align cards */
    }

    .program-card {
        width: 90%; /* Make the cards take most of the width */
        margin-bottom: 15px; /* Adjust spacing between cards */
    }

    .popup-content {
        width: 80%; /* Make popup content more responsive on small screens */
    }

    .footer {
        font-size: 10px;
        padding: 20px; /* Reduce padding for smaller screens */
    }
}

/* Medium Screens (Tablets) */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .programs {
        flex-direction: column; /* Stack cards vertically on tablets as well */
        align-items: center;
    }

    .program-card {
        width: 45%; /* Make the cards take 45% of the width */
    }

    .popup-content {
        width: 70%;
    }
}

/* Large Screens (Desktop) */
@media (min-width: 1024px) {
    .programs {
        flex-direction: row; /* Align cards horizontally */
        justify-content: space-around;
    }

    .program-card {
        width: 300px; /* Keep the card width fixed */
    }
}
