/* =========================================================
   HUNAR UI — STRUCTURED STYLESHEET
   Bootstrap 5 compatible
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    --hunar-blue: #074bc8;
    --hunar-blue-dark: #063fa7;
    --hunar-deep: #16336b;
    --hunar-soft: #eef3ff;

    --hunar-ink: #101114;
    --hunar-text: #3d4047;
    --hunar-muted: #707583;
    --hunar-border: #dfe3eb;

    --hunar-success: #16835b;
    --hunar-danger: #d73b42;

    --hunar-page-bg: #eef1f6;
    --hunar-card-bg: #ffffff;

    --hunar-radius-sm: 8px;
    --hunar-radius: 14px;
    --hunar-radius-lg: 18px;

    --hunar-shadow:
        0 18px 60px rgba(22, 51, 107, 0.14);
}


/* =========================================================
   2. RESET AND BASE
   ========================================================= */

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

html {
    width: 100%;
    min-height: 100%;
    scrollbar-gutter: stable;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;

    background: var(--hunar-page-bg);
    color: var(--hunar-ink);

    font-family:
        Poppins,
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   3. APPLICATION SHELLS
   ========================================================= */

.mobile-shell {
    position: relative;

    width: 100%;
    max-width: 430px;
    min-width: 0;
    min-height: 100vh;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    flex-shrink: 0;

    overflow-x: hidden;
    background: #ffffff;
}

.mobile-shell.wide {
    max-width: 430px;
}

.page-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 12px 24px 32px;
}

.page-content.flush {
    padding: 0;
}

.auth-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 10px 46px 28px;

    display: flex;
    flex-direction: column;
}

.auth-content section,
.auth-content form {
    width: 100%;
    min-width: 0;
}

.status-bar {
    height: 34px;
    padding: 8px 22px 0;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    color: #151515;
    font-size: 0.75rem;
    font-weight: 700;
}

.signal {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.7rem;
}


/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */

.brand {
    color: var(--hunar-blue);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
}

.brand.small {
    font-size: 1.45rem;
}

.display-title {
    max-width: 100%;
    margin-bottom: 12px;

    font-size: 2rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;

    overflow-wrap: break-word;
    word-break: normal;
}

.subtitle {
    color: var(--hunar-text);
    font-size: 1rem;
    line-height: 1.45;
}

.text-muted-custom {
    color: var(--hunar-muted) !important;
}

.section-title {
    margin: 18px 0 12px;

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 1.3rem;
    font-weight: 800;
}

.section-link {
    color: var(--hunar-blue);
    font-size: 0.8rem;
    font-weight: 700;
}


/* =========================================================
   5. SHARED FORMS
   ========================================================= */

.form-label {
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 52px;

    border-color: var(--hunar-border);
    border-radius: 12px;

    background: #fafbfe;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hunar-blue);
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(7, 75, 200, 0.12);
}

.input-group {
    flex-wrap: nowrap;
}

.input-group > .form-control,
.input-group > .form-select {
    border-radius: 0 12px 12px 0;
}

.input-group > .input-group-text:first-child {
    border-radius: 12px 0 0 12px;
}

.input-group-text.input-icon {
    width: 54px;
    min-width: 54px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d7d7df;
    border-right: 0;
    border-radius: 15px 0 0 15px;

    background: #f8f8fc;
    color: #4b5563;
}

.input-group-text.input-icon i {
    font-size: 20px;
}

.input-group .form-control {
    height: 56px;
    padding-left: 8px;

    border: 1px solid #d7d7df;
    border-left: 0;
    border-radius: 0 15px 15px 0;

    background: #f8f8fc;
    box-shadow: none;
}

.input-group .form-control:focus {
    border-color: var(--hunar-blue);
    background: #ffffff;
    box-shadow: none;
}

.input-group:focus-within .input-icon {
    border-color: var(--hunar-blue);
    background: #ffffff;
    color: var(--hunar-blue);
}


/* =========================================================
   6. BUTTONS
   ========================================================= */

