/*
Theme Name: TS High School LMS
Theme URI: https://lms.carrotnsticks.com
Description: TS High School digital learning theme built around the TS High School LMS interface.
Version: 0.1.0
Author: Carrotnsticks
Author URI: https://carrotnsticks.com
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: ts-high-school
*/

/* =========================================================
   TS HIGH SCHOOL LMS
   Global Theme Styles
   ========================================================= */

:root {
    --green: #009447;
    --green-dark: #003f2b;
    --green-bright: #0bea8b;
    --navy: #07152e;

    --blue: #1687e8;
    --purple: #7b2ce2;
    --orange: #f5a400;
    --red: #ef3340;

    --line: #e5eaf0;
    --surface: #ffffff;
    --page: #f8fafb;
    --muted: #65728a;

    --mint: #e7f8ef;
    --radius: 12px;
    --shadow: 0 6px 24px rgba(7, 21, 46, 0.06);
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--navy);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.ts-topbar {
    height: 34px;
    background: var(--green-dark);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 4%;
    font-size: 12px;
}

.ts-mainnav {
    height: 72px;

    display: flex;
    align-items: center;
    gap: 28px;

    padding: 0 4%;
}

.ts-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-weight: 800;
    font-size: 20px;

    margin-right: auto;
}

.ts-brand-mark {
    width: 44px;
    height: 44px;

    border-radius: 12px;

    background: linear-gradient(
        145deg,
        #005c3c,
        #10a45c
    );

    display: grid;
    place-items: center;

    color: #fff;
    font-weight: 900;
}

.ts-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ts-nav a {
    padding: 26px 0;
    font-size: 14px;
}

.ts-nav a:hover {
    color: var(--green);
}

.ts-search {
    background: #f5f7f9;
    border: 1px solid #edf0f3;
    border-radius: 10px;

    padding: 11px 16px;
    min-width: 230px;
}

.ts-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid var(--green);

    padding: 11px 18px;

    border-radius: 9px;

    font-weight: 700;

    color: var(--green);
    background: #fff;

    cursor: pointer;
}

.ts-button:hover {
    background: var(--mint);
}

.ts-button.primary {
    background: var(--green);
    color: #fff;
}

.ts-button.primary:hover {
    background: var(--green-dark);
}

/* =========================================================
   CONTAINERS
   ========================================================= */

.ts-container {
    width: min(1440px, 94%);
    margin: 0 auto;
}

/* =========================================================
   HERO
   ========================================================= */

.ts-hero {
    padding: 64px 0;

    background:
        linear-gradient(
            90deg,
            #003f2b 0%,
            #005c3d 48%,
            #0c7450 100%
        );

    color: #fff;
}

.ts-hero h1 {
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    margin: 0 0 20px;
}

.ts-hero h1 span {
    color: var(--green-bright);
}

.ts-hero p {
    font-size: 19px;
    max-width: 640px;
    line-height: 1.5;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.ts-section {
    padding: 42px 0;
}

.ts-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ts-section-title h2 {
    margin: 0;
    font-size: 30px;
}

/* =========================================================
   CARDS
   ========================================================= */

.ts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ts-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ts-card-body {
    padding: 18px;
}

.ts-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eaf3ef;
}

.ts-pill {
    display: inline-block;

    border-radius: 99px;

    padding: 5px 10px;

    background: var(--mint);
    color: var(--green);

    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.ts-dashboard {
    display: grid;
    grid-template-columns: 230px 1fr;

    min-height: calc(100vh - 106px);
}

.ts-sidebar {
    background: linear-gradient(
        180deg,
        #003f2b,
        #002d22
    );

    color: #fff;
    padding: 18px 12px;
}

.ts-sidebar .user {
    padding: 14px 10px;
    margin-bottom: 12px;
}

.ts-sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 12px;

    border-radius: 8px;

    color: #e9f6ef;

    font-size: 14px;

    margin: 2px 0;
}

.ts-sidebar a:hover,
.ts-sidebar a.active {
    background: #079b50;
    color: #fff;
}

.ts-dashboard-main {
    padding: 22px;
    background: #f7faf9;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.ts-page-head {
    background: #fff;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    padding: 22px;
    margin-bottom: 16px;
}

/* =========================================================
   STATISTICS
   ========================================================= */

.ts-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 12px;

    margin-bottom: 16px;
}

.ts-stat {
    background: #fff;

    border: 1px solid var(--line);
    border-radius: 12px;

    padding: 18px;
}

.ts-stat .number {
    font-size: 28px;
    font-weight: 800;
}

/* =========================================================
   PANELS
   ========================================================= */

.ts-panel {
    background: #fff;

    border: 1px solid var(--line);
    border-radius: 12px;

    padding: 18px;
    margin-bottom: 16px;
}

/* =========================================================
   TABLES
   ========================================================= */

.ts-table {
    width: 100%;
    border-collapse: collapse;
}

.ts-table th,
.ts-table td {
    padding: 12px;

    border-bottom: 1px solid var(--line);

    text-align: left;

    font-size: 13px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.ts-footer {
    background: var(--green-dark);
    color: #fff;

    padding: 30px 0;
    margin-top: 40px;
}

/* =========================================================
   WORDPRESS ACCESSIBILITY
   ========================================================= */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background: #fff;
    clip: auto !important;
    clip-path: none;
    color: var(--navy);
    display: block;
    font-size: 14px;
    height: auto;
    left: 10px;
    line-height: normal;
    padding: 12px 16px;
    top: 10px;
    width: auto;
    z-index: 100000;
}

/* =========================================================
   WORDPRESS CONTENT
   ========================================================= */

.entry-content {
    line-height: 1.7;
}

.entry-content img {
    max-width: 100%;
}

.wp-caption {
    max-width: 100%;
}

.alignleft {
    float: left;
    margin: 0 24px 18px 0;
}

.alignright {
    float: right;
    margin: 0 0 18px 24px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .ts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ts-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ts-nav {
        display: none;
    }

    .ts-dashboard {
        grid-template-columns: 82px 1fr;
    }

    .ts-sidebar a span {
        display: none;
    }

    .ts-sidebar .user {
        display: none;
    }
}

@media (max-width: 700px) {

    .ts-mainnav {
        height: 64px;
    }

    .ts-search {
        display: none;
    }

    .ts-grid {
        grid-template-columns: 1fr;
    }

    .ts-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ts-dashboard {
        display: block;
    }

    .ts-sidebar {
        display: none;
    }

    .ts-dashboard-main {
        padding: 12px;
    }

    .ts-hero {
        padding: 40px 0;
    }

    .ts-hero h1 {
        font-size: 44px;
    }

    .alignleft,
    .alignright {
        float: none;
        margin: 0 0 18px;
    }
}