/* st.css - extracted and cleaned from index.php */
:root {
    --ag-bg-soft: #ffffff;
    --ag-surface-strong: rgba(255, 255, 255, 0.98);
    --ag-text-soft: #41576f;
    --ag-shadow: 0 16px 34px rgba(16, 42, 67, 0.16);
    --ag-danger: #c9353d;
    --ag-success: #0f7b31;
    --ag-radius: 22px;
    --ag-bg-start: #d7e9f8;
    --ag-bg-end: #b9d5ea;
    --ag-page-bg: #cfe3f4;
    --ag-page-bg-2: #aac9df;
    --ag-surface: rgba(244, 249, 253, 0.98);
    --ag-surface-solid: #f4f9fd;
    --ag-card: #ffffff;
    --ag-primary: #005a9e;
    --ag-primary-2: #0078d4;
    --ag-primary-dark: #003f73;
    --ag-text: #0b2239;
    --ag-muted: #304d66;
    --ag-border: rgba(0, 90, 158, 0.34);
}
@font-face {

 font-family: 'VazirRegular';
 src: url('fonts/Vazir-Regular.woff') format('woff');
 font-style: normal;
 font-weight: normal;

}
@font-face {

 font-family: 'BYekan';
 src: url('fonts/BYekan.woff') format('woff');
 font-style: normal;
 font-weight:bold;

}
@font-face {

 font-family: 'BTitr';
 src: url('fonts/BTitr.woff') format('woff');
 font-style: normal;
 font-weight:bold;

}
.site-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 8px;
}
h1 {
    font-family: 'BTitr';
}
h1, h2, h3, .input-group label, .counter-number, .footer-icon-link {
    color: var(--ag-primary);
    border-color: var(--ag-primary);
    text-shadow: none;
}
.today-line, .site-footer, .tiny-counter {
    color: var(--ag-text-soft);
}
button, .btn-login, .btn-message-submit, .btn-reply-submit {
    background: var(--ag-primary);
    color: #fff;
    border-color: var(--ag-primary);
}
.message-card, .message-compose, .empty-messages, .reply-card, .reply-form-box {
    background: var(--ag-surface-strong);
    color: var(--ag-text);
    border-color: var(--ag-border);
}
.sender-name, .message-body, .message-compose-title, .message-field label, .reply-form-title, .char-note {
    color: var(--ag-text);
}
body.login-page {
    min-height: 100vh;
    font-family: 'VazirRegular';
    background: radial-gradient(circle at top left, rgba(10,132,255,.12), transparent 34%), linear-gradient(135deg, var(--ag-bg-start) 0%, var(--ag-bg-end) 100%);
    color: var(--ag-text);
    padding: 12px;
}
.today-line {
    color: var(--ag-text-soft);
    font-size: clamp(0.78rem, 3.2vw, 1rem);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}
