/* Base styles (added for consistency with courses.html) */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

a {
    color: #2c3e50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container layout with flexbox */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Zoom Calls Section */
.zoom-calls {
    flex: 1 1 250px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.zoom-calls h3 {
    font-size: 16px;
    margin: 0 0 10px;
    color: #2c3e50;
}

.zoom-calls ul {
    padding: 0;
    margin: 0;
}

.zoom-calls li {
    font-size: 14px;
    margin-bottom: 8px;
}

.zoom-calls a {
    color: #2980b9;
    text-decoration: none;
}

.zoom-calls a:hover {
    text-decoration: underline;
}

/* Main dashboard content */
.dashboard-content {
    flex: 2 1 300px;
}

/* Course Styling (for dashboards) */
.course {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.course h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #2c3e50;
}

.course p {
    margin: 5px 0;
}

.course a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

.course a:hover {
    text-decoration: underline;
}

/* Navigation Links as Buttons (for dashboards) */
.dashboard-content p:last-child {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-content p:last-child a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dashboard-content p:last-child a:hover {
    background-color: #34495e;
}

/* Login Image Styling */
.login-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Courses Page Layout with Sidebar and Main Content */
.page-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.sidebar {
    width: 200px;
    background-color: #f9f9f9;
    padding: 20px;
    border-right: 1px solid #ddd;
}

.main-content {
    flex: 1;
    padding: 20px;
    min-width: 0;
}

/* Sidebar Navigation Buttons */
.nav-buttons {
    width: 100%;
}

.nav-buttons h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #2c3e50;
    margin: 0 0 10px;
    text-align: center;
}

.nav-buttons .divider {
    width: 80%;
    height: 1px;
    background-color: #ddd;
    margin: 10px auto;
}

.nav-buttons a,
.nav-buttons button {
    display: block;
    width: 100%; /* Expand to full width of sidebar */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    padding: 10px 15px; /* Consistent padding for all buttons */
    margin: 5px 0;
    background-color: #e6f0fa;
    color: #2c3e50;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-buttons a:hover,
.nav-buttons button:hover {
    background-color: #d1e3ff;
}

.nav-buttons .active {
    background-color: #2c3e50;
    color: #fff;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Course Grid (for courses.html) */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.course-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.course-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #2c3e50;
    margin: 10px 0;
}

.course-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #666;
    margin: 0 10px 10px;
    flex-grow: 1;
}

.course-card a {
    display: inline-block;
    background-color: #2c3e50;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
}

.course-card a:hover {
    background-color: #34495e;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav-buttons h3 {
        display: none;
    }
    .nav-buttons .divider {
        display: none;
    }
    .nav-buttons a,
    .nav-buttons button {
        width: auto;
        margin: 5px;
    }
    .main-content {
        padding: 10px;
    }
    .course-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


