/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

header .navbar {
    background-color: #2c3e50;
    border-bottom: 3px solid #1abc9c;
}

.navbar-brand img.college-logo {
    width: 50px;
    height: auto;
}

.nav-link {
    color: #ecf0f1 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1abc9c !important;
    text-decoration: underline;
}

.navbar-nav .dropdown-menu {
    background-color: #34495e;
    border: none;
}

.dropdown-item {
    color: #ecf0f1 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #1abc9c;
    color: #fff !important;
}

/* Page Content Block */
.container {
    padding: 20px;
}

h1, h2, h3 {
    color: #2c3e50;
}

footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 10px;
    text-align: center;
    border-top: 3px solid #1abc9c;
    margin-top: 20px;
}

footer a {
    color: #1abc9c;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Custom Button Styles */
.btn-custom {
    background-color: #1abc9c;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-custom:hover {
    background-color: #16a085;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand img.college-logo {
        width: 40px;
    }

    footer {
        font-size: 0.9em;
    }
}


/* Course Description Section */
.course-description {
    display: block;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

/* Logo Container */
.logo-container {
    flex: 1 1 300px;
    text-align: center;
    margin: 1rem;
}

.logo-container img {
    max-width: 150px;
}

/* Content Container */
.content-container {
    flex: 2 1 600px;
    padding: 1rem 2rem;
}

.content-container h1 {
    font-size: 2rem;
    color: #343a40;
    margin-bottom: 1rem;
    text-align: center;
}

.content-container p {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    text-align: justify;
}

/* Responsiveness */
@media (max-width: 768px) {
    .course-description {
        flex-direction: column;
        text-align: center;
    }

    .content-container {
        padding: 1rem;
    }

    .content-container h1 {
        font-size: 1.5rem;
    }

    .content-container p {
        font-size: 0.9rem;
    }
}

/* Ask Question Container */
.ask-question-container {
    text-align: center;
    margin: 20px 0;
}

.ask-question-button {
    display: inline-block;
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ask-question-button:hover {
    background-color: #1abc9c;
}

/* Toggle Buttons for Answered/Unanswered */
.select-type {
    margin: 20px auto;
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.select-type button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #e0e0e0;
    color: #333;
    transition: all 0.3s ease;
    width: 100%;
}

.select-type button.selected {
    background-color: #2c3e50;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.select-type button:hover {
    background-color: #2c3e50;
    color: #1abc9c;
}

/* Discussion Window */
.discussion-window {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Discussion Cards */
.discussion-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 15px 0;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: background-color 0.3s;
}

.card-header:hover {
    background-color: #f9f9f9;
}

.card-content {
    display: none;
    transition: max-height 0.5s ease;
    padding: 15px;

}

.card-content.collapsed {
    display: block;
}


.card-title {
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: #333;
}

.card-meta {
    font-size: 0.9rem;
    color: #666;
}

.card-meta span {
    display: block;
    margin-bottom: 5px;
}

/* Attachments */
.attachment {
    margin: 10px 0;
}

.attachment-img {
    max-width: 100%;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attachment-img:hover {
    transform: scale(1.02);
    transition: transform 0.2s;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    margin-top: 5%;
    border-radius: 5px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

/* Answers Section */
.card-body {
    margin: 10px 0;
    color: #555;
}

.answer {
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.answer p {
    margin: 0;
}

/* Footer */
.card-footer {
    margin-top: 15px;
    color: #2c3e50;
}

/* Read Button */
.read-button {
    background-color: #2c3e50;
    color: #fff;
    border: none;
    padding: 8px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.read-button:hover {
    background-color: #182431;
    text-decoration: underline;
    color: #1abc9c;
}

/* Responsiveness */
@media (max-width: 768px) {
    .ask-question-button {
        font-size: 1rem;
        padding: 8px 15px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-meta {
        font-size: 0.8rem;
    }

    .read-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Ask a Question Button Styling */
.ask-question-container {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0;
    padding-right: 20px;
}

.ask-question-button {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ask-question-button:hover {
    background-color: #2c3e50;
    color:#1abc9c;
}


/* Text Area Styling */
.textarea-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #343a40;
    border-radius: 5px;
    resize: vertical;
    font-size: 1rem;
    color: #000;
    background-color: #fff;
    outline: none;
}

/* File Input Styling */
.file-input-container {
    margin-top: 15px;
}

.file-input-container label {
    display: block;
    font-size: 1rem;
    color: #000;
    margin-bottom: 5px;
}

.file-input-container input[type="file"] {
    color: #000;
    background-color: #fff;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #343a40;
    cursor: pointer;
}

/* Submit Button Styling */
.submit-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #61dafb;
    color: #282c34;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

/* Submit Button Styling */
.submit-button {
    background-color: #282c34;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: #282c34;
    color: #1abc9c;
    text-decoration: underline;
}

/* Ask a Question Button Styling */
.ask-question-container {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0;
    padding-right: 20px;
}
.wrap {
    border: 2px solid; /* Add border with theme color */
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    width: 80%;
    color: #000;
    max-width: 600px;
    margin-top: 0;
}
.text-center{
    margin-bottom: 0;
    margin-top: 1rem !important;
}
