    /* ===================================
   Community Page - Facebook Style Design
   Based on Logo Colors: Orange & Blue
   =================================== */

/* ============= Community Modern Section ============= */
.community-modern-section {
    padding: 2rem 0;
    background: #f0f2f5;
    min-height: calc(100vh - 80px);
}

/* ============= Membership Required Modern ============= */
.membership-required-modern {
    background: white;
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 600px;
    margin: 4rem auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.lock-icon-modern {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #FF9500, #FFA726);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.lock-icon-modern i {
    font-size: 3rem;
    color: white;
}

.membership-required-modern h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.membership-required-modern p {
    font-size: 1.125rem;
    color: #5A6C7D;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.membership-benefits-modern {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    text-align: right;
}

[dir="rtl"] .membership-benefits-modern {
    text-align: right;
}

[dir="ltr"] .membership-benefits-modern {
    text-align: left;
}

.benefit-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fb;
    border-radius: 12px;
}

.benefit-item-modern i {
    color: #FF9500;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-item-modern span {
    color: #2C3E50;
    font-size: 1rem;
}

/* ============= Community Tabs Modern - Facebook Style ============= */
.community-tabs-modern {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    border-bottom: 1px solid #e4e6eb;
}

.tab-btn-modern {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #65676b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn-modern i {
    font-size: 1.25rem;
}

.tab-btn-modern:hover {
    background: #f2f3f5;
}

.tab-btn-modern.active {
    color: #FF9500;
    border-bottom-color: #FF9500;
    background: transparent;
}

/* ============= Forum Section Modern - Facebook Style ============= */
.forum-section-modern {
    background: transparent;
}

.forum-section-modern.facebook-style {
    max-width: 680px;
    margin: 0 auto;
}

/* ============= Create Post Box - Facebook Style ============= */
.create-post-box {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.create-post-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e4e6eb;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF9500, #FFA726);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
}

.create-post-input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: #f0f2f5;
    border: none;
    border-radius: 20px;
    text-align: right;
    color: #65676b;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

[dir="ltr"] .create-post-input {
    text-align: left;
}

.create-post-input:hover {
    background: #e4e6eb;
}

.create-post-actions {
    display: flex;
    gap: 0.5rem;
}

.create-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #65676b;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.create-action-btn:hover {
    background: #f0f2f5;
}

.create-action-btn i {
    color: #FF9500;
    font-size: 1.25rem;
}

/* Section header removed - using create post box instead */

/* ============= Forum Posts Modern - 100% Facebook Clone ============= */
.forum-posts-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-post-card-modern {
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    border: none;
    overflow: visible;
}

/* No hover effect on post card itself */

.pinned-badge-modern {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #FF9500;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 10;
}

[dir="rtl"] .pinned-badge-modern {
    left: auto;
    right: 0.75rem;
}

/* ============= Post Header - Facebook Style ============= */
.post-header-modern {
    padding: 12px 16px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.post-author-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.author-avatar-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.author-avatar-modern:hover {
    opacity: 0.9;
}

.author-avatar-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF9500, #FFA726);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
}

.author-info-modern {
    flex: 1;
    min-width: 0;
}

.author-info-modern h4 {
    font-size: 15px;
    color: #050505;
    margin: 0 0 2px 0;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.3333;
}

.author-info-modern h4:hover {
    text-decoration: underline;
}

.post-time-modern {
    font-size: 13px;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3333;
}

.post-time-modern i {
    font-size: 12px;
}

/* Post Options Button */
.post-options-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676b;
    cursor: pointer;
    transition: background 0.1s ease;
    background: transparent;
    border: none;
    font-size: 20px;
}

.post-options-btn:hover {
    background-color: #f2f3f5;
}

/* ============= Post Content - Facebook Style ============= */
.post-content-modern {
    padding: 0 16px 0;
}

.post-title-modern {
    font-size: 15px;
    color: #050505;
    margin: 12px 0 4px 0;
    line-height: 1.3333;
    font-weight: 600;
}

.post-excerpt-modern {
    font-size: 15px;
    color: #050505;
    line-height: 1.3333;
    word-break: break-word;
    margin: 0;
    padding: 0 0 12px 0;
}

/* ============= Post Engagement Bar - Facebook Style ============= */
.post-engagement {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 20px;
}

.post-reactions-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.reactions-icons {
    display: flex;
    align-items: center;
}

