/* OCS Author Box Elementor Styles */

.ocs-ab-elem-wrapper {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================
   OCS BREADCRUMB & PAGE TITLE BANNER
   ========================================================== */
.ocs-breadcrumb-banner {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #fff0f3 0%, #fff5f7 50%, #ffe4e6 100%);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 32px;
}

/* Decorative Organic Wave Shapes */
.ocs-banner-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

.ocs-shape-left {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #fecdd3 0%, #ffe4e6 100%);
    top: -60px;
    left: -60px;
}

.ocs-shape-right {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #fecdd3 0%, #ffe4e6 100%);
    bottom: -80px;
    right: -60px;
}

/* Dots Grid Motif */
.ocs-banner-dots {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 60px;
    height: 120px;
    background-image: radial-gradient(#fda4af 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.4;
}

.ocs-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ocs-banner-title {
    font-size: 46px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
    line-height: 1.1;
}

/* Breadcrumb White Floating Pill Container */
.ocs-breadcrumb-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.ocs-crumb-item {
    color: #475569;
}

.ocs-crumb-item.ocs-crumb-active {
    color: #e11d48;
    font-weight: 600;
}

.ocs-crumb-separator {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1;
}

/* Single Author Box Widget */
.ocs-author-box-card {
    display: flex;
    gap: 20px;
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ocs-author-box-card--inline {
    flex-direction: row;
    align-items: flex-start;
}

.ocs-author-box-card--stacked {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ocs-author-box-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0f766e;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ocs-author-box-content {
    flex: 1;
}

.ocs-author-box-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ocs-author-box-name a {
    color: inherit;
    text-decoration: none;
}

.ocs-author-box-name a:hover {
    color: #0f766e;
}

.ocs-author-box-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0f766e;
    background: #ccfbf1;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 4px;
}

.ocs-author-box-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 10px 0 16px 0;
}

.ocs-author-box-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ocs-author-box-social {
    display: flex;
    gap: 8px;
}

.ocs-author-box-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.ocs-author-box-social-icon:hover {
    background: #0f766e;
    color: #ffffff;
}

.ocs-author-box-social-icon .material-symbols-outlined {
    font-size: 18px;
}

.ocs-author-box-archive-link {
    font-size: 13px;
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
}

.ocs-author-box-archive-link:hover {
    text-decoration: underline;
}

/* ==========================================================
   OCS AUTHORS DIRECTORY GRID (Exact Card Match - Fixed Breaking CSS)
   ========================================================== */

.ocs-authors-directory-wrapper {
    width: 100%;
    margin: 30px 0;
    box-sizing: border-box;
}

.ocs-authors-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(1, 1fr);
    box-sizing: border-box;
}

/* Grid Columns responsiveness */
.ocs-authors-grid-cols-1 { grid-template-columns: 1fr !important; }
.ocs-authors-grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.ocs-authors-grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.ocs-authors-grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }

@media (max-width: 991px) {
    .ocs-authors-grid-cols-3,
    .ocs-authors-grid-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 640px) {
    .ocs-authors-grid-cols-2,
    .ocs-authors-grid-cols-3,
    .ocs-authors-grid-cols-4 { grid-template-columns: 1fr !important; }
}

/* Base Author Card */
.ocs-author-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 28px 24px 24px 24px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.ocs-author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

/* Avatar & Badge */
.ocs-author-avatar-wrap {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto 16px auto;
    flex-shrink: 0;
}

