/* Dashboard carousel starts here */
#motivationalCarousel {
    position: relative;
    margin-bottom: 30px;
    border-radius: 12px; /* Added border radius */
    overflow: hidden; /* Ensure content respects the border radius */
}
.carousel-bg {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
}
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.842);
}
.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}
.carousel-text {
    font-size: 2rem; /* Default size */
    font-weight: bold;
    margin-bottom: 10px;
}
@media (min-width: 1024px) {
    .carousel-text {
        font-size: 3rem; /* Larger size for desktop */
    }
}
.carousel-author {
    font-size: 1.2rem;
    font-style: italic;
}
@media (max-width: 768px) {
    .carousel-text {
        font-size: 1.8rem; /* Increased size for mobile */
    }
    .carousel-author {
        font-size: 1.2rem; /* Adjusted size for mobile */
    }
}
.carousel-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.carousel-pagination button {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.carousel-pagination button.active {
    background-color: white;
}
.carousel-pagination button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}
/* Dashboard carousel ends here */

/* Community style starts here */
.community-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.community-card {
    width: calc(33.333% - 20px);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.community-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.community-card-body {
    padding: 15px;
}
.community-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.community-card-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.community-card-users {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}
.community-card button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.community-card button:hover {
    background-color: #0056b3;
}
.search-bar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-bar input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.pagination button {
    margin: 0 5px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
}
.pagination button.active {
    background-color: #007bff;
    color: #fff;
}
.pagination button:hover {
    background-color: #0056b3;
    color: #fff;
}
.community-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.processing-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
}
.success-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    text-align: center;
}
.success-modal button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}
.success-modal button:hover {
    background-color: #0056b3;
}
.success-modal .tick-icon {
    font-size: 40px;
    color: #28a745;
    margin-bottom: 10px;
}
/* Community style ends here */

/* Community Details style starts here */
.community-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}
.community-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
}
.community-info {
    flex: 1;
}
.community-info h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}
.community-info p {
    margin: 5px 0;
    color: #666;
}
.community-info .members {
    font-size: 14px;
    color: #333;
}
.search-bar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-bar input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.post-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.post-card-body {
    padding: 15px;
}
.post-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.post-card-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.post-card-footer {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-card-footer em {
    margin-right: 5px;
}
/* Community Details style ends here */

/* Upcoming Counseling Sessions widget starts here */
.nk-schedule {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nk-schedule-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}
.nk-schedule-item:last-child {
    border-bottom: none;
}
.nk-schedule-info {
    display: flex;
    align-items: center; /* Vertically align content */
    justify-content: space-between; /* Space between text and button */
}
.nk-schedule-info .avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px; /* Space between avatar and text */
}
.nk-schedule-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}
.nk-schedule-time,
.nk-schedule-date {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nk-schedule-time em,
.nk-schedule-date em {
    font-size: 16px;
    color: #007bff;
    margin-right: 5px;
}
/* Join Now button */
.nk-schedule-info .btn-primary {
    font-size: 14px;
    padding: 5px 10px;
    text-transform: uppercase;
    white-space: nowrap; /* Prevent text wrapping */
}
.nk-schedule-info .btn-primary:hover {
    background-color: #0056b3;
    color: #fff;
}
/* Upcoming Counseling Sessions widget ends here */

/* Recent Articles widget */
.nk-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nk-article-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}
.nk-article-item:last-child {
    border-bottom: none;
}
.nk-article-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}
.nk-article-date {
    font-size: 14px;
    color: #666;
}

/* Notepad widget */
#notepad {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    resize: none;
}
#notepad:focus {
    outline: none;
    border-color: #007bff;
}
.nk-notes {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nk-notes li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.nk-notes li:last-child {
    border-bottom: none;
}
.nk-notes p {
    margin: 0 0 5px;
    font-size: 14px;
    color: #333;
}
.nk-notes small {
    font-size: 12px;
    color: #666;
}
.btn-primary.w-100 {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 10px;
}

/* Analytics Widget */
.analytics-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.analytics-item {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}
.analytics-label {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}
.analytics-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e9ecef;
    margin-top: 10px;
}
.progress-bar {
    height: 100%;
    transition: width 0.6s ease;
}

/* Global Time and Date Styling */
.nk-schedule-time em,
.nk-schedule-date em {
    font-size: 16px;
    color: #007bff;
    margin-right: 5px;
}
.nk-schedule-time,
.nk-schedule-date {
    display: flex;
    align-items: center;
    gap: 5px;
}