/* =========================================================
   MAHA SHIKSHAN AWAAZ
   COMMON BASE STYLES
   ---------------------------------------------------------
   Global reset, typography, links, headings,
   selections, focus behavior and common HTML defaults.
   ========================================================= */


/* =========================================================
   BOX SIZING
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   HTML / BODY
   ========================================================= */

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background: var(--bg-page);
    color: var(--text-primary);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        Helvetica,
        sans-serif;

    font-size: var(--font-md);
    line-height: 1.6;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   PAGE WRAPPER
   ========================================================= */

.site-wrapper {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}


/* =========================================================
   BASIC ELEMENT RESET
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul,
ol {
    margin-top: 0;
}

img,
picture,
svg,
canvas,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: var(--font-4xl);
}

h2 {
    font-size: var(--font-3xl);
}

h3 {
    font-size: var(--font-2xl);
}

h4 {
    font-size: var(--font-xl);
}

h5 {
    font-size: var(--font-lg);
}

h6 {
    font-size: var(--font-md);
}

p {
    color: var(--text-secondary);
}

small {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

strong,
b {
    font-weight: 700;
}

em,
i {
    font-style: italic;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: var(--text-link);
    text-decoration: none;

    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}

a:hover {
    color: var(--text-link-hover);
}

a:focus-visible {
    outline: 2px solid var(--border-color-focus);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}


/* =========================================================
   TEXT HELPERS
   ========================================================= */

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-info {
    color: var(--info) !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.text-break {
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =========================================================
   FONT WEIGHT HELPERS
   ========================================================= */

.fw-normal {
    font-weight: 400 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-bold {
    font-weight: 700 !important;
}


/* =========================================================
   VISIBILITY
   ========================================================= */

/*
|--------------------------------------------------------------------------
| Respect the standard HTML hidden attribute.
| Used by the common Light/Dark theme controller.
|--------------------------------------------------------------------------
*/

[hidden] {
    display: none !important;
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: var(--color-primary);
    color: var(--text-on-primary);
}


/* =========================================================
   FOCUS
   ========================================================= */

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--border-color-focus);
    outline-offset: 2px;
}


/* =========================================================
   HORIZONTAL RULE
   ========================================================= */

hr {
    border: 0;
    border-top: 1px solid var(--border-color);

    margin: var(--space-6) 0;
}


/* =========================================================
   CODE / PRE
   ========================================================= */

code,
kbd,
pre,
samp {
    font-family:
        Consolas,
        "Courier New",
        monospace;
}

code {
    padding: 2px 6px;

    background: var(--bg-surface-2);
    color: var(--text-primary);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
}

pre {
    padding: var(--space-4);

    background: var(--bg-surface-2);
    color: var(--text-primary);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);

    overflow-x: auto;
}


/* =========================================================
   BLOCKQUOTE
   ========================================================= */

blockquote {
    padding:
        var(--space-3)
        var(--space-4);

    border-left: 4px solid var(--color-primary);

    background: var(--bg-surface-2);
    color: var(--text-secondary);

    border-radius:
        0
        var(--radius-md)
        var(--radius-md)
        0;
}


/* =========================================================
   LISTS
   ========================================================= */

ul,
ol {
    color: var(--text-secondary);
}

li + li {
    margin-top: var(--space-1);
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

* {
    scrollbar-width: thin;
    scrollbar-color:
        var(--scrollbar-thumb)
        var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);

    border-radius: var(--radius-pill);

    border: 2px solid var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}


/* =========================================================
   MEDIA DEFAULTS
   ========================================================= */

iframe {
    max-width: 100%;
    border: 0;
}

video {
    background: #000;
}


/* =========================================================
   DISABLED ELEMENTS
   ========================================================= */

[disabled],
.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}


/* =========================================================
   RESPONSIVE TYPOGRAPHY
   ========================================================= */

@media (max-width: 599px) {

    body {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    a {
        color: #000000 !important;
    }

    .no-print {
        display: none !important;
    }
}