/* styles.css */
:root{
    --bg-color: #ffb326;
    --bg-dark-color: #013220;
    --orange-color: #ffb326;
    --text-color: #fff;
}

/* General Styles */
body {
    background-color: var(--bg-dark-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

h5{
    font-family: "Ubuntu", serif;
    font-weight: 700;
    font-style: normal;
}

p {
    font-family: "Ubuntu", serif;
    font-weight: 400;
    font-style: normal;
}

.list-group-item a{
    text-decoration: none; /* Removes underline or any other text decoration */
    color: green;
}

.list-group-item a:hover {
    color: orange; /* Pleasant green hover color */
    cursor: pointer;
}
.post-title {
    text-decoration: none; /* Removes underline or any other text decoration */
    color: inherit; /* Ensures the link inherits the parent's color */
}

.post-title:hover {
    text-decoration: none; /* Ensure no text decoration on hover */
}


.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 20px;
    background-color: #fff;
}

.card-title {
    font-size: 1.5rem;
    color: #333;
    transition: color 0.3s ease-in-out; /* Smooth hover effect */
}

.card-title:hover {
    color: #4caf50; /* Pleasant green hover color */
    cursor: pointer;
}

.card-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.card-body {
    padding: 15px;
}

.card-img-top {
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
}

.mb-4{
    padding: 4px;
}

/* Sidebar Styles */
.sidebar {
    margin-top: 20px;
}

.sidebar .search-bar {
    margin-bottom: 20px;
}

.sidebar .recent-posts {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar .recent-posts .title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.sidebar .recent-posts .post-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sidebar .recent-posts .post-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}

.sidebar .recent-posts .post-item .post-info {
    flex-grow: 1;
}

.sidebar .recent-posts .post-item .post-info a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease-in-out;
}

.sidebar .recent-posts .post-item .post-info a:hover {
    color: #4caf50; /* Hover effect for recent post titles */
    text-decoration: underline;
}

.sidebar .recent-posts .post-item .post-info small {
    display: block;
    font-size: 0.85rem;
    color: #888;
}

.social-sharing {
    margin: 20px 0;
}
.social-sharing p {
    font-size: 16px;
    font-weight: bold;
}
.social-sharing .btn {
    margin-right: 10px;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
}
.social-sharing .btn-facebook {
    background-color: #3b5998;
}
.social-sharing .btn-twitter {
    background-color: #1da1f2;
}
.social-sharing .btn-linkedin {
    background-color: #0077b5;
}

.comment-section {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f9f9f9;
}
.comment-section h3 {
    margin-bottom: 20px;
}
.comment-section .form-group {
    margin-bottom: 15px;
}
.comment-section .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.comment-section .btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.comment-section .btn:hover {
    background-color: #0056b3;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}
.nav-buttons .btn {
    margin: 5px 0;
}

.social-sharing {
    text-align: center;
}
.social-sharing .btn {
    display: inline-block;
    margin: 5px;
}

.comment-section .form-group {
    width: 100%;
}

/* General Container */
.create-post-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Title Styling */
.create-post-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    color: #007bff;
}

.create-post-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styling */
.create-post-form .form-group {
    margin-bottom: 20px;
}

.create-post-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1rem;
    color: #333;
}

.create-post-form input[type="text"],
.create-post-form input[type="file"],
.create-post-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

.create-post-form input[type="text"]:focus,
.create-post-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Textarea Styling */
.create-post-form textarea {
    height: 150px;
    resize: vertical;
}

/* Submit Button Styling */
.create-post-form .btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-post-form .btn:hover {
    background-color: #0056b3;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Success Message */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Error Message */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Info Message */
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Warning Message */
.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}


.text-foot {
    margin: 0;
}

.text-foot p {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    text-align: center;
}

.text-foot b {
    font-weight: 700;
    color: var(--orange-color);
}

.text-foot span {
    color: var(--orange-color);
}

@media screen and (max-width: 768px) {
    .text-foot p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .text-foot p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .post-content {
        padding: 1rem;
    }
    .create-post-container {
        padding: 15px;
    }

    .create-post-title {
        font-size: 1.5rem;
    }

    .create-post-form .btn {
        font-size: 0.9rem;
        padding: 8px;
    }
}

.comments-section {
    border-top: 2px solid #007bff; /* Divider above comments section */
    padding-top: 10px;
}

.card {
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.alert-info {
    border-radius: 8px;
    background-color: #e9f7fe;
    border: 1px solid #b5e4f9;
}

.pagination .page-item .page-link {
    color: #007bff;
}

.pagination .page-item .page-link:hover {
    color: #0056b3;
    text-decoration: none;
}
