/* ===================================
   Expert Profile Page Styles
   =================================== */

/* Layout */
.expert-profile-page {
    padding: 40px 0;
}

.expert-profile-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

.expert-profile-main {
    min-width: 0;
}

.expert-profile-sidebar {
    min-width: 0;
    position: sticky;
    top: 20px;
    margin-left: 40px;
}

/* ===================================
   Expert Profile Section
   =================================== */
.expert-profile-section {
    margin-bottom: 40px;
}

.expert-profile-heading {
    font-size: 32px;
    font-weight: 700;
    color: #004431;
    margin-bottom: 30px;
}

.expert-profile-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: start;
    gap: 30px;
    background: #fff;
    padding: 0;
}

.expert-profile-photo {
    width: 300px;
}

.expert-profile-photo img {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    object-fit: cover;
}

.expert-profile-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.expert-name {
    font-size: 24px;
    font-weight: 700;
    color: #004431;
    margin-bottom: 8px;
}

.expert-title {
    font-size: 16px;
    color: #727A86;
    margin-bottom: 20px;
}

.expert-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #2B2E32;
    font-weight: 700;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom Scrollbar for Expert Bio */
.expert-bio::-webkit-scrollbar {
    width: 5px;
}

.expert-bio::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.expert-bio::-webkit-scrollbar-thumb {
    background: #c8c8c8;
    border-radius: 3px;
}

.expert-bio::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.answered-question{
    font-size: 16px;
    color: #2B2E32;
    font-weight: lighter;
}

.expert-bio p {
    margin-bottom: 15px;
}

.btn-ask-question {
    background: #CFF473;
    color: #00482F;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 0;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-ask-question:hover {
    background: #b5db2d;
}

.expert-passion {
    color: #2B2E32;
    font-weight: normal;
}

/* ===================================
   Articles Sidebar
   =================================== */
.expert-articles-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.sidebar-heading {
    font-size: 18px;
    font-weight: normal;
    color: #004431 ;
    margin-bottom: 20px;
    text-align: center;
}

.expert-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expert-article-item {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
}

.expert-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-date {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
    text-transform: capitalize;
}
.article-date span {
    color: #004431;
    text-transform: uppercase;
}

.article-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

/* ===================================
   FAQ Section
   =================================== */
.expert-faq-section {
    margin-bottom: 40px;
    overflow: hidden;
}

/* Override block-accordion margins for this page */
.expert-faq-section .block-content.block-accordion {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-width: 100%;
    overflow: hidden;
}

.expert-faq-section .block-accordion .container {
    padding: 0;
    max-width: 100%;
}

.expert-faq-section .block-accordion .container .row {
    margin-left: 0;
    margin-right: 0;
}

.expert-faq-section .block-accordion .container .row .col-md-12 {
    padding-left: 0;
    padding-right: 0;
}

