html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    border-radius: 12px;
    background: #fff;
}

.login-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
}

.login-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #444;
}

    .login-info a {
        font-weight: 600;
        text-decoration: underline;
    }

.sb-course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #fff;
}


/* HEADER */
.sb-course-header {
    height: 280px;
    background-size: contain; /* important */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa; /* fallback */
    padding: 16px;
}




    .sb-course-header h5 {
        font-weight: 700;
        margin-bottom: 12px;
    }

    .sb-course-header ul {
        padding-left: 0;
        list-style: none;
        font-size: 14px;
    }

    .sb-course-header li {
        margin-bottom: 6px;
    }

/* BODY */
.sb-course-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}



    .sb-course-body .price {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 10px;
    }

        .sb-course-body .price .usd {
            font-weight: 400;
            font-size: 14px;
            color: #555;
        }

    .sb-course-body h6 {
        font-weight: 700;
        margin: 12px 0;
        line-height: 1.4;
        min-height: 48px; /* keeps equal height */
    }


    .sb-course-body .author {
        font-size: 14px;
        color: #777;
    }

.locked {
    filter: blur(4px);
    user-select: none;
}
.course-header {
    background: linear-gradient(120deg, #2ecc71, #27ae60);
    padding: 60px 0;
}

/* QA CARD */
.qa-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
    overflow: hidden;
}

.qa-header {
    background: #f8f9fa;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.qa-body {
    padding: 16px;
}

.qa-text p {
    margin-bottom: 8px;
}

/* CODE */
pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

/* MOBILE */
@media (max-width: 768px) {
    .course-header {
        padding: 40px 20px;
        text-align: center;
    }
}
.qa-table td,
.qa-table th {
    vertical-align: top;
}

/* Force word wrapping */
.wrap-text {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Improve readability for long answers */
.qa-table td {
    line-height: 1.5;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .qa-table th {
        font-size: 14px;
    }

    .qa-table td {
        font-size: 13px;
    }
}