.btn-hunar {
    min-height: 56px;
    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 0;
    border-radius: 15px;

    background: var(--hunar-blue);
    color: #ffffff;

    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.btn-hunar:hover,
.btn-hunar:focus {
    background: var(--hunar-blue-dark);
    color: #ffffff;
}

.btn-outline-hunar {
    min-height: 46px;

    border: 1px solid var(--hunar-blue);
    border-radius: 12px;

    background: #ffffff;
    color: var(--hunar-blue);

    font-weight: 600;
}

.btn-outline-hunar:hover {
    background: var(--hunar-soft);
    color: var(--hunar-blue);
}

.btn-arrow {
    margin-left: auto;
    font-size: 18px;
    line-height: 1;
}


/* =========================================================
   7. AUTHENTICATION PAGES
   ========================================================= */

.auth-note {
    margin-top: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #68707d;
    font-size: 13px;
    text-align: center;
}

.auth-note i {
    font-size: 12px;
}

.legal {
    margin-top: auto;
    padding-top: 54px;

    color: #777d89;
    font-size: 0.76rem;
    text-align: center;
}

.legal a {
    color: var(--hunar-blue);
    font-weight: 600;
}


/* OTP */

.otp-row {
    width: 100%;
    max-width: 314px;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 44px));
    justify-content: flex-start;
    gap: 10px;

    overflow: hidden;
}

.otp-row .otp-input {
    width: 44px !important;
    min-width: 0 !important;
    max-width: 44px !important;
    height: 50px !important;
    padding: 0 !important;

    border: 1px solid #d3d7df;
    border-radius: 11px;

    background: #ffffff;
    color: #111111;

    font-size: 20px;
    font-weight: 600;
    text-align: center;

    outline: none;
    appearance: none;
    box-shadow: none;
}

.otp-row .otp-input:focus {
    border-color: var(--hunar-blue);
    box-shadow: 0 0 0 3px rgba(7, 75, 200, 0.1);
}

.otp-resend {
    color: #212529;
    font-size: 14px;
    line-height: 1.5;
}

.otp-resend strong {
    display: block;
    margin-bottom: 2px;
}


/* =========================================================
   8. SHARED APP COMPONENTS
   ========================================================= */

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;

    padding: 8px 22px 10px;

    display: flex;
    align-items: center;
    gap: 14px;

    border-bottom: 1px solid #f0f1f5;
    background: #ffffff;
}

.icon-btn {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #151515;

    font-size: 1.35rem;
}

.icon-btn:hover {
    background: #f3f5f8;
}

.search-pill {
    flex: 1;
    height: 42px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    gap: 9px;

    border: 1px solid var(--hunar-border);
    border-radius: 24px;

    background: #f8f9fc;
    color: #8a8f9a;

    font-size: 0.86rem;
}

.card-soft {
    border: 1px solid #edf0f6;
    border-radius: var(--hunar-radius);
    background: #f8faff;
}

.app-footer {
    margin-top: auto;
    padding: 15px 20px;

    background: var(--hunar-blue);
    color: #ffffff;

    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-align: center;
}


/* =========================================================
   9. CATEGORY SELECTION PAGE
   ========================================================= */

.page-content.category-page {
    width: 100%;
    padding: 18px 46px 28px;
}

.category-page .brand {
    margin: 0 0 24px;

    color: var(--hunar-blue);
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

.category-page .display-title {
    margin: 0 0 8px;

    color: #080808;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.category-description {
    max-width: 430px;
    margin: 0;

    color: #6f7683;
    font-size: 16px;
    line-height: 1.45;
}

.category-search {
    position: relative;
    width: 100%;
    margin: 20px 0 14px;
}

.category-search .search-symbol {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;

    transform: translateY(-50%);

    color: #14171c;
    font-size: 18px;

    pointer-events: none;
}

.category-search .form-control {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 16px 0 48px;

    border: 1px solid #d9dee7;
    border-radius: 14px;

    background: #fafbfe;
    color: #151922;

    font-size: 15px;
    box-shadow: none;
}

.category-search .form-control::placeholder {
    color: #858c99;
}

.category-search .form-control:focus {
    border-color: var(--hunar-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(7, 75, 200, 0.08);
}

.category-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

#categoryList.row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 10px;
}

.category-item {
    width: 100%;
    min-width: 0;
}

.category-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 116px;
    min-height: 116px;
    margin: 0;
    padding: 8px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    overflow: hidden;

    border: 1px solid #e0e4eb;
    border-radius: 15px;

    background: #ffffff;
    color: #111111;

    font-family: inherit;
    text-align: center;

    appearance: none;
    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.category-card img {
    width: 92px;
    height: 74px;
    max-width: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    mix-blend-mode: normal;
    filter: none;
}

.category-card span {
    width: 100%;
    margin: 0;

    display: block;

    color: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
}

.category-card:hover {
    border-color: #87b9f4;
    background: #f7faff;
    transform: translateY(-1px);
}

.category-card:active {
    transform: scale(0.98);
}

.category-card.selected {
    border-color: var(--hunar-deep);
    background: var(--hunar-deep);
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(23, 59, 119, 0.2);
}

.category-card.selected img {
    mix-blend-mode: normal;
    filter: none;
}

.category-continue {
    position: relative;

    width: 100%;
    min-height: 50px;
    margin-top: 14px;
    padding: 12px 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 12px;

    background: var(--hunar-blue);
    color: #ffffff;

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.category-continue i {
    position: absolute;
    right: 20px;
    font-size: 17px;
}

.category-continue:hover,
.category-continue:focus {
    background: var(--hunar-blue-dark);
    color: #ffffff;
}

.category-note {
    margin: 12px 0 0;

    color: #7b8290;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}


/* =========================================================
   10. HOME PAGE
   ========================================================= */

.home-page,
.home-shell {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.home-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding-bottom: 24px;
}


/* Header */

.home-topbar {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;
    min-height: 58px;
    padding: 12px 16px;

    border-bottom: 1px solid #e8ebf0;
    background: #ffffff;
}

.home-menu-btn {
    width: 38px;
    height: 38px;
    padding: 0;

    flex: 0 0 38px;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #111111;

    font-size: 18px;
}

.home-menu-btn:hover,
.home-menu-btn:focus {
    background: #f3f5f8;
}

.home-search {
    position: relative;
    flex: 1;
    min-width: 0;
}

.home-search > i,
.home-search .search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;

    transform: translateY(-50%);

    color: #737986;
    font-size: 13px;

    pointer-events: none;
}

.home-search .form-control,
.home-search input {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 14px 0 38px;

    border: 1px solid #d9dde5;
    border-radius: 22px;

    background: #f8f8fc;
    color: #17191e;

    font-size: 12px;
    outline: none;
    box-shadow: none;
}

.home-search .form-control:focus,
.home-search input:focus {
    border-color: var(--hunar-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(7, 75, 200, 0.08);
}

.language-selector {
    padding: 0;

    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;

    border: 0;
    background: transparent;
    color: #111111;

    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.language-selector::after {
    display: none;
}

.language-selector .fa-globe {
    font-size: 14px;
}

.language-selector .fa-chevron-down {
    font-size: 9px;
}


/* Greeting */

.home-greeting {
    padding: 14px 0 8px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-greeting-copy {
    min-width: 0;
}

.home-greeting h1 {
    margin: 0;

    color: var(--hunar-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.home-greeting p {
    margin: 3px 0 0;

    color: var(--hunar-blue);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.home-avatar-link {
    flex: 0 0 auto;
}

.home-avatar,
.user-avatar {
    width: 48px;
    height: 48px;

    border: 4px solid #182b55;
    border-radius: 50%;

    /*background: #182b55;*/
    object-fit: cover;
}


/* Section headings */

.home-section {
    margin-top: 18px;
}

.home-section-heading {
    margin-bottom: 9px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-section-title {
    margin: 0;

    display: flex;
    align-items: center;
    gap: 6px;

    color: var(--hunar-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.home-section-title i {
    color: #738091;
    font-size: 14px;
}

.home-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;

    color: var(--hunar-blue);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.home-view-all:hover {
    color: var(--hunar-blue-dark);
}

.home-view-all i {
    font-size: 8px;
}


/* Continue learning */

.continue-card {
    width: 100%;
    padding: 8px;

    display: flex;
    align-items: stretch;
    gap: 10px;

    border: 1px solid var(--hunar-border);
    border-radius: 10px;

    background: #ffffff;
    color: #111111;

    box-shadow: 0 2px 6px rgba(20, 38, 70, 0.05);
}

.continue-image {
    position: relative;

    width: 104px;
    min-height: 82px;
    flex: 0 0 104px;

    overflow: hidden;
    border-radius: 7px;
}

.continue-image img {
    width: 100%;
    height: 100%;
    min-height: 82px;

    display: block;
    object-fit: cover;
}

.continue-play {
    position: absolute;
    bottom: 8px;
    left: 8px;

    width: 23px;
    height: 23px;
    padding-left: 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;
    color: var(--hunar-blue);

    font-size: 9px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.continue-details {
    flex: 1;
    min-width: 0;
    padding: 1px 0;
}

.continue-label {
    margin-bottom: 2px;

    color: var(--hunar-blue);
    font-size: 10px;
    font-weight: 600;
}

.continue-title {
    margin: 0;

    color: #111111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.continue-progress-label {
    margin-top: 7px;

    color: #777d89;
    font-size: 10px;
}

.continue-progress-row {
    margin-top: 3px;

    display: flex;
    align-items: center;
    gap: 7px;
}

.continue-progress {
    flex: 1;
    height: 4px;

    overflow: hidden;
    border-radius: 5px;

    background: #dadddf;
}

.continue-progress span {
    width: 75%;
    height: 100%;

    display: block;

    border-radius: inherit;
    background: var(--hunar-blue);
}

.resume-btn {
    min-width: 72px;
    min-height: 32px;
    padding: 7px 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 5px;

    background: var(--hunar-blue);
    color: #ffffff;

    font-size: 10px;
    font-weight: 600;
}

.resume-btn:hover {
    background: var(--hunar-blue-dark);
    color: #ffffff;
}

.continue-lessons {
    margin-top: 7px;

    display: flex;
    align-items: center;
    gap: 4px;

    color: #8b9099;
    font-size: 9px;
}

.continue-arrow {
    flex: 0 0 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #646b76;
    font-size: 12px;
}


/* Browse course icons */

.browse-course-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 9px;
    row-gap: 14px;
}

.browse-course-card {
    width: 100%;
    min-width: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    border: 0;
    background: transparent;
    color: #111111;

    text-align: center;
    text-decoration: none;
}

.browse-course-card:hover {
    color: var(--hunar-blue);
}

.browse-course-icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e0e4ea;
    border-radius: 50%;

    background: #ffffff;
    color: #ad5e16;

    font-size: 23px;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.browse-course-card:hover .browse-course-icon {
    border-color: #8bb8ef;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(7, 75, 200, 0.1);
}

/* Supports both CSS-grid and Bootstrap-row markup. */
.browse-course-grid > :nth-child(2) .browse-course-icon,
.row > .col:nth-child(2) .browse-course-card .browse-course-icon {
    color: #c56c1c;
}

.browse-course-grid > :nth-child(3) .browse-course-icon,
.row > .col:nth-child(3) .browse-course-card .browse-course-icon {
    color: #9c5b32;
}

.browse-course-grid > :nth-child(4) .browse-course-icon,
.row > .col:nth-child(4) .browse-course-card .browse-course-icon {
    color: #e1a000;
}

.browse-course-grid > :nth-child(5) .browse-course-icon,
.row > .col:nth-child(5) .browse-course-card .browse-course-icon {
    color: #596570;
}

.browse-course-grid > :nth-child(6) .browse-course-icon,
.row > .col:nth-child(6) .browse-course-card .browse-course-icon {
    color: #a65d22;
}

.browse-course-grid > :nth-child(7) .browse-course-icon,
.row > .col:nth-child(7) .browse-course-card .browse-course-icon {
    color: #d99b00;
}

.browse-course-grid > :nth-child(8) .browse-course-icon,
.row > .col:nth-child(8) .browse-course-card .browse-course-icon {
    color: #e4a900;
}

.browse-course-grid > :nth-child(9) .browse-course-icon,
.row > .col:nth-child(9) .browse-course-card .browse-course-icon {
    color: #4f5d69;
}

.view-all-course .browse-course-icon {
    color: var(--hunar-blue) !important;
    font-size: 28px;
}

.browse-course-name {
    min-height: 28px;
    margin-top: 6px;

    display: block;

    color: inherit;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.15;
}


/* Tailored note */

.home-tailored-note,
.tailored-note {
    width: 100%;
    margin-top: 14px;
    padding: 7px 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 7px;

    background: #e9eef8;
    color: #20242a;

    font-size: 10px;
    line-height: 1.3;
    text-align: center;
}

.home-tailored-note i {
    color: #e2aa00;
}


/* Quick shorts and trending cards */

.shorts-grid,
.trending-course-grid,
.media-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.short-card,
.trending-course-card,
.media-card {
    min-width: 0;
    display: block;
    color: #111111;
}

.short-thumbnail,
.trending-course-thumbnail,
.media-thumb {
    position: relative;

    width: 100%;

    overflow: hidden;
    border-radius: 8px;

    background: #e9edf3;
}

.short-thumbnail {
    aspect-ratio: 0.72;
}

.trending-course-thumbnail {
    aspect-ratio: 0.67;
}

.short-thumbnail img,
.trending-course-thumbnail img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}

.media-card img {
    width: 100%;
    aspect-ratio: 0.62;

    display: block;

    border-radius: 12px;
    object-fit: cover;
}

.short-title,
.trending-course-title,
.media-title {
    margin: 6px 0 0;

    color: #111111;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
}

.short-duration,
.trending-course-duration,
.duration-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;

    padding: 3px 5px;

    display: inline-flex;
    align-items: center;
    gap: 3px;

    border-radius: 3px;

    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;

    font-size: 8px;
    line-height: 1;
}

.trending-course-badge,
.trending-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;

    max-width: calc(100% - 32px);
    padding: 3px 5px;

    display: inline-flex;
    align-items: center;
    gap: 3px;

    border-radius: 10px;

    background: #ffffff;
    color: var(--hunar-blue);

    font-size: 7px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.trending-course-badge i {
    font-size: 7px;
}

.trending-bookmark-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 3;

    width: 21px;
    height: 21px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 4px;

    background: rgba(255, 255, 255, 0.92);
    color: #68707d;

    font-size: 11px;
}


/* Home footer */

.home-footer {
    margin-top: auto;
    padding: 15px 20px;

    background: var(--hunar-blue);
    color: #ffffff;

    font-size: 14px;
    text-align: center;
}


/* =========================================================
   11. COURSE DETAILS
   ========================================================= */

.course-icon-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 7px;
}

.course-icon {
    color: #111111;
    font-size: 0.69rem;
    line-height: 1.15;
    text-align: center;
}

.course-icon .circle {
    width: 52px;
    height: 52px;
    margin: 0 auto 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--hunar-border);
    border-radius: 50%;

    background: #ffffff;

    font-size: 1.65rem;
}

.course-hero {
    width: 100%;
    aspect-ratio: 1.75;

    border: 1px solid #222222;
    border-radius: 0;

    object-fit: cover;
}

.course-title {
    margin: 10px 0 0;

    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.05;
}

.course-desc {
    color: #2e3138;
    font-size: 0.85rem;
    line-height: 1.3;
}

.progress-card {
    margin-top: 12px;
    padding: 12px 16px;

    border: 1px solid var(--hunar-border);
    border-radius: 10px;

    background: #ffffff;
}

.progress {
    height: 5px;
    background: #e4e7ed;
}

.progress-bar {
    background: var(--hunar-blue);
}

.nav-tabs.hunar-tabs {
    border: 0;
    border-bottom: 1px solid #e8ebf0;
}

.hunar-tabs .nav-link {
    padding: 0.75rem 1rem;

    border: 0;

    color: #242730;
    font-size: 0.88rem;
    font-weight: 600;
}

.hunar-tabs .nav-link.active {
    border-bottom: 3px solid var(--hunar-blue);
    background: transparent;
    color: var(--hunar-blue);
}

.lesson-item {
    margin-bottom: 8px;
    padding: 8px;

    display: flex;
    align-items: center;
    gap: 12px;

    border: 1px solid var(--hunar-border);
    border-radius: 9px;

    background: #ffffff;
}

.lesson-item img {
    width: 92px;
    height: 58px;

    border-radius: 5px;
    object-fit: cover;
}

.lesson-title {
    font-size: 0.82rem;
    font-weight: 700;
}

.lesson-time {
    color: #8a8e98;
    font-size: 0.7rem;
}

.lesson-action {
    margin-left: auto;
    color: #696f79;
    font-size: 1.2rem;
}

.overview-box {
    padding: 14px;

    border: 1px solid var(--hunar-border);
    border-radius: 12px;

    background: #ffffff;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    color: #777d89;
    font-size: 0.72rem;
}


/* =========================================================
   12. SHORT VIDEO PLAYER
   ========================================================= */

.short-player {
    position: relative;

    min-height: calc(100vh - 34px);
    overflow: hidden;

    background: #101010;
    color: #ffffff;
}

.short-player::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.28),
            transparent 35%,
            rgba(0, 0, 0, 0.62)
        ),
        url("../img/short-player.jpg");

    background-position: center;
    background-size: cover;
}

.short-overlay {
    position: relative;
    z-index: 2;

    min-height: calc(100vh - 34px);
    padding: 14px 18px 24px;

    display: flex;
    flex-direction: column;
}

.short-top {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.play-circle {
    position: absolute;
    top: 45%;
    left: 50%;

    width: 72px;
    height: 72px;
    padding-left: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);

    font-size: 2rem;
}

.short-actions {
    position: absolute;
    right: 16px;
    bottom: 120px;

    display: flex;
    flex-direction: column;
    gap: 22px;

    font-size: 1.7rem;
}

.short-caption {
    margin-top: auto;
    padding-right: 58px;
}

.short-caption h1 {
    margin-bottom: 2px;
    font-size: 1.25rem;
    font-weight: 800;
}

.short-caption p {
    margin-bottom: 10px;
    font-size: 0.88rem;
    line-height: 1.25;
}

.short-progress {
    position: relative;
    height: 4px;

    border-radius: 5px;
    background: rgba(255, 255, 255, 0.5);
}

.short-progress::before {
    content: "";

    position: absolute;

    width: 72%;
    height: 100%;

    border-radius: 5px;
    background: #ffffff;
}


/* =========================================================
   13. QUIZ PAGES
   ========================================================= */

.quiz-header {
    padding: 5px 0 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timer-pill {
    padding: 7px 12px;

    border-radius: 18px;

    background: #f1f4fb;
    color: var(--hunar-blue);

    font-size: 0.85rem;
    font-weight: 800;
}

.question-count {
    color: #777d89;
    font-size: 0.77rem;
}

.quiz-question {
    margin: 28px 0 18px;

    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.quiz-image {
    width: 68%;
    max-width: 340px;
    margin: 5px auto 18px;

    display: block;
    object-fit: contain;
}

.answer-option {
    margin-bottom: 10px;
    padding: 12px 14px;

    display: flex;
    align-items: center;
    gap: 14px;

    border: 1px solid var(--hunar-border);
    border-radius: 9px;

    background: #ffffff;

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;
    transition: border-color 0.15s ease;
}

.answer-option:hover {
    border-color: #9bb8ec;
}

.answer-option.selected {
    border-color: var(--hunar-blue);
    background: #f1f5ff;
    color: var(--hunar-blue);
}

.answer-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--hunar-blue);
}

.option-letter {
    width: 24px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e1e3e8;
    border-radius: 50%;

    background: #ffffff;
    color: #20242a;

    font-size: 0.7rem;
    font-weight: 800;
}

.quiz-type-box {
    margin-top: 10px;
    padding: 12px;

    border: 1px solid var(--hunar-border);
    border-radius: 10px;
}

.quiz-type-box h3 {
    margin-bottom: 3px;

    color: var(--hunar-blue);
    font-size: 1rem;
    font-weight: 800;
}

.answer-inline {
    width: 145px;
    height: 37px;
    padding: 0 10px;

    border: 1px solid var(--hunar-blue);
    border-radius: 7px;
}

.answer-count {
    color: #808590;
    font-size: 0.72rem;
}


/* =========================================================
   14. CERTIFICATE PAGE
   ========================================================= */

.certificate-congrats {
    padding: 12px 15px;

    border-radius: 8px;

    background: #edf3ff;
    color: var(--hunar-blue);

    font-weight: 800;
    line-height: 1.15;
}

.certificate-image {
    width: 100%;
    display: block;

    border: 1px solid #c9d2e2;
    border-radius: 4px;
}

.summary-card {
    padding: 12px 16px;

    border: 1px solid var(--hunar-border);
    border-radius: 10px;
}

.summary-row {
    margin: 7px 0;

    display: flex;
    justify-content: space-between;

    font-size: 0.85rem;
}

.recommend-card {
    margin-bottom: 9px;
    padding: 7px;

    display: flex;
    gap: 12px;

    border: 1px solid var(--hunar-border);
    border-radius: 9px;

    color: #111111;
}

.recommend-card img {
    width: 42%;
    height: 88px;

    border-radius: 6px;
    object-fit: cover;
}

.recommend-card h4 {
    margin-bottom: 3px;
    font-size: 0.85rem;
    font-weight: 800;
}

.recommend-card p {
    margin: 0;
    color: #777d89;
    font-size: 0.7rem;
}


/* =========================================================
   15. PROFILE PAGE
   ========================================================= */

.profile-banner {
    padding: 14px;

    display: flex;
    align-items: center;
    gap: 14px;

    border-radius: 10px;
    background: #eef4ff;
}

.profile-banner img {
    width: 80px;
    height: 80px;

    border-radius: 50%;
    object-fit: cover;
}

.profile-banner h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.profile-banner p {
    margin: 1px 0;
    color: #666e7b;
    font-size: 0.75rem;
}

.stats-card {
    margin: 12px 0;
    padding: 10px 4px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border: 1px solid var(--hunar-border);
    border-radius: 10px;
}

.stat {
    border-right: 1px solid #eef0f4;
    text-align: center;
}

.stat:last-child {
    border-right: 0;
}

.stat-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef3ff;
}

.stat strong {
    display: block;
    font-size: 0.8rem;
}

.stat span {
    color: #737986;
    font-size: 0.56rem;
}

.profile-section-title {
    margin: 14px 0 6px;
    font-size: 1rem;
    font-weight: 800;
}

.menu-card {
    padding: 6px 0;

    border: 1px solid var(--hunar-border);
    border-radius: 10px;
}

.menu-item {
    padding: 8px 12px;

    display: flex;
    align-items: center;
    gap: 11px;

    color: #111111;
}

.menu-item:hover {
    background: #f8faff;
}

.menu-icon {
    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #eef3ff;
    color: var(--hunar-blue);
}

.menu-copy {
    flex: 1;
    min-width: 0;
}

.menu-copy strong {
    display: block;
    font-size: 0.78rem;
}

.menu-copy span {
    display: block;
    color: #858a94;
    font-size: 0.61rem;
}

.menu-chevron {
    color: #8d929c;
}

.logout-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;

    border: 1px solid var(--hunar-border);
    border-radius: 8px;

    background: #ffffff;
    color: #cf2633;

    font-size: 0.84rem;
}


/* =========================================================
   16. INDEX / SHOWCASE PAGE
   ========================================================= */

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.showcase-card {
    padding: 16px;

    border: 1px solid var(--hunar-border);
    border-radius: 14px;

    background: #ffffff;
    color: #111111;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(20, 45, 90, 0.1);
}

.showcase-card .number {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--hunar-soft);
    color: var(--hunar-blue);

    font-weight: 800;
}

.showcase-card h2 {
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 800;
}

.showcase-card p {
    margin: 0;
    color: #747a87;
    font-size: 0.77rem;
}


/* =========================================================
   17. UTILITIES
   ========================================================= */

.toast-ui {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 2000;

    padding: 10px 16px;

    transform: translateX(-50%);

    border-radius: 9px;

    background: #111111;
    color: #ffffff;

    font-size: 0.78rem;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.25s ease;
}

.toast-ui.show {
    opacity: 1;
}


/* =========================================================
   18. RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (min-width: 700px) {
    body {
        padding: 24px;
    }

    .mobile-shell {
        min-height: calc(100vh - 48px);

        border-radius: 24px;
        box-shadow: var(--hunar-shadow);
    }
}

@media (max-width: 520px) {
    .media-grid,
    .shorts-grid,
    .trending-course-grid {
        gap: 8px;
    }

    .course-icon-grid {
        gap: 10px 4px;
    }

    .course-icon .circle {
        width: 46px;
        height: 46px;
    }

    .course-icon {
        font-size: 0.63rem;
    }
}

@media (max-width: 430px) {
    .auth-content {
        padding-right: 26px;
        padding-left: 26px;
    }

    .page-content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .page-content.category-page {
        padding-right: 26px;
        padding-left: 26px;
    }

    .category-page .brand {
        font-size: 34px;
    }

    .category-page .display-title {
        font-size: 27px;
    }

    .category-description {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .home-topbar {
        padding-right: 12px;
        padding-left: 12px;
    }

    .home-content {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .browse-course-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .browse-course-name {
        font-size: 8px;
    }

    .short-title,
    .trending-course-title,
    .media-title {
        font-size: 9px;
    }
}

@media (max-width: 380px) {
    .otp-row {
        gap: 7px;
    }

    .otp-row .otp-input {
        width: 40px !important;
        max-width: 40px !important;
        height: 46px !important;
        font-size: 18px;
    }

    .category-grid {
        gap: 9px 10px;
    }

    #categoryList.row {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 9px;
    }

    .category-card {
        height: 108px;
        min-height: 108px;
        padding: 6px;
    }

    .category-card img {
        width: 78px;
        height: 66px;
    }

    .category-card span {
        font-size: 14px;
    }

    .browse-course-grid {
        column-gap: 6px;
        row-gap: 12px;
    }

    .continue-image {
        width: 96px;
        flex-basis: 96px;
    }

    .home-section-title {
        font-size: 15px;
    }

    .home-view-all {
        font-size: 10px;
    }

    .home-tailored-note,
    .tailored-note {
        font-size: 9px;
    }
}

@media (max-width: 360px) {
    .auth-content,
    .page-content.category-page {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 350px) {
    .language-selector span {
        display: none;
    }

    .home-greeting h1 {
        font-size: 18px;
    }

    .home-section-title {
        font-size: 14px;
    }

    .browse-course-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .browse-course-name {
        font-size: 7px;
    }

    .short-duration,
    .trending-course-duration,
    .duration-badge {
        padding: 2px 4px;
        font-size: 7px;
    }

    .continue-image {
        width: 88px;
        flex-basis: 88px;
    }

    .resume-btn {
        min-width: 65px;
        padding-right: 7px;
        padding-left: 7px;
    }
}
/* Course images */
.browse-course-icon img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* View All Font Awesome icon */
.view-all-course .browse-course-icon {
    border-color: #a9c9f7;
    color: #074bc8;
    font-size: 28px;
}