.expert-faq-section .block-accordion.panel-group {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.expert-faq-section .block-accordion .heading {
    display: none;
}

.faq-heading {
    font-size: 24px;
    font-weight: 700;
    color: #004431;
    margin-bottom: 10px;
}

.faq-subtitle {
    font-size: 16px;
    color: #727A86;
    margin-bottom: 0;
    text-align: start !important;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
}

.faq-item:first-child {
    border-top: 1px solid #e5e5e5;
}

.faq-question {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 15px;
    font-family: 'jenius-sans, sans-serif' !important;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: background 0.3s ease;
    overflow: hidden;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    transition: transform 0.3s ease;
    border: 2px solid #004431;
    border-radius: 50%;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-question-text {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
    font-family: 'jenius-sans', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer-content {
    background: rgba(207, 244, 115, 0.15);
    padding: 25px 40px 25px 36px;
    margin-bottom: 0;
}

.faq-answer-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0 15px;
    letter-spacing: 0.3px;
}

/* ===================================
   Other Experts Section
   =================================== */
.other-experts-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.expert-card {
    text-align: center;
}

.expert-card-photo {
    margin-bottom: 15px;
}

.expert-card-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: contain;
    margin: 0 auto;
}

.expert-card-name {
    font-size: 24px;
    font-weight: 700;
    color: #004431;
    margin-bottom: 5px;
    font-family: 'jenius-serif', serif;
}

.expert-card-profession {
    font-size: 14px;
    color: #004431;
    margin-bottom: 15px;
}

.btn-lihat-ahli {
    display: inline-block;
    color: #004431;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}
.btn-lihat-ahli span {
    color: #CFF473;
    font-size: 20px;
    line-height: 20px;
    display: inline-block;
    justify-self: center;
}

.btn-lihat-ahli:hover {
}

/* ===================================
   Ask Question Section
   =================================== */
.ask-question-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.ask-question-heading {
    font-size: 24px;
    font-weight: 700;
    color: #004431;
    margin-bottom: 10px;
}

.ask-question-subtitle {
    font-size: 16px;
    color: #2B2E32;
    margin-bottom: 25px;
    line-height: 1.6;
}

.ask-question-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Age Verification Notice */
.age-verification-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px 20px;
    background: rgba(114, 122, 134, 0.3);;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #727A86;
}

.verification-text {
    margin: 0;
    font-size: 14px;
    color: #2B2E32;
    font-weight: 500;
}

.btn-verify-age {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #004431;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-verify-age:hover {
    background: #F8F8F8;
    border-color: #004431;
    box-shadow: 0 2px 4px rgba(0, 68, 49, 0.1);
}

.btn-verify-age svg {
    flex-shrink: 0;
}

.question-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.question-textarea:focus {
    outline: none;
    border-color: #c8f041;
}

.file-upload-section {
    padding: 0 20px;
    margin: 0 !important;
}

.file-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.upload-title {
    font-size: 16px;
    font-weight: 600;
    color: #2B2E32;
}

.upload-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.file-limit-text {
    font-size: 14px;
    color: #727A86;
}

.btn-upload-file {
    background: #CFF473;
    color: #004431;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.btn-upload-file:hover {
    background: #b5db2d;
}

.btn-upload-file svg {
    flex-shrink: 0;
}

.uploaded-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #727A86;
    border-radius: 6px;
}

.file-name {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    flex: 1;
    margin-right: 10px;
}

.file-size {
    font-size: 12px;
    color: #999;
    margin-right: 10px;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #727A86;
    cursor: pointer;
    padding: 5px 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    font-size: 16px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-remove-file:hover {
    color: #e74c3c;
}

.btn-remove-file i {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
}

/* Fallback if Font Awesome doesn't load */
.btn-remove-file::before {
    content: "×";
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    display: none;
}

.btn-remove-file:not(:has(i))::before {
    display: inline-block;
}

.privacy-confirmation {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.privacy-text {
    font-size: 14px;
        font-weight: 600;
        color: #2B2E32;
}
.privacy-text :required {
    color: red;
    font-size: 14px;
}

.privacy-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}
.radio-option span {
    font-weight: 500;
    color:#3D4148;
}

.radio-option input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    appearance: auto !important;
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
    margin: 0 !important;
    position: relative !important;
    flex-shrink: 0;
}

