/* Hero Section */
.science-hero {
    background: linear-gradient(135deg, #004494, #007bff);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
}

.main-fac-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.dept-selector-area {
    margin-top: 30px;
}

.subject-box-premium {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #ff9800; /* Vibrant Orange for the action button */
    color: white !important;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.subject-box-premium:hover {
    transform: scale(1.05);
    background: #e68a00;
}

/* Navigation Steps Grid */
.navigation-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.hownav {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3436;
}

.welcome2 {
    margin-bottom: 15px;
}

.nav-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.step-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #edf2f7;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.step-num {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}








.comment-container {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}
.h2-comment {
    color: #333;
    margin-bottom: 15px;
}
.comment-section {
    max-width: 1100px;
    margin: 0 auto 30px;
    margin-top: 30px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comment-form input, .comment-form textarea {
    padding: 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.comment-form button {
    padding: 10px;
    font-size: 16px;
    border: none;
    color: white;
    background-color: #3494fc;
    border-radius: 4px;
    cursor: pointer;
}
.comment-form button:hover {
    background-color: #0b70db;
}
.comments {
    margin-top: 20px;
    text-align: left;
}
.comment {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.comment h4 {
    margin: 0;
    color: #333;
}
.comment p {
    margin: 5px 0 0;
    color: #555;
}
.like-dislike {
    display: flex;
    align-items: center;
    gap: 10px;
}
.like-button, .dislike-button {
    cursor: pointer;
    border: none;
    background: none;
    font-size: 20px;
    color: #555;
}
.like-count, .dislike-count {
    margin-left: 5px;
}

/* Basic styling for comment section*/
.comment-section {
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.leave-comment {
    margin-bottom: 20px;
    text-align: center;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.comment-form input, .comment-form textarea {
    padding: 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.comment-form button {
    padding: 10px;
    font-size: 16px;
    border: none;
    color: white;
    background-color: #4a90e2;
    border-radius: 4px;
    cursor: pointer;
}
.comment-form button:hover {
    background-color: #357ab7;
}
.comment-section {
    margin-top: 20px;
    text-align: left;
}
.comment {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 5px solid #ddd;
}
h3 {
    margin-top: 25px;
}
.comment h4 {
    margin: 0;
    color: #333;
}
.comment p {
    margin: 5px 0 0;
    color: #555;
}

.comment-date {
    font-size: 0.9em;
    color: #888;
    margin-left: 10px;
}

.reply-date {
    font-size: 0.9em;
    color: #888;
    margin-left: 10px;
}

.reaction {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.reaction button {
    padding: 5px 10px;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}
.reaction .like-btn {
    background-color: #5a9;
}
.reaction .dislike-btn {
    background-color: #d9534f;
}

/* Reply Button */
.reply-btn {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    background-color: #4a90e2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reply-btn:hover {
    background-color: #357ab7;
}

/* Reply Form */
.reply-form {
    display: none; /* Hidden by default; toggled visible by JavaScript */
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.reply-form input[type="text"],
.reply-form textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.reply-form button {
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
    background-color: #4a90e2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%; /* Full width on mobile */
}

.reply-form button:hover {
    background-color: #357ab7;
}

/* Responsive Design */
@media (min-width: 768px) {
    body {
        font-size: 1.2em;
    }
    .reply-form button {
        width: auto; /* Centered, smaller width on larger screens */
        display: inline-block;
    }
}

/* Responsive Styles */
@media (max-width: 900px) {
    body {
        font-size: 1.2em;
    }
    .subjects li {
        flex: 0 1 calc(50% - 20px); /* Two boxes per row */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    body {
        font-size: 1.2em;
    }
    .subjects li {
        flex: 0 1 100%; /* One box per row on small screens */
        max-width: 100%;
    }
    .hownav {
        text-align: center;
    }  
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #007bff;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}
