/* Dashboard Page Styles - 3 Column Layout */
:root {
    --primary-color: #00A0A0;
    --secondary-color: #F5F7FA;
    --text-color: #333333;
    --light-text: #666666;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --accent-color: #FF9800;
    --sidebar-width: 280px;
    --sidebar-right-width: 320px;
}

/* Dashboard Page Layout */
.dashboard-page {
    padding-top: 0;
    margin-top: 0;
    background-color: var(--secondary-color);
    min-height: 100vh;
}

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
}

/* Left Sidebar */
.dashboard-sidebar-left {
    width: var(--sidebar-width);
    background-color: var(--white);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 80px;
    left: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* User Profile Card */
.user-profile-card {
    background-color: var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--white);
}

.user-avatar {
    margin-bottom: 15px;
    cursor: pointer;
}
/* Circle avatar image */
.user-avatar .avatar-image {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.user-avatar:hover .avatar-image {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25), 0 2px 6px rgba(0,0,0,0.12);
}
.user-avatar:focus .avatar-image {
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 2px;
}

/* Change avatar button (small) */
.avatar-change-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    color: var(--white);
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.05s ease;
}
.avatar-change-btn:hover {
    background-color: rgba(255,255,255,0.25);
}
.avatar-change-btn:active {
    transform: translateY(1px);
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto;
    color: var(--white);
}

.user-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.user-email {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.user-specialty {
    font-size: 13px;
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Stats-only profile card */
.user-profile-card .user-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
}

.user-profile-card .stat-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
}

.user-profile-card .stat-label {
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 3px;
    color: var(--white);
}

.user-profile-card .stat-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
}
.user-profile-card .course-line {
    font-size: 14px;
    color: var(--white);
    padding: 2px 0;
}

