/* ==========================================================================
   KiraEdu — GLOBAL LAYOUT / NAVIGATION / FOOTER
   Clean rebuild — September 2026
   Replaces the legacy mixed KiraEdu navigation/footer stylesheet.
   ========================================================================== */

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

   :root {
    --ea-gold: #b88e3a;
    --ea-gold-strong: #9d7428;
    --ea-gold-soft: #f6eedf;
    --ea-gold-pale: #fbf8f1;

    --ea-ink: #171717;
    --ea-text: #343434;
    --ea-muted: #737373;
    --ea-soft-muted: #99958d;

    --ea-bg: #ffffff;
    --ea-surface: #ffffff;
    --ea-surface-soft: #f8f7f4;
    --ea-surface-warm: #f4f0e8;

    --ea-border: #e8e4dc;
    --ea-border-strong: #dcd5c8;

    --ea-danger: #b54747;

    --ea-container: 1280px;
    --ea-nav-height: 64px;

    --ea-radius-sm: 10px;
    --ea-radius-md: 14px;
    --ea-radius-lg: 20px;
    --ea-radius-xl: 28px;

    --ea-shadow-sm: 0 4px 14px rgba(22, 22, 22, .05);
    --ea-shadow-md: 0 14px 40px rgba(22, 22, 22, .08);
    --ea-shadow-lg: 0 28px 80px rgba(22, 22, 22, .14);

    --ea-ease: cubic-bezier(.2, .8, .2, 1);
}


/* ==========================================================================
   2. RESET / GLOBAL FOUNDATION
   ========================================================================== */

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

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: var(--ea-nav-height);
    overflow-x: hidden;

    background: var(--ea-bg);
    color: var(--ea-text);

    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.mobile-navigation-open {
    overflow: hidden;
}

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

img,
picture,
video,
canvas,
iframe {
    display: block;
    height: auto;
}

button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
    min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
strong,
small,
td,
th {
    overflow-wrap: break-word;
}

.ke-main {
    min-height: 70vh;
}

.ke-container,
.home-container,
.course-container,
.sessions-container,
.course-sessions-inner,
.money-course-layout,
.money-sessions-inner,
.instructor-shell,
.instructor-layout,
.dashboard-container {
    width: min(calc(100% - 40px), var(--ea-container));
    margin-inline: auto;
}

.ke-section {
    padding-block: 68px;
}

.ke-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ea-border);
    border-radius: var(--ea-radius-lg);
    box-shadow: var(--ea-shadow-sm);
}

.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-only {
    display: none !important;
}




/* =========================================================
   EMPIRE DESKTOP DENSITY
   Compact desktop presentation without affecting mobile.
========================================================= */

@media (min-width: 901px) {

    /* Main content width remains premium/wide,
       but surrounding whitespace becomes more controlled. */
    .ke-section {
        padding-block: 60px;
    }

    .ke-card {
        padding: 22px;
    }

    .responsive-grid {
        gap: 18px;
    }

    /* Standard content typography.
       Page-specific hero typography remains untouched. */
    main p,
    main li {
        line-height: 1.55;
    }
}


/* =========================================================
   MOBILE / SMALL SCREEN PROTECTION
   Do not globally shrink typography.
========================================================= */

@media (max-width: 900px) {

    html,
    body {
        font-size: 100%;
    }

    .ke-section {
        padding-block: 48px;
    }
}