.site-ttl{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.site-title {
    color: var(--ag-primary);
    font-size: 45px;
    font-weight: 400;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    
}

.main-layout {
    display: flex;
    flex-direction: column;
    direction: rtl;
    gap: 5px;
    align-items: stretch;
}
.main-layout > * {
    width: 100%;
}
.message-board, .member-apps, .login-box {
    background: var(--ag-surface);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--ag-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
.message-board {
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.message-board h2 {
    position: relative;
    color: var(--ag-primary);
    font-size: clamp(1.1rem, 4.5vw, 1.65rem);
    line-height: 1.7;
    border-right: 4px solid var(--ag-primary);
    padding-right: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 16px;
}
.member-apps {
    background: var(--ag-surface);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--ag-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
    padding: 18px;
    position: relative;
    overflow: hidden;
}
.member-apps h2 {
    position: relative;
    color: var(--ag-primary);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    line-height: 1.7;
    border-right: 4px solid var(--ag-primary);
    padding-right: 12px;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.member-apps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.member-app-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border: 1px solid var(--ag-border);
    border-radius: 18px;
    text-decoration: none;
    background: rgba(255,255,255,0.96);
    color: var(--ag-text);
    box-shadow: 0 5px 16px rgba(0,0,0,0.12);
    transition: transform .2s ease, box-shadow .2s ease;
}
.member-app-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.member-app-icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    object-fit: cover;
    flex: 0 0 auto;
}
.member-app-text {
    display: flex;
    flex-direction: column;
    line-height: 1.85;
    min-width: 0;
}
.member-app-name {
    color: var(--ag-primary);
    font-size: 1.05rem;
    font-weight: 900;
    direction: ltr;
    text-align: right;
}
.member-app-desc {
    color: var(--ag-text-soft);
    font-size: 0.86rem;
}
.message-compose {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    color: #111;
    border: 1px solid #111;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}
.message-compose-title {
    color: #111;
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.message-alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
}
.message-alert.success {
    background: #eef8ed;
    color: #155724;
    border: 1px solid #8fd19e;
}
.message-alert.error {
    background: #fff0f0;
    color: #9b1c1c;
    border: 1px solid #e08a8a;
}
.message-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.message-field label {
    display: block;
    color: #111;
    font-weight: 800;
    font-size: 0.84rem;
    margin-bottom: 6px;
}
.message-field input, .message-field textarea {
    width: 100%;
    border: 1px solid #222;
    background: #fff;
    color: #111;
    border-radius: 12px;
    padding: 10px 11px;
    font-family: inherit;
    font-size: 0.94rem;
    outline: none;
}
.message-field textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.9;
}
.message-field input:focus, .message-field textarea:focus {
    border-color: var(--ag-primary-2);
    box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.25);
}
.rich-message-editor {
    border: 1px solid #222;
    background: #fff;
    color: #111;
    border-radius: 12px;
    overflow: hidden;
}
.rich-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 7px;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    background: rgba(244, 197, 66, 0.16);
}
.rich-editor-toolbar button, .rich-editor-toolbar label {
    min-width: 32px;
    height: 32px;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 9px;
    background: #fff;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0 9px;
}
.rich-editor-toolbar input[type="color"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.rich-editor-area {
    min-height: 96px;
    line-height: 1.9;
    padding: 10px 11px;
    outline: none;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.rich-editor-area:empty::before {
    content: attr(data-placeholder);
    color: #777;
}
.rich-message-editor:focus-within {
    border-color: var(--ag-primary-2);
    box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.25);
}
.message-field textarea.rich-editor-hidden {
    display: none;
}
.message-text-field {
    margin-bottom: 10px;
}
.message-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.char-note {
    color: #444;
    font-size: 0.78rem;
    line-height: 1.7;
}
.btn-message-submit, .btn-reply-submit {
    border: 1px solid #111;
    background: var(--ag-primary);
    color: #111;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-message-submit:hover, .btn-reply-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.messages-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.empty-messages {
    background: rgba(255, 255, 255, 0.96);
    color: #111;
    border: 1px solid #111;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    line-height: 2;
}
.message-card {
    background: rgba(255,255,255,0.98);
    color: #111;
    border: 1px solid #111;
    border-radius: 18px;
    padding: 14px 14px 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}
.message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.14);
    padding-bottom: 8px;
    margin-bottom: 9px;
}
.sender-name {
    color: #111;
    font-weight: 900;
    font-size: 0.98rem;
}
.message-body {
    color: #111;
    font-size: 0.98rem;
    line-height: 2.05;
    word-break: break-word;
    white-space: normal;
}
.message-footer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid rgba(0,0,0,0.10);
    margin-top: 10px;
    padding-top: 6px;
}
.message-date {
    color: #666;
    font-size: 0.58rem;
    line-height: 1.5;
}
.btn-reply-toggle {
    border: 1px solid rgba(0,0,0,0.35);
    background: #fff;
    color: #111;
    border-radius: 999px;
    padding: 5px 11px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.76rem;
}
.replies-wrap {
    margin: 10px 22px 0 0;
    border-right: 3px solid #111;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.reply-card {
    background: #fff;
    color: #111;
    border: 1px solid #111;
    border-radius: 14px;
    padding: 10px 11px 6px;
}
.reply-card .message-body {
    font-size: 0.92rem;
    line-height: 1.95;
}
.reply-form-box {
    display: none;
    background: #fff;
    color: #111;
    border: 1px dashed #111;
    border-radius: 14px;
    margin-top: 10px;
    padding: 11px;
}
.reply-form-box.active {
    display: block;
}
.reply-form-title {
    font-weight: 900;
    margin-bottom: 8px;
    color: #111;
    font-size: 0.9rem;
}
.reply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
.login-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.login-box {
    padding: 18px 17px;
}
.login-box h2 {
    color: var(--ag-primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-align: center;
}
.error-message {
    background: rgba(220, 53, 69, 0.18);
    color: #ffd6dc;
    border: 1px solid rgba(220, 53, 69, 0.45);
    padding: 10px 12px;
    border-radius: 13px;
    margin-bottom: 14px;
    text-align: center;
    font-size: 0.9rem;
}
.input-group {
    margin-bottom: 11px;
}
.input-group label {
    display: block;
    color: var(--ag-primary);
    font-weight: bold;
    margin-bottom: 7px;
    font-size: 0.86rem;
}
.input-group input {
    width: 100%;
    border: 1px solid var(--ag-border);
    background: rgba(255,255,255,.8);
    color: var(--ag-text);
    border-radius: 14px;
    padding: 10px 12px;
    outline: none;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}
.input-group input:focus {
    border-color: var(--ag-primary);
    box-shadow: 0 0 0 4px rgba(10,132,255,.12);
    background: #fff;
}
.btn-login {
    width: 100%;
    background: rgba(0,103,192,.10);
    color: var(--ag-text);
    padding: 11px 16px;
    border-radius: 50px;
    border: 1px solid var(--ag-border);
    cursor: pointer;
    font-weight: bold;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}
.btn-login:hover {
    background: var(--ag-primary-2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.28);
}
.site-footer {
    margin-top: auto;
    padding: 8px 0 0;
    text-align: center;
    color: var(--ag-text-soft);
}
.footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
}
.footer-icon-link {
    color: var(--ag-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-icon-link svg {
    width: 32px;
    height: 32px;
}
.footer-icon-link:hover {
    color: var(--ag-text);
    transform: translateY(-2px) scale(1.04);
}
.tiny-counter {
    direction: rtl;
    font-size: 0.70rem;
    color: var(--ag-text-soft);
    line-height: 1.5;
    margin-bottom: 2px;
    text-align: center;
}
.counter-number {
    direction: ltr;
    display: inline-block;
    min-width: 40px;
    color: var(--ag-primary);
    font-weight: 900;
    letter-spacing: 0.5px;
    margin: 0 3px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    background: var(--ag-page-bg);
}
body, body.login-page {
    background: radial-gradient(circle at 18% 0%, rgba(0,120,212,.18), transparent 32%), linear-gradient(135deg, var(--ag-page-bg) 0%, var(--ag-page-bg-2) 100%);
    color: var(--ag-text);
}
body, input, textarea, select, button {
    font-family: 'VazirRegular';
}
a {
    color: var(--ag-primary);
}
.site-shell {
    width: min(1260px, 100%);
    margin: 0 auto;
    min-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}
.top-header {
    display: flex;
    text-align: center;
    border: 1px solid rgba(0, 90, 158, .16);
    border-radius: 28px;
    padding: 16px 12px 14px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
    box-shadow: none;
    border-color: #ddc2ed;

}

h1, h2, h3, .message-board h2, .login-box h2 {
    color: var(--ag-primary);
    text-shadow: none;
}
.today-line, p, .char-note, .tiny-counter, .site-footer, .message-date {
    color: var(--ag-muted);
}
.message-board, .login-box, table {
    background: var(--ag-surface);
    color: var(--ag-text);
    border-color: var(--ag-border);
    box-shadow: var(--ag-shadow);
}
.message-compose, .message-card, .reply-card, .reply-form-box, .empty-messages, tbody tr {
    background: var(--ag-card);
    color: var(--ag-text);
    border-color: var(--ag-border);
}
.message-board::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(244, 197, 66, 0.08);
    left: -70px;
    top: -80px;
    pointer-events: none;
    display: none;
}
label, .message-compose-title, .reply-form-title, .sender-name, .message-body, th, td {
    color: var(--ag-text);
}
input::placeholder, textarea::placeholder {
    color: #7b8fa3;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--ag-primary-2);
    box-shadow: 0 0 0 4px rgba(0,120,212,.18);
    outline: none;
}
button, .btn-login, .btn-message-submit, .btn-reply-submit, input[type="submit"] {
    background: var(--ag-primary-2);
    color: #fff;
    border-color: var(--ag-primary-2);
}
button:hover, .btn-login:hover, .btn-message-submit:hover, .btn-reply-submit:hover {
    background: var(--ag-primary-dark);
    color: #fff;
}
.message-badge {
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.72rem;
    white-space: nowrap;
    background: rgba(0,120,212,.10);
    color: var(--ag-primary-dark);
    border-color: var(--ag-border);
}
.message-alert.success, .message.success {
    background: rgba(15,123,49,.12);
    color: var(--ag-success);
    border-color: rgba(15,123,49,.3);
}
.message-alert.error, .message.error, .error-message {
    background: rgba(201,53,61,.12);
    color: var(--ag-danger);
    border-color: rgba(201,53,61,.3);
}
.ag-intro {
    margin-bottom: 16px;
    grid-column: 1 / -1;
    background: rgba(255,255,255,.90);
    color: var(--ag-text);
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius);
    padding: 22px;
    margin: 0;
    box-shadow: var(--ag-shadow);
    overflow: hidden;
}
.ag-intro h2 {
    margin-bottom: 10px;
    color: var(--ag-primary);
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.7;
    margin: 0 0 10px;
    border-right: 4px solid var(--ag-primary-2);
    padding-right: 14px;
}
.ag-intro p {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--ag-muted);
    line-height: 2;
    margin: 0 0 14px;
}
.courses-intro {
    margin-bottom: 16px;
    grid-column: 1 / -1;
    background: rgba(255,255,255,.90);
    color: var(--ag-text);
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius);
    padding: 22px;
    margin: 0;
    box-shadow: var(--ag-shadow);
    overflow: hidden;
}
.courses-intro h2 {
    margin-bottom: 12px;
    color: var(--ag-primary);
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.7;
    margin: 0 0 10px;
    border-right: 4px solid var(--ag-primary-2);
    padding-right: 14px;
}
.courses-intro p {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--ag-muted);
    line-height: 2;
    margin: 0 0 14px;
}
.courses-all {
    margin-bottom: 16px;
    grid-column: 1 / -1;
    background: rgba(255,255,255,.90);
    color: var(--ag-text);
    border: 1px solid var(--ag-border);
    border-radius: var(--ag-radius);
    padding: 22px;
    margin: 0;
    box-shadow: var(--ag-shadow);
    overflow: hidden;
}
.courses-all h2 {
    margin-bottom: 10px;
    color: var(--ag-primary);
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.7;
    margin: 0 0 10px;
    border-right: 4px solid var(--ag-primary-2);
    padding-right: 14px;
}
.courses-all p {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--ag-muted);
    line-height: 2;
    margin: 0 0 14px;
}



