/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

header {
    background: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
    margin: 0;
}

.logo h1 span {
    color: #FFC107;
}

.logo p {
    margin: 0;
    font-size: 0.9rem;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-dashboard {
    background-color: #2196F3;
    color: white;
}

.btn-dashboard:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-logout {
    background-color: #f44336;
    color: white;
}

.btn-logout:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-login {
    background-color: #2196F3;
    color: white;
    width: 100%;
    justify-content: center;
}

.btn-login:hover {
    background-color: #0b7dda;
}

.btn-enroll {
    background-color: #2196F3;
    color: white;
    margin-top: 10px;
    width: 100%;
}

.btn-enroll:hover {
    background-color: #0b7dda;
}

.btn-payment {
    background-color: #2196F3;
    color: white;
    width: 100%;
    margin-top: 20px;
    justify-content: center;
}

.btn-payment:hover {
    background-color: #0b7dda;
}

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 3rem 2rem;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/hero-bg.jpg');
    background-size: cover;
    color: white;
    min-height: 60vh;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.login-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: #333;
    min-width: 320px;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.input-group i {
    margin-right: 10px;
    color: #777;
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
}

/* Course Grid */
.courses {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.courses h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-header {
    padding: 1.5rem;
    background-color: #2196F3;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.course-header i {
    font-size: 1.5rem;
}

.course-body {
    padding: 1.5rem;
}

.course-footer {
    padding: 0 1.5rem 1.5rem;
}

.price {
    font-weight: bold;
    color: #2196F3;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

.teacher {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: modalopen 0.3s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.close:hover {
    color: #333;
}

.payment-summary {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.payment-summary p {
    margin: 5px 0;
}

/* Payment Instructions */
.mpesa-steps {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.mpesa-steps li {
    margin-bottom: 0.5rem;
}

.payment-status {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.payment-status i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.fa-check-circle {
    color: #4CAF50;
}

.fa-times-circle {
    color: #f44336;
}

.fa-spinner {
    color: #2196F3;
}