* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #155eef;
    --primary-dark: #0d47c9;
    --secondary: #0b1f3a;
    --accent: #16a085;
    --text: #182230;
    --muted: #667085;
    --border: #e4e7ec;
    --background: #ffffff;
    --light: #f7f9fc;
    --success: #12b76a;
    --danger: #d92d20;
    --radius: 14px;
    --shadow: 0 12px 35px rgba(16, 24, 40, 0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* Navigation */
.site-header, .dashboard-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    color: var(--secondary);
}

.brand > span:last-child > span { color: var(--primary); }

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a:not(.btn) {
    color: #475467;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a:not(.btn):hover { color: var(--primary); }

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 9px;
    padding: 12px 20px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline {
    border-color: #b8c1d1;
    color: var(--secondary);
    background: #fff;
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-small { padding: 9px 14px; font-size: 13px; }
.full-width { width: 100%; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #f6f9ff 0%, #ffffff 65%);
    padding: 90px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 14px 0 22px;
    color: var(--secondary);
}

.hero h1 span { color: var(--primary); }

.hero p {
    color: var(--muted);
    font-size: 18px;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 30px 0;
}

.hero-stats {
    display: flex;
    gap: 34px;
    margin-top: 32px;
}

.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 21px; color: var(--secondary); }
.hero-stats span { font-size: 12px; color: var(--muted); }

.hero-card {
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.dashboard-preview { border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.preview-top { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.status-dot { color: var(--success); font-size: 12px; }

.progress-box {
    margin: 20px 0;
    padding: 20px;
    border-radius: 12px;
    background: var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-box small, .mini-course small { display: block; color: var(--muted); }
.progress-box strong { display: block; font-size: 28px; }

.progress-ring {
    width: 68px;
    height: 68px;
    border: 7px solid #dbe7ff;
    border-top-color: var(--primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
}

.mini-course {
    display: grid;
    grid-template-columns: 42px 1fr 20px;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--border);
}

.course-icon, .level-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #eaf1ff;
    color: var(--primary);
    font-weight: 800;
}

.course-icon.blue { background: #e7f7f4; color: var(--accent); }

/* Sections */
.section { padding: 85px 0; }
.light-section { background: var(--light); }

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 42px;
}

.section-heading h2 {
    font-size: 38px;
    line-height: 1.15;
    margin: 10px 0;
    color: var(--secondary);
}

.section-heading p { color: var(--muted); }

.level-grid, .feature-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.level-card, .feature-card, .price-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    background: #fff;
    transition: .2s ease;
}

.level-card:hover, .feature-card:hover, .price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.level-icon { margin-bottom: 20px; font-size: 18px; }
.level-card h3, .feature-card h3, .price-card h3 { margin-bottom: 8px; }
.level-card p, .feature-card p, .price-card p { color: var(--muted); font-size: 14px; }
.level-card a { display: inline-block; margin-top: 18px; color: var(--primary); font-size: 13px; font-weight: 700; }
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.feature-number { color: var(--primary); font-size: 12px; font-weight: 800; }

.pricing-grid { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: auto; }
.price-card { position: relative; }
.price-card.popular { border: 2px solid var(--primary); }
.popular-label {
    position: absolute;
    top: -13px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}
.price { margin: 14px 0; font-size: 15px; color: var(--muted); }
.price strong { font-size: 34px; color: var(--secondary); }
.price-card ul { list-style: none; margin: 20px 0; }
.price-card li { padding: 7px 0; font-size: 14px; color: #475467; }
.price-card li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 8px; }

.about-section { background: var(--secondary); color: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-grid h2 { font-size: 40px; line-height: 1.15; margin-top: 12px; }
.about-grid p { color: #cbd5e1; }
.about-section .eyebrow { color: #7ea8ff; }

/* Footer */
.site-footer { background: #071426; color: #d0d5dd; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-brand { color: #fff; }
.footer-grid p { margin-top: 12px; color: #98a2b3; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; margin: 8px 0; color: #98a2b3; font-size: 14px; }
.copyright { border-top: 1px solid #1d2939; margin-top: 40px; padding-top: 18px; font-size: 12px; }

/* Authentication */
.auth-page { background: #f5f7fb; min-height: 100vh; }
.back-link { font-size: 14px; color: var(--muted); }
.auth-container { width: min(500px, 92%); margin: 55px auto; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 35px; box-shadow: var(--shadow); }
.register-card { width: min(620px, 100%); margin: auto; }
.auth-header { margin-bottom: 28px; }
.auth-header h1 { color: var(--secondary); font-size: 30px; margin: 8px 0; }
.auth-header p { color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 18px; }
.form-group { display: grid; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 700; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    background: #fff;
}

.form-message {
    min-height: 18px;
    font-size: 13px;
}

.form-message.error {
    color: #b42318;
}

.form-message.success {
    color: var(--success);
}

.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #eaf1ff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.password-field { position: relative; }
.password-field input { padding-right: 60px; }
.password-toggle { position: absolute; right: 8px; top: 7px; border: 0; background: transparent; color: var(--primary); font-size: 12px; cursor: pointer; font-weight: 700; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.text-link { color: var(--primary); font-size: 12px; }
.form-group small { color: var(--muted); font-size: 11px; }
.form-message { min-height: 18px; font-size: 13px; }
.terms-label { align-items: flex-start; }
.auth-footer { text-align: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--primary); font-weight: 700; }

/* ==========================================
DIGISOMA DASHBOARD — CONSOLIDATED STYLES
========================================== */

.dashboard-user {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
font-size: 13px;
font-weight: 700;
}

.dashboard-user > span:last-of-type {
overflow-wrap: anywhere;
}

.avatar {
flex: 0 0 35px;
width: 35px;
height: 35px;
display: grid;
place-items: center;
background: #eaf1ff;
color: var(--primary);
border-radius: 50%;
}

.logout-button {
margin-left: 10px;
border: 0;
background: transparent;
color: var(--danger);
cursor: pointer;
font-size: 12px;
}

/* Main layout */

.dashboard-layout {
display: grid;
grid-template-columns: 240px minmax(0, 1fr);
min-height: calc(100vh - 74px);
}

.sidebar {
min-width: 0;
border-right: 1px solid var(--border);
background: #fff;
padding: 25px 15px;
}

.sidebar nav {
display: grid;
gap: 5px;
}

.sidebar a {
display: block;
padding: 11px 14px;
border-radius: 8px;
font-size: 13px;
color: #475467;
overflow-wrap: anywhere;
}

.sidebar a:hover,
.sidebar a.active {
background: #eaf1ff;
color: var(--primary);
font-weight: 700;
}

.dashboard-main {
min-width: 0;
background: var(--light);
padding: 30px;
}

/* Dashboard heading */

.dashboard-title {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
margin-bottom: 25px;
}

.dashboard-title > div {
min-width: 0;
}

.dashboard-title h1 {
color: var(--secondary);
font-size: clamp(23px, 2vw, 30px);
line-height: 1.3;
margin: 6px 0;
overflow-wrap: anywhere;
}

.dashboard-title p {
color: var(--muted);
font-size: 14px;
}

.subscription-badge {
flex: 0 1 auto;
background: #ecfdf3;
color: #027a48;
padding: 8px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 700;
overflow-wrap: anywhere;
}

/* Statistics */

.dashboard-stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
align-items: stretch;
gap: 18px;
width: 100%;
margin: 25px 0 35px;
}

.dashboard-stats .stat-card {
display: flex;
flex-direction: column;
justify-content: space-between;
min-width: 0;
min-height: 135px;
padding: 22px;
background: #fff;
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: 0 3px 12px rgba(16, 24, 40, 0.04);
transition: transform 0.2s ease,
box-shadow 0.2s ease,
border-color 0.2s ease;
}

.dashboard-stats .stat-card:hover {
transform: translateY(-3px);
border-color: #b8ccff;
box-shadow: 0 8px 20px rgba(21, 94, 239, 0.09);
}

.dashboard-stats .stat-card span {
display: block;
margin-bottom: 14px;
color: var(--muted);
font-size: 13px;
font-weight: 600;
line-height: 1.5;
overflow-wrap: anywhere;
}

.dashboard-stats .stat-card strong {
display: block;
color: var(--secondary);
font-size: 30px;
font-weight: 800;
line-height: 1.2;
overflow-wrap: anywhere;
}

/* Dashboard sections */

.dashboard-section {
min-width: 0;
margin-top: 30px;
}

.section-title-row {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 10px 15px;
margin-bottom: 18px;
}

.section-title-row h2 {
min-width: 0;
color: var(--secondary);
font-size: 20px;
line-height: 1.4;
}

.section-title-row a {
flex-shrink: 0;
color: var(--primary);
font-size: 13px;
font-weight: 700;
}

.section-title-row a:hover {
color: var(--primary-dark);
text-decoration: underline;
}

/* Course cards */

.course-dashboard-grid {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 12px;
min-width: 0;
}

.dashboard-course {
display: grid;
grid-template-columns: 48px minmax(0, 1fr) auto;
align-items: center;
gap: 15px;
min-width: 0;
padding: 20px;
background: #fff;
border: 1px solid var(--border);
border-radius: 14px;
transition: border-color 0.2s ease,
box-shadow 0.2s ease;
}

.dashboard-course:hover {
border-color: #c7d7fe;
box-shadow: 0 5px 16px rgba(16, 24, 40, 0.05);
}

.dashboard-course h3 {
color: var(--secondary);
font-size: 15px;
line-height: 1.4;
overflow-wrap: anywhere;
}

.dashboard-course p {
color: var(--muted);
font-size: 13px;
line-height: 1.6;
margin-top: 5px;
overflow-wrap: anywhere;
}

.dashboard-course > a {
display: inline-flex;
justify-content: center;
align-items: center;
min-height: 42px;
padding: 10px 15px;
color: #fff;
background: var(--primary);
border-radius: 9px;
font-size: 12px;
font-weight: 700;
text-align: center;
transition: background 0.2s ease;
}

.dashboard-course > a:hover {
background: var(--primary-dark);
}

.dashboard-course .course-icon,
.dashboard-course .level-icon {
width: 48px;
height: 48px;
border-radius: 11px;
}

/* Class cards, including Enrolled Learners */

.class-card {
display: grid;
grid-template-columns: 55px minmax(0, 1fr) auto;
align-items: center;
gap: 15px;
min-width: 0;
padding: 18px;
margin-bottom: 12px;
background: #fff;
border: 1px solid var(--border);
border-radius: 14px;
}

.class-card > div {
min-width: 0;
}

.class-card h3 {
color: var(--secondary);
font-size: 14px;
line-height: 1.5;
overflow-wrap: anywhere;
}

.class-card h3 a:hover {
color: var(--primary);
}

.class-card p {
color: var(--muted);
font-size: 12px;
line-height: 1.6;
margin-top: 5px;
overflow-wrap: anywhere;
}

.class-date {
display: grid;
place-items: center;
align-content: center;
min-width: 55px;
min-height: 48px;
padding: 9px 5px;
text-align: center;
background: #eaf1ff;
border-radius: 10px;
color: var(--primary);
}

.class-date strong {
display: block;
font-size: 20px;
line-height: 1.2;
overflow-wrap: anywhere;
}

.class-date span {
font-size: 10px;
font-weight: 800;
}

/* Empty-state messages */

.dashboard-section > p {
color: var(--muted);
font-size: 14px;
overflow-wrap: anywhere;
}

.dashboard-section > p a {
color: var(--primary);
font-weight: 600;
}

/* ==========================================
   DIGISOMA RESPONSIVE DESIGN IMPROVEMENTS
   Homepage, authentication and dashboards
========================================== */

/* Prevent viewport overflow from long content */
html {
    width: 100%;
    overflow-x: clip;
}

body {
    width: 100%;
    min-width: 0;
}

img,
video,
iframe {
    max-width: 100%;
}

/* Allow long text to wrap instead of stretching layouts */
.container,
.hero-grid,
.about-grid,
.dashboard-layout,
.dashboard-main,
.dashboard-section,
.level-card,
.feature-card,
.price-card,
.auth-card {
    min-width: 0;
}

p,
h1,
h2,
h3,
h4,
td,
th {
    overflow-wrap: anywhere;
}

/* Ensure interactive controls remain visible */
button,
.btn,
input,
select,
textarea {
    max-width: 100%;
}

button,
.btn {
    min-height: 42px;
}

a,
button,
input,
select,
textarea {
    scroll-margin-top: 90px;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #155eef;
    outline-offset: 3px;
}

/* ==========================================
   LAPTOPS AND SMALL DESKTOPS
========================================== */

@media (max-width: 1100px) {

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 30px;
    }

    .level-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 25px;
    }

    .dashboard-main {
        padding: 24px;
    }

}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 768px) {

    /* Navigation: keep every link accessible */
    .nav-container {
        min-height: auto;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand {
        font-size: 19px;
        min-width: 0;
    }

    .main-nav {
        display: flex;
        flex: 1 0 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 18px;
        min-width: 0;
        padding: 8px 0;
    }

    .main-nav a {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .menu-toggle {
        display: none;
    }

    /* Homepage hero */
    .hero {
        padding: 55px 0 45px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .hero h1 {
        font-size: clamp(34px, 6vw, 48px);
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px 28px;
    }

    /* Homepage sections */
    .section {
        padding: 55px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: clamp(26px, 4vw, 34px);
    }

    .level-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .about-grid h2 {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    /* Authentication forms */
    .auth-container {
        margin: 30px auto;
    }

    .auth-card {
        padding: 25px;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Dashboard: retain the sidebar and all navigation links */
    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        display: block;
        min-width: 0;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .sidebar a {
        max-width: 100%;
        padding: 10px 12px;
    }

    .dashboard-main {
        padding: 22px 18px;
    }

    .dashboard-title {
        flex-wrap: wrap;
    }

}

/* ==========================================
   SMARTPHONES
========================================== */

@media (max-width: 600px) {

    .container {
        width: 94%;
    }

    /* Homepage navigation */
    .nav-container {
        gap: 10px;
    }

    .brand {
        font-size: 17px;
        gap: 7px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .main-nav {
        gap: 10px 14px;
    }

    .main-nav a:not(.btn) {
        font-size: 13px;
    }

    .main-nav .btn {
        padding: 9px 12px;
    }

    /* Homepage hero and actions */
    .hero {
        padding: 42px 0 35px;
    }

    .hero h1 {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.12;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 18px;
    }

    .hero-card,
    .dashboard-preview {
        padding: 14px;
    }

    .progress-box {
        padding: 14px;
        gap: 12px;
    }

    .progress-box strong {
        font-size: 23px;
    }

    /* Cards and sections */
    .section {
        padding: 42px 0;
    }

    .level-grid,
    .feature-grid,
    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .level-card,
    .feature-card,
    .price-card {
        padding: 20px;
    }

    .about-grid h2 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    /* Authentication */
    .auth-container {
        width: 94%;
        margin: 20px auto;
    }

    .auth-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .auth-header h1 {
        font-size: 26px;
    }

    .form-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    /* Dashboard */
    .dashboard-main {
        padding: 18px 12px;
    }

    .dashboard-title {
        gap: 12px;
    }

    .dashboard-title h1 {
        font-size: 24px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dashboard-stats .stat-card {
        padding: 13px;
    }

    .dashboard-stats .stat-card strong {
        font-size: 24px;
    }

    .dashboard-course {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
    }

    .dashboard-course .course-icon,
    .dashboard-course .level-icon {
        width: 40px;
        height: 40px;
    }

    .class-card {
        padding: 12px;
        gap: 10px;
    }

    .section-title-row {
        align-items: flex-start;
    }

    .logout-button {
        margin-left: 0;
    }

}

/* ==========================================
   VERY SMALL SMARTPHONES
========================================== */

@media (max-width: 350px) {

    .container {
        width: 96%;
    }

    .brand {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .dashboard-main {
        padding: 14px 9px;
    }

    .dashboard-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-stats .stat-card {
        min-height: 90px;
    }

    .sidebar {
        padding: 8px;
    }

    .sidebar a {
        padding: 9px;
        font-size: 12px;
    }

    .auth-card {
        padding: 16px 12px;
    }

}

/* ==========================================
   REDUCED MOTION ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}

/* ==========================================
DIGISOMA DASHBOARD STATISTICS CARDS
========================================== */

.dashboard-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
margin: 25px 0 35px;
}

.dashboard-stats .stat-card {
display: flex;
align-items: center;
gap: 16px;
min-width: 0;
padding: 23px 20px;
background: #ffffff;
border: 1px solid #e8edf5;
border-radius: 15px;
box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
transition:
transform 0.25s ease,
box-shadow 0.25s ease,
border-color 0.25s ease;
}

.dashboard-stats .stat-card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
border-color: #cbd5e1;
}

/* Icon container */

.dashboard-stats .stat-icon {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 55px;
height: 55px;
border-radius: 14px;
font-size: 23px;
}

/* Text and numbers */

.dashboard-stats .stat-content {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
}

.dashboard-stats .stat-content span {
color: #64748b;
font-size: 13px;
font-weight: 600;
line-height: 1.5;
}

.dashboard-stats .stat-content strong {
color: #0f172a;
font-size: 29px;
font-weight: 750;
line-height: 1.1;
}

/* Individual icon colour themes */

.dashboard-stats .stat-courses .stat-icon {
background: #dbeafe;
color: #1d4ed8;
}

.dashboard-stats .stat-trainers .stat-icon {
background: #ede9fe;
color: #6d28d9;
}

.dashboard-stats .stat-learners .stat-icon {
background: #ccfbf1;
color: #0f766e;
}

.dashboard-stats .stat-total .stat-icon {
background: #e0e7ff;
color: #4338ca;
}

.dashboard-stats .stat-active .stat-icon {
background: #dcfce7;
color: #15803d;
}

.dashboard-stats .stat-pending .stat-icon {
background: #fef3c7;
color: #b45309;
}

.dashboard-stats .stat-classes .stat-icon {
background: #cffafe;
color: #0e7490;
}

/* Responsive layout */

@media (max-width: 768px) {
.dashboard-stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}



.dashboard-stats .stat-card {
    gap: 11px;
    padding: 16px 12px;
    border-radius: 12px;
}

.dashboard-stats .stat-icon {
    width: 43px;
    height: 43px;
    font-size: 19px;
    border-radius: 11px;
}

.dashboard-stats .stat-content span {
    font-size: 12px;
}

.dashboard-stats .stat-content strong {
    font-size: 24px;
}

}

@media (max-width: 380px) {
.dashboard-stats {
grid-template-columns: 1fr;
}
}

@media (prefers-reduced-motion: reduce) {
.dashboard-stats .stat-card {
transition: none;
}


.dashboard-stats .stat-card:hover {
    transform: none;
}

}



/* ==========================================
DIGISOMA SIDEBAR ICONS AND NAVIGATION
========================================== */

.sidebar nav a {
display: flex;
align-items: center;
gap: 13px;
padding: 12px 16px;
border-radius: 9px;
text-decoration: none;
transition:
background-color 0.2s ease,
color 0.2s ease,
transform 0.2s ease;
}

/* Consistent icon dimensions */

.sidebar .sidebar-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 22px;
width: 22px;
font-size: 17px;
text-align: center;
transition:
color 0.2s ease,
transform 0.2s ease;
}

/* Keep navigation labels aligned */

.sidebar nav a span {
flex: 1;
line-height: 1.5;
}

/* Hover interaction */

.sidebar nav a:hover {
background-color: rgba(255, 255, 255, 0.09);
}

.sidebar nav a:hover .sidebar-icon {
transform: translateX(2px);
}

/* Active navigation item */

.sidebar nav a.active {
background-color: #155eef;
color: #ffffff;
font-weight: 600;
box-shadow: 0 4px 12px rgba(21, 94, 239, 0.22);
}

.sidebar nav a.active .sidebar-icon {
color: #ffffff;
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
.sidebar nav a,
.sidebar .sidebar-icon {
transition: none;
}

.sidebar nav a:hover .sidebar-icon {
    transform: none;
}

}


/* ==========================================
DIGISOMA HOMEPAGE — PROFESSIONAL UI UPGRADE
Scope: Public homepage only
========================================== */

:root {
--home-hero-bg: #f4f7ff;
--home-blue-soft: #eaf1ff;
--home-card-shadow: 0 18px 45px rgba(15, 35, 75, 0.09);
--home-card-shadow-hover: 0 24px 50px rgba(15, 35, 75, 0.14);
}

/* Smooth scrolling with space for sticky navigation */
html {
scroll-padding-top: 90px;
}

/* Homepage navigation */
.site-header {
background: rgba(255, 255, 255, 0.96);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
box-shadow: 0 3px 18px rgba(16, 24, 40, 0.035);
}

.nav-container {
min-height: 78px;
}

.brand {
gap: 11px;
letter-spacing: -0.5px;
}

.brand-mark {
width: 42px;
height: 42px;
border-radius: 12px;
background: linear-gradient(145deg, #2875ff, #1048cc);
box-shadow: 0 5px 13px rgba(21, 94, 239, 0.22);
}

.main-nav {
gap: 25px;
}

.main-nav a:not(.btn) {
position: relative;
transition: color 0.2s ease;
}

.main-nav a:not(.btn)::after {
content: "";
position: absolute;
left: 0;
right: 100%;
bottom: -7px;
height: 2px;
background: var(--primary);
transition: right 0.2s ease;
}

.main-nav a:not(.btn):hover::after {
right: 0;
}

.main-nav .btn {
box-shadow: 0 4px 12px rgba(21, 94, 239, 0.16);
}

.btn {
border-radius: 10px;
transition:
transform 0.2s ease,
box-shadow 0.2s ease,
background-color 0.2s ease,
border-color 0.2s ease;
}

.btn-primary:hover {
box-shadow: 0 8px 18px rgba(21, 94, 239, 0.22);
}

.btn-outline:hover {
background: #f7f9ff;
}

/* Hero section */
.hero {
position: relative;
isolation: isolate;
overflow: hidden;
padding: 100px 0 90px;
background:
radial-gradient(
circle at 90% 12%,
rgba(21, 94, 239, 0.10),
transparent 30%
),
radial-gradient(
circle at 5% 90%,
rgba(22, 160, 133, 0.07),
transparent 28%
),
linear-gradient(135deg, #f4f7ff 0%, #ffffff 65%);
}

.hero::before {
content: "";
position: absolute;
z-index: -1;
width: 340px;
height: 340px;
right: -170px;
bottom: -190px;
border: 1px solid rgba(21, 94, 239, 0.12);
border-radius: 50%;
}

.hero-grid {
grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
gap: 55px;
}

.hero-content {
min-width: 0;
}

.hero .eyebrow {
display: inline-flex;
align-items: center;
gap: 9px;
padding: 8px 13px;
border: 1px solid #dce7ff;
border-radius: 30px;
background: rgba(255, 255, 255, 0.85);
font-size: 11px;
letter-spacing: 1.3px;
}

.hero .eyebrow::before {
content: "";
width: 7px;
height: 7px;
flex-shrink: 0;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.10);
}

.hero h1 {
max-width: 680px;
margin: 23px 0 22px;
font-size: clamp(43px, 5vw, 66px);
line-height: 1.08;
letter-spacing: -2.4px;
font-weight: 800;
}

.hero h1 span {
background: linear-gradient(100deg, #155eef, #397cff);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.hero-content > p {
max-width: 580px;
font-size: 17px;
line-height: 1.85;
color: #526078;
}

.hero-actions {
gap: 14px;
margin: 31px 0 35px;
}

.hero-actions .btn {
min-height: 49px;
padding: 13px 23px;
}

.hero-actions .btn-primary {
box-shadow: 0 7px 18px rgba(21, 94, 239, 0.20);
}

.hero-stats {
display: flex;
flex-wrap: wrap;
gap: 25px;
padding-top: 25px;
border-top: 1px solid rgba(152, 162, 179, 0.30);
}

.hero-stats div {
min-width: 90px;
gap: 3px;
}

.hero-stats strong {
font-size: 23px;
font-weight: 800;
letter-spacing: -0.5px;
}

.hero-stats span {
font-size: 12px;
line-height: 1.5;
}

/* Student dashboard preview */
.hero-card {
position: relative;
padding: 15px;
border: 1px solid rgba(215, 225, 243, 0.9);
border-radius: 24px;
background: rgba(255, 255, 255, 0.92);
box-shadow: var(--home-card-shadow);
}

.dashboard-preview {
padding: 22px;
border: 1px solid #edf0f6;
border-radius: 17px;
background: #fff;
}

.preview-top {
align-items: center;
gap: 10px;
color: var(--secondary);
}

.status-dot {
padding: 5px 9px;
border-radius: 20px;
background: #ecfdf3;
color: #027a48;
white-space: nowrap;
}

.progress-box {
margin: 22px 0;
padding: 21px;
border: 1px solid #edf1f8;
background: linear-gradient(135deg, #f8faff, #f1f6ff);
}

.progress-box small {
font-size: 12px;
}

.progress-box strong {
margin-top: 5px;
color: var(--secondary);
font-size: 31px;
letter-spacing: -1px;
}

.progress-ring {
border-color: #dce7ff;
border-top-color: var(--primary);
box-shadow: inset 0 0 0 2px #fff;
background: #fff;
}

.mini-course {
grid-template-columns: 45px minmax(0, 1fr) 20px;
gap: 13px;
padding: 16px 0;
}

.mini-course > div {
min-width: 0;
}

.mini-course strong {
display: block;
color: var(--secondary);
font-size: 13px;
line-height: 1.5;
}

.mini-course small {
margin-top: 3px;
font-size: 11px;
}

.course-icon {
width: 45px;
height: 45px;
border-radius: 12px;
}

.mini-course > span:last-child {
color: var(--primary);
font-size: 20px;
text-align: center;
}

/* Shared homepage section headings */
.section-heading {
margin-bottom: 46px;
}

.section-heading .eyebrow,
.about-grid .eyebrow {
display: inline-block;
margin-bottom: 4px;
}

.section-heading h2 {
margin: 12px 0;
font-size: clamp(29px, 3.5vw, 39px);
font-weight: 800;
letter-spacing: -1px;
}

.section-heading p {
max-width: 610px;
margin: 0 auto;
line-height: 1.8;
}

/* Learning level cards */
.level-card,
.feature-card,
.price-card {
position: relative;
overflow: hidden;
border-radius: 17px;
box-shadow: 0 4px 16px rgba(16, 24, 40, 0.025);
transition:
transform 0.25s ease,
box-shadow 0.25s ease,
border-color 0.25s ease;
}

.level-card {
padding: 28px 24px;
}

.level-card:hover,
.feature-card:hover,
.price-card:hover {
transform: translateY(-5px);
box-shadow: var(--home-card-shadow-hover);
border-color: #cbd9f8;
}

.level-icon {
width: 49px;
height: 49px;
margin-bottom: 22px;
border-radius: 14px;
background: linear-gradient(145deg, #eaf1ff, #dce8ff);
color: #155eef;
display: grid;
place-items: center;
}

.level-icon svg {
width: 25px;
height: 25px;
display: block;
}

.level-card h3,
.feature-card h3,
.price-card h3 {
color: var(--secondary);
font-size: 18px;
letter-spacing: -0.3px;
}

.level-card p,
.feature-card p,
.price-card p {
line-height: 1.8;
}

.level-card a {
display: inline-flex;
align-items: center;
gap: 5px;
margin-top: 20px;
}

.level-card a:hover {
color: var(--primary-dark);
}

.featured-level {
border-color: #b8ccff;
background: linear-gradient(150deg, #ffffff, #f4f7ff);
}

.featured-level::before {
content: "FEATURED";
position: absolute;
top: 16px;
right: -29px;
width: 112px;
padding: 5px 0;
transform: rotate(35deg);
background: var(--primary);
color: #fff;
text-align: center;
font-size: 9px;
font-weight: 800;
letter-spacing: 0.8px;
}

/* Feature cards */
.feature-card {
padding: 28px 24px;
}

.feature-number {
display: inline-flex;
align-items: center;
justify-content: center;
width: 39px;
height: 39px;
margin-bottom: 22px;
border-radius: 11px;
background: var(--home-blue-soft);
color: var(--primary);
font-size: 12px;
letter-spacing: 0.5px;
}

/* Subscription cards */
.pricing-section {
background:
radial-gradient(
circle at 50% 0,
rgba(21, 94, 239, 0.055),
transparent 50%
),
#f8faff;
}

.pricing-grid {
align-items: stretch;
gap: 22px;
}

.price-card {
display: flex;
flex-direction: column;
padding: 29px 25px;
}

.price-card.popular {
border: 2px solid var(--primary);
box-shadow: 0 12px 35px rgba(21, 94, 239, 0.10);
}

.price-card .price {
margin: 15px 0 5px;
}

.price-card .price strong {
font-size: 36px;
}

.price-card ul {
flex: 1;
margin: 21px 0 25px;
}

.price-card li {
padding: 9px 0;
border-bottom: 1px solid #f0f2f6;
line-height: 1.6;
}

.price-card li:last-child {
border-bottom: 0;
}

.price-card .btn {
margin-top: auto;
}

/* About section */
.about-section {
position: relative;
overflow: hidden;
background:
radial-gradient(
circle at 90% 20%,
rgba(21, 94, 239, 0.18),
transparent 32%
),
#0b1f3a;
}

.about-grid {
gap: 75px;
}

.about-grid h2 {
font-weight: 800;
letter-spacing: -1px;
}

.about-grid p {
font-size: 15px;
line-height: 1.95;
}

/* Footer */
.site-footer {
padding-top: 58px;
}

.footer-brand .brand-mark {
background: linear-gradient(145deg, #2875ff, #1048cc);
}

.footer-grid h4 {
font-size: 14px;
}

.footer-grid a:not(.brand) {
transition: color 0.2s ease;
}

.footer-grid a:not(.brand):hover {
color: #fff;
}

.copyright {
padding-bottom: 5px;
}

/* Tablet adjustments */
@media (max-width: 900px) {
.hero {
padding: 70px 0 60px;
}

.hero-grid {
    gap: 32px;
}

.hero h1 {
    font-size: clamp(39px, 5.6vw, 54px);
    letter-spacing: -1.7px;
}

.dashboard-preview {
    padding: 16px;
}

.progress-box {
    padding: 15px;
}

.level-card,
.feature-card {
    padding: 23px 19px;
}

}

/* Mobile adjustments */
@media (max-width: 768px) {
.nav-container {
min-height: 70px;
}

.hero {
    padding: 55px 0 48px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
}

.hero-content {
    max-width: 680px;
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(38px, 7vw, 52px);
}

.hero-content > p {
    font-size: 16px;
}

.hero-card {
    width: min(100%, 540px);
    margin: 0 auto;
}

.section-heading {
    margin-bottom: 32px;
}

.about-grid {
    gap: 25px;
}

}

@media (max-width: 600px) {
.hero {
padding: 42px 0;
}

.hero .eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
}

.hero h1 {
    margin-top: 19px;
    font-size: clamp(33px, 9vw, 43px);
    line-height: 1.12;
    letter-spacing: -1.2px;
}

.hero-content > p {
    font-size: 15px;
    line-height: 1.8;
}

.hero-actions {
    margin: 25px 0;
    gap: 11px;
}

.hero-stats {
    gap: 17px 22px;
    margin-top: 26px;
    padding-top: 21px;
}

.hero-stats strong {
    font-size: 21px;
}

.hero-stats span {
    font-size: 11px;
}

.hero-card {
    padding: 10px;
    border-radius: 18px;
}

.dashboard-preview {
    padding: 13px;
}

.mini-course {
    grid-template-columns: 39px minmax(0, 1fr) 16px;
    gap: 10px;
}

.course-icon {
    width: 39px;
    height: 39px;
}

.mini-course strong {
    font-size: 12px;
}

.section-heading h2 {
    font-size: 29px;
    letter-spacing: -0.6px;
}

.section-heading p {
    font-size: 14px;
}

.level-card,
.feature-card,
.price-card {
    padding: 23px 20px;
}

.about-grid h2 {
    font-size: 30px;
}

}

/* Accessibility: avoid unnecessary motion */
@media (prefers-reduced-motion: reduce) {
.main-nav a,
.main-nav a::after,
.btn,
.level-card,
.feature-card,
.price-card,
.footer-grid a {
transition: none;
}

.level-card:hover,
.feature-card:hover,
.price-card:hover,
.btn-primary:hover {
    transform: none;
}

}


/* ==========================================
SUBSCRIPTION SECTION — TERM PLAN FIX
========================================== */

.pricing-grid {
align-items: stretch;
gap: 24px;
padding-top: 16px;
}

.price-card {
min-width: 0;
overflow: visible;
display: flex;
flex-direction: column;
border-radius: 16px;
}

.price-card.popular {
position: relative;
border: 2px solid var(--primary);
margin-top: 0;
}

/* Position the Most Popular label safely */
.price-card .popular-label {
position: absolute;
top: -13px;
right: 18px;
z-index: 2;
max-width: calc(100% - 36px);
padding: 5px 12px;
border-radius: 20px;
background: var(--primary);
color: #fff;
font-size: 10px;
line-height: 1.5;
font-weight: 800;
text-align: center;
white-space: nowrap;
}

/* Keep the plan content properly spaced */
.price-card h3 {
margin-top: 5px;
line-height: 1.4;
}

.price-card > p {
line-height: 1.7;
}

.price-card .price {
margin: 16px 0 8px;
}

.price-card ul {
flex: 1;
padding: 0;
margin: 20px 0 25px;
}

.price-card li {
line-height: 1.6;
overflow-wrap: anywhere;
}

.price-card > .btn {
width: 100%;
margin-top: auto;
}

/* Mobile layout */
@media (max-width: 768px) {
.pricing-grid {
grid-template-columns: minmax(0, 1fr);
gap: 25px;
padding-top: 12px;
}


.price-card.popular {
    margin-top: 0;
}


}

@media (max-width: 380px) {
.price-card .popular-label {
right: 10px;
max-width: calc(100% - 20px);
font-size: 9px;
padding: 4px 8px;
}
}


/* =========================================
FEATURED COURSES — HOMEPAGE
========================================= */

.featured-courses-section {
background: #f8faff;
}

.featured-courses-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;
margin-top: 35px;
align-items: stretch;
}

.featured-course-card {
display: flex;
flex-direction: column;
min-width: 0;
overflow: hidden;
background: #ffffff;
border: 1px solid var(--border);
border-radius: 16px;
box-shadow: 0 8px 24px rgba(11, 31, 58, 0.05);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-course-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 32px rgba(11, 31, 58, 0.10);
}

.featured-course-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 22px 22px 15px;
}

.featured-course-icon {
display: flex;
align-items: center;
justify-content: center;
width: 46px;
height: 46px;
flex-shrink: 0;
border-radius: 12px;
background: #eaf1ff;
color: var(--primary);
}

.featured-course-icon svg {
width: 23px;
height: 23px;
display: block;
}

.featured-course-level {
display: inline-block;
max-width: 70%;
padding: 6px 10px;
border-radius: 20px;
background: #e8f7f2;
color: #087f64;
font-size: 11px;
font-weight: 700;
text-align: center;
overflow-wrap: anywhere;
}

.featured-course-content {
flex: 1;
padding: 5px 22px 22px;
}

.featured-course-content h3 {
margin: 0 0 10px;
color: var(--secondary);
font-size: 19px;
line-height: 1.45;
overflow-wrap: anywhere;
}

.featured-course-subject {
margin-bottom: 12px;
color: var(--primary);
font-size: 13px;
font-weight: 700;
}

.featured-course-grade {
margin-bottom: 12px;
color: var(--text);
font-size: 13px;
}

.featured-course-description {
color: var(--muted);
font-size: 14px;
line-height: 1.8;
overflow-wrap: anywhere;
}

.featured-course-footer {
padding: 0 22px 22px;
margin-top: auto;
}

.featured-course-footer .btn {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
text-align: center;
}

.featured-courses-cta {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 16px;
margin-top: 38px;
text-align: center;
}

.featured-courses-cta p {
color: var(--secondary);
font-weight: 700;
}

.courses-empty-state {
max-width: 650px;
margin: 35px auto 0;
padding: 42px 28px;
border: 1px dashed var(--border);
border-radius: 16px;
background: #ffffff;
text-align: center;
}

.courses-empty-state h3 {
margin-bottom: 12px;
color: var(--secondary);
font-size: 22px;
}

.courses-empty-state p {
margin-bottom: 22px;
color: var(--muted);
line-height: 1.8;
}

@media (max-width: 992px) {
.featured-courses-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 600px) {
.featured-courses-grid {
grid-template-columns: minmax(0, 1fr);
gap: 18px;
}

.featured-course-top {
    padding: 20px 20px 14px;
}

.featured-course-content {
    padding: 5px 20px 20px;
}

.featured-course-footer {
    padding: 0 20px 20px;
}

.featured-courses-cta {
    flex-direction: column;
}

.courses-empty-state {
    padding: 30px 20px;
}


}


/* =========================================
PROFESSIONAL ABOUT SECTION
========================================= */

.about-section {
background: #ffffff;
}

.about-section .section-heading {
max-width: 780px;
margin: 0 auto 45px;
text-align: center;
}

.about-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
align-items: start;
gap: 55px;
}

.about-content h3 {
margin: 0 0 14px;
color: var(--secondary);
font-size: 22px;
line-height: 1.4;
}

.about-content p {
margin-bottom: 22px;
color: var(--muted);
font-size: 15px;
line-height: 1.9;
}

.about-content .btn {
margin-top: 5px;
}

.about-highlights {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 18px;
}

.about-highlight-card {
display: flex;
align-items: flex-start;
gap: 18px;
padding: 22px;
border: 1px solid var(--border);
border-radius: 14px;
background: #ffffff;
transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-highlight-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(11, 31, 58, 0.07);
}

.about-highlight-number {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 42px;
height: 42px;
border-radius: 11px;
background: #eaf1ff;
color: var(--primary);
font-size: 14px;
font-weight: 800;
}

.about-highlight-card h4 {
margin: 0 0 8px;
color: var(--secondary);
font-size: 16px;
line-height: 1.5;
}

.about-highlight-card p {
margin: 0;
color: var(--muted);
font-size: 14px;
line-height: 1.8;
}

.about-vision {
margin-top: 55px;
padding: 38px;
border-radius: 18px;
background: #f3f7ff;
text-align: center;
}

.about-vision h3 {
margin: 12px 0;
color: var(--secondary);
font-size: clamp(22px, 3vw, 30px);
line-height: 1.4;
}

.about-vision p {
max-width: 750px;
margin: 0 auto;
color: var(--muted);
font-size: 15px;
line-height: 1.9;
}

/* =========================================
PROFESSIONAL FOOTER
========================================= */

.site-footer {
background: #0b1f3a;
color: #ffffff;
}

.footer-grid {
display: grid;
grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
gap: 38px;
padding-top: 55px;
padding-bottom: 45px;
}

.footer-brand-column,
.footer-links-column,
.footer-contact-column {
min-width: 0;
}

.footer-brand .brand-mark {
flex-shrink: 0;
}

.footer-brand {
color: #ffffff;
}

.footer-description {
margin: 15px 0 8px;
color: #ffffff;
font-weight: 700;
}

.footer-tagline {
max-width: 280px;
color: #c4cfdd;
font-size: 13px;
line-height: 1.8;
}

.footer-links-column h4,
.footer-contact-column h4 {
margin: 0 0 20px;
color: #ffffff;
font-size: 16px;
}

.footer-links-column {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 12px;
}

.footer-links-column a {
color: #c4cfdd;
font-size: 14px;
line-height: 1.6;
text-decoration: none;
transition: color 0.2s ease;
}

.footer-links-column a:hover,
.footer-contact-column a:hover {
color: #ffffff;
}

.footer-contact-column > p {
margin-bottom: 18px;
color: #c4cfdd;
font-size: 14px;
line-height: 1.8;
}

.footer-contact-item {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 5px;
margin-bottom: 16px;
overflow-wrap: anywhere;
}

.footer-contact-label {
color: #ffffff;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.6px;
}

.footer-contact-item a,
.footer-contact-item > span:last-child {
color: #c4cfdd;
font-size: 14px;
line-height: 1.7;
overflow-wrap: anywhere;
}

.footer-contact-button {
display: inline-flex;
align-items: center;
justify-content: center;
margin-top: 5px;
padding: 11px 17px;
border: 1px solid rgba(255, 255, 255, 0.4);
border-radius: 8px;
color: #ffffff;
font-size: 13px;
font-weight: 700;
text-decoration: none;
transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-contact-button:hover {
background: var(--primary);
border-color: var(--primary);
}

.footer-bottom {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
padding-top: 20px;
padding-bottom: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
margin: 0;
color: #c4cfdd;
font-size: 12px;
line-height: 1.7;
}

/* =========================================
RESPONSIVE ABOUT AND FOOTER
========================================= */

@media (max-width: 992px) {
.about-grid {
gap: 32px;
}

.footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
}

}

@media (max-width: 600px) {
.about-grid {
grid-template-columns: minmax(0, 1fr);
gap: 30px;
}


.about-highlight-card {
    padding: 18px;
    gap: 14px;
}

.about-vision {
    margin-top: 35px;
    padding: 28px 20px;
}

.footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 35px;
}

.footer-bottom {
    align-items: flex-start;
    flex-direction: column;
}

}


/* =========================================
PROFESSIONAL PLATFORM FEATURES
========================================= */

.professional-feature-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;
align-items: stretch;
margin-top: 38px;
}

.professional-feature-card {
display: flex;
flex-direction: column;
min-width: 0;
padding: 26px;
border: 1px solid var(--border);
border-radius: 16px;
background: #ffffff;
box-shadow: 0 6px 22px rgba(11, 31, 58, 0.035);
transition:
transform 0.25s ease,
box-shadow 0.25s ease,
border-color 0.25s ease;
}

.professional-feature-card:hover {
transform: translateY(-5px);
border-color: rgba(21, 94, 239, 0.3);
box-shadow: 0 14px 32px rgba(11, 31, 58, 0.09);
}

.professional-feature-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
margin-bottom: 24px;
}

.professional-feature-top .feature-number {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 11px;
background: #eaf1ff;
color: var(--primary);
font-size: 13px;
font-weight: 800;
}

.professional-feature-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 46px;
height: 46px;
border: 1px solid #dce7ff;
border-radius: 50%;
background: #f1f5ff;
color: var(--primary);
}

.professional-feature-icon svg {
width: 22px;
height: 22px;
display: block;
}

.professional-feature-card h3 {
margin: 0 0 12px;
color: var(--secondary);
font-size: 19px;
line-height: 1.5;
overflow-wrap: anywhere;
}

.professional-feature-card > p {
flex: 1;
margin: 0 0 22px;
color: var(--muted);
font-size: 14px;
line-height: 1.9;
}

.professional-feature-card .feature-link {
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
padding-top: 15px;
border-top: 1px solid var(--border);
color: var(--primary);
font-size: 13px;
font-weight: 700;
text-decoration: none;
transition: color 0.2s ease;
}

.professional-feature-card .feature-link:hover {
color: var(--primary-dark);
}

.professional-feature-card .feature-link span {
font-size: 18px;
transition: transform 0.2s ease;
}

.professional-feature-card .feature-link:hover span {
transform: translateX(4px);
}

/* Features call to action */

.features-cta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 30px;
margin-top: 45px;
padding: 35px;
border: 1px solid var(--border);
border-radius: 18px;
background: #ffffff;
box-shadow: 0 8px 28px rgba(11, 31, 58, 0.04);
}

.features-cta > div:first-child {
max-width: 620px;
}

.features-cta h3 {
margin: 10px 0;
color: var(--secondary);
font-size: clamp(21px, 3vw, 27px);
line-height: 1.4;
}

.features-cta p {
margin: 0;
color: var(--muted);
font-size: 14px;
line-height: 1.8;
}

.features-cta-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
flex-shrink: 0;
}

/* Responsive layout */

@media (max-width: 992px) {
.professional-feature-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}


.features-cta {
    align-items: flex-start;
    flex-direction: column;
}

.features-cta-actions {
    flex-shrink: 1;
}

}

@media (max-width: 600px) {
.professional-feature-grid {
grid-template-columns: minmax(0, 1fr);
gap: 18px;
}

.professional-feature-card {
    padding: 22px;
}

.features-cta {
    padding: 25px 20px;
}

.features-cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
}

.features-cta-actions .btn {
    width: 100%;
    text-align: center;
}

}

/* =========================================================
   DigiSoma Profile Page
   Scoped styles to preserve existing dashboard components
   ========================================================= */

.profile-main {
    min-width: 0;
    padding-bottom: 32px;
}

.profile-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.profile-eyebrow {
    margin: 0 0 8px;
    color: var(--primary, #155eef);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.profile-page-heading h1 {
    margin: 0;
    color: var(--dark, #0b1f3a);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.2;
}

.profile-subtitle {
    max-width: 620px;
    margin: 10px 0 0;
    color: #667085;
    font-size: 0.95rem;
    line-height: 1.7;
}

.profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1px solid #d9e1ef;
    border-radius: 9px;
    background: #fff;
    color: #344054;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-back-link:hover {
    border-color: var(--primary, #155eef);
    background: #f5f8ff;
}

.profile-overview-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid #e7ecf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(11, 31, 58, 0.045);
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.profile-large-avatar {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border: 4px solid #e8efff;
    border-radius: 50%;
    background: var(--primary, #155eef);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-identity-details {
    min-width: 0;
}

.profile-identity-details h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--dark, #0b1f3a);
    font-size: 1.3rem;
    line-height: 1.4;
}

.profile-identity-details > p {
    margin: 6px 0 12px;
    overflow-wrap: anywhere;
    color: #667085;
    font-size: 0.9rem;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.profile-role-badge,
.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.profile-role-badge {
    background: #edf3ff;
    color: #1849a9;
}

.profile-status-active {
    background: #eaf8f0;
    color: #137547;
}

.profile-status-inactive {
    background: #fff0f0;
    color: #b42318;
}

.profile-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.profile-member-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    padding-left: 24px;
    border-left: 1px solid #e7ecf4;
}

.profile-info-label {
    color: #7b8496;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.profile-member-info strong {
    color: var(--dark, #0b1f3a);
    font-size: 0.95rem;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
    align-items: start;
    gap: 24px;
}

.profile-card {
    min-width: 0;
    padding: 26px;
    border: 1px solid #e7ecf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(11, 31, 58, 0.04);
}

.profile-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.profile-section-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #edf3ff;
    color: var(--primary, #155eef);
    font-size: 1.05rem;
}

.profile-card-heading h2 {
    margin: 0;
    color: var(--dark, #0b1f3a);
    font-size: 1.05rem;
    line-height: 1.4;
}

.profile-card-heading p {
    margin: 5px 0 0;
    color: #7b8496;
    font-size: 0.83rem;
    line-height: 1.5;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-field-full {
    grid-column: 1 / -1;
}

.profile-field label {
    margin-bottom: 8px;
    color: #344054;
    font-size: 0.86rem;
    font-weight: 700;
}

.profile-input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d0d8e5;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #182230;
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-input:focus {
    border-color: var(--primary, #155eef);
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.profile-input[readonly] {
    border-color: #e1e6ef;
    background: #f6f8fb;
    color: #667085;
    cursor: default;
}

.profile-field-help {
    margin: 7px 0 0;
    color: #7b8496;
    font-size: 0.77rem;
    line-height: 1.6;
}

.profile-field-error {
    margin: 7px 0 0;
    color: #b42318;
    font-size: 0.8rem;
    line-height: 1.5;
}

.profile-form-errors {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 9px;
    background: #fff1f0;
    color: #b42318;
    font-size: 0.88rem;
}

.profile-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #edf0f5;
}

.profile-save-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
}

.profile-cancel-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #d9e1ef;
    border-radius: 9px;
    background: #fff;
    color: #475467;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.profile-cancel-button:hover {
    background: #f8fafc;
}

.profile-side-column {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.profile-security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid #edf0f5;
}

.profile-security-item > div {
    min-width: 0;
}

.profile-security-item strong {
    color: #344054;
    font-size: 0.88rem;
}

.profile-security-item p {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    color: #7b8496;
    font-size: 0.79rem;
    line-height: 1.6;
}

.profile-security-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    color: var(--primary, #155eef);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.profile-security-link:hover,
.profile-help-link:hover {
    text-decoration: underline;
}

.profile-verified-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 600;
}

.profile-help-card {
    background: #f8faff;
}

.profile-help-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: #e7efff;
    color: var(--primary, #155eef);
    font-size: 1.1rem;
}

.profile-help-card h2 {
    margin: 0;
    color: var(--dark, #0b1f3a);
    font-size: 1rem;
}

.profile-help-card > p {
    margin: 10px 0 18px;
    color: #667085;
    font-size: 0.85rem;
    line-height: 1.8;
}

.profile-help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary, #155eef);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.profile-messages {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.profile-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid #b7ebc9;
    border-radius: 10px;
    background: #edfcf2;
    color: #137547;
    font-size: 0.88rem;
    line-height: 1.6;
}

.profile-message-error {
    border-color: #fecdca;
    background: #fff1f0;
    color: #b42318;
}

.profile-message-warning {
    border-color: #fedf89;
    background: #fffaeb;
    color: #93370d;
}

.profile-message-info {
    border-color: #b2ddff;
    background: #eff8ff;
    color: #175cd3;
}

.profile-footer {
    padding-top: 28px;
    text-align: center;
}

.profile-footer p {
    margin: 0;
    color: #98a2b3;
    font-size: 0.78rem;
}

/* Tablet layout */
@media (max-width: 1100px) {
    .profile-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile layout */
@media (max-width: 700px) {
    .profile-page-heading {
        flex-direction: column;
        gap: 16px;
    }

    .profile-back-link {
        align-self: flex-start;
    }

    .profile-overview-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .profile-identity {
        align-items: flex-start;
        gap: 14px;
        width: 100%;
    }

    .profile-large-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .profile-member-info {
        width: 100%;
        padding: 18px 0 0;
        border-top: 1px solid #e7ecf4;
        border-left: 0;
    }

    .profile-card {
        padding: 21px;
    }

    .profile-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 19px;
    }

    .profile-field-full {
        grid-column: auto;
    }

    .profile-side-column {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .profile-identity {
        flex-direction: column;
    }

    .profile-identity-details h2 {
        font-size: 1.1rem;
    }

    .profile-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-save-button,
    .profile-cancel-button {
        width: 100%;
    }
}



/* DigiSoma dashboard modal styles */
.dashboard-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.dashboard-modal.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.dashboard-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 58, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.dashboard-modal-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 1050px);
    max-height: min(90vh, 900px);
    max-height: min(90dvh, 900px);
    overflow: hidden;
    background: #f7f9fc;
    border: 1px solid rgba(21, 94, 239, 0.14);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
    transform: translateY(18px) scale(0.985);
    transition: transform 220ms ease;
}

.dashboard-modal.is-visible .dashboard-modal-dialog {
    transform: translateY(0) scale(1);
}

.dashboard-modal-header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    padding: 14px 20px;
    color: #0b1f3a;
    background: #fff;
    border-bottom: 1px solid #e5eaf2;
}

.dashboard-modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.dashboard-modal-back-button,
.dashboard-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid #dce4f0;
    border-radius: 10px;
    background: #fff;
    color: #0b1f3a;
    font: inherit;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.dashboard-modal-back-button {
    justify-self: start;
    padding: 8px 12px;
}

.dashboard-modal-close {
    justify-self: end;
    width: 42px;
    padding: 0;
    font-size: 1.8rem;
    line-height: 1;
}

.dashboard-modal-back-button:hover,
.dashboard-modal-close:hover {
    background: #edf3ff;
    border-color: #155eef;
}

.dashboard-modal-back-button:focus-visible,
.dashboard-modal-close:focus-visible {
    outline: 3px solid rgba(21, 94, 239, 0.35);
    outline-offset: 2px;
}

.dashboard-modal-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 24px;
}

.dashboard-modal-content .profile-main {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.dashboard-modal-content .profile-main .profile-content-grid {
    min-width: 0;
}

.dashboard-modal-loading,
.dashboard-modal-error {
    margin: 0;
    padding: 24px;
    color: #0b1f3a;
    text-align: center;
}

.dashboard-modal-error {
    color: #a61b1b;
}

.dashboard-modal-error a {
    display: inline-block;
    margin-top: 12px;
    color: #155eef;
    text-decoration: underline;
}

body.dashboard-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .dashboard-modal {
        padding: 8px;
    }

    .dashboard-modal-dialog {
        width: 100%;
        height: 100%;
        max-height: 100%;
        max-height: 100dvh;
        border-radius: 14px;
    }

    .dashboard-modal-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .dashboard-modal-header h2 {
        font-size: 1rem;
    }

    .dashboard-modal-back-button {
        min-height: 40px;
        padding: 7px 9px;
        gap: 6px;
    }

    .dashboard-modal-close {
        width: 40px;
        min-height: 40px;
    }

    .dashboard-modal-content {
        padding: 16px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-modal,
    .dashboard-modal-dialog,
    .dashboard-modal-back-button,
    .dashboard-modal-close {
        transition: none;
    }
}


/* DigiSoma profile photo upload and avatar styles */
.avatar,
.profile-large-avatar {
    overflow: hidden;
}

.profile-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.profile-photo-field {
    grid-column: 1 / -1;
}

.profile-photo-field input[type="file"] {
    cursor: pointer;
}

.profile-photo-field .profile-input {
    padding: 10px;
}