.ag-image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}
.ag-image-grid img {
    width: 100%;
    aspect-ratio: 1.45/1;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--ag-border);
    background: #fff;
    padding: 3px;
}
body {
    background: radial-gradient(circle at 18% 0%, rgba(255,255,255,.72), transparent 30%), linear-gradient(135deg, var(--ag-page-bg) 0%, var(--ag-page-bg-2) 100%);
    color: var(--ag-text);
}
.message-board, .login-box {
    box-shadow: var(--ag-shadow);
    background: rgba(248, 251, 255, .98);
    color: var(--ag-text);
    border-color: var(--ag-border);
}
table {
    background: #ffffff;
    color: var(--ag-text);
    border-collapse: collapse;
}
thead, tbody, tr, th, td {
    color: var(--ag-text);
}
th {
    background: #d5e7f6;
    color: #083a63;
    border-bottom: 1px solid rgba(0,90,158,.25);
}
td {
    background: #ffffff;
    color: var(--ag-text);
    border-bottom: 1px solid rgba(0,90,158,.14);
}
tbody tr:nth-child(even) td {
    background: #f0f6fb;
}
input, textarea, select {
    border: 1px solid var(--ag-border);
    background: #ffffff;
    color: #0b2239;
    border-color: rgba(0,90,158,.32);
}
label {
    color: #0b2239;
}