.reaction-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -4px;
    font-size: 10px;
    border: 2px solid white;
}

.reaction-icon:first-child {
    margin-right: 0;
}

.reaction-icon.like {
    background: #0866FF;
    color: white;
}

.reaction-icon.love {
    background: #F33E58;
    color: white;
}

.reaction-icon.haha {
    background: #F7B125;
    color: white;
}

.reactions-count {
    font-size: 15px;
    color: #65676b;
    line-height: 1.3333;
}

.reactions-count:hover {
    text-decoration: underline;
}

.post-stats-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #65676b;
}

.stat-link {
    cursor: pointer;
    line-height: 1.3333;
}

.stat-link:hover {
    text-decoration: underline;
}

/* ============= Post Actions Bar - Facebook Style ============= */
.post-actions-bar {
    border-top: 1px solid #e4e6eb;
    border-bottom: 1px solid #e4e6eb;
    display: flex;
    padding: 4px 4px;
    margin: 0 12px;
}

.post-action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #65676b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s ease;
    line-height: 1.3333;
}

.post-action-button:hover {
    background-color: #f2f3f5;
}

.post-action-button.active {
    color: #0866FF;
}

.post-action-button.active.love {
    color: #F33E58;
}

.post-action-button i {
    font-size: 18px;
}

/* Sidebar removed - Facebook style single column */

/* ============= Books Section Modern ============= */
.books-section {
    padding: 2rem 0;
}

.section-header-community {
    margin-bottom: 2rem;
}

.section-header-community h2 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

.section-header-community p {
    color: #5A6C7D;
    font-size: 1rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.book-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.book-cover {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #f8f9fb;
}

.book-cover-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #45B7D1, #5FCFE5);
}

.book-cover-default i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.book-info {
    padding: 2rem;
}

.book-info h3 {
    font-size: 1.25rem;
    color: #2C3E50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.book-author {
    color: #5A6C7D;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-author i {
    color: #45B7D1;
}

.book-description {
    color: #5A6C7D;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.book-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #E1E8ED;
}

.book-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #5A6C7D;
}

.book-meta i {
    color: #45B7D1;
}

