/* General Styling for the Author Page */
.author-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: inherit; /* Use inherited background */
    color: inherit; /* Inherit text color */
    border-radius: 8px;
    position: relative;
}

.author-header img.author-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid inherit; /* Border color matches inherited text color */
    margin-bottom: 10px;
}

.author-header h3 {
    font-size: 24px;
    margin: 0;
    color: inherit; /* Inherit text color */
}

.author-header p {
    font-size: 16px;
    margin: 5px 0;
    color: inherit; /* Inherit text color */
}

.author-actions {
    position: absolute;
    top: 70px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.author-actions .button {
    display: inline-block;
    padding: 10px 20px;
    background: inherit; /* Inherit background */
    color: inherit; /* Inherit text color */
    border: 2px solid inherit; /* Button border matches inherited text color */
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.author-actions .button:hover {
    background: rgba(255, 255, 255, 0.1); /* Add subtle hover effect */
    color: inherit; /* Keep inherited text color on hover */
}


.author-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.author-tabs ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-tabs li {
    margin: 0 10px;
}

.author-tabs a.tab-link {
    text-decoration: none;
    padding: 10px 15px;
    color: #555;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.author-tabs a.tab-link.active {
    border-bottom-color: #0071a1;
    color: #0071a1;
}

.tab-content {
    padding: 20px;
    background: inherit;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* PAC Section Styles */
.pacs-section {
    margin: 20px 0;
    padding: 20px;
}

#pac-form button[type="submit"] {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer; /* Adds the pointer cursor */
    background-color: #ff4d4d; /* Example background color */
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* PAC List */
.pac-list {
    display: flex;
    margin-top: 15px;
    flex-direction: column; /* Align items vertically */
    gap: 10px; /* Add spacing between rows */
}

/* PAC Card */
.pac-card {
    display: flex;
    flex-direction: row; /* Content and buttons side by side */
    justify-content: space-between; /* Space between content and buttons */
    align-items: center;
    background-color: inherit; /* Use inherited background color */
    color: inherit; /* Use inherited text color */
    padding: 10px 15px;
    border: 1px solid #ddd; /* Add a border for separation */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

/* PAC Content */
.pac-content {
    flex: 1; /* Allow content to take up remaining space */
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word; /* Break long words to avoid overflow */
}

/* Action Buttons */
.pac-actions {
    display: flex;
    gap: 10px; /* Add spacing between buttons */
}

.pac-actions button {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pac-actions .edit-pac-button {
    background-color: #0073aa;
    color: #fff;
}

.pac-actions .edit-pac-button:hover {
    background-color: #005a8c;
}

.pac-actions .delete-pac-button {
    background-color: #e74c3c;
    color: #fff;
}

.pac-actions .delete-pac-button:hover {
    background-color: #c0392b;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .pac-card {
        flex-direction: column; /* Stack content and buttons vertically */
        align-items: flex-start; /* Align items to the start */
    }

    .pac-actions {
        justify-content: flex-end;
        width: 100%; /* Take up full width */
        margin-top: 10px; /* Add spacing above buttons */
    }
}

/* Followers and Following Section */
.follower-card, .following-card {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: inherit;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.follower-card:hover, .following-card:hover {
    transform: translateY(-5px);
}

.follower-card img, .following-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.follower-card h4, .following-card h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.follower-card .button, .following-card .button {
    margin-left: auto;
    padding: 8px 15px;
    font-size: 14px;
    background: inherit;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.follower-card .button:hover, .following-card .button:hover {
    background: #005b87;
}

/* Blog Card Styling */
.blog-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    background: inherit;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



.blog-card .blog-featured-image {
    width: 150px;
    height: 175px;
    margin-top: 25px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px; /* Add spacing below the image */
    flex-shrink: 0;
}

.blog-card .blog-content {
    color: #fff;
    margin-bottom: 15px; /* Add spacing below the content */
    text-align: left; /* Align content to the left */
}

.blog-card .blog-content h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.blog-card .blog-content p {
    margin: 0 0 15px;
    line-height: 1.5;
}

.blog-card .blog-actions {
    display: flex;
    justify-content: flex-start; /* Align buttons to the left */
    gap: 10px; /* Space between buttons */
}

.blog-card .blog-actions .button {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blog-card .blog-actions .button.edit-blog-button {
    background-color: #007bff;
    color: #fff;
    border: none;
}

.blog-card .blog-actions .button.edit-blog-button:hover {
    background-color: #0056b3;
}

.blog-card .blog-actions .button.delete-blog-button {
    background-color: #dc3545;
    color: #fff;
    border: none;
}

.blog-card .blog-actions .button.delete-blog-button:hover {
    background-color: #a71d2a;
}

/* Content Section */
.blog-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-content h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Subtle shadow for text */
}

.blog-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #d1d1d1;
    text-overflow: ellipsis;
    overflow: hidden;
    max-height: 60px; /* Limit content height */
}

/* Actions Section */
.blog-actions {
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.blog-list {
    margin-top: 20px;
}

.blog-actions .button {
    background: linear-gradient(135deg, #0073e6, #005bb5); /* Gradient for buttons */
    color: #ffffff;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    border: none;
    font-weight: bold;
}

.blog-actions .button:hover {
    background: linear-gradient(135deg, #005bb5, #003f7f);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.blog-actions .delete-blog-button {
    background: linear-gradient(135deg, #dc3545, #a71d2a); /* Gradient for delete */
}

.blog-actions .delete-blog-button:hover {
    background: linear-gradient(135deg, #a71d2a, #8b1b24);
}

#blog-form button[type="submit"] {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer; /* Adds the pointer cursor */
    background-color: #ff4d4d; /* Example background color */
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/*sweetalert styles*/

.swal2-popup {
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
    font-size: 16px !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #28a745, #1e7a34) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: bold !important;
}

.swal2-cancel {
    background: linear-gradient(135deg, #dc3545, #a71d2a) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: bold !important;
}

/* PAC SHORTCODE CSS */

.wpb-pac-cards {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Spacing between PAC cards */
    margin: 20px 0;
}

.wpb-pac-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #f1f1f1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: left;
    width: 100%; /* Ensures it spans the container width */
}

.wpb-pac-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.wpb-pac-content {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.wpb-pac-meta {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.wpb-pac-meta a {
    color: #0073e6;
    text-decoration: none;
}

.wpb-pac-meta a:hover {
    text-decoration: underline;
}