.site-logo {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin: 5px 5px;
    border-radius: 18px;
    background: #fff;
    mix-blend-mode: normal;
}
[style*="ffe9"], [style*="fff4"], [style*="255, 217"], [style*="244, 197"] {
    color: #0b2239;
}



.site-nav {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(0,90,158,.20);
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(16,42,67,.12);
    backdrop-filter: blur(12px);
}
.site-nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.site-nav-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--ag-border);
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    color: var(--ag-primary-dark);
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}
.site-nav-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ag-primary);
    transition: transform .2s ease, opacity .2s ease;
}
.site-nav-button strong {
    margin-right: 4px;
    font-size: .92rem;
}
.site-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.site-nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ag-primary-dark);
    text-decoration: none;
    font-weight: 900;
    line-height: 1.7;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.site-nav-links a:hover,
.site-nav-links a:focus-visible {
    background: var(--ag-primary-2);
    color: #fff;
    border-color: var(--ag-primary-2);
    box-shadow: 0 8px 18px rgba(0,90,158,.18);
    transform: translateY(-1px);
    outline: none;
}
/* Course syllabus layout */
.courses-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.course-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--ag-border);
    border-radius: 18px;
    text-decoration: none;
    background: rgba(255,255,255,0.96);
    color: var(--ag-text);
    box-shadow: 0 5px 16px rgba(0,0,0,0.10);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-link-card:hover,
.course-link-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--ag-primary-2);
    box-shadow: 0 8px 22px rgba(0,90,158,0.18);
    outline: none;
}
.course-link-number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: rgba(0,120,212,.12);
    color: var(--ag-primary-dark);
    font-weight: 900;
    direction: ltr;
}
.course-link-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.8;
    min-width: 0;
}
.course-link-text strong {
    color: var(--ag-primary);
    font-size: 0.98rem;
}
.course-link-text small,
.course-session-count {
    color: var(--ag-muted);
    font-size: 0.85rem;
}
.course-session-count {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 5px 12px;
    border: 1px solid var(--ag-border);
    border-radius: 999px;
    background: rgba(0,120,212,.08);
    font-weight: 800;
}
.course-session-list {
    list-style: none;
    counter-reset: course-session;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.course-session-list li {
    counter-increment: course-session;
    position: relative;
    padding: 12px 52px 12px 14px;
    border: 1px solid rgba(0,90,158,.18);
    border-radius: 16px;
    background: #fff;
    color: var(--ag-text);
    line-height: 2;
    box-shadow: 0 4px 12px rgba(16,42,67,.07);
}
.course-session-list li::before {
    content: counter(course-session);
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--ag-primary-2);
    color: #fff;
    font-weight: 900;
    direction: ltr;
}


