* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    width: 100%;
    margin: 0;
}

.header {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.red-line {
    border: 0;
    height: 1px;
    background-color: #7c0000;
    margin: 20px 0;
}

.header-image {
    margin-bottom: -18px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.header-content h1 {
    font-size: 2.5rem;
    margin: 20px 0;
    color: #7c0000;
}

.header-content p {
    font-size: 1.2rem;
    color: #555;
}

.header-date {
    font-size: 0.9rem;
    color: #ffffff;
    margin-right: 250px;
}

.navbar {
    margin-top: -50px;
    background-color: #7c0000;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    text-align: center;
}

.navbar ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: right;
}

.navbar ul li {
    margin: 0 6px;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: -5px -5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

.footer p {
    font-size: 0.9rem;
}


.auth-section {
    padding: 40px 0;
    background-color: #fff;
}

.auth-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    animation: fadeIn 0.5s ease-in;
}

.auth-form {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s;
    position: relative;
}

.auth-form:hover {
    transform: translateY(-5px);
}

.auth-form h2 {
    margin-bottom: 20px;
    color: #7c0000;
    text-align: center;
}

.auth-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border 0.3s;
}

.auth-form input:focus {
    border-color: #7c0000;
}

.auth-form button {
    padding: 10px 20px;
    background-color: #7c0000;
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.auth-form button:hover {
    background-color: #5a0000;
    transform: translateY(-2px);
}


.questions-section {
    padding: 40px 0;
    background-color: #fff;
}

.question {
    background-color: #f0f4f8;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #7c0000;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-header h3 {
    font-size: 1.6rem;
    color: #7c0000;
    margin-bottom: 10px;
}

.question-date {
    font-size: 0.85rem;
    color: #888;
}

.question-actions {
    margin-top: 10px;
}

.like-button, .reply-button {
    background-color: transparent;
    border: none;
    color: #7c0000;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 20px;
    transition: color 0.3s, transform 0.2s;
}

.like-button:hover, .reply-button:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.replies {
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.reply-input {
    width: calc(100% - 100px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.reply-submit {
    padding: 10px 15px;
    background-color: #7c0000;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.reply-submit:hover {
    background-color: #5a0000;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer .social-icons {
    list-style: none;
    padding: 10px 0;
}

.footer .social-icons li {
    display: inline-block;
    margin-right: 15px;
}

.footer .social-icons li a img {
    width: 24px;
    height: 24px;
}

.footer p {
    font-size: 0.9rem;
}


.question-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.question-form h2 {
    margin-bottom: 15px;
    color: #7c0000;
}

.question-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s;
}

.question-form textarea:focus {
    border-color: #7c0000;
    outline: none;
}

.question-form button {
    padding: 10px 20px;
    background-color: #7c0000;

    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.question-form button:hover {
    background-color: #5a0000;
    transform: translateY(-2px);
}


.alert {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border: 1px solid #c62828;
    border-radius: 5px;
    margin: 20px 0;
}
.comment-section {
    display: none;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.comment-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.comment-icon {
    margin-right: 5px;
}

.comment-list {
    margin-top: 10px;
}

.comment {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comment-input {
    width: calc(100% - 100px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}
.comment-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

.comments-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
}

.replies {
    display: none;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.reply-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f4f8;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.reply-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    margin-right: 10px;
}

.reply-input:focus {
    border-color: #7c0000;
    outline: none;
    box-shadow: 0 0 5px rgba(124, 0, 0, 0.2);
}

.reply-submit {
    padding: 12px 20px;
    background-color: #7c0000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.reply-submit:hover {
    background-color: #5a0000;
    transform: translateY(-2px);
}

.question-meta {
    font-size: 1rem;
    color: #7c0000;
    margin-bottom: 10px;
    font-family: 'Courier New', Courier, monospace;
}

.question-text {
    font-size: 1.2rem;
    font-family: 'Georgia', serif;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #7c0000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.replies {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.replies.show {
    display: block;
    opacity: 1;
}