/* Isolated Author Profile Styling */
.ca-auth-profile-page .ca-auth-hero {
    background-color: #110E1B;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #352E4C;
}

.no-margin {
    margin-bottom: 0px!important;
}

.ca-auth-profile-page .ca-auth-hero-inner {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: stretch;
}

.ca-auth-profile-page .ca-auth-avatar-wrap {
    flex-shrink: 0;
    width: 220px;
}

.ca-auth-profile-page .ca-auth-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ca-auth-profile-page .ca-auth-info {
    flex-grow: 1;
}

.ca-auth-profile-page .ca-auth-name {
    margin: 0 0 5px 0;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
}

.ca-auth-profile-page .ca-auth-job {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.8;
}

.ci-auth-top-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

.ca-auth-profile-page .ca-auth-socials {
    margin: 0 !important;
}

.ca-auth-profile-page .ca-auth-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #352E4C;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ca-auth-profile-page .ca-auth-social-link:hover {
    background-color: #CA0C04;
    transform: translateY(-3px);
}

.ca-auth-profile-page .ca-auth-social-link svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.ca-auth-profile-page .ca-auth-facts {
    margin-top: 20px;
}

.ca-auth-profile-page .ca-auth-fact-item {
    padding-right: 20px;
    border-right: 1px solid #352E4C;
}

.ca-auth-profile-page .ca-auth-fact-item:last-child {
    border-right: none;
    padding-right: 0;
}

.ca-auth-profile-page .ca-auth-fact-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
    margin-bottom: 4px;
}

.ca-auth-profile-page .ca-auth-fact-value {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
}

.ca-auth-profile-page .ca-auth-bio-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #352E4C;
}

.ca-auth-profile-page .ca-auth-bio-content {
    font-size: 17px;
    line-height: 1.6;
    color: #dadada;
}

.ca-auth-profile-page .ca-auth-expertise-section {
    margin-top: 30px;
}

.ca-auth-profile-page .ca-auth-expertise-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ca-auth-profile-page .ca-auth-expertise-tag {
    background-color: #191527;
    border: 1px solid #352E4C;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #ffffff;
}

.ca-auth-profile-page .ca-auth-content-library {
    margin-top: 60px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ca-auth-profile-page .ca-auth-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .ca-auth-profile-page .ca-auth-avatar-wrap {
        width: 180px;
        height: 180px;
    }

    .ci-auth-top-flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .ca-auth-profile-page .ca-auth-facts {
        justify-content: center;
    }

    .ca-auth-profile-page ._991_auth_n_center_ {
        text-align: center !important;
        max-width: none !important;
    }

    .ca-auth-profile-page ._991_auth_s_center_ {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: none !important;
    }

    .ca-auth-socials ._991_auth_s_center_ {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: none !important;
    }

    .ca-auth-profile-page .ca-auth-fact-item {
        border-right: none;
        padding-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .ca-auth-profile-page .ca-auth-hero {
        padding: 25px;
    }
    
    .ca-auth-profile-page .ca-auth-name {
        font-size: 32px;
    }
}

/* --- CI Redesign: Author Page Bottom Section --- */

.ci-bio-section-new {
    margin-top: 40px !important;
    padding-top: 40px !important;
    border-top: 1px solid #352E4C !important;
}

.ci-bio-title-new {
    font-size: 30px !important;
    font-weight: 400 !important;
    margin-bottom: 20px !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
}

.ci-bio-content-new {
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: #ffffff !important;
}

.ci-bio-content-new p {
    margin-bottom: 20px !important;
}

/* --- CI Redesign: Expertise & Focus --- */

.ci-expertise-section-wrapper {
    margin-top: 50px !important;
    padding: 35px !important;
    background: #110E1B !important;
    border: 1px solid #352E4C !important;
    border-radius: 20px !important;
}

.ci-expertise-title-new {
    font-size: 26px !important;
    font-weight: 400 !important;
    margin-bottom: 25px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
}

.ci-expertise-grid-new {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 12px !important;
}

.ci-expertise-short-items {
    margin-bottom: 20px !important;
}

.ci-expertise-long-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-top: 25px !important;
    border-top: 1px solid #352E4C !important;
    padding-top: 25px !important;
}

.ci-expertise-card {
    background: #191527 !important;
    border: 1px solid #352E4C !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.3s ease !important;
}

.ci-expertise-card:hover {
    background: #110E1B !important;
    border-color: #CA0C04 !important;
    transform: translateX(5px) !important;
}

.ci-expertise-card-long {
    background: #191527 !important;
    border: 1px solid #352E4C !important;
    padding: 22px 28px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 18px !important;
    transition: all 0.3s ease !important;
}

.ci-expertise-card-long:hover {
    background: #110E1B !important;
    border-color: #CA0C04 !important;
    transform: translateY(-2px) !important;
}

.ci-expertise-card-icon {
    flex-shrink: 0 !important;
    width: 28px !important;
    height: 28px !important;
    background: #CA0C04 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ci-expertise-card-long .ci-expertise-card-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #CA0C04, #8b0803) !important;
}

.ci-expertise-card-text {
    font-size: 15px !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    font-weight: 400 !important;
}

.ci-expertise-card-long .ci-expertise-card-text {
    font-size: 17px !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
}

/* --- CI Redesign: Facts Box --- */

.ci-facts-row-new {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin-top: 25px !important;
    padding: 20px 25px !important;
    background: #191527 !important;
    border: 1px solid #352E4C !important;
    border-radius: 20px !important;
    width: 100% !important;
}

.ci-fact-box-new {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 140px !important;
}

.ci-fact-label-new {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #ABABAB !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
}

.ci-fact-value-new {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .ci-expertise-section-wrapper {
        padding: 25px !important;
    }
    .ci-facts-row-new {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 20px !important;
    }
    .ci-fact-box-new {
        min-width: 120px !important;
    }
}

@media (max-width: 768px) {
    .ci-expertise-grid-new {
        grid-template-columns: 1fr !important;
    }
    .ci-bio-title-new {
        font-size: 26px !important;
    }
}