/* Psychology color test layout */
.psycho-test {
    direction: rtl;
    width: 100%;
}
.psycho-card {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--ag-border);
    border-radius: 24px;
    box-shadow: var(--ag-shadow);
    padding: 22px;
    color: var(--ag-text);
    overflow: hidden;
}
.psycho-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0,120,212,.10);
    color: var(--ag-primary-dark);
    border: 1px solid var(--ag-border);
    font-weight: 900;
    font-size: .82rem;
}
.psycho-card h2 {
    color: var(--ag-primary);
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.8;
    margin: 0 0 10px;
    border-right: 4px solid var(--ag-primary-2);
    padding-right: 14px;
}
.psycho-card h3 {
    color: var(--ag-primary-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 9px;
}
.psycho-card p {
    line-height: 2.05;
    color: var(--ag-muted);
    margin-bottom: 12px;
}
.psycho-note {
    background: rgba(0,120,212,.07);
    border: 1px dashed var(--ag-border);
    border-radius: 16px;
    padding: 10px 12px;
}
.psycho-start-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
    margin-top: 18px;
}
.psycho-start-box label {
    grid-column: 1 / -1;
    font-weight: 900;
    color: var(--ag-text);
}
.psycho-start-box input {
    min-height: 48px;
    border-radius: 16px;
    padding: 10px 14px;
    font-size: 1rem;
}
.psycho-btn {
    min-height: 46px;
    border: 1px solid var(--ag-primary-2);
    border-radius: 999px;
    padding: 10px 18px;
    background: var(--ag-primary-2);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.psycho-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,90,158,.18);
    background: var(--ag-primary-dark);
}
.psycho-btn-light {
    background: #fff;
    color: var(--ag-primary-dark);
}
.psycho-btn-big {
    min-width: min(100%, 320px);
}
.psycho-progress-wrap {
    position: sticky;
    top: 78px;
    z-index: 8;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--ag-border);
    border-radius: 18px;
    padding: 10px;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}
.psycho-progress-text {
    color: var(--ag-primary-dark);
    font-weight: 900;
    margin-bottom: 7px;
}
.psycho-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(0,90,158,.12);
    overflow: hidden;
}
.psycho-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ag-primary-2), var(--ag-primary-dark));
    transition: width .25s ease;
}
.psycho-questions {
    display: grid;
    gap: 14px;
}
.psycho-question {
    border: 1px solid rgba(0,90,158,.20);
    background: #fff;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 5px 16px rgba(16,42,67,.07);
}
.psycho-question legend {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ag-text);
    font-weight: 900;
    line-height: 1.9;
    padding: 0 4px 10px;
}
.psycho-question legend span {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--ag-primary-2);
    color: #fff;
    flex: 0 0 auto;
}
.psycho-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}
.psycho-color-option {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 8px 10px;
    align-items: center;
    min-height: 92px;
    border: 2px solid rgba(0,90,158,.18);
    border-radius: 18px;
    background: rgba(248,251,255,.92);
    padding: 11px;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.psycho-color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.psycho-color-option:has(input:checked) {
    border-color: var(--ag-primary-2);
    box-shadow: 0 8px 20px rgba(0,90,158,.18);
    transform: translateY(-1px);
}
.psycho-color-swatch {
    grid-row: 1 / span 2;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.16);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.22);
}
.psycho-color-swatch.is-white {
    border: 1px solid rgba(0,0,0,.28);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.06);
}
.psycho-color-option strong {
    color: var(--ag-primary-dark);
    font-size: 1rem;
}
.psycho-color-option small {
    color: var(--ag-muted);
    line-height: 1.65;
}
.psycho-submit-row,
.psycho-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.psycho-result-head {
    margin-bottom: 16px;
}
.psycho-result-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 12px;
    margin-bottom: 12px;
}
.psycho-result-grid-3 {
    grid-template-columns: repeat(3, minmax(0,1fr));
}
.psycho-result-box {
    background: #fff;
    border: 1px solid rgba(0,90,158,.18);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 5px 16px rgba(16,42,67,.07);
}
.psycho-main-text b {
    color: var(--ag-primary-dark);
}
.psycho-score-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px 10px;
    align-items: center;
    margin-bottom: 11px;
    color: var(--ag-text);
    font-weight: 900;
}
.psycho-score-row span:last-child {
    grid-column: 1 / -1;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0,90,158,.10);
}
.psycho-score-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ag-primary-2);
}
.mini-dot {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 50%;
    margin-left: 7px;
    border: 1px solid rgba(0,0,0,.18);
    vertical-align: middle;
}
.psycho-final-quote {
    background: linear-gradient(135deg, rgba(0,120,212,.10), rgba(255,255,255,.96));
    border: 1px dashed var(--ag-border);
    border-radius: 18px;
    padding: 14px;
    color: var(--ag-primary-dark);
    font-weight: 900;
    line-height: 2;
    text-align: center;
}



/* Psycho test visual polish - color squares and better buttons */
.psycho-btn,
.psycho-card button,
.psycho-start-box button,
.psycho-actions button,
.psycho-submit-row button {
    min-height: 50px;
    padding: 13px 24px;
    border-radius: 18px;
    line-height: 1.8;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(0,90,158,.16);
}
.psycho-btn-big {
    padding: 14px 28px;
    border-radius: 20px;
}
.psycho-questions {
    gap: 24px;
}
.psycho-question {
    margin-bottom: 6px;
    padding: 18px;
}
.psycho-options {
    grid-template-columns: 1fr !important;
    gap: 11px;
}
.psycho-color-option {
    display: grid;
    grid-template-columns: 54px 1fr;
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 16px;
    gap: 12px;
    align-items: center;
}
.psycho-color-swatch {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    grid-row: auto;
    justify-self: center;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.24), 0 3px 10px rgba(16,42,67,.12);
}
.psycho-color-option small {
    font-size: .95rem;
    color: var(--ag-text);
    line-height: 1.85;
}
.psycho-color-option strong {
    display: none;
}