.privacy-confirmation input[type="radio"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-submit-question {
    background: #c8f041;
    color: #00482F;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.btn-submit-question:hover {
    background: #b5db2d;
}

.btn-submit-question:disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-submit-question:disabled:hover {
    background: #e5e5e5;
}

/* ===================================
   Success Modal
   =================================== */
.modal-overlay {
    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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-icon svg {
    width: 64px;
    height: 64px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color:#004431;
    margin: 0 0 15px 0;
    font-family: 'jenius-serif', serif;
}

.modal-message {
    font-size: 14px;
    color: #3D4148;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.btn-modal-ok {
    background: #CFF473;
    color: #004431;
    border: none;
    padding: 12px 15px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 120px;
}

.btn-modal-ok:hover {
    background: #b5db2d;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .expert-profile-layout {
        grid-template-columns: 1fr;
    }

    .expert-profile-sidebar {
        order: 2;
        position: static;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .expert-profile-page {
        padding: 24px 0;
    }

    .expert-profile-layout {
        padding: 0;
    }

    .container {
        padding-left: 0;
        padding-right: 0;
    }

    .expert-profile-section {
        margin-bottom: 32px;
    }

    .expert-profile-card {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .expert-profile-photo {
        max-width: 200px;
        margin: 0 auto;
    }

    .expert-profile-info {
        padding: 16px 0 0 0;
    }

    .expert-profile-heading {
        font-size: 24px;
        margin-bottom: 20px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .expert-name {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .expert-title {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .expert-bio {
        font-size: 14px;
        line-height: 1.6;
    }

    .expert-bio p {
        margin-bottom: 12px;
    }

    .btn-ask-question {
        padding: 12px 24px;
        font-size: 14px;
        margin: 16px 0;
    }

    .expert-faq-section {
        margin-bottom: 32px;
    }

    .faq-heading {
        font-size: 20px;
        margin-bottom: 8px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .faq-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .faq-question {
        padding: 16px 0;
        font-size: 14px;
        gap: 12px;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
    }

    .faq-answer-content {
        padding: 20px 16px;
    }

    .faq-answer-content p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    .faq-answer-content h4 {
        font-size: 12px;
        margin: 16px 0 12px;
    }

    .expert-articles-sidebar {
        padding: 20px 16px;
        margin-bottom: 16px;
    }

    .sidebar-heading {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .other-experts-section {
        padding: 24px 20px;
        margin-bottom: 16px;
    }

    .expert-card-photo img {
        width: 100px;
        height: 100px;
    }

    .expert-card-name {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .expert-card-profession {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .ask-question-section {
        padding: 24px 16px;
        margin-bottom: 16px;
    }

    .ask-question-heading {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .ask-question-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .file-upload-section {
        padding: 0 8px;
    }

    .file-upload-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .upload-title {
        font-size: 14px;
    }

    .upload-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }

    .file-limit-text {
        font-size: 12px;
    }

    .btn-upload-file {
        font-size: 13px;
        padding: 8px 16px;
    }

    .privacy-confirmation {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .privacy-text {
        font-size: 13px;
    }

    .privacy-options {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .radio-option {
        flex: 0 0 auto;
        font-size: 13px;
    }

    .age-verification-notice {
        padding: 20px 16px;
        margin-bottom: 16px;
    }

    .verification-text {
        font-size: 13px;
    }

    .btn-verify-age {
        font-size: 13px;
        padding: 8px 16px;
    }

    .modal-content {
        padding: 30px 20px;
        max-width: 90%;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-message {
        font-size: 13px;
    }

    .modal-icon svg {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .expert-profile-page {
        padding: 16px 0;
    }

    .expert-profile-layout {
        padding: 0;
    }

    .container {
        padding-left: 0;
        padding-right: 0;
    }

    .expert-profile-section {
        margin-bottom: 24px;
    }

    .expert-profile-card {
        padding: 0 12px;
    }

    .expert-profile-heading {
        font-size: 20px;
        margin-bottom: 16px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .expert-profile-photo {
        max-width: 180px;
    }

    .expert-name {
        font-size: 18px;
    }

    .expert-title {
        font-size: 13px;
    }

    .expert-bio {
        font-size: 13px;
    }

    .btn-ask-question {
        padding: 10px 20px;
        font-size: 13px;
        margin: 12px 0;
    }

    .expert-faq-section {
        margin-bottom: 24px;
    }

    .faq-heading {
        font-size: 18px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .faq-subtitle {
        font-size: 13px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .faq-question {
        padding: 14px 0;
        font-size: 13px;
    }

    .faq-icon {
        width: 26px;
        height: 26px;
    }

    .faq-answer-content {
        padding: 16px 12px;
    }

    .faq-answer-content p {
        font-size: 13px;
    }

    .expert-articles-sidebar {
        padding: 16px 12px;
    }

    .sidebar-heading {
        font-size: 15px;
    }

    .other-experts-section {
        padding: 20px 16px;
    }

    .ask-question-section {
        padding: 20px 12px;
    }

    .ask-question-heading {
        font-size: 18px;
    }

    .ask-question-subtitle {
        font-size: 13px;
    }

    .file-upload-section {
        padding: 0 4px;
    }

    .privacy-confirmation {
        padding: 12px;
    }

    .btn-submit-question {
        width: 50%;
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ===================================
   Loading Overlay
   =================================== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.loading-spinner p {
    font-size: 16px;
    font-weight: 600;
    color: #004431;
    margin: 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #CFF473;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}