/* Social Widget */
.dpc-social-widget {
    margin-top: 18px;
    margin-bottom: 18px;
}

.author .dpc-social-widget {
    margin-top: 1em;
    margin-bottom: 1em;
    width: 100%;
}

.custom-social-widget-code {
    margin-bottom: 1em;
}

.dpc-social-widget .single-social span.single-social-icon svg {
    max-width: 20px;
    -webkit-transition: all .25s;
    -moz-transition: all .25s;
    transition: all .25s;
}

.dpc-social-widget .single-social span.single-social-icon {
    padding: 15px 10px 10px 0;
    margin-right: 10px;
}

.dpc-social-widget.author .single-social span.single-social-icon {
    background-color: rgba(127, 127, 127, 0.1);
}

.dpc-social-widget .single-social span.single-social-icon svg:hover {
    filter: alpha(opacity=50);
    -ms-filter: "alpha(opacity = 50)";
    opacity: .50;
}

.dpc-author-info.author-has-image .author-right-content::after {
    content: "";
    display: table;
    table-layout: fixed;
}

.dpc-author-info.author-has-image .author-right-content::after {
    clear: both;
}

.dpc-author-info.author-has-image .author-left-content img {
    max-height: 100px;
    margin-bottom: 1em;
}

@media (min-width: 37.5em) {
    .dpc-author-info.author-has-image {
        display: flex;
    }

    .dpc-author-info.author-has-image .author-left-content {
        float: left;
        max-width: 300px;
    }

    .dpc-author-info.author-has-image .author-left-content img {
        width: 100%;
        max-height: 300px;
        margin-bottom: 0;
    }

    .dpc-author-info.author-has-image .author-right-content {
        float: right;
        padding-left: 30px;
    }
}

.author-right-content h2.author-name {
    margin: 0;
    text-align: left;
}

.dpc-author-info {
    margin: 1em auto;
    padding: 1em;
    background-color: rgba(127, 127, 127, 0.1);
}

.author .page-header {
    margin-bottom: 1.5em;
}

/* Author Box Styles */
.dpc-author-box {
    margin: 2em 0;
    padding: 2em;
    border-radius: 8px;
    background-color: rgba(127, 127, 127, 0.1);
    transition: all 0.3s ease;
}

.dpc-author-box .dpc-single-author {
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dpc-author-box .dpc-single-author:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Layout: Image Left */
.dpc-author-box-image-left .dpc-single-author .dpc-author-container {
    display: flex;
    gap: 2em;
    align-items: flex-start;
}

.dpc-author-box-image-left .dpc-author-avatar {
    flex: 0 0 100px;
}

.dpc-author-box-image-left .dpc-author-avatar img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.dpc-author-box-image-left .dpc-author-content {
    flex: 1;
}

/* Layout: Image Right */
.dpc-author-box-image-right .dpc-single-author .dpc-author-container {
    display: flex;
    gap: 2em;
    align-items: flex-start;
    flex-direction: row-reverse;
}

.dpc-author-box-image-right .dpc-author-avatar {
    flex: 0 0 100px;
}

.dpc-author-box-image-right .dpc-author-avatar img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.dpc-author-box-image-right .dpc-author-content {
    flex: 1;
}

/* Layout: Image Top */
.dpc-author-box-image-top .dpc-single-author {
    text-align: center;
}

.dpc-author-box-image-top .dpc-author-avatar {
    margin-bottom: 1em;
}

.dpc-author-box-image-top .dpc-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
}

.dpc-author-box-image-top .dpc-author-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Author Content */
.dpc-author-name {
    margin: 0 0 1em 0;
    font-size: 1.5em;
    line-height: 1.3;
}

.dpc-author-bio {
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.dpc-author-bio p {
    margin-bottom: 1em;
}

.dpc-author-bio p:last-child {
    margin-bottom: 0;
}

.dpc-author-social {
    margin-top: 1.5em;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .dpc-author-box-image-left .dpc-single-author .dpc-author-container,
    .dpc-author-box-image-right .dpc-single-author .dpc-author-container {
        flex-direction: column;
        text-align: center;
    }

    .dpc-author-box-image-left .dpc-author-avatar,
    .dpc-author-box-image-right .dpc-author-avatar {
        flex: 0 0 auto;
        margin: 0 auto 1em;
    }

    .dpc-author-box-image-left .dpc-author-avatar img,
    .dpc-author-box-image-right .dpc-author-avatar img {
        width: 80px;
        height: 80px;
    }

    .dpc-author-box {
        padding: 1.5em;
    }
}

@media (max-width: 480px) {
    .dpc-author-box {
        padding: 1em;
    }

    .dpc-author-name {
        font-size: 1.25em;
    }
}