*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
}

main {
    flex: 1
}

nav a {
    font-size: 18px;
}

nav a:hover {
    color: #007bff;
}

header {
    background: white;
    position: fixed;
    top: 0;
    width: 100%;
}

img {
    width: 100%;
}

.header-logo {
    width: 8em;
}

.text-center {
    text-align: center;
}

.container {
    padding: 16px 120px;
    border-radius: 12px;
    max-width: 1440px;
    margin: auto;
}

.flex {
    display: flex;
}

.auth {
    gap: 1em;
    align-items: center;
    font-size: 18px;
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
        border-radius: 12px;
        max-width: 480px;
    }
}

a {
    text-decoration: none;
}

form {
    max-width: 480px;
    margin: auto;
}

h2 {
    margin-bottom: 15px;
    text-align: center;
}

label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

a {
    cursor: pointer;
}

button {
    margin-top: 15px;
    padding: 10px;
    border: none;
    background: #3578e5;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 250ms;
}

button:hover {
    background: #245fbd;
    color: white;
}

.note {
    text-align: center;
    margin-top: 10px;
}

.result {
    margin-top: 15px;
    font-weight: bold;
}

.tabs {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.tab-button {
    padding: 8px 16px;
    border: 1px solid #999;
    background: #f2f2f2;
    cursor: pointer;
    color: black;
}

.tab-button.active {
    background: #ddd;
    font-weight: bold;
}

.tab-button.active:hover {
    color: black;
}

.tab-panel {
    display: none;
    margin-top: 20px;
}

.tab-panel.active {
    display: block;
}

.section {
    padding: 60px 20px;
    text-align: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #007bff;
    /* Primary Brand Color */
}

/* Call-to-Action Buttons (CTAs) */
.cta-button {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    /* Ensure buttons look clickable */
    transition: background-color 0.3s, transform 0.2s;
}

.primary {
    background-color: #007bff;
    color: white;
    border: 2px solid #007bff;
    /* Separator for the Nav button */
}

.primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.secondary {
    background-color: white;
    color: #007bff;
    border: 1px solid #007bff;
}

.secondary:hover {
    background-color: #e6f2ff;
}

.large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Hero Section Styles */
.hero {
    background-color: #e6f2ff;
    /* Light blue background */
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555;
}

/* Featured Courses Grid Layout */
.featured-courses h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.course-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.course-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 300px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.course-card h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.course-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Subscription CTA Section */
.subscription-cta {
    background-color: #343a40;
    /* Dark background */
    color: white;
    padding: 80px 20px;
}

.subscription-cta h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.subscription-cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Footer Styles */
.footer {
    padding: 20px;
    text-align: center;
    background-color: #2c3e50;
    color: #ddd;
    font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px 20px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .course-card {
        width: 100%;
    }
}

.account {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.subscriptionContent {
    text-align: center;
}

/* Course Detail Hero */
.course-hero {
    background-color: #e6f2ff;
    /* light blue like homepage hero */
    padding: 80px 20px;
    text-align: center;
}

.course-hero h1 {
    font-size: 2.4em;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.course-category {
    font-size: 1.1em;
    color: #007bff;
    margin-bottom: 10px;
}

.course-duration {
    font-size: 1em;
    color: #555;
    margin-bottom: 30px;
}

/* Detail Section */
.detail-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: auto;
    text-align: left;
}

.detail-wrapper h2 {
    color: #1a1a1a;
    margin-top: 30px;
}

.description-text {
    color: #444;
    line-height: 1.6;
}

.outcomes-list {
    margin-top: 20px;
    padding-left: 20px;
    color: #333;
    line-height: 1.6;
}

.outcomes-list li {
    margin-bottom: 10px;
}

.subscription-hero {
    background: #e6f2ff;
    padding: 80px 20px;
    text-align: center;
}

.subscription-hero h1 {
    font-size: 2.4em;
    margin-bottom: 10px;
}

.plans-section {
    padding: 60px 20px;
}

.plans-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.plan-card {
    background: white;
    padding: 30px;
    width: 300px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.plan-card .price {
    font-size: 1.6em;
    color: #007bff;
    margin: 10px 0;
}

.plan-card .desc {
    color: #555;
    margin-bottom: 20px;
}

.plan-card .info {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.subscription-item {
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: left;
}

.subscription-item button {
    margin-top: 10px;
    padding: 8px 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.subscription-item button:hover {
    background: #b52a36;
}

.quiz-wrapper {
    max-width: 680px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.quiz-wrapper h3 {
    margin-bottom: 25px;
    color: var(--Primary-Color-Primary-Blue, #146eff);
}

.question-block {
    margin-bottom: 22px;
    padding: 15px 18px;
    border-radius: 10px;
    background: #f7faff;
    border: 1px solid #e1ebff;
}

#submitQuiz {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
}

#quizResult {
    font-size: 18px;
    text-align: center;
    color: #146eff;
}

.radio {
    flex: 1;
    width: auto;
}