/* Basic Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: #007bff;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

/* Header */
.main-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: #ccc 1px solid;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

/* Hero Section */
.hero-section {
    background: #e9ecef;
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.feature-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #007bff;
}

/* Footer */
.main-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}
/* Logo */
.logo img {
    height: 200px; /* Adjust this value as needed */
    width: auto;
}
/* Courses Page Specific Styles */
.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding: 1rem;
    color: #333; /* Dark text for readability on the card */
}

.course-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.course-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.course-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* Ensure the button on the course card is styled correctly */
.add-to-cart-btn {
    font-size: 0.9rem;
    padding: 8px 15px;
}
/* Cart Page Specific Styles */
.cart-section {
    min-height: 50vh;
}

#cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    color: #333;
}

.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-info h4 {
    margin-bottom: 0.5rem;
    color: #007bff;
}

.cart-item-price {
    font-weight: bold;
}

.remove-item-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-item-btn:hover {
    background: #c82333;
}

.cart-summary {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #333;
}

.cart-summary h3 {
    margin-bottom: 1rem;
    color: #007bff;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.empty-cart-message {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    padding: 3rem 0;
}

.checkout-actions {
    text-align: right;
    margin-top: 2rem;
}
/* Account Page Specific Styles */
.account-section {
    min-height: 50vh;
}

#auth-forms {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 2rem auto;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#login h2, #welcome-message h2 {
    color: #007bff;
    margin-bottom: 1rem;
}

#welcome-message p {
    margin-bottom: 1.5rem;
}

#logout-btn {
    background-color: #dc3545;
}

#logout-btn:hover {
    background-color: #c82333;
}
/* Checkout Page Specific Styles */
.checkout-section {
    min-height: 70vh;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Two columns for form and summary */
    gap: 2rem;
    margin-top: 2rem;
}

.checkout-form-container, .order-summary-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #333;
}

.checkout-form-container h2, .order-summary-container h2 {
    color: #007bff;
    margin-bottom: 1.5rem;
}

#checkout-summary-list {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-total-checkout {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
}

#place-order-btn {
    width: 100%;
    margin-top: 2rem;
    padding: 15px;
    font-size: 1.2rem;
}
/* Creator Section Styles */
.creator-section {
    padding: 4rem 0;
    text-align: center;
    background: #f9f9f9; /* I've used a light background color here. You may need to adjust this depending on your overall design and background image. */
}

.creator-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.creator-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.creator-info p {
    text-align: center;
    font-size: 1rem;
    color: #555;
}