  /* Overall background */
  /* Prevent horizontal overflow issue */
/* Prevent horizontal overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}



 /* Header styling */
 header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(29, 53, 78);
    color: white;
    padding: 20px 10px;
    text-align: center;
}

header img {
    height: 120px;
    width: auto;
    margin-right: 30px;
}

.header-content {
    max-width: 600px;
}

.header-content h1 {
    font-size: 28px;
    margin: 5px 0;
}

.header-content p {
    font-size: 16px;
    margin: 0;
}

/*course container */


/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1a2a3a;
    padding: 15px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Add margin to body to prevent content from being hidden behind the navbar */
body {
    padding-top: 60px; /* Adjust this value to match the navbar height */
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
}

nav a:hover {
    color: #3498db;
}
/* Ensure the Login button looks like a navigation link */
.login-dropdown {
    position: relative;
    display: inline-block;
}

.login-dropdown .dropdown-btn {
    background: transparent;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

.login-dropdown .dropdown-btn:hover {
    background: #1b354f;
    transform: scale(1.1);
}

/* Style for dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 150px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: black;
    padding: 10px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: lightgray;
}

/* Show dropdown on hover */
.login-dropdown:hover .dropdown-content {
    display: block;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(25, 45, 70);
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.nav-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

.menu a:hover {
    background: #1b354f;
    transform: scale(1.1);
}


/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 150px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1;
}

/* Dropdown Links */
.dropdown-content a {
    color: black;
    padding: 10px;
    display: block;
    text-decoration: none;
    transition: 0.3s;
}

/* Hover Effects */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}


.course-card {
    background-color: #fff;
    padding: 20px;
    margin: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.course-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.course-description {
    color: #555;
    font-size: 16px;
    margin-bottom: 15px;
}

.enroll-btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.enroll-btn:hover {
    background-color: #217dbb;
}



main {
    flex: 1;
}

.main-content {
    flex: 1; /* Pushes the footer to the bottom */
} 
/* Responsive design */
@media (max-width: 768px) {
    .courses-container {
        flex-direction: column;
        align-items: center;
    }
}
.course-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    margin: 15px;
    width: 300px;
    text-align: center;
    display: inline-block;
    vertical-align: top;
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.course-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

.course-description {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
}

.course-link {
    display: inline-block;
    padding: 10px 15px;
    background:rgb(29, 53, 78);;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.course-link:hover {
    background: #2980b9;
}

.courses-container {
    text-align: center;
    margin: 20px auto;
    max-width: 1200px;
}

.department-dropdown {
    position: relative;
    display: inline-block;
}

.department-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background: #1b354f; /* Blue background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    min-width: 280px; /* Increased width for single-line text */
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* Centers dropdown */
    z-index: 1000;
    text-align: center;
    padding: 10px 0; /* More space between items */
}

.department-dropdown:hover .dropdown-content,
.department-dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: white !important; /* Makes text white */
    font-size: 16px;
    font-weight: bold;
    background: #1b354f; /* Default Blue */
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevents text wrapping */
}

/* Hover Effect */
.dropdown-content a:hover {
    background: #0f253b; /* Darker Blue */
    color: #ffffff; /* Keep text white */
}

/* Login Dropdown */
.login-dropdown {
    position: relative;
    display: inline-block;
}

.login-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background: #1b354f; /* Blue background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    min-width: 220px; /* Adjusted for better readability */
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* Centers dropdown */
    z-index: 1000;
    text-align: center;
    padding: 10px 0;
}

.login-dropdown:hover .dropdown-content,
.login-dropdown:focus-within .dropdown-content {
    display: block;
}

/* Fix Text Visibility */


/* Hover Effect */
.login-dropdown .dropdown-content a:hover {
    background: #0f253b; /* Darker Blue */
    color: #ffffff; /* Keep text white */
}
/* Dropdown Styling (Departments & Login) */
.department-dropdown .dropdown-content a,
.login-dropdown .dropdown-content a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: white !important;
    font-size: 16px;
    font-weight: bold;
    background: #1b354f; /* Default Blue */
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s;
    white-space: nowrap; /* Ensures text stays in a single line */
    text-align: center;
}

/* 🔥 Improved Hover Effect */
.department-dropdown .dropdown-content a:hover,
.login-dropdown .dropdown-content a:hover {
    background: #095185; /* Brighter Modern Blue */
    color: #ffffff; /* Keep text white */
    transform: scale(1.05); /* Slight scale effect */
}
/* Add to your existing CSS */


.menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}


.login-dropdown {
    position: relative;
    display: inline-block;
}

/* Responsive adjustments */
