/* css/about.css */

.about-page-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 80px;
    /* More space between main sections */
}



/* Profile Section */
:root {
    --accent-color-rgb: 0, 169, 255;
    /* RGB values for #00A9FF */
}

[data-theme="light"] {
    --accent-color-rgb: 0, 169, 255;
}

[data-theme="dark"] {
    --accent-color-rgb: 0, 102, 204;
}

.profile-section {
    display: flex;
    align-items: start;
    gap: 50px;
    width: 100%;
}

.profile-left-column {
    flex-shrink: 0;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-image-wrapper {
    width: 100%;
    border-radius: var(--radius-card, 6px);
    overflow: hidden;
    border: 2px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-image-wrapper img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-card, 6px);
}

/* Profile Info Card - Simplified */
.profile-info-card {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--title-color);
    margin: 0;
}

.profile-username {
    font-size: 16px;
    color: var(--paragraph-color);
    margin: 5px 0 0 0;
    opacity: 0.8;
}

.profile-bio {
    font-size: 14px;
    line-height: 1.5;
    color: var(--paragraph-color);
}

.profile-bio p {
    margin: 0;
    margin-bottom: 5px;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-tag, 4px);
    color: var(--accent-color);
    font-weight: 500;
    font-size: 12px;
    width: fit-content;
}

.profile-badge i {
    font-size: 12px;
}

.profile-stats {
    color: var(--paragraph-color);
    opacity: 0.8;
}

.profile-location,
.profile-website,
.profile-birthday,
.profile-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--paragraph-color);
}

.profile-location i,
.profile-website i,
.profile-birthday i,
.profile-email i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.profile-website a,
.profile-email a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.profile-website a:hover,
.profile-email a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.profile-social {
    display: flex;
    gap: 15px;
    padding-top: 5px;
}

.profile-social a {
    color: var(--paragraph-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.profile-social a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.profile-content .page-header {
    text-align: left;
    align-items: flex-start;
    margin-bottom: 20px;
}

.profile-content .page-header h1 {
    margin-bottom: 10px;
    /* Inherits other styles from base.css h1 */
}

.details-from-cms {
    font-size: 16px;
    line-height: 1.8;
}

/* Style the content coming from TinyMCE */
.details-from-cms ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.details-from-cms li {
    padding-left: 25px;
    position: relative;
}

.details-from-cms li::before {
    content: '\f058';
    /* Font Awesome checkmark icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent-color);
}

.details-from-cms strong {
    color: var(--title-color);
    font-weight: 600;
}

/* Action Links Section */
.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.action-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
}

.action-icon {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* .action-card h3 inherits from base.css h3 styles */
.action-card p {
    flex-grow: 1;
    /* Pushes button to the bottom */
}

.action-card .outline-btn {
    margin-top: auto;
    width: 80%;
}

/* Animations */


/* Responsive */
@media (max-width: 992px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-content .page-header {
        align-items: center;
    }

    .details-from-cms li {
        text-align: left;
        /* Keep list items aligned left */
    }

    .action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Typography inherits from base.css responsive styles */

    /* Profile Section Responsive */
    .profile-section {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .profile-left-column {
        max-width: 280px;
        align-items: center;
    }

    .profile-image-wrapper {
        max-width: 200px;
    }

    .profile-info-card {
        width: 100%;
        text-align: center;
    }

    .profile-badge {
        margin: 0 auto;
    }

    .profile-social {
        justify-content: center;
    }
}

/* About-specific section title adjustments */
.section-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.section-title p {
    max-width: 800px;
}

/* Card Container Styles */
.card-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* FAQ Section */
.faq-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px !important;
}

.faq-card {
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--title-color);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.faq-card.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, margin-top 0.4s ease-out;
    padding-top: 0;
    margin-top: 0;
    border-left: 3px solid var(--card-border);
    padding-left: 15px;
}

.faq-card.active .faq-answer {
    margin-top: 20px;
    padding-top: 5px;
    max-height: 200px;
    border-left-color: var(--accent-color);
}

/* FAQ Show More Functionality */
.faq-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.faq-show-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.faq-showing .faq-hidden {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation for multiple FAQs */
.faq-showing .faq-hidden:nth-child(6) {
    animation-delay: 0.1s;
}

.faq-showing .faq-hidden:nth-child(7) {
    animation-delay: 0.2s;
}

.faq-showing .faq-hidden:nth-child(8) {
    animation-delay: 0.3s;
}

.faq-showing .faq-hidden:nth-child(9) {
    animation-delay: 0.4s;
}

.faq-showing .faq-hidden:nth-child(10) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Show More Button Animation */
#faq-show-more-btn {
    transition: all 0.3s ease;
}

#faq-show-more-btn i {
    transition: transform 0.3s ease;
}

#faq-show-more-btn.showing i {
    transform: rotate(180deg);
}

/* FAQ Mobile Styles */
@media (max-width: 768px) {
    .faq-show-more-container {
        margin: 30px 10px 0;
    }

    #faq-show-more-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .about-page-container {
        gap: 40px;
    }

    .profile-left-column {
        max-width: 100%;
    }

    .profile-image-wrapper {
        max-width: 160px;
    }

    .profile-details {
        font-size: 13px;
        word-break: break-all;
    }

    .profile-email a,
    .profile-website a {
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .action-card {
        padding: 16px 12px;
    }

    .action-card .outline-btn {
        width: 100%;
        font-size: 13px;
        padding: 10px;
    }

    .faq-question {
        font-size: 15px;
        gap: 8px;
    }

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