/* =========================================
   COURSES PAGE STYLES (style2.css)
   ========================================= */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

/* The courses page has a solid background, not a gradient */
body {
    background-color: #ffffff; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Navigation Bar (Matches the Home Page exactly) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background-color: #0d47a1; 
    color: white;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px; 
}

.nav-logo-img {
    height: 35px; 
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.streak {
    font-weight: 600;
}

.notification {
    cursor: pointer;
}

.sign-in-btn {
    background-color: white;
    color: #0d47a1;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sign-in-btn:hover {
    background-color: #f0f0f0;
}

/* --- Courses Container --- */
.courses-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between the cards */
}

/* --- Course Card Layout --- */
.course-card {
    background-color: #6a92c7; /* The soft blue from your mockup */
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
}

/* The Square Icon on the left */
.course-icon {
    background-color: #0d47a1; /* Dark blue background for the icon */
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; 
}

.course-icon img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

/* Middle Section (Text & Progress) */
.course-details {
    flex: 1; /* Takes up all remaining middle space */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-details h2 {
    font-size: 1.6rem;
    font-weight: 500;
}

.course-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Progress Bar */
.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.5rem;
}

.progress-text {
    font-size: 0.9rem;
    min-width: 35px;
}

.progress-bar-bg {
    flex: 1;
    background-color: #c4baba; /* Light greyish empty bar */
    height: 10px;
    border-radius: 5px;
    overflow: hidden; 
}

.progress-bar-fill {
    background-color: #0d47a1; /* Dark blue fill */
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Right Section (Buttons) */
.course-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-light {
    background-color: white;
    color: #333;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-light:hover {
    background-color: #f0f0f0;
}

/* Helper class for the bolded "Start" / "Resume" buttons */
.fw-bold {
    font-weight: 600;
}