/* style.css */
:root {
    --primary-color: #003366; /* Deep corporate blue */
    --secondary-color: #ff9900; /* Accent orange/gold */
    --text-color: #333;
    --bg-light: #f4f7f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
}

/* Course Grid */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
    color: var(--primary-color);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5%;
    margin-bottom: 50px;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}
/* Course Details Layout */
.course-header {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 5%;
    text-align: center;
}

.course-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.course-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.course-content {
    flex: 2;
    min-width: 300px;
}

.course-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.course-content h2 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.course-content p, .course-content ul {
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

.course-content ul {
    margin-left: 20px;
}

/* Course Sidebar */
.course-sidebar {
    flex: 1;
    min-width: 300px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 100px; /* Sticks as user scrolls */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.sidebar-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.sidebar-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.sidebar-card ul li span {
    font-weight: bold;
    color: var(--primary-color);
}

.btn-full {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}
/* Form Alerts */
.alert { padding: 15px; margin-bottom: 20px; border-radius: 4px; text-align: center; font-weight: bold; }
.alert.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }