:root {
    --primary-color: #52056be5;
    --primary-dark: #52056be5;
    --secondary-color: #111827;
    --text-color: #5f6673;
    --light-background: #f7f8fc;
    --white-color: #ffffff;
    --border-color: #e6e8ef;
    --footer-color: #111827;
    --danger-color: #dc3545;
    --container-radius: 22px;
    --card-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
}



* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: "Inter", sans-serif;
    color: var(--secondary-color);
    background-color: var(--white-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

main {
    min-height: 70vh;
}

.brand-primary {
    color: var(--primary-color);
}

/* Navbar */

.main-navbar {
    min-height: 76px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.04);
}

.navbar-brand {
    margin-right: 30px;
    font-size: 1.65rem;
    letter-spacing: -0.5px;
}

.navbar-nav {
    gap: 4px;
}

.nav-link {
    padding: 10px 12px !important;
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
    background-color: rgba(62, 16, 124, 0.07);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.navbar-actions .btn {
    min-width: 92px;
}

/* Buttons */

.btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-lg {
    padding: 13px 24px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero */

.hero-section {
    padding: 80px 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(62, 16, 124, 0.12),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8f8ff 100%
        );
}

.min-vh-75 {
    min-height: 620px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--primary-color);
    background-color: rgba(62, 16, 124, 0.1);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-title {
    max-width: 650px;
    margin-bottom: 0;
    font-size: clamp(2.5rem, 5vw, 4.35rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 0;
    color: var(--text-color);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-stats {
    max-width: 500px;
}

.hero-stats > div {
    padding-right: 20px;
}

.hero-stats h3 {
    margin-bottom: 3px;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
}

.hero-stats p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.92rem;
}

.hero-card {
    max-width: 520px;
    margin-left: auto;
    padding: 38px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--container-radius);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

.hero-card h3 {
    font-weight: 750;
}

.hero-card-icon,
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    color: var(--white-color);
    background-color: var(--primary-color);
    border-radius: 16px;
    font-size: 1.65rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    color: var(--text-color);
    font-size: 0.98rem;
}

.hero-feature i {
    flex-shrink: 0;
    color: var(--primary-color);
}

/* Sections */

.section-padding {
    padding: 80px 0;
}

.section-heading {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

.section-heading h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-heading p {
    margin-bottom: 0;
    color: var(--text-color);
    font-size: 1rem;
}

/* Cards */

.feature-card,
.course-category-card,
.content-card {
    padding: 28px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.feature-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.feature-card:hover,
.course-category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(62, 16, 124, 0.25);
    box-shadow: var(--card-shadow);
}

.feature-card h4,
.course-category-card h4 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-card p,
.course-category-card p,
.content-card p {
    color: var(--text-color);
    line-height: 1.7;
}

.feature-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
}

.course-category-card {
    min-height: 240px;
}

.course-category-card > i {
    color: var(--primary-color);
    font-size: 2.3rem;
}

/* CTA */

.cta-section {
    padding: 20px 0 80px;
}

.cta-box {
    padding: 58px 30px;
    color: var(--white-color);
    background:
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--primary-dark)
        );
    border-radius: var(--container-radius);
}

.cta-box h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
}

.cta-box p {
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.86);
}

/* Page Header */

.page-header {
    padding: 72px 0;
    color: var(--white-color);
    background:
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--primary-dark)
        );
}

.page-header-small {
    padding: 55px 0;
}

.page-header h1 {
    margin-bottom: 0;
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
}

.page-header p {
    max-width: 700px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}

/* Contact */

.contact-information {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0;
}

.contact-item i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    background-color: rgba(62, 16, 124, 0.1);
    border-radius: 12px;
    font-size: 1.2rem;
}

.contact-item h5 {
    margin-bottom: 4px;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--text-color);
}

/* Forms */

.form-label {
    margin-bottom: 7px;
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: var(--border-color);
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(62, 16, 124, 0.12);
}

textarea.form-control {
    min-height: 130px;
}

.form-error {
    margin-top: 6px;
    color: var(--danger-color);
    font-size: 0.85rem;
}

.form-help {
    margin-top: 6px;
    color: var(--text-color);
    font-size: 0.8rem;
}

.form-help ul {
    margin-bottom: 0;
    padding-left: 18px;
}

/* Authentication */

.auth-section {
    min-height: 80vh;
    padding: 70px 0;
    background-color: var(--light-background);
}

.auth-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 38px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--container-radius);
    box-shadow: var(--card-shadow);
}

.auth-card-small {
    max-width: 500px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
}

/* Profile */

.profile-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.profile-summary {
    padding: 28px;
    text-align: center;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.profile-image,
.profile-placeholder {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border-radius: 50%;
}

.profile-image {
    object-fit: cover;
}

.profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background-color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 800;
}

/* Dashboard */

.dashboard-section {
    min-height: 75vh;
    padding: 65px 0;
    background-color: var(--light-background);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dashboard-header h1 {
    margin-bottom: 6px;
    font-weight: 800;
}

.dashboard-header p {
    margin-bottom: 0;
    color: var(--text-color);
}

.dashboard-stat-card {
    height: 100%;
    min-height: 180px;
    padding: 26px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.dashboard-stat-card i {
    color: var(--primary-color);
    font-size: 1.9rem;
}

.dashboard-stat-card h3 {
    margin-top: 18px;
    margin-bottom: 4px;
    font-size: 1.9rem;
    font-weight: 800;
}

.dashboard-stat-card p {
    margin-bottom: 0;
    color: var(--text-color);
}

/* Footer */

.site-footer {
    margin-top: 0 !important;
    background-color: var(--footer-color);
}

.footer-text {
    color: #9ca3af;
}

.footer-links {
    margin-top: 18px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: var(--white-color);
}

.footer-divider {
    margin: 32px 0 22px;
    border-color: rgba(255, 255, 255, 0.14);
}

/* Courses */

.course-filter-card {
    padding: 25px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.06);
}

.course-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.course-category-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--secondary-color);
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
}

.course-category-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    color: var(--text-color);
    background-color: var(--light-background);
    border-radius: 50px;
    font-size: 0.8rem;
}

.course-category-tab:hover,
.course-category-tab.active {
    color: var(--white-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.course-category-tab.active span,
.course-category-tab:hover span {
    color: var(--primary-color);
    background-color: var(--white-color);
}

.course-card {
    overflow: hidden;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.1);
}

.course-card-image,
.course-card-placeholder {
    width: 100%;
    height: 220px;
}

.course-card-image {
    object-fit: cover;
}

.course-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background:
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--primary-dark)
        );
    font-size: 4rem;
}

.course-card-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
    padding: 25px;
}

.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.course-card-meta span {
    padding: 6px 10px;
    color: var(--primary-color);
    background-color: rgba(62, 16, 124, 0.1);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.course-card-title {
    margin-top: 18px;
    font-size: 1.35rem;
    font-weight: 750;
}

.course-card-title a {
    color: var(--secondary-color);
}

.course-card-title a:hover {
    color: var(--primary-color);
}

.course-card-body p {
    color: var(--text-color);
    line-height: 1.7;
}

.course-card-information {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.course-card-information span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.course-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price,
.free-course {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 800;
}

.old-price {
    color: #9ca3af;
    text-decoration: line-through;
}

.empty-state {
    padding: 60px 25px;
    text-align: center;
    background-color: var(--light-background);
    border: 1px dashed var(--border-color);
    border-radius: 20px;
}

.empty-state > i {
    color: var(--primary-color);
    font-size: 3rem;
}

.empty-state h3 {
    margin-top: 18px;
}

.empty-state p {
    color: var(--text-color);
}

.course-detail-hero {
    padding: 70px 0;
    color: var(--white-color);
    background:
        linear-gradient(
            135deg,
            #111827,
            #24205f
        );
}

.course-breadcrumb .breadcrumb-item,
.course-breadcrumb .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.65);
}

.course-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.course-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.course-detail-meta span {
    padding: 7px 12px;
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-detail-title {
    max-width: 850px;
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    line-height: 1.12;
    font-weight: 800;
}

.course-detail-description {
    max-width: 750px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.12rem;
    line-height: 1.8;
}

.course-detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.course-detail-facts span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.course-trainer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-trainer img,
.trainer-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.course-trainer img {
    object-fit: cover;
}

.trainer-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background-color: var(--white-color);
    font-weight: 800;
}

.course-trainer div:last-child {
    display: flex;
    flex-direction: column;
}

.course-trainer small {
    color: rgba(255, 255, 255, 0.65);
}

.course-purchase-card {
    overflow: hidden;
    color: var(--secondary-color);
    background-color: var(--white-color);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.course-purchase-image,
.course-purchase-placeholder {
    width: 100%;
    height: 250px;
}

.course-purchase-image {
    object-fit: cover;
}

.course-purchase-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background:
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--primary-dark)
        );
    font-size: 4rem;
}

.course-purchase-body {
    padding: 28px;
}

.course-detail-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-detail-price .current-price,
.course-detail-price .free-course {
    font-size: 1.8rem;
}

.course-includes {
    padding: 0;
    list-style: none;
}

.course-includes li {
    display: flex;
    gap: 10px;
    margin-bottom: 13px;
    color: var(--text-color);
}

.course-includes i {
    color: var(--primary-color);
}

.course-description {
    color: var(--text-color);
    line-height: 1.8;
}

.accordion-item {
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px !important;
}

.accordion-button {
    font-weight: 700;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(62, 16, 124, 0.08);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.lesson-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-color);
}

.lesson-list-item:last-child {
    border-bottom: 0;
}

.lesson-list-item > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-list-item i {
    color: var(--primary-color);
}

.lesson-list-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 0.85rem;
}

.preview-badge {
    padding: 4px 8px;
    color: var(--primary-color);
    background-color: rgba(62, 16, 124, 0.1);
    border-radius: 50px;
    font-weight: 700;
}

.course-information-list > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.course-information-list > div:last-child {
    border-bottom: 0;
}

.course-information-list span {
    color: var(--text-color);
}

/* Course Management */

.management-layout {
    min-height: 80vh;
    background-color: var(--light-background);
}

.management-sidebar {
    padding: 0;
    background-color: #111827;
}

.management-sidebar-inner {
    position: sticky;
    top: 72px;
    min-height: calc(100vh - 72px);
    padding: 30px 20px;
}

.management-brand {
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 800;
}

.management-navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.management-navigation a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #cbd5e1;
    border-radius: 10px;
}

.management-navigation a:hover,
.management-navigation a.active {
    color: #ffffff;
    background-color: var(--primary-color);
}

.management-content {
    padding: 40px;
}

.management-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.management-page-header h1 {
    margin-top: 12px;
    font-weight: 800;
}

.management-page-header p {
    margin-bottom: 0;
    color: var(--text-color);
}

.management-stat-card,
.management-panel {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.management-stat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
}

.management-stat-card i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.management-stat-card strong {
    margin-top: 15px;
    font-size: 2rem;
}

.management-stat-card span {
    color: var(--text-color);
}

.management-panel {
    padding: 28px;
}

.management-panel h2 {
    font-size: 1.35rem;
    font-weight: 800;
}

.management-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.management-panel-header p {
    margin-bottom: 0;
    color: var(--text-color);
}

.management-table {
    margin-bottom: 0;
    vertical-align: middle;
}

.management-table th {
    padding: 15px;
    color: var(--text-color);
    background-color: var(--light-background);
    white-space: nowrap;
}

.management-table td {
    padding: 15px;
}

.management-course-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
}

.management-course-cell img,
.management-course-image {
    width: 55px;
    height: 45px;
    border-radius: 8px;
}

.management-course-cell img {
    object-fit: cover;
}

.management-course-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: var(--primary-color);
}

.management-course-cell div:last-child {
    display: flex;
    flex-direction: column;
}

.management-course-cell small {
    color: var(--text-color);
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-published {
    color: #166534;
    background-color: #dcfce7;
}

.status-draft {
    color: #92400e;
    background-color: #fef3c7;
}

.status-archived {
    color: #475569;
    background-color: #e2e8f0;
}

.management-actions {
    display: flex;
    gap: 7px;
}

.management-actions form {
    margin: 0;
}

.management-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.management-check {
    margin-top: 38px;
}

.management-thumbnail-preview {
    width: 180px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
}

.errorlist {
    margin-top: 7px;
    margin-bottom: 0;
    padding-left: 0;
    color: #dc3545;
    list-style: none;
    font-size: 0.875rem;
}

.delete-confirmation-card {
    max-width: 650px;
    margin: 70px auto;
    padding: 45px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 22px;
}

.delete-confirmation-icon {
    color: #dc3545;
    font-size: 4rem;
}

.delete-confirmation-card h1 {
    margin-top: 15px;
    font-weight: 800;
}

/* Jobs */

.job-search-panel,
.application-form-card {
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(17, 24, 39, 0.07);
}

.application-form-card {
    max-width: 760px;
    margin: 0 auto;
}

.application-form-wide {
    max-width: 1050px;
}

.job-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.job-category-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--secondary-color);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
}

.job-category-tabs a.active,
.job-category-tabs a:hover {
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.job-category-tabs span {
    padding: 2px 7px;
    color: var(--primary-color);
    background-color: #ffffff;
    border-radius: 50px;
    font-size: 0.75rem;
}

.job-card {
    height: 100%;
    padding: 26px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
}

.job-card-top,
.job-detail-company {
    display: flex;
    align-items: center;
    gap: 16px;
}

.job-company-logo,
.job-company-placeholder {
    width: 65px;
    height: 65px;
    border-radius: 14px;
}

.job-company-logo {
    object-fit: cover;
}

.job-company-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 800;
}

.job-card h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.job-card h3 a {
    color: var(--secondary-color);
}

.job-card h3 a:hover {
    color: var(--primary-color);
}

.job-card-top p,
.job-description {
    color: var(--text-color);
}

.job-description {
    margin-top: 20px;
    line-height: 1.7;
}

.job-tags,
.job-skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tags span,
.job-skill-list span {
    padding: 6px 10px;
    color: var(--primary-color);
    background-color: rgba(62, 16, 124, 0.1);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
}

.job-card-information {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 18px;
    color: var(--text-color);
}

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.job-card-footer > span {
    color: var(--text-color);
    font-size: 0.85rem;
}

.job-detail-header {
    padding: 70px 0;
    background-color: var(--light-background);
}

.job-detail-company img,
.job-detail-company .job-company-placeholder {
    width: 90px;
    height: 90px;
}

.job-detail-company h1 {
    margin-top: 12px;
    font-weight: 800;
}

.job-detail-company p {
    color: var(--text-color);
}

.job-detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 25px;
    color: var(--text-color);
}

.job-action-card {
    padding: 28px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(17, 24, 39, 0.08);
}

.job-overview-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.job-overview-list > div:last-child {
    border-bottom: 0;
}

.job-overview-list span {
    color: var(--text-color);
}

.status-submitted {
    color: #1d4ed8;
    background-color: #dbeafe;
}

.status-reviewing {
    color: #92400e;
    background-color: #fef3c7;
}

.status-shortlisted {
    color: #6b21a8;
    background-color: #f3e8ff;
}

.status-interview {
    color: #075985;
    background-color: #e0f2fe;
}

.status-selected {
    color: #166534;
    background-color: #dcfce7;
}

.status-rejected {
    color: #991b1b;
    background-color: #fee2e2;
}

.status-withdrawn {
    color: #475569;
    background-color: #e2e8f0;
}

.status-closed {
    color: #475569;
    background-color: #e2e8f0;
}

/* Public Jobs */

.jobs-hero {
    padding: 75px 0 50px;
    background:
        radial-gradient(
            circle at top right,
            rgba(103, 30, 133, 0.12),
            transparent 35%
        ),
        var(--light-background);
}

.jobs-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 800;
}

.jobs-hero p {
    max-width: 700px;
    margin: 18px auto 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.public-job-search {
    padding: 28px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.public-job-search .input-group-text {
    color: var(--primary-color);
    background-color: #ffffff;
    border-color: var(--border-color);
}

.public-jobs-section {
    padding: 55px 0 90px;
    background-color: var(--light-background);
}

.job-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.job-category-filter a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--secondary-color);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
}

.job-category-filter a:hover,
.job-category-filter a.active {
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.job-category-filter span {
    min-width: 24px;
    padding: 2px 7px;
    color: var(--primary-color);
    text-align: center;
    background-color: #ffffff;
    border-radius: 50px;
    font-size: 0.75rem;
}

.jobs-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 38px 0 20px;
}

.jobs-result-header h2 {
    margin-bottom: 5px;
    font-weight: 800;
}

.jobs-result-header p {
    margin-bottom: 0;
    color: var(--text-color);
}

.public-job-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.public-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(17, 24, 39, 0.09);
}

.public-job-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.public-company-information {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.public-company-logo,
.public-company-placeholder {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    border-radius: 15px;
}

.public-company-logo {
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.public-company-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--primary-dark)
        );
    font-size: 1.8rem;
    font-weight: 800;
}

.job-category-name {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.public-company-information h3 {
    margin: 6px 0;
    color: var(--secondary-color);
    font-size: 1.35rem;
    font-weight: 800;
}

.public-company-information p {
    margin-bottom: 0;
    color: var(--text-color);
}

.verified-company {
    margin-left: 5px;
    color: #16a34a;
}

.featured-job-label {
    padding: 6px 10px;
    color: #92400e;
    background-color: #fef3c7;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.public-job-description {
    margin: 22px 0;
    color: var(--text-color);
    line-height: 1.7;
}

.public-job-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.public-job-details > div,
.public-job-salary {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    background-color: var(--light-background);
    border-radius: 12px;
}

.public-job-details i,
.public-job-salary > i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.public-job-details span,
.public-job-salary div {
    display: flex;
    flex-direction: column;
}

.public-job-details small,
.public-job-salary small {
    color: var(--text-color);
    font-size: 0.75rem;
}

.public-job-details strong,
.public-job-salary strong {
    font-size: 0.9rem;
}

.public-job-salary {
    margin-top: 14px;
}

.public-job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.public-job-skills span {
    padding: 6px 11px;
    color: var(--primary-color);
    background-color: rgba(103, 30, 133, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.public-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
    color: var(--text-color);
    font-size: 0.83rem;
}

.public-job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.public-job-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
}

.public-job-actions form {
    margin: 0;
}

.apply-login-modal {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
}

.apply-login-modal .modal-header {
    border-bottom-color: var(--border-color);
}

.apply-login-modal .modal-footer {
    border-top-color: var(--border-color);
}

.apply-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin: 0 auto;
    color: var(--white-color);
    background-color: var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
}

/* Resume Builder */

.resume-card,
.resume-form-card,
.resume-preview {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.resume-card {
    height: 100%;
    padding: 28px;
}

.resume-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: #ffffff;
    background-color: var(--primary-color);
    border-radius: 16px;
    font-size: 1.8rem;
}

.resume-card h3 {
    margin-top: 20px;
    font-weight: 800;
}

.resume-card p {
    color: var(--text-color);
}

.resume-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume-form-card {
    max-width: 1050px;
    margin: 0 auto;
    padding: 35px;
}

.resume-form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.resume-form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.resume-form-section h2 {
    margin-bottom: 18px;
    font-size: 1.3rem;
    font-weight: 800;
}

.resume-preview-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.resume-preview {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
    box-shadow: 0 20px 55px rgba(17, 24, 39, 0.08);
}

.resume-preview-header {
    padding-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid var(--secondary-color);
}

.resume-preview-header h1 {
    margin-bottom: 10px;
    font-size: 2.3rem;
    font-weight: 800;
}

.resume-preview-header p {
    margin-bottom: 5px;
    color: var(--text-color);
}

.resume-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.resume-preview-section {
    margin-top: 28px;
}

.resume-preview-section h2 {
    margin-bottom: 12px;
    padding-bottom: 8px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.resume-preview-section p,
.resume-preview-section div {
    color: var(--text-color);
    line-height: 1.7;
}

.resume-skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume-skill-list span {
    padding: 7px 12px;
    color: var(--primary-color);
    background-color: rgba(91, 77, 247, 0.1);
    border-radius: 50px;
    font-weight: 600;
}

/* Resume Preview Templates */

.resume-template-simple {
    border-top: 8px solid var(--primary-color);
}

.resume-template-professional {
    border-top: 0;
}

.resume-template-professional .resume-preview-header {
    margin: -50px -50px 35px;
    padding: 45px 50px;
    color: #ffffff;
    background-color: #111827;
    border-bottom: 0;
}

.resume-template-professional .resume-preview-header p {
    color: rgba(255, 255, 255, 0.8);
}

.resume-template-professional .resume-links {
    color: rgba(255, 255, 255, 0.9);
}

.resume-template-modern {
    display: grid;
    grid-template-columns: 220px 1fr;
    padding: 0;
    overflow: hidden;
}

.resume-template-modern .resume-preview-header {
    grid-row: span 20;
    padding: 40px 25px;
    color: #ffffff;
    background-color: var(--primary-color);
    border-bottom: 0;
    text-align: left;
}

.resume-template-modern .resume-preview-header h1 {
    color: #ffffff;
    font-size: 1.8rem;
}

.resume-template-modern .resume-preview-header p,
.resume-template-modern .resume-links {
    color: rgba(255, 255, 255, 0.85);
}

.resume-template-modern .resume-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.resume-template-modern .resume-preview-section {
    margin: 0;
    padding: 25px 35px 0;
}

.resume-template-modern .resume-preview-section:last-child {
    padding-bottom: 35px;
}

.resume-template-classic {
    font-family: Georgia, "Times New Roman", serif;
}

.resume-template-classic .resume-preview-header {
    border-bottom: 2px solid #111827;
}

.resume-template-classic .resume-preview-section h2 {
    color: #111827;
    border-bottom: 1px solid #111827;
    font-family: Georgia, "Times New Roman", serif;
}

/* Resume Template Preview Cards */

.resume-builder-container {
    max-width: 1500px;
}

.resume-template-panel {
    position: sticky;
    top: 95px;
    padding: 28px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.resume-template-panel-header h2 {
    margin-top: 16px;
    font-size: 1.8rem;
    font-weight: 800;
}

.resume-template-panel-header p {
    color: var(--text-color);
    line-height: 1.7;
}

.resume-template-grid {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.resume-template-card {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    background-color: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    transition: 0.25s ease;
}

.resume-template-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(17, 24, 39, 0.12);
}

.resume-template-card h3 {
    margin-bottom: 6px;
    font-size: 1.25rem;
    font-weight: 800;
}

.resume-template-card p {
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.5;
}

.template-badge {
    display: inline-block;
    padding: 5px 10px;
    color: var(--primary-color);
    background-color: rgba(91, 77, 247, 0.12);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.resume-sample {
    position: relative;
    overflow: hidden;
    width: 125px;
    height: 165px;
    background-color: #ffffff;
    border: 1px solid #d8dee9;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.14);
}

.sample-top {
    height: 24px;
    background-color: var(--primary-color);
}

.sample-dark-top {
    height: 38px;
    background-color: #111827;
}

.sample-title,
.sample-text,
.sample-heading,
.sample-line,
.sample-classic-title,
.sample-classic-subtitle {
    height: 7px;
    margin-right: 12px;
    margin-left: 12px;
    background-color: #cbd5e1;
    border-radius: 20px;
}

.sample-title {
    width: 72%;
    margin-top: 14px;
    background-color: #111827;
}

.sample-text {
    width: 58%;
    margin-top: 9px;
}

.sample-heading {
    width: 86%;
    margin-top: 16px;
    background-color: var(--primary-color);
}

.sample-heading.dark {
    background-color: #111827;
}

.sample-line {
    width: 82%;
    margin-top: 10px;
}

.sample-line.short {
    width: 55%;
}

.sample-tags {
    display: flex;
    gap: 5px;
    margin: 12px;
}

.sample-tags span {
    width: 25px;
    height: 8px;
    background-color: rgba(91, 77, 247, 0.25);
    border-radius: 50px;
}

.modern-sample {
    display: grid;
    grid-template-columns: 36px 1fr;
}

.sample-sidebar {
    height: 100%;
    background-color: var(--primary-color);
}

.sample-main {
    padding-top: 5px;
}

.classic-sample {
    padding-top: 16px;
}

.sample-classic-title {
    width: 70%;
    height: 8px;
    margin-right: auto;
    margin-left: auto;
    background-color: #111827;
}

.sample-classic-subtitle {
    width: 55%;
    height: 5px;
    margin-top: 8px;
    margin-right: auto;
    margin-left: auto;
}

.sample-divider {
    height: 1px;
    margin: 12px;
    background-color: #111827;
}

.resume-template-note {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    padding: 16px;
    color: #075985;
    background-color: #e0f2fe;
    border-radius: 14px;
}

.resume-template-note p {
    margin-bottom: 0;
    line-height: 1.6;
}

.resume-template-note i {
    margin-top: 3px;
}

/* Print */

@media print {
    .navbar,
    .site-footer,
    .resume-preview-actions {
        display: none !important;
    }

    .section-padding {
        padding: 0;
    }

    .resume-preview {
        border: 0;
        box-shadow: none;
    }
}

/* Responsive */

@media (max-width: 1199px) {
    .navbar-collapse {
        padding: 18px 0 8px;
    }

    .navbar-nav {
        align-items: flex-start !important;
        gap: 2px;
    }

    .nav-link {
        width: 100%;
        padding: 10px 0 !important;
    }

    .navbar-actions {
        margin-top: 14px;
        margin-left: 0;
    }

    .resume-template-panel {
        position: static;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0;
    }

    .min-vh-75 {
        min-height: auto;
    }

    .hero-card {
        max-width: 100%;
        margin-left: 0;
    }

    .section-padding {
        padding: 65px 0;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .management-sidebar-inner {
        position: static;
        min-height: auto;
    }

    .management-content {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 45px 0 55px;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .hero-stats {
        row-gap: 18px;
    }

    .hero-stats > div {
        padding-right: 8px;
        padding-left: 8px;
    }

    .hero-card {
        padding: 26px;
    }

    .section-padding {
        padding: 55px 0;
    }

    .auth-section {
        padding: 45px 0;
    }

    .auth-card {
        padding: 24px;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .navbar-actions {
        width: 100%;
        flex-direction: column;
    }

    .navbar-actions a,
    .navbar-actions form,
    .navbar-actions button {
        width: 100%;
    }

    .course-card-footer,
    .job-card-footer,
    .public-job-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .lesson-list-item,
    .job-detail-company,
    .public-job-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-detail-hero {
        padding: 50px 0;
    }

    .management-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .management-panel {
        padding: 20px;
    }

    .management-check {
        margin-top: 10px;
    }

    .jobs-result-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-job-details {
        grid-template-columns: 1fr;
    }

    .public-company-information {
        width: 100%;
    }

    .public-job-actions a,
    .public-job-actions button,
    .public-job-actions form {
        width: 100%;
    }

    .public-job-actions form button {
        width: 100%;
    }

    .resume-form-card,
    .resume-preview {
        padding: 25px;
    }

    .resume-preview-actions {
        justify-content: flex-start;
    }

    .resume-template-professional .resume-preview-header {
        margin: -25px -25px 25px;
        padding: 30px 25px;
    }

    .resume-template-modern {
        display: block;
    }

    .resume-template-modern .resume-preview-header {
        text-align: center;
    }

    .resume-template-modern .resume-links {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .resume-template-card {
        grid-template-columns: 1fr;
    }

    .resume-sample {
        width: 100%;
        max-width: 180px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2.35rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats p {
        font-size: 0.8rem;
    }

    .feature-card,
    .course-category-card,
    .content-card {
        padding: 22px;
    }

    .cta-box {
        padding: 42px 22px;
        border-radius: 18px;
    }
}
/* FORCE RESUME TEMPLATE PREVIEW FIX */

.resume-template-panel {
    display: block !important;
    width: 100% !important;
    padding: 28px !important;
    background: #ffffff !important;
    border: 1px solid #e6e8ef !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08) !important;
}

.resume-template-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-top: 24px !important;
}

.resume-template-card {
    display: grid !important;
    grid-template-columns: 135px 1fr !important;
    gap: 18px !important;
    align-items: center !important;
    padding: 16px !important;
    background: #f8fafc !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 20px !important;
}

.resume-sample {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    width: 125px !important;
    height: 165px !important;
    background: #ffffff !important;
    border: 1px solid #d8dee9 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.14) !important;
}

.sample-top {
    display: block !important;
    height: 24px !important;
    background: var(--primary-color) !important;
}

.sample-dark-top {
    display: block !important;
    height: 38px !important;
    background: #111827 !important;
}

.sample-title,
.sample-text,
.sample-heading,
.sample-line,
.sample-classic-title,
.sample-classic-subtitle {
    display: block !important;
    height: 7px !important;
    margin-right: 12px !important;
    margin-left: 12px !important;
    background: #cbd5e1 !important;
    border-radius: 20px !important;
}

.sample-title {
    width: 72% !important;
    margin-top: 14px !important;
    background: #111827 !important;
}

.sample-text {
    width: 58% !important;
    margin-top: 9px !important;
}

.sample-heading {
    width: 86% !important;
    margin-top: 16px !important;
    background: var(--primary-color) !important;
}

.sample-heading.dark {
    background: #111827 !important;
}

.sample-line {
    width: 82% !important;
    margin-top: 10px !important;
}

.sample-line.short {
    width: 55% !important;
}

.sample-tags {
    display: flex !important;
    gap: 5px !important;
    margin: 12px !important;
}

.sample-tags span {
    display: block !important;
    width: 25px !important;
    height: 8px !important;
    background: rgba(91, 77, 247, 0.25) !important;
    border-radius: 50px !important;
}

.modern-sample {
    display: grid !important;
    grid-template-columns: 36px 1fr !important;
}

.sample-sidebar {
    display: block !important;
    height: 100% !important;
    background: var(--primary-color) !important;
}

.sample-main {
    display: block !important;
    padding-top: 5px !important;
}

.classic-sample {
    padding-top: 16px !important;
}

.sample-classic-title {
    width: 70% !important;
    height: 8px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    background: #111827 !important;
}

.sample-classic-subtitle {
    width: 55% !important;
    height: 5px !important;
    margin-top: 8px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.sample-divider {
    display: block !important;
    height: 1px !important;
    margin: 12px !important;
    background: #111827 !important;
}

.template-badge {
    display: inline-block !important;
    padding: 5px 10px !important;
    color: var(--primary-color) !important;
    background: rgba(91, 77, 247, 0.12) !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}
/* FINAL FIX - RESUME TEMPLATE PREVIEW CARDS */

.resume-builder-container {
    max-width: 1500px !important;
}

.resume-template-panel {
    display: block !important;
    width: 100% !important;
    position: sticky !important;
    top: 95px !important;
    padding: 28px !important;
    background-color: #ffffff !important;
    border: 1px solid #e6e8ef !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08) !important;
}

.resume-template-panel-header h2 {
    margin-top: 16px !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
}

.resume-template-panel-header p {
    color: #5f6673 !important;
    line-height: 1.7 !important;
}

.resume-template-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-top: 24px !important;
}

.resume-template-card {
    display: grid !important;
    grid-template-columns: 135px 1fr !important;
    gap: 18px !important;
    align-items: center !important;
    padding: 16px !important;
    background-color: #f8fafc !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 20px !important;
    transition: 0.25s ease !important;
}

.resume-template-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 15px 35px rgba(17, 24, 39, 0.12) !important;
}

.resume-template-card h3 {
    margin-bottom: 6px !important;
    color: #111827 !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
}

.resume-template-card p {
    margin-bottom: 8px !important;
    color: #5f6673 !important;
    line-height: 1.5 !important;
}

.template-badge {
    display: inline-block !important;
    padding: 5px 10px !important;
    color: var(--primary-color) !important;
    background-color: rgba(91, 77, 247, 0.12) !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

.resume-sample {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    width: 125px !important;
    height: 165px !important;
    background-color: #ffffff !important;
    border: 1px solid #d8dee9 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.14) !important;
}

.sample-top {
    display: block !important;
    height: 24px !important;
    background-color: var(--primary-color) !important;
}

.sample-dark-top {
    display: block !important;
    height: 38px !important;
    background-color: #111827 !important;
}

.sample-title,
.sample-text,
.sample-heading,
.sample-line,
.sample-classic-title,
.sample-classic-subtitle {
    display: block !important;
    height: 7px !important;
    margin-right: 12px !important;
    margin-left: 12px !important;
    background-color: #cbd5e1 !important;
    border-radius: 20px !important;
}

.sample-title {
    width: 72% !important;
    margin-top: 14px !important;
    background-color: #111827 !important;
}

.sample-text {
    width: 58% !important;
    margin-top: 9px !important;
}

.sample-heading {
    width: 86% !important;
    margin-top: 16px !important;
    background-color: var(--primary-color) !important;
}

.sample-heading.dark {
    background-color: #111827 !important;
}

.sample-line {
    width: 82% !important;
    margin-top: 10px !important;
}

.sample-line.short {
    width: 55% !important;
}

.sample-tags {
    display: flex !important;
    gap: 5px !important;
    margin: 12px !important;
}

.sample-tags span {
    display: block !important;
    width: 25px !important;
    height: 8px !important;
    background-color: rgba(91, 77, 247, 0.25) !important;
    border-radius: 50px !important;
}

.modern-sample {
    display: grid !important;
    grid-template-columns: 36px 1fr !important;
}

.sample-sidebar {
    display: block !important;
    height: 100% !important;
    background-color: var(--primary-color) !important;
}

.sample-main {
    display: block !important;
    padding-top: 5px !important;
}

.classic-sample {
    padding-top: 16px !important;
}

.sample-classic-title {
    width: 70% !important;
    height: 8px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    background-color: #111827 !important;
}

.sample-classic-subtitle {
    width: 55% !important;
    height: 5px !important;
    margin-top: 8px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.sample-divider {
    display: block !important;
    height: 1px !important;
    margin: 12px !important;
    background-color: #111827 !important;
}

.resume-template-note {
    display: flex !important;
    gap: 12px !important;
    margin-top: 22px !important;
    padding: 16px !important;
    color: #075985 !important;
    background-color: #e0f2fe !important;
    border-radius: 14px !important;
}

.resume-template-note p {
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
}

.resume-template-note i {
    margin-top: 3px !important;
}

@media (max-width: 1199px) {
    .resume-template-panel {
        position: static !important;
    }
}

@media (max-width: 576px) {
    .resume-template-card {
        grid-template-columns: 1fr !important;
    }

    .resume-sample {
        width: 100% !important;
        max-width: 180px !important;
    }
}

/* 1. Syncing Thumbnails: Forces all images to be the same size and aspect ratio */
.course-card-image {
    width: 100%;
    height: 200px;      /* Fixed height for uniformity */
    object-fit: cover;  /* Prevents stretching; crops image to fill the space */
    border-top-left-radius: 8px;
    display: block;
    border-top-right-radius: 8px;
}

/* 2. Colourful Cards: Assigns specific top-border colors */
.colorful-card {
    border-top: 6px solid #ccc; /* Default color */
    transition: transform 0.2s ease-in-out;
}

/* Assign 4 different accent colors for the "colorful" requirement */
.colorful-card:nth-child(4n+1) { border-top-color: #6f42c1; } /* Purple */
.colorful-card:nth-child(4n+2) { border-top-color: #007bff; } /* Blue */
.colorful-card:nth-child(4n+3) { border-top-color: #28a745; } /* Green */
.colorful-card:nth-child(4n+4) { border-top-color: #fd7e14; } /* Orange */

.colorful-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Ensure the carousel items have a minimum height so the purple banner doesn't resize constantly */
#courseHeaderCarousel .carousel-item {
    min-height: 120px; /* Adjust this value if you want the purple banner taller or shorter */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Optional: Move the carousel arrows further out to the edges so they don't overlap the text */
#courseHeaderCarousel .carousel-control-prev {
    left: -5%;
}
#courseHeaderCarousel .carousel-control-next {
    right: -5%;
}

/* ===================================
   Website Banner
=================================== */

.banner-slider {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
}

.banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tablet */
@media (max-width: 991px) {
    .banner-slider {
        height: 350px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .banner-slider {
        height: 220px;
    }
}