/*==========================================================
  Nova EduSpace v2
  Reset & Base Styles
==========================================================*/

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

html{
    font-size:16px;
    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;
}

body{
    min-height:100vh;
    font-family:var(--font-body);
    background:var(--bg);
    color:var(--text);
    line-height:1.7;
    overflow-x:hidden;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    touch-action:manipulation;
}

/*==========================
Selection
==========================*/

::selection{
    background:var(--primary);
    color:#fff;
}

::-moz-selection{
    background:var(--primary);
    color:#fff;
}

/*==========================
Scrollbar
==========================*/

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:var(--bg-dark);
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
        180deg,
        var(--primary),
        var(--secondary)
    );
    border-radius:999px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--primary-dark);
}

/* Firefox */

*{
    scrollbar-width:thin;
    scrollbar-color:var(--primary) var(--bg-dark);
}

/*==========================
Media
==========================*/

img,
picture,
video,
canvas,
svg{
    display:block;
    max-width:100%;
    height:auto;
}

svg{
    overflow:hidden;
}

/*==========================
Links
==========================*/

a{
    color:inherit;
    text-decoration:none;
    transition:var(--transition-fast);
}

a:hover{
    text-decoration:none;
}

/*==========================
Lists
==========================*/

ul,
ol{
    list-style:none;
}

/*==========================
Buttons
==========================*/

button{
    border:none;
    outline:none;
    background:none;
    font:inherit;
    color:inherit;
    cursor:pointer;
}

button:disabled{
    cursor:not-allowed;
    opacity:.6;
}

/*==========================
Inputs
==========================*/

input,
textarea,
select{
    width:100%;
    border:none;
    outline:none;
    background:none;
    font:inherit;
    color:inherit;
}

textarea{
    resize:vertical;
}

input::-ms-clear{
    display:none;
}

input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration{
    display:none;
}

/*==========================
Tables
==========================*/

table{
    border-collapse:collapse;
    border-spacing:0;
    width:100%;
}

/*==========================
Iframe
==========================*/

iframe{
    border:0;
    width:100%;
}

/*==========================
Fieldset
==========================*/

fieldset{
    border:none;
}

/*==========================
Address
==========================*/

address{
    font-style:normal;
}

/*==========================
Strong
==========================*/

strong{
    font-weight:700;
}

/*==========================
HR
==========================*/

hr{
    border:none;
}

/*==========================
Hidden
==========================*/

[hidden]{
    display:none !important;
}

/*==========================
Focus Ring
==========================*/

:focus-visible{
    outline:2px solid var(--primary);
    outline-offset:4px;
}

/*==========================
Section Defaults
==========================*/

section{
    position:relative;
}

main{
    display:block;
}

/*==========================
Prevent Image Drag
==========================*/

img{
    user-select:none;
    -webkit-user-drag:none;
}

/*==========================
Form Elements
==========================*/

input,
button,
textarea,
select{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    line-height:inherit;
}

/*==========================
Quotes
==========================*/

blockquote,
q{
    quotes:none;
}

blockquote::before,
blockquote::after,
q::before,
q::after{
    content:'';
}

/*==========================
Code
==========================*/

pre,
code{
    font-family:Consolas, Monaco, monospace;
}

/*==========================
Smooth Image Rendering
==========================*/

img{
    image-rendering:auto;
}

/*==========================
Root Layout
==========================*/

body,
html{
    width:100%;
}