html{
    scroll-behavior: smooth;
    max-width: 100%;
    max-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0px;
    color: rgb(17, 17, 19);
    background-color: #eaeded;
    max-width: 100%;
    max-height: 100%;

}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    display: flex;
    gap: 40px;
    align-items: stretch;
    flex-wrap: wrap;
}

header {
    background-color: #131921;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.section-divider {
    border: none;
    height: 1px;
    background-color: #ffffff57;
    margin: 0;
}

.forum-title-bg {
    background-color: #131921;
    width: 100%;
}

.forum-title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 50px;
}

.forum-title h1 {
    color: #f5f7f7;
    font-size: 70px;
    text-transform: capitalize;
}

.forum-title p {
    color: #eaededb3;
    font-size: 20px;
}

.tagline-4 {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff12;
    color: white;
    padding: 7px;
    border-radius: 40px;
    width: max-content;
    text-transform: uppercase;
    font-weight: 600;
    word-spacing: 2px;
    letter-spacing: 2px;
    font-size: 12px;
}

.orange-dot {
    background-color: #FF9900;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-left: 6px;
}

.disc-left {
    flex: 1 1 500px;
}

.disc-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.disc-header h2 {
    margin: 0;
}

#post-btn {
    text-align: center;
    color: #131921;
    background-color: #FF9900;
    padding: 10px 26px;
    transition: all 0.3s ease;
    text-decoration: none;
}

#post-btn:hover {
    background-color: #131921;
    color: #FF9900;
}

.disc-right {
    flex: 0 0 340px;
}

.disc-right-1 {
    background-color: #131921;
    padding: 20px;
    border-radius: 25px;
    text-align: left;
}

.disc-right-1 h3 {
    color: #eaeded;
    font-size: 25px;
}

.disc-right-1 p {
    color: #eaededa7;
    font-size: 15px;
}

.disc-right-1 a {
    display: block;
    box-sizing: border-box;
    background-color: #fff;
    color: #131921;
    text-align: center;
    width: 100%;
    padding: 13px;
}

.disc-right-1 a:hover {
    padding: 13px;
    background-color: #FF9900;
    color: #eaeded;
}

.disc-right-2 {
    margin-top: 20px;
    background-color: #ffffff;
    padding: 13px;
    border-radius: 25px;
    border: 1px solid #13192136;
    min-height: fit-content;
}

.disc-right-2 h2 {
    text-transform: capitalize;
    margin: 9px 0px 20px 4px;
    font-size: 20px;
}

.disc-right-2 span {
    display: inline-block;
    background-color: #13192136;
    padding: 10px;
    border-radius: 15px;
    margin: 4px;
}

.msg {
    background-color: #ffffff;
    padding: 24px 24px 10px 24px;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    transition: box-shadow 0.3s ease;
    margin-bottom: 25px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap:16px;
}

.msg-body {
    flex: 1;
}

.msg:hover {
    box-shadow: 0 1px 20px 1px rgba(255, 153, 0, 0.352);
    cursor: pointer;
}

.msg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.msg-title {
    margin: 0 0 10px 0;
    font-size: 19px;

}

.msg-p {
    margin-bottom: 15px;
}

.text-space {
    width: 3px;
    background-color: #0000005d;
    height: 3px;
    border-radius: 50%;
}

.name {
    color: black;
    font-size: 12px;
    margin: 0;
}

.subject {
    color: rgba(84, 84, 84, 0.621);
    margin: 0;
}

.time {
    color: #1319215c;
    margin: 0;
}

.reply-count {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 7px;
}

.reply-count svg {
    width: 18px;
    height: 18px;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #131921;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;  
}

.comm-icon {
    display: inline-flex;
    align-items: center;
    background: #FF9900;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
}

.comm-icon svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 900px) {
  main { flex-direction: column; }

}

.post-form {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    margin-bottom: 25px;
}

.post-label {
    display: block;
    font-weight: bold;
    font-size: 15px;
    margin: 12px 0 8px 0;
}

.post-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.218);
    font: inherit;
    font-size: 16px;
}

.post-input:focus {
    outline: 3px solid #FF9900;
}

.post-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.post-submit {
    background-color: #FF9900;
    color: #131921;
    border: none;
    padding: 10px 26px;
    font-weight: 600;
    cursor: pointer;
}

.post-cancel {
    background: none;
    border: 1px solid #131921;
    color: #131921;
    padding: 10px 26px;
    cursor: pointer;
}

.post-message {
    min-height: 1.5em;
    margin: 12px 0 0 0;
    font-weight: 600;
    font-size: 14px;
}

.post-message.error {
    color: #b00020;
}

#post-list .msg-p {
    white-space: pre-wrap;     
    overflow-wrap: anywhere;    
}

#post-list .msg-title {
    overflow-wrap: anywhere;
}

.msg-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-btn {
    background: none;
    border: none;
    color: #6b7280;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding-bottom: 7px;
}

.report-btn:hover,
.report-btn:focus-visible {
    color: #b00020;
}
/* ---------- Replies ---------- */
.reply-count:hover .reply-text,
.reply-count:focus-visible .reply-text {
    text-decoration: underline;
}

.replies {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.reply {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.reply .avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    font-size: 12px;
}

.reply-header {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.reply-header strong {
    color: #131921;
    margin-right: 6px;
}

.reply-body {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.reply-empty {
    color: #6b7280;
    font-size: 14px;
}

.reply-form .post-submit {
    margin-top: 4px;
}

.reply-signin {
    color: #131921;
    font-weight: 600;
}

.post-submit {
    background-color: #FF9900;
    color: #131921;
    border: none;
    border-radius: 25px;
    padding: 10px 26px;
    font-weight: 600;
    cursor: pointer;
}

.post-cancel {
    background: none;
    border: 1px solid #131921;
    border-radius: 25px;
    color: #131921;
    padding: 10px 26px;
    cursor: pointer;
}

.post-submit:hover,
.post-submit:focus-visible {
    background-color: #131921;
    color: #FF9900;
}

.post-cancel:hover,
.post-cancel:focus-visible {
    background-color: #131921;
    color: #ffffff;
}

/* ---------- Delete (own posts and replies) ---------- */
.msg-footer .report-btn {
    margin-left: auto;   /* keeps Report and Delete together on the right */
}

.delete-btn {
    background: none;
    border: none;
    color: #b00020;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0 0 7px 12px;
}

.delete-btn:hover,
.delete-btn:focus-visible {
    color: #7a0016;
}

.reply .delete-btn {
    padding: 4px 0 0 0;
}

/* ---------- Pop-up box (delete / report confirmations) ---------- */
/* Reuses .post-form for the card look; this just sizes and centres it. */
.forum-dialog {
    width: min(420px, calc(100% - 40px));
    margin: auto;            /* centre on screen */
    margin-bottom: auto;
    box-sizing: border-box;
}

.forum-dialog::backdrop {
    background: rgba(19, 25, 33, 0.55);   /* dims the page behind, same navy as the site */
}

.forum-dialog-title {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.forum-dialog-text {
    margin: 0;
    color: #374151;
    overflow-wrap: anywhere;
}

.forum-dialog .post-actions {
    margin-top: 20px;
}

.forum-dialog .post-submit.danger {
    background-color: #b00020;
    color: #ffffff;
}