/* ============= Live Sessions Section Modern ============= */
.sessions-full-section {
    padding: 2rem 0;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.session-card-full {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.session-card-full:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.session-header-card {
    background: linear-gradient(135deg, #45B7D1, #5FCFE5);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.session-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    min-width: 80px;
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1;
}

.date-month {
    font-size: 0.875rem;
    color: #5A6C7D;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.session-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.session-status.scheduled {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.session-body {
    padding: 2rem;
}

.session-body h3 {
    font-size: 1.5rem;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.session-description {
    color: #5A6C7D;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.session-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.session-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #5A6C7D;
    font-size: 0.95rem;
}

.session-detail-item i {
    color: #45B7D1;
    width: 20px;
    font-size: 1.125rem;
}

/* ============= Empty State - Facebook Style ============= */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.empty-state i {
    font-size: 3rem;
    color: #ccd0d5;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #65676b;
    font-size: 1rem;
}

/* ============= Button Sizes - Facebook Style ============= */
.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-primary {
    background: #FF9500;
    border: none;
    border-radius: 6px;
}

.btn-primary:hover {
    background: #E68600;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ccd0d5;
    color: #050505;
    border-radius: 6px;
}

.btn-outline:hover {
    background: #f2f3f5;
}

/* ============= Modal Styles ============= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    padding: 2rem;
    overflow-y: auto;
}

.modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.2s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    border-bottom: 1px solid #e4e6eb;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: #050505;
    margin: 0;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e4e6eb;
    color: #65676b;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
}

.modal-close:hover {
    background: #d8dadf;
}

.modal form {
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #050505;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease;
    background: #f0f2f5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #FF9500;
    background: white;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* ============= Alert Messages ============= */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.alert-success {
    background: #e8f8f0;
    color: #0f9960;
    border-left: 4px solid #0f9960;
}

[dir="rtl"] .alert-success {
    border-left: none;
    border-right: 4px solid #0f9960;
}

.alert i {
    font-size: 1.5rem;
}

/* ============= Page Header - Logo Colors ============= */
.page-header {
    background: linear-gradient(135deg, #FF9500 0%, #FFA726 100%);
    padding: 5rem 0 3rem;
    text-align: center;
    color: white;
    margin-top: 80px;
    border-bottom: 4px solid #45B7D1;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

.page-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* ============= Reactions Picker - Facebook Style ============= */
.reactions-picker-container {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

.post-action-button:hover .reactions-picker-container,
.reactions-picker-container:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.reactions-picker {
    background: white;
    border-radius: 50px;
    padding: 4px 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 4px;
}

.reaction-emoji {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.1s ease;
}

.reaction-emoji:hover {
    transform: scale(1.3);
}

.reaction-emoji:active {
    transform: scale(1.1);
}

/* ============= Animations - Subtle Facebook Style ============= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.forum-post-card-modern {
    animation: fadeIn 0.3s ease;
}

/* ============= Comments Section - Facebook Style ============= */
.post-comments-section {
    padding: 0 16px 12px;
}

.comment-form {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-input-wrapper {
    flex: 1;
    position: relative;
}

.comment-input {
    width: 100%;
    padding: 8px 12px;
    background: #f0f2f5;
    border: none;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.3333;
    resize: none;
    min-height: 36px;
    max-height: 120px;
    font-family: inherit;
}

.comment-input:focus {
    outline: none;
    background: #e4e6eb;
}

.comment-input::placeholder {
    color: #65676b;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-bubble {
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 18px;
    display: inline-block;
}

.comment-author {
    font-size: 13px;
    color: #050505;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3333;
}

.comment-text {
    font-size: 15px;
    color: #050505;
    line-height: 1.3333;
    word-break: break-word;
    margin: 0;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    margin-top: 4px;
}

.comment-action {
    font-size: 12px;
    color: #65676b;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.3333;
}

.comment-action:hover {
    text-decoration: underline;
}

.comment-time {
    font-size: 12px;
    color: #65676b;
    line-height: 1.3333;
}

/* View More Comments */
.view-more-comments {
    font-size: 15px;
    color: #65676b;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    line-height: 1.3333;
}

.view-more-comments:hover {
    text-decoration: underline;
}

/* ============= Responsive Design - Facebook Style ============= */
@media (max-width: 1024px) {
    .forum-section-modern.facebook-style {
        max-width: 100%;
    }
    
    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .community-modern-section {
        padding: 1rem 0;
    }
    
    .membership-required-modern {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }
    
    .lock-icon-modern {
        width: 80px;
        height: 80px;
    }
    
    .lock-icon-modern i {
        font-size: 2rem;
    }
    
    .membership-required-modern h3 {
        font-size: 1.5rem;
    }
    
    .membership-required-modern p {
        font-size: 1rem;
    }
    
    .community-tabs-modern {
        gap: 0;
    }
    
    .tab-btn-modern {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .tab-btn-modern span {
        display: none;
    }
    
    .tab-btn-modern i {
        font-size: 1.25rem;
    }
    
    .forum-post-card-modern {
        border-radius: 0;
        margin: 0 -1rem;
    }
    
    .post-title-modern {
        font-size: 0.9375rem;
    }
    
    .create-post-box {
        border-radius: 0;
        margin: 0 -1rem 1rem;
    }
    
    .create-post-input {
        font-size: 0.9375rem;
    }
    
    .books-grid,
    .sessions-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
}

@media (max-width: 480px) {
    .forum-post-card-modern {
        padding: 1.25rem;
    }
    
    .post-author-modern {
        flex-wrap: wrap;
    }
    
    .author-avatar-modern {
        width: 40px;
        height: 40px;
    }
    
    .post-stats-modern {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .membership-required-modern {
        padding: 1.5rem 1rem;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

/* ============= Smooth Scrolling ============= */
html {
    scroll-behavior: smooth;
}

/* ============= Focus States ============= */
button:focus,
a:focus {
    outline: 2px solid #45B7D1;
    outline-offset: 2px;
}

/* ============= Loading State ============= */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(69, 183, 209, 0.3);
    border-radius: 50%;
    border-top-color: #45B7D1;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============= Scrollbar Styling ============= */
.forum-posts-modern::-webkit-scrollbar,
.comments-list::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.forum-posts-modern::-webkit-scrollbar-track,
.comments-list::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: #f8f9fb;
    border-radius: 10px;
}

.forum-posts-modern::-webkit-scrollbar-thumb,
.comments-list::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: #45B7D1;
    border-radius: 10px;
}

.forum-posts-modern::-webkit-scrollbar-thumb:hover,
.comments-list::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #2C3E50;
}