/* Blog section additions - v2 */
.blog-shell { max-width: 1220px; }
.blog-layout { gap: 16px; }
.blog-hero {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 18px;
    align-items: stretch;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--ag-border);
    border-radius: 26px;
    padding: 24px;
    box-shadow: var(--ag-shadow);
}
.blog-kicker { color: var(--ag-primary-2); font-weight: 900; }
.blog-hero h2 { font-size: clamp(1.35rem, 3vw, 2.15rem); line-height: 1.8; margin: 6px 0; }
.blog-hero p { line-height: 2; }
.blog-hero-card {
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(0,120,212,.12), rgba(255,255,255,.95));
    border: 1px solid var(--ag-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
}
.blog-hero-card strong { font-size: 3rem; color: var(--ag-primary); line-height: 1; }
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.blog-feed { display: flex; flex-direction: column; gap: 14px; }
.blog-compose, .blog-post-card {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--ag-border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--ag-shadow);
}
.blog-compose h2 { border-right: 4px solid var(--ag-primary-2); padding-right: 12px; margin-bottom: 14px; }
.blog-login-note, .blog-reply-login {
    background: rgba(0,120,212,.10);
    border: 1px solid var(--ag-border);
    border-radius: 16px;
    padding: 14px;
    line-height: 2;
    color: var(--ag-text);
}
.blog-login-note strong { display: block; color: var(--ag-primary-dark); margin-bottom: 4px; }
.blog-login-note span { display: block; color: var(--ag-muted); margin-bottom: 10px; }
.blog-inline-login {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}
.blog-inline-login input {
    width: 100%;
    border-radius: 14px;
    padding: 10px 12px;
}
.blog-inline-login button {
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 900;
    white-space: nowrap;
}
.blog-reply-login { display: none; margin-top: 12px; }
.blog-reply-login.active { display: block; }
.blog-form { display: flex; flex-direction: column; gap: 10px; }
.blog-form label { font-weight: 900; }
.blog-form input[type="text"], .blog-form input[type="file"] { width: 100%; border-radius: 14px; padding: 11px 12px; }
.blog-editor-toolbar { display: flex; gap: 7px; flex-wrap: wrap; background: rgba(0,120,212,.08); border: 1px solid var(--ag-border); border-radius: 16px 16px 0 0; padding: 8px; }
.blog-editor-toolbar button { min-height: 36px; border-radius: 11px; padding: 6px 11px; font-weight: 900; }
.blog-editor {
    min-height: 170px;
    background: #fff;
    border: 1px solid var(--ag-border);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    padding: 14px;
    line-height: 2.05;
    outline: none;
    overflow-wrap: anywhere;
}
.blog-editor.small-editor { min-height: 92px; }
.blog-editor:empty::before { content: attr(data-placeholder); color: #7b8fa3; }
.blog-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--ag-muted); font-size: .86rem; }
.blog-form-foot button, .blog-reply-form button[type="submit"] { border-radius: 999px; padding: 10px 18px; font-weight: 900; }
.blog-post-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(0,90,158,.15); padding-bottom: 10px; margin-bottom: 10px; }
.blog-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(0,120,212,.25); background: #fff; }

