* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

.site-header {
    background: #0f766e;
    color: white;
    padding: 14px 20px;
}

.header-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    color: white;
    font-size: 48px;
    font-weight: bold;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 18px;
}

.card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.hero {
    padding: 40px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
}

input, textarea, select {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin: 8px 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

textarea {
    min-height: 140px;
}

button, .button, .button-small {
    background: #0f766e;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    cursor: pointer;
}

.button-small {
    padding: 8px 12px;
    background: white;
    color: #0f766e;
}

.danger {
    background: #dc2626;
}

.notice {
    padding: 14px;
    border-radius: 10px;
    background: #e0f2fe;
    margin-bottom: 16px;
}

.error {
    background: #fee2e2;
}

.badge {
    background: #dc2626;
    color: white;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 13px;
}

.meta {
    color: #64748b;
    font-size: 14px;
}

.tag {
    background: #ccfbf1;
    color: #115e59;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 13px;
    display: inline-block;
    margin: 4px 4px 0 0;
}

.post-title {
    margin-top: 0;
}

.comment {
    border-left: 4px solid #0f766e;
    padding-left: 14px;
    margin-bottom: 16px;
}

.message-list {
    display: grid;
    gap: 12px;
}

.message-row {
    display: block;
    padding: 16px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.chat-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bubble {
    max-width: 75%;
    padding: 12px 15px;
    border-radius: 14px;
}

.mine {
    align-self: flex-end;
    background: #0f766e;
    color: white;
}

.theirs {
    align-self: flex-start;
    background: #e5e7eb;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

@media (max-width: 700px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .bubble {
        max-width: 95%;
    }

    nav {
        width: 100%;
    }
}
.logo-img {
    height: 100px;
    width: auto;
}

.site-header {
    background: #0b0f14;
    border-bottom: 1px solid #0ea5a4;
    padding: 5px 5px; /* was 14px */
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-msg {
    position: relative;
}

.badge {
    margin-left: 6px;
}
/* DASHBOARD LAYOUT */

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* STATS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.stat-card h2 {
    margin: 0;
    font-size: 28px;
    color: #0ea5a4;
}

.stat-card p {
    margin: 6px 0 0;
    color: #64748b;
}

/* SIDEBAR */

.recent-post {
    margin-bottom: 12px;
}

.recent-post a {
    font-weight: 600;
    text-decoration: none;
    color: #0f172a;
}

.recent-post a:hover {
    color: #0ea5a4;
}

/* MOBILE */

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.danger {
    background: #dc2626;
    color: white;
}

.danger:hover {
    background: #b91c1c;
}
.best-answer {
    border-left: 6px solid #16a34a;
    background: #f0fdf4;
    padding: 16px;
    border-radius: 10px;
}

.best-answer-label {
    display: inline-block;
    background: #16a34a;
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: bold;
    margin-bottom: 10px;
}

.category-tag {
    background: #e0f2fe;
    color: #0369a1;
}
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
}

.editor-toolbar button {
    background: #0f766e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
}

.editor-toolbar button:hover {
    background: #115e59;
}

.editor-preview {
    margin-top: 12px;
    border: 1px dashed #94a3b8;
}

.embed-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 12px;
}

.post-image-wrap {
    margin: 15px 0;
}

.post-image {
    max-width: 100%;
    border-radius: 12px;
    display: block;
}
.footer {
    text-align: center;
    padding: 20px 10px;
    color: #64748b; /* nice subtle grey */
    font-size: 14px;
}
.card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 15px 0;
}
.post-image {
    transition: transform 0.2s ease;
}

.post-image:hover {
    transform: scale(1.02);
}