.view-all-course .browse-course-icon i {
    display: block;
    line-height: 1;
}

/* Mobile */
@media (max-width: 400px) {
    .browse-course-icon img {
        width: 38px;
        height: 38px;
    }

    .view-all-course .browse-course-icon {
        font-size: 25px;
    }
}

@media (max-width: 350px) {
    .browse-course-icon img {
        width: 33px;
        height: 33px;
    }

    .view-all-course .browse-course-icon {
        font-size: 22px;
    }
}
/* =========================================================
   HOME PAGE — MOBILE READABILITY IMPROVEMENTS
   ========================================================= */

/* Header search and language */
.home-search .form-control,
.home-search input {
    font-size: 13px;
}

.language-selector {
    font-size: 13px;
    font-weight: 600;
}

/* Greeting */
.home-greeting h1 {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
}

.home-greeting p {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

/* Section headings */
.home-section-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.home-section-title i {
    font-size: 16px;
}

.home-view-all {
    font-size: 12px;
    font-weight: 700;
}

/* Browse Carpenter Courses */
.browse-course-name {
    min-height: 32px;
    margin-top: 7px;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

/* Information strip */
.home-tailored-note {
    padding: 8px 12px;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

/* Quick Learning Shorts */
.short-title {
    min-height: 34px;
    margin-top: 7px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

/* Trending Courses */
.trending-course-title {
    min-height: 34px;
    margin-top: 7px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

/* Video duration */
.short-duration,
.trending-course-duration {
    padding: 3px 6px;

    font-size: 9px;
    font-weight: 600;
}

/* Trending label */
.trending-course-badge {
    padding: 4px 6px;

    font-size: 8px;
    font-weight: 700;
}

.trending-course-badge i {
    font-size: 8px;
}
/* Trending badge readability */
.trending-course-badge {
    top: 7px;
    left: 7px;
    z-index: 5;

    min-height: 22px;
    padding: 5px 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    border: 1px solid rgba(7, 75, 200, 0.18);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.96);
    color: #074bc8;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;

    white-space: nowrap;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.14);
}

.trending-course-badge i {
    font-size: 9px;
    color: #074bc8;
}
@media (max-width: 400px) {
    .trending-course-badge {
        top: 5px;
        left: 5px;
        min-height: 20px;
        padding: 4px 6px;
        font-size: 9px;
    }

    .trending-course-badge i {
        font-size: 8px;
    }
}
.trending-course-badge {
    max-width: calc(100% - 38px);
}

.trending-bookmark-btn {
    top: 6px;
    right: 6px;
    z-index: 6;
}
/* =========================================================
   TRENDING COURSE WISHLIST
   ========================================================= */

.trending-bookmark-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;

    width: 25px;
    height: 25px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e2e5eb;
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.96);
    color: #59616d;

    font-size: 13px;
    cursor: pointer;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.trending-bookmark-btn:hover {
    color: #dc3545;
    border-color: #f1aeb5;
    transform: scale(1.06);
}

/* Wishlist selected state */
.trending-bookmark-btn.wishlisted {
    border-color: #dc3545;
    background: #fff1f2;
    color: #dc3545;
}

.trending-bookmark-btn.wishlisted i {
    color: #0000FF;
}

.trending-bookmark-btn:focus-visible {
    outline: 3px solid rgba(220, 53, 69, 0.2);
    outline-offset: 2px;
}

@media (max-width: 400px) {
    .trending-bookmark-btn {
        width: 23px;
        height: 23px;
        font-size: 12px;
    }
}
.home-footer {
    margin-top: auto;
    padding: 16px 14px;
    background: #074bc8;
    color: #ffffff;
    text-align: center;
}

.home-footer p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.home-footer .footer-link {
    margin: 0 8px;
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
}

.home-footer .footer-link:hover {
    color: #dce8ff;
    text-decoration: underline;
}

@media (max-width: 400px) {
    .home-footer p {
        font-size: 11px;
    }

    .home-footer .footer-link {
        margin: 0 4px;
    }
}




/*new added 17-07-2026*/


/* =========================================================
   UNIFIED HUNAR PAGE SIZE AND LOGO
   ========================================================= */
.hunar-image-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.hunar-image-logo img {
    display: block;
    width: 76px;
    height: auto;
    object-fit: contain;
}

.hunar-image-logo.compact img {
    width: 58px;
}

.auth-brand-logo {
    margin-top: 1rem;
}

.auth-brand-logo img {
    width: 92px;
}

.header-brand-with-title {
    min-width: 0;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header-brand-with-title img {
    width: 64px;
    height: auto;
}

.header-brand-with-title span {
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

@media (max-width: 360px) {
    .hunar-image-logo.compact img {
        width: 50px;
    }

    .header-brand-with-title img {
        width: 56px;
    }

    .header-brand-with-title span {
        font-size: 10px;
    }
}