.blog-author { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.blog-author strong { color: var(--ag-text); }
.blog-author span, .blog-post-head time { color: var(--ag-muted); font-size: .78rem; }
.blog-post-title { margin: 10px 0 12px; font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.8; }
.blog-content { color: var(--ag-text); line-height: 2.1; overflow-wrap: anywhere; }
.blog-content img { max-width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--ag-border); margin: 10px 0; }
.blog-content blockquote { border-right: 4px solid var(--ag-primary-2); background: rgba(0,120,212,.07); padding: 10px 14px; border-radius: 14px; margin: 10px 0; }
.blog-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid rgba(0,90,158,.12); margin-top: 12px; padding-top: 10px; }
.blog-actions button, .blog-action-static { border-radius: 999px; padding: 8px 14px; font-weight: 900; }
.blog-action-static { display: inline-flex; align-items: center; border: 1px solid var(--ag-border); color: var(--ag-muted); background: rgba(255,255,255,.8); }
.blog-replies { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.blog-reply-card { display: grid; grid-template-columns: 42px 1fr; gap: 9px; background: #f6fbff; border: 1px solid rgba(0,90,158,.16); border-radius: 18px; padding: 11px; }
.blog-reply-card strong { color: var(--ag-primary-dark); }
.blog-reply-form { display: none; margin-top: 12px; border: 1px dashed var(--ag-border); border-radius: 18px; padding: 12px; background: rgba(255,255,255,.8); }
.blog-reply-form.active { display: flex; flex-direction: column; gap: 9px; }


/* Blog refinements - v3 */
.blog-user-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row-reverse;
    gap: 20px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--ag-border);
    border-radius: 20px;
    padding: 12px 16px;
    box-shadow: 0 10px 24px rgba(16,42,67,.10);
    color: var(--ag-muted);
    line-height: 1.8;
}
.blog-user-status strong {
    color: var(--ag-primary-dark);
    font-weight: 900;
}
.blog-user-status.logged-in {
    background: linear-gradient(135deg, rgba(15,123,49,.10), rgba(255,255,255,.96));
}
.blog-user-status.guest {
    background: linear-gradient(135deg, rgba(0,120,212,.10), rgba(255,255,255,.96));
}
.blog-compose {
    scroll-margin-top: 100px;
}
.blog-login-note, .blog-reply-login {
    background: linear-gradient(135deg, rgba(0,120,212,.10), rgba(255,255,255,.96));
    border: 1px solid var(--ag-border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(16,42,67,.10);
    text-align: right;
}
.blog-login-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(0,120,212,.12);
    border: 1px solid var(--ag-border);
    margin-bottom: 8px;
    font-size: 1.35rem;
}
.blog-login-icon.small {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 1.05rem;
}
.blog-login-note strong, .blog-reply-login strong {
    display: block;
    color: var(--ag-primary-dark);
    font-size: 1rem;
    margin-bottom: 5px;
}
.blog-login-note span, .blog-reply-login span {
    display: block;
    color: var(--ag-muted);
    font-size: .9rem;
    margin-bottom: 12px;
    line-height: 1.9;
}
.blog-inline-login.clean-login {
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(0,90,158,.16);
    border-radius: 18px;
    padding: 10px;
}
.blog-inline-login.clean-login input {
    border: 1px solid rgba(0,90,158,.28);
    background: #fff;
    color: var(--ag-text);
    min-height: 44px;
}
.blog-inline-login.clean-login button {
    min-height: 44px;
    box-shadow: 0 8px 18px rgba(0,90,158,.16);
}
.blog-reply-login.active {
    display: block;
}
.blog-reply-login:not(.active) {
    display: none;
}

/* Blog v4 additions */
.blog-editor-toolbar button {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 11px;
}
.blog-editor img,
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 10px 0;
    border: 1px solid var(--ag-border);
    background: #fff;
    padding: 3px;
}
.blog-upload-progress {
    display: none;
    width: 100%;
    height: 10px;
    background: rgba(0,90,158,.12);
    border: 1px solid rgba(0,90,158,.20);
    border-radius: 999px;
    overflow: hidden;
    margin: 10px 0;
}
.blog-upload-progress.active {
    display: block;
}
.blog-upload-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--ag-primary-2);
    border-radius: 999px;
    transition: width .2s ease;
}
.blog-edit-toggle {
    margin-top: 10px;
    border: 1px solid var(--ag-border);
    background: rgba(255,255,255,.92);
    color: var(--ag-primary-dark);
    border-radius: 999px;
    padding: 7px 13px;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
}
.blog-edit-toggle.small {
    font-size: .76rem;
    padding: 5px 10px;
}
.blog-edit-form {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed var(--ag-border);
    border-radius: 16px;
    background: rgba(244,249,253,.96);
}
.blog-edit-form.active {
    display: block;
}
.blog-edit-form label {
    display: block;
    margin: 8px 0 5px;
    font-weight: 900;
}
.blog-edit-form input[type="text"],
.blog-edit-form input[type="file"] {
    width: 100%;
    margin-bottom: 8px;
}
.blog-editor {
    direction: rtl;
    text-align: right;
}
.blog-editor code,
.blog-editor pre,
.blog-content code,
.blog-content pre {
    direction: ltr;
    text-align: left;
    display: block;
    background: #f4f7fb;
    border: 1px solid rgba(0,90,158,.18);
    border-radius: 12px;
    padding: 10px;
    overflow-x: auto;
}


/* Blog editor safe HTML toggle and image sizing - v6 */
.blog-html-source {
    display: none;
    width: 100%;
    min-height: 170px;
    direction: ltr;
    text-align: left;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    border: 1px solid var(--ag-border);
    border-radius: 16px;
    padding: 12px;
    background: #fff;
    color: #0b2239;
    resize: vertical;
}
.blog-code-mode .blog-editor { display: none; }
.blog-code-mode .blog-html-source { display: block; }
.blog-html-toggle.active {
    background: var(--ag-primary-dark) !important;
    color: #fff !important;
}
.blog-content .blog-image-link,
.blog-editor .blog-image-link {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 12px auto;
    text-decoration: none;
}
.blog-content img,
.blog-editor img {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    margin: 12px auto;
    border-radius: 18px;
    border: 1px solid rgba(0,90,158,.22);
    background: #fff;
    box-shadow: 0 8px 22px rgba(16,42,67,.12);
}
.blog-editor .blog-image-link img,
.blog-content .blog-image-link img { margin: 0 auto; }


