/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Header Styling */
header {
    background-color: #0056b3;
    color: white;
    padding: 1.5em 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    top: 0;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

header nav ul li {
    display: inline-block;
    margin: 0 auto;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 15px;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
}

header nav ul li a:hover {
    background-color: white;
    color: #0056b3;
}

/* Hero Section */
.hero {
    background: url('https://th.bing.com/th/id/OIP.Bg5-I0kIzO1YL8y7jSfz6gHaEo?rs=1&pid=ImgDetMain') no-repeat center center/cover;
    padding: 120px 0;
    color: white;
    text-align: center;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ff5722;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #e64a19;
    transform: scale(1.05);
}

/* Main Content */
main {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.course-item {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    width: calc(33% - 40px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    text-align: center;
}

.course-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.course-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.course-item p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.course-item a {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.course-item a:hover {
    background-color: #003d80;
}

/* Footer Styling */
.footer {
    background-color: #003d80;
    color: white;
    padding: 60px 0;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container div {
    flex: 1;
    margin: 10px;
}

.footer-about,
.footer-links,
.footer-contact,
.footer-social {
    padding: 10px;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #ff5722;
}

.footer p {
    margin: 0 0 10px;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin: 8px 0;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ff5722;
}

.footer-contact p i {
    margin-right: 8px;
}

.footer-social a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #ff5722;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #ccc;
    padding-top: 15px;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #ff5722;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-item {
        width: 100%;
    }

    .hero {
        padding: 60px 20px;
    }

    .cta-button {
        padding: 12px 30px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-container div {
        margin-bottom: 20px;
    }
}