.ocs-author-avatar {
    width: 100% !important;
    height: 100% !important;
    max-width: 104px !important;
    max-height: 104px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.ocs-author-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.ocs-avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

/* Author Info */
.ocs-author-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.ocs-author-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

.ocs-author-name a {
    color: inherit;
    text-decoration: none !important;
}

.ocs-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.ocs-role-icon {
    flex-shrink: 0;
}

/* Articles Info Container Box */
.ocs-articles-box {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    box-sizing: border-box;
    text-align: left;
}

.ocs-articles-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.ocs-articles-text {
    display: flex;
    flex-direction: column;
}

.ocs-articles-count-num {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.ocs-articles-subtext {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.75;
    margin-top: 2px;
}

/* Action Button */
.ocs-view-articles-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
}

.ocs-view-articles-btn svg {
    transition: transform 0.2s ease;
}

.ocs-view-articles-btn:hover svg {
    transform: translateX(3px);
}

/* ==========================================================
   ROLE COLOR THEMES (Admin - Blue, Author - Green, Contributor - Orange)
   ========================================================== */

/* 1. ADMINISTRATOR THEME (Blue) */
.ocs-theme-admin .ocs-author-avatar-wrap .ocs-author-avatar,
.ocs-theme-admin .ocs-author-initials {
    background-color: #eff6ff;
    color: #1d4ed8;
}
.ocs-theme-admin .ocs-avatar-badge {
    background-color: #2563eb;
    color: #ffffff;
}
.ocs-theme-admin .ocs-author-badge {
    background-color: #eff6ff;
    color: #2563eb;
}
.ocs-theme-admin .ocs-articles-box {
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
}
.ocs-theme-admin .ocs-articles-icon-wrap {
    color: #2563eb;
    background-color: #eff6ff;
}
.ocs-theme-admin .ocs-articles-count-num {
    color: #0f172a;
}
.ocs-theme-admin .ocs-articles-subtext {
    color: #64748b;
}
.ocs-theme-admin .ocs-view-articles-btn {
    border-color: #2563eb;
    color: #2563eb;
    background-color: #ffffff;
}
.ocs-theme-admin .ocs-view-articles-btn:hover {
    background-color: #2563eb;
    color: #ffffff;
}

/* 2. AUTHOR THEME (Green) */
.ocs-theme-author .ocs-author-avatar-wrap .ocs-author-avatar,
.ocs-theme-author .ocs-author-initials {
    background-color: #f0fdf4;
    color: #15803d;
}
.ocs-theme-author .ocs-avatar-badge {
    background-color: #16a34a;
    color: #ffffff;
}
.ocs-theme-author .ocs-author-badge {
    background-color: #f0fdf4;
    color: #16a34a;
}
.ocs-theme-author .ocs-articles-box {
    background-color: #f6fbf7;
    border: 1px solid #e6f4ea;
}
.ocs-theme-author .ocs-articles-icon-wrap {
    color: #16a34a;
    background-color: #f0fdf4;
}
.ocs-theme-author .ocs-articles-count-num {
    color: #0f172a;
}
.ocs-theme-author .ocs-articles-subtext {
    color: #64748b;
}
.ocs-theme-author .ocs-view-articles-btn {
    border-color: #16a34a;
    color: #16a34a;
    background-color: #ffffff;
}
.ocs-theme-author .ocs-view-articles-btn:hover {
    background-color: #16a34a;
    color: #ffffff;
}

/* 3. CONTRIBUTOR THEME (Orange / Amber) */
.ocs-theme-contributor .ocs-author-avatar-wrap .ocs-author-avatar,
.ocs-theme-contributor .ocs-author-initials {
    background-color: #fff7ed;
    color: #ea580c;
}
.ocs-theme-contributor .ocs-author-initials {
    background-color: #fff7ed;
    color: #ea580c;
}
.ocs-theme-contributor .ocs-avatar-badge {
    background-color: #eab308;
    color: #ffffff;
}
.ocs-theme-contributor .ocs-author-badge {
    background-color: #fff8f0;
    color: #ea580c;
}
.ocs-theme-contributor .ocs-articles-box {
    background-color: #fdfbf7;
    border: 1px solid #faeede;
}
.ocs-theme-contributor .ocs-articles-icon-wrap {
    color: #ea580c;
    background-color: #fff7ed;
}
.ocs-theme-contributor .ocs-articles-count-num {
    color: #0f172a;
}
.ocs-theme-contributor .ocs-articles-subtext {
    color: #64748b;
}
.ocs-theme-contributor .ocs-view-articles-btn {
    border-color: #ea580c;
    color: #ea580c;
    background-color: #ffffff;
}
.ocs-theme-contributor .ocs-view-articles-btn:hover {
    background-color: #ea580c;
    color: #ffffff;
}

/* Posts by Author Grid Widget (Calling Blog by Tag/Author) */
.ocs-author-posts-grid {
    display: grid;
    gap: 24px;
    box-sizing: border-box;
}

.ocs-posts-grid-cols-1 { grid-template-columns: 1fr; }
.ocs-posts-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ocs-posts-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ocs-posts-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.ocs-author-post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ocs-author-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.ocs-post-thumb-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #f3f4f6;
}

.ocs-post-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ocs-author-post-card:hover .ocs-post-thumb-wrap img {
    transform: scale(1.05);
}

.ocs-post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ocs-post-meta-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.ocs-post-author-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
}

.ocs-post-author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.ocs-post-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #111827;
}

.ocs-post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ocs-post-card-title a:hover {
    color: #0f766e;
}

.ocs-post-card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 16px;
    flex: 1;
}

.ocs-post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.ocs-read-more-link {
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
}

.ocs-read-more-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ocs-posts-grid-cols-2, .ocs-posts-grid-cols-3, .ocs-posts-grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .ocs-author-box-card--inline {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