.blog-status-avatar,
.blog-avatar {
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    background: #fff;
    flex: 0 0 auto;
}
.blog-status-avatar {
    width: 110px;
    height: 110px;
    border: 3px solid rgba(0,120,212,.22);
    box-shadow: 0 8px 20px rgba(16,42,67,.14);
}
.blog-avatar {
    border: 3px solid rgba(0,120,212,.20);
    box-shadow: 0 8px 18px rgba(16,42,67,.12);
}
.blog-avatar.small {
    width: 50px;
    height: 50px;
    border-width: 2px;
}
.blog-status-text {
    display: flex;
    flex-direction: column;
    line-height: 1.8;
}
.blog-post-head {
    align-items: center;
}


@media (max-width: 760px) {

    .blog-content .blog-image-link,
    .blog-editor .blog-image-link,
    .blog-content img,
    .blog-editor img { max-width: 100%; max-height: 420px; }


    .blog-status-avatar { width: 80px; height: 80px; }
    .blog-avatar { width: 70px; height: 70px; }
    .blog-avatar.small { width: 40px; height: 40px; }


    .blog-editor-toolbar {
        gap: 6px;
    }
    .blog-editor-toolbar button {
        flex: 1 1 auto;
        font-size: .78rem;
    }


    .psycho-btn,
    .psycho-card button,
    .psycho-start-box button,
    .psycho-actions button,
    .psycho-submit-row button {
        width: 100%;
        padding: 13px 18px;
    }
    .psycho-question {
        padding: 14px 12px;
    }
    .psycho-color-option {
        grid-template-columns: 50px 1fr;
        min-height: 64px;
    }
    .psycho-color-swatch {
        width: 42px;
        height: 42px;
    }


    .psycho-card { padding: 15px 12px; border-radius: 18px; }
    .psycho-start-box { grid-template-columns: 1fr; }
    .psycho-options { grid-template-columns: 1fr; }
    .psycho-result-grid,
    .psycho-result-grid-3 { grid-template-columns: 1fr; }
    .psycho-progress-wrap { top: 68px; }

    
    .blog-hero { grid-template-columns: 1fr; }

    body.login-page {
        padding: 8px;
    }

    .top-header {
        border-radius: 22px;
        padding: 10px 8px;
    }

    .site-logo {
        width: 110px;
    }
    .site-title {
        font-size: 25px;
    }


    .site-nav {
        top: 6px;
        display: block;
        padding: 8px;
        border-radius: 20px;
    }

    .site-nav-button {
        display: flex;
    }

    .site-nav-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-top: 0;
        transition: max-height .25s ease, opacity .2s ease, padding-top .2s ease;
    }

    .site-nav-toggle:checked ~ .site-nav-links {
        max-height: 360px;
        opacity: 1;
        padding-top: 8px;
    }

    .site-nav-toggle:checked + .site-nav-button span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .site-nav-toggle:checked + .site-nav-button span:nth-child(2) {
        opacity: 0;
    }

    .site-nav-toggle:checked + .site-nav-button span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .site-nav-links a {
        width: 100%;
        min-height: 44px;
        background: rgba(255,255,255,.94);
        border-color: var(--ag-border);
    }

    .main-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .ag-intro {
        padding: 15px 12px;
        border-radius: 18px;
    }
    .courses-intro {
        order: 0;
        padding: 15px 12px;
        border-radius: 18px;
    }
    .courses-all {
        padding: 15px 12px;
        border-radius: 18px;
    }

    .message-board {
        order: 1;
        width: 100%;
    }

    .login-area {
        order: 2;
        width: 100%;
    }

    .ag-image-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
    }
    th, td {
        font-size: .82rem;
    }

}


@media (max-width: 650px) {

    .blog-user-status {
        border-radius: 18px;
        padding: 11px 13px;
    }
    .blog-inline-login.clean-login {
        padding: 9px;
    }

    .blog-inline-login { grid-template-columns: 1fr; }

    .blog-hero, .blog-compose, .blog-post-card { padding: 14px 11px; border-radius: 18px; }
    .blog-post-head { align-items: flex-start; }
    .blog-post-head time { display: none; }
    .blog-actions, .blog-actions form { width: 100%; }
    .blog-actions button, .blog-action-static { width: 100%; justify-content: center; }

}


@media (max-width: 450px) {

    .courses-link-grid {
        grid-template-columns: 1fr;
    }
    .course-session-list li {
        padding-left: 10px;
        padding-right: 48px;
    }


    .site-logo {
        width: 70px;
    }
    .site-title {
        font-size: 18px;
    }

    .ag-image-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ag-intro h2 {
        font-size: 1.09rem;
    }
    .courses-intro h2 {
        font-size: 1.08rem;
    }
    .courses-all h2 {
        font-size: 1.08rem;
    }

}

@media print {
    .top-header, .site-nav, .site-footer, .psycho-actions, .psycho-intro-screen, .psycho-questions-screen { display: none !important; }
    body, body.login-page { background: #fff !important; }
    .site-shell { min-height: auto; }
    .psycho-card, .psycho-result-box { box-shadow: none !important; }
    .psycho-result-screen { display: block !important; }
}

