/* Container and Main Section */
.container {
margin-top: 70px; /* Adjusted for header height */
    padding: 0 18px;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
}

.main-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 800;
    letter-spacing: 1px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 28px;
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

/* Course Card */
.course-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.10);
    padding: 32px 22px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e7ef;
    transition: box-shadow 0.2s;
}

.course-card:hover {
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
    transform: translateY(-2px) scale(1.01);
}

/* Course Name */
.course-name {
    font-size: 1.8rem;
    color: #2563eb;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Description */
.course-description {
    color: #334155;
    font-size: 1.15rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Course Details */
.course-details {
    margin-bottom: 16px;
    padding-left: 12px;
    color: #222;
    font-size: 1.08rem;
}

.course-details > li {
    margin-bottom: 8px;
}

.course-details ul {
    margin-top: 6px;
    margin-bottom: 0;
    padding-left: 14px;
    font-size: 1rem;
    color: #555;
}

.course-details strong {
    color: #2563eb;
}

/* Enroll Button */
.enroll-btn {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.18rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
}

.enroll-btn:hover {
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.18);
}

/* Responsive */
@media (max-width: 700px) {
    .container {
        padding: 0 4px;
        border-radius: 0;
        box-shadow: none;
    }
    .main-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .course-card {
        padding: 16px 8px;
        border-radius: 8px;
    }
    .course-grid {
        gap: 14px;
    }
    .course-name {
        font-size: 1.25rem;
    }
    .course-description,
    .course-details {
        font-size: 1rem;
    }
    .enroll-btn {
        padding: 12px 18px;
        font-size: 1rem;
        border-radius: 6px;
    }
}

/* --- General Modal Styles (Ensure these are already present or add if missing) --- */
/* (Copied from previous responses for completeness, but might already exist in your file) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 20px; /* Add some padding around the modal */
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Centers the modal vertically and horizontally */
    padding: 30px;
    border: 1px solid #888;
    width: 90%; /* Responsive width */
    max-width: 500px; /* Max width for payment modal */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeInModal 0.3s ease-out; /* Simple fade in animation */
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

.modal-content h2 {
    color: #3498db;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8em;
}

/* --- New Payment Modal Specific Styles --- */
#paymentModal .modal-content h2 {
    color: #28a745; /* Green color for payment confirmation */
}

.payment-details-summary {
    background-color: #e6ffe6; /* Light green background */
    border: 1px solid #aaffaa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.payment-details-summary p {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #333;
}

.payment-details-summary h3 {
    font-size: 2em;
    color: #007bff;
    margin: 0 0 15px 0;
}

.payment-details-summary .price {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.payment-details-summary .currency {
    font-size: 0.8em;
    vertical-align: super;
    margin-right: 5px;
    color: #555;
}

.payment-instruction {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.confirm-payment-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #28a745; /* Green confirm button */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.confirm-payment-btn:hover {
    background-color: #218838;
}