/* Dashboard Navigation */
.dashboard-nav {
    flex: 1;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.nav-item.active .nav-link {
    background-color: var(--primary-color);
    color: var(--white);
}

.nav-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.nav-text {
    font-size: 14px;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.logout-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--error-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-link:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

/* Main Content Area */
.dashboard-main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-right: var(--sidebar-right-width);
    padding: 30px;
    background-color: var(--secondary-color);
    min-height: calc(100vh - 80px);
}

.main-content-inner {
    max-width: 100%;
}

/* Welcome Banner */
.welcome-banner {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.banner-content {
    flex: 1;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.welcome-description {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.5;
}

.banner-image {
    flex: 0 0 200px;
    text-align: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
}

/* Section Styles */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Content Banner Slider */
.content-banner-slider {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 300%; /* 3 slides × 100% each */
}

.banner-slide {
    min-width: calc(100% / 3);
    width: calc(100% / 3);
    flex: 0 0 calc(100% / 3);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), #008B8B);
    padding: 30px;
    position: relative;
    box-sizing: border-box;
    opacity: 1;
}

/* Remove active class styling as all slides should be visible in the flex layout */
.banner-slide.active {
    /* No special styling needed - position is controlled by transform */
}

.banner-content-slide {
    flex: 1;
    color: var(--white);
}

.banner-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.banner-content-slide h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.banner-content-slide p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.5;
}

.banner-button {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.banner-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.banner-image-slide {
    flex: 0 0 150px;
    text-align: center;
}

.banner-image-slide img {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-nav:hover {
    background-color: var(--white);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-color);
}

/* Company Projects */
.company-projects {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.projects-list {
    margin-bottom: 20px;
}

.project-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    margin-right: 15px;
}

.project-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-active {
    background-color: #E8F5E8;
    color: #2E7D32;
}

.status-planning {
    background-color: #FFF3E0;
    color: #F57C00;
}

.status-review {
    background-color: #E3F2FD;
    color: #1976D2;
}

.project-description {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.project-deadline,
.project-budget {
    color: var(--light-text);
}

.view-more-link {
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-more-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Recent Activities */
.recent-activities {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.activities-list {
    space-y: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background-color: #E8F4F4;
}

.activity-icon {
    font-size: 20px;
    margin-right: 15px;
    margin-top: 2px;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.activity-content p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: var(--light-text);
    opacity: 0.8;
}

/* Right Sidebar */
.dashboard-sidebar-right {
    width: var(--sidebar-right-width);
    background-color: var(--white);
    border-left: 1px solid var(--border-color);
    position: fixed;
    top: 80px;
    right: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.dashboard-sidebar-right .sidebar-content {
    padding: 20px;
}

/* Widget Styles */
.widget {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding: 20px 20px 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* Announcements Widget */
.announcements-widget {
    border: 1px solid var(--border-color);
}

.announcements-list {
    padding: 0 20px;
}

.announcement-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-date {
    font-size: 12px;
    color: var(--light-text);
    display: block;
    margin-bottom: 5px;
}

.announcement-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.3;
}

.announcement-excerpt {
    font-size: 13px;
    color: var(--light-text);
    line-height: 1.4;
}

.view-all-link {
    display: block;
    text-align: center;
    padding: 15px 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-all-link:hover {
    background-color: #E8F4F4;
}

/* Inquiry Widget */
.inquiry-widget {
    border: 1px solid var(--border-color);
}

.inquiry-stats {
    padding: 0 20px 20px;
}

.inquiry-urgent {
    background: linear-gradient(135deg, #FF5722, #F44336);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--white);
}

.urgent-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.urgent-label {
    font-size: 14px;
    opacity: 0.9;
}

.inquiry-list {
    margin-bottom: 20px;
}

.inquiry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.inquiry-item:last-child {
    border-bottom: none;
}

.inquiry-label {
    font-size: 14px;
    color: var(--text-color);
}

.inquiry-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.inquiry-action-button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.inquiry-action-button:hover {
    background-color: #008B8B;
}

/* Quick Links Widget */
.quick-links-widget {
    border: 1px solid var(--border-color);
}

.quick-links-list {
    padding: 0 20px 20px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.quick-link-item:last-child {
    border-bottom: none;
}

.quick-link-item:hover {
    color: var(--primary-color);
}

.link-icon {
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.link-text {
    font-size: 14px;
}

/* Support Widget */
.support-widget {
    border: 1px solid var(--border-color);
}

.support-content {
    padding: 0 20px 20px;
}

.support-content p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.5;
    margin-bottom: 15px;
}

.support-button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.support-button:hover {
    background-color: #F57C00;
}

/* Login Required */
.login-required {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--white);
    border-radius: 12px;
    margin: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.login-required p {
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--text-color);
}

.login-btn, .register-btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.login-btn:hover {
    background-color: #008B8B;
}

.register-btn {
    background-color: var(--accent-color);
    color: var(--white);
}

.register-btn:hover {
    background-color: #F57C00;
}

/* Responsive Design */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 250px;
        --sidebar-right-width: 280px;
    }
}

@media (max-width: 992px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .dashboard-sidebar-left {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        box-shadow: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dashboard-main-content {
        margin-left: 0;
        margin-right: 0;
        padding: 20px;
    }
    
    .dashboard-sidebar-right {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        box-shadow: none;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .welcome-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content {
        margin-bottom: 20px;
    }
    
    .banner-image {
        flex: none;
    }
    
    .actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        margin-top: 60px;
    }
    
    .dashboard-sidebar-left,
    .dashboard-sidebar-right {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .dashboard-main-content {
        padding: 15px;
        min-height: calc(100vh - 60px);
    }
    
    .welcome-banner {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .quick-actions,
    .recent-activities {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .user-profile-card {
        padding: 15px;
    }
    
    .widget {
        margin-bottom: 15px;
    }
    
    .widget-title {
        font-size: 16px;
        padding: 15px 15px 0;
    }
    
    .announcements-list,
    .stats-list,
    .quick-links-list {
        padding: 0 15px 15px;
    }
    
    .support-content {
        padding: 0 15px 15px;
    }
}

@media (max-width: 576px) {
    .nav-link {
        padding: 10px 12px;
    }
    
    .nav-text {
        font-size: 13px;
    }
    
    .welcome-title {
        font-size: 20px;
    }
    
    .welcome-description {
        font-size: 14px;
    }
    
    .action-card {
        padding: 15px;
    }
    
    .action-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .action-card h3 {
        font-size: 15px;
    }
    
    .action-card p {
        font-size: 13px;
    }
    
    .activity-item {
        padding: 12px;
    }
    
    .activity-content h4 {
        font-size: 15px;
    }
    
    .activity-content p {
        font-size: 13px;
    }
}

/* Hidden elements for better mobile experience */
@media (max-width: 992px) {
    .dashboard-sidebar-left {
        order: -1;
    }
    
    .dashboard-main-content {
        order: 0;
    }
    
    .dashboard-sidebar-right {
        order: 1;
    }
}

/* ============================
   Consultation Page Tweaks
   ============================ */

/* Form action buttons */
.consultation-form .form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
}
.consultation-form .form-actions .submit-btn.primary {
    font-size: 14px;
    padding: 10px 16px;
    line-height: 1.1;
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: background .2s ease, transform .05s ease;
}
.consultation-form .form-actions .submit-btn.primary:hover {
    background: #008B8B;
}
.consultation-form .form-actions .submit-btn.primary:active {
    transform: translateY(1px);
}
.consultation-form .form-actions .cancel-btn {
    font-size: 14px;
    padding: 8px 14px;
    line-height: 1.1;
    border-radius: 8px;
    background: #fff;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background .2s ease, transform .05s ease, color .2s ease;
}
.consultation-form .form-actions .cancel-btn:hover {
    background: var(--secondary-color);
}
.consultation-form .form-actions .cancel-btn:active {
    transform: translateY(1px);
}

/* List action buttons (history / answers) */
.consultations-list .consultation-actions .view-btn,
.consultations-list .consultation-actions .edit-btn,
.consultations-list .consultation-actions .remind-btn,
.answers-list .answer-actions .read-more-btn,
.answers-list .answer-actions .helpful-btn {
    font-size: 13px;
    padding: 8px 12px;
    line-height: 1.1;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .05s ease, border-color .2s ease;
}
.consultations-list .consultation-actions .view-btn:hover,
.consultations-list .consultation-actions .edit-btn:hover,
.consultations-list .consultation-actions .remind-btn:hover,
.answers-list .answer-actions .read-more-btn:hover,
.answers-list .answer-actions .helpful-btn:hover {
    background: var(--secondary-color);
    border-color: #d6d6d6;
}
.consultations-list .consultation-actions .view-btn:active,
.consultations-list .consultation-actions .edit-btn:active,
.consultations-list .consultation-actions .remind-btn:active,
.answers-list .answer-actions .read-more-btn:active,
.answers-list .answer-actions .helpful-btn:active {
    transform: translateY(1px);
}

/* Card styling for history and expert answers */
.consultations-list .consultation-item,
.answers-list .answer-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.consultations-list .consultation-item .consultation-header {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.consultations-list .consultation-item .consultation-content {
    margin-bottom: 10px;
}
.consultations-list .consultation-item .consultation-title {
    margin: 0 0 6px;
    font-size: 16px;
}
.consultations-list .consultation-item .consultation-excerpt {
    margin: 0 0 8px;
    color: var(--light-text);
    font-size: 13px;
}
.consultations-list .consultation-item .consultation-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--light-text);
}

/* Expert answers layout tweaks */
.answers-list .answer-item .expert-info {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}
.answers-list .answer-item .answer-content .answered-question {
    margin: 0 0 6px;
    font-size: 16px;
}
.answers-list .answer-item .answer-content .answer-excerpt {
    margin: 0 0 10px;
    color: var(--light-text);
    font-size: 13px;
}
.answers-list .answer-item .answer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* FAQ in Q&A style (accordion) */
.faq-list .faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-list .faq-item .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.faq-list .faq-item .faq-question h4 {
    margin: 0;
    font-size: 16px;
}
.faq-list .faq-item .faq-toggle {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-color);
    transition: transform .2s ease, color .2s ease;
}
.faq-list .faq-item.open .faq-toggle {
    transform: rotate(45deg); /* '+' -> 'x' で開いている視覚 */
    color: var(--primary-color);
}
.faq-list .faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, margin .2s ease;
}
.faq-list .faq-item.open .faq-answer {
    max-height: 600px; /* 十分な高さ */
    margin-top: 8px;
}

/* Responsive refinements for consultation cards */
@media (max-width: 576px) {
    .consultations-list .consultation-item,
    .answers-list .answer-item,
    .faq-list .faq-item {
        padding: 12px;
    }
    .consultation-form .form-actions .submit-btn.primary,
    .consultation-form .form-actions .cancel-btn {
        width: auto;
        min-width: 120px;
    }
}

/* ============================
   Sidebar Right unified tweaks (Community / Learning)
   ============================ */
.dashboard-sidebar-right .widget .widget-title {
  /* already padded: keep */
}
.dashboard-sidebar-right .quick-actions-list,
.dashboard-sidebar-right .guidelines-content,
.dashboard-sidebar-right .notifications-list,
.dashboard-sidebar-right .goals-content,
.dashboard-sidebar-right .certificates-list,
.dashboard-sidebar-right .tips-content {
  padding: 0 20px 20px;
}
.dashboard-sidebar-right .quick-actions-list,
.dashboard-sidebar-right .certificates-list,
.dashboard-sidebar-right .notifications-list {
  display: grid;
  gap: 12px;
}
.dashboard-sidebar-right .guidelines-list {
  margin: 0;
  padding-left: 18px;
}
.dashboard-sidebar-right .view-all-notifications,
.dashboard-sidebar-right .view-all-certificates {
  display: block;
  text-align: center;
  margin: 8px 20px 16px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
}
.dashboard-sidebar-right .goal-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dashboard-sidebar-right .goal-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-color);
}
.dashboard-sidebar-right .certificate-item,
.dashboard-sidebar-right .notification-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
