/* Extracted from pages/authors.php */
:root {
            --primary-color: #1a365d;
            --secondary-color: #2b6cb0;
            --accent-color: #4299e1;
            --text-color: #2d3748;
            --light-bg: #f8f9fa;
            --border-color: #e2e8f0;
            --verified-color: #38a169;
            --pending-color: #d69e2e;
            --ejected-color: #e53e3e;
            --blocked-color: #718096;
            --card-bg: #ffffff;
            --sidebar-bg: #f8fafc;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: #f5f7fa;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Section */
        .page-header {
            background: linear-gradient(135deg, #102a43 0%, #1a365d 54%, #245a8d 100%);
            color: white;
            padding: 76px 0 54px;
            text-align: center;
            margin-bottom: 40px;
            border-bottom: 1px solid rgba(255, 255, 255, .16);
        }
        
        .page-header h1 {
            font-size: 2.8rem;
            margin-bottom: 15px;
            font-weight: 700;
        }
        
        .page-header p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 700px;
            margin: 0 auto 25px;
        }
        
        /* Breadcrumb */
        .breadcrumb {
            background: white;
            padding: 20px 0;
            margin-bottom: 30px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .breadcrumb-inner {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.95rem;
        }
        
        .breadcrumb a {
            color: var(--secondary-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .breadcrumb a:hover {
            color: var(--accent-color);
            text-decoration: underline;
        }
        
        .breadcrumb .separator {
            color: #a0aec0;
        }
        
        .breadcrumb .current {
            color: var(--text-color);
            font-weight: 500;
        }
        
        /* View All Button */
        .view-all-container {
            text-align: center;
            margin: 30px 0;
        }
        
        .view-all-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
            color: white;
            padding: 12px 30px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
            transition: all 0.3s ease;
        }
        
        .view-all-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(43, 108, 176, 0.4);
        }
        
        /* Single Author View */
        .single-author-view {
            max-width: 1200px;
            margin: 0 auto 50px;
        }
        
        /* Main Layout - Horizontal Author Cards */
        .author-horizontal-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
            margin-bottom: 50px;
        }
        
        .author-horizontal-card {
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 12px 35px rgba(26, 54, 93, 0.08);
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
            display: grid;
            grid-template-columns: 280px minmax(0, 1fr) 300px;
            min-height: 250px;
        }
        
        .author-horizontal-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
            border-color: var(--accent-color);
        }
        
        /* Left Sidebar - Profile Image & Basic Info */
        .author-sidebar {
            background: var(--sidebar-bg);
            padding: 28px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            border-right: 1px solid var(--border-color);
            position: relative;
        }
        
        .author-avatar-container {
            width: 140px;
            height: 140px;
            margin-bottom: 20px;
            position: relative;
        }
        
        .author-avatar {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .author-avatar .avatar-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
            color: white;
            font-size: 2.5rem;
            font-weight: 700;
        }
        
        .verification-badge {
            position: absolute;
            bottom: 10px;
            right: 10px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 3px solid white;
            background: var(--verified-color);
            color: white;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
        }
        
        .verified .verification-badge { background: var(--verified-color); }
        .pending .verification-badge { background: var(--pending-color); }
        .ejected .verification-badge { background: var(--ejected-color); }
        .blocked .verification-badge { background: var(--blocked-color); }
        
        .author-basic-info {
            width: 100%;
        }
        
        .author-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 8px;
            line-height: 1.2;
        }
        
        .author-join-date {
            color: #718096;
            font-size: 0.9rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .verification-status {
            display: inline-block;
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .verified .verification-status {
            background: rgba(56, 161, 105, 0.1);
            color: var(--verified-color);
        }
        
        .pending .verification-status {
            background: rgba(214, 158, 46, 0.1);
            color: var(--pending-color);
        }
        
        .ejected .verification-status {
            background: rgba(229, 62, 62, 0.1);
            color: var(--ejected-color);
        }
        
        .blocked .verification-status {
            background: rgba(113, 128, 150, 0.1);
            color: var(--blocked-color);
        }
        
        /* Middle Section - Bio & Main Info */
        .author-main {
            padding: 28px 30px;
            display: flex;
            flex-direction: column;
        }
        
        .author-profession-row {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 18px;
            padding-bottom: 14px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .author-profession {
            color: var(--secondary-color);
            font-weight: 700;
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .author-position {
            color: #718096;
            font-size: 1rem;
            font-style: italic;
        }
        
        .author-bio-container {
            flex: 1;
            margin-bottom: 20px;
        }
        
        .author-bio {
            color: var(--text-color);
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 10px;
            transition: all 0.3s ease;
        }
        
        .author-bio.truncated {
            max-height: 4.5em; /* 2.5 lines * 1.7 line-height + buffer */
            overflow: hidden;
            position: relative;
        }
        
        .author-bio.truncated::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 40px;
            background: linear-gradient(to bottom, transparent, var(--card-bg) 90%);
            pointer-events: none;
        }
        
        .bio-content {
            white-space: pre-line;
            word-wrap: break-word;
        }
        
        .read-more-btn {
            color: var(--secondary-color);
            font-weight: 600;
            font-size: 0.9rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            background: none;
            border: none;
            padding: 5px 0;
            margin-top: 5px;
            transition: color 0.3s ease;
        }
        
        .read-more-btn:hover {
            color: var(--accent-color);
        }
        
        .author-contact {
            background: #f0f9ff;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid var(--accent-color);
            margin-top: auto;
        }
        
        .author-email {
            color: var(--secondary-color);
            font-weight: 600;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* Right Section - Details & Social */
        .author-details {
            background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
            padding: 28px;
            border-left: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
        }
        
        .details-section {
            margin-bottom: 25px;
        }
        
        .section-title {
            font-size: 0.9rem;
            color: #5b6b82;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .detail-item {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
            padding: 10px 0;
            border-bottom: 1px solid rgba(226, 232, 240, .8);
        }

        .detail-item:last-child {
            border-bottom: 0;
        }
        
        .detail-label {
            min-width: 100px;
            font-size: 0.85rem;
            color: #718096;
            font-weight: 500;
        }
        
        .detail-value {
            font-size: 0.9rem;
            color: var(--primary-color);
            font-weight: 600;
        }

        .author-details .details-section {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 18px;
            box-shadow: 0 6px 16px rgba(26, 54, 93, .04);
        }
        
        .social-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: auto;
        }
        
        .social-link {
            width: 38px;
            height: 38px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .social-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .social-link.linkedin { background: #0077b5; }
        .social-link.twitter { background: #1da1f2; }
        .social-link.website { background: var(--accent-color); }
        .social-link.facebook { background: #4267b2; }
        .social-link.instagram { 
            background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
        }
        
        /* Pagination */
        .pagination-container {
            padding: 40px 0;
            text-align: center;
        }
        
        .pagination {
            display: inline-flex;
            gap: 8px;
            list-style: none;
            background: white;
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }
        
        .page-link {
            display: block;
            padding: 10px 18px;
            background: #f8fafc;
            border: 2px solid transparent;
            border-radius: 8px;
            color: var(--text-color);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            min-width: 48px;
            text-align: center;
        }
        
        .page-link:hover {
            background: var(--secondary-color);
            color: white;
            border-color: var(--secondary-color);
        }
        
        .page-link.active {
            background: var(--secondary-color);
            color: white;
            border-color: var(--secondary-color);
            transform: scale(1.05);
        }
        
        .pagination-info {
            margin-top: 20px;
            color: #718096;
            font-size: 0.95rem;
        }
        
        /* Statistics */
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin: 40px 0;
        }
        
        .stat-card {
            background: white;
            padding: 25px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }
        
        .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary-color);
            margin-bottom: 10px;
            line-height: 1;
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: #718096;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            max-width: 600px;
            margin: 50px auto;
        }
        
        .empty-icon {
            font-size: 4rem;
            color: var(--border-color);
            margin-bottom: 25px;
        }
        
        .empty-state h3 {
            color: var(--primary-color);
            margin-bottom: 15px;
            font-size: 1.8rem;
        }
        
        .empty-state p {
            color: #718096;
            margin-bottom: 30px;
            line-height: 1.6;
        }
        /* Responsive Design */
        @media (max-width: 1200px) {
            .author-horizontal-card {
                grid-template-columns: 250px 1fr 300px;
            }
        }
        
        @media (max-width: 992px) {
            .author-horizontal-card {
                grid-template-columns: 1fr;
                grid-template-rows: auto auto auto;
            }
            
            .author-sidebar {
                border-right: none;
                border-bottom: 1px solid var(--border-color);
                flex-direction: row;
                text-align: left;
                padding: 25px;
            }
            
            .author-avatar-container {
                margin-bottom: 0;
                margin-right: 25px;
            }
            
            .author-basic-info {
                text-align: left;
                align-items: flex-start;
            }
            
            .author-join-date {
                justify-content: flex-start;
            }
            
            .author-details {
                border-left: none;
                border-top: 1px solid var(--border-color);
            }
        }
        
        @media (max-width: 768px) {
            .page-header {
                padding: 50px 0 40px;
            }
            
            .page-header h1 {
                font-size: 2.2rem;
            }
            
            .page-header p {
                font-size: 1.1rem;
            }
            
            .author-sidebar {
                flex-direction: column;
                text-align: center;
                padding: 25px;
            }
            
            .author-avatar-container {
                margin-right: 0;
                margin-bottom: 20px;
            }
            
            .author-basic-info {
                text-align: center;
                align-items: center;
            }
            
            .author-join-date {
                justify-content: center;
            }
            
            .author-profession-row {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }
            
            .pagination {
                flex-wrap: wrap;
                justify-content: center;
            }
        }
        
        @media (max-width: 576px) {
            .author-horizontal-card {
                margin: 0 -15px;
                border-radius: 0;
                border-left: none;
                border-right: none;
            }
            
            .author-avatar-container {
                width: 120px;
                height: 120px;
            }
            
            .author-avatar {
                width: 120px;
                height: 120px;
            }
            
            .social-links {
                justify-content: center;
            }
            
            .legend-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Hover Effects */
        .author-horizontal-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .author-horizontal-card:hover {
            transform: translateY(-4px) scale(1.002);
        }
        
        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--accent-color);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: var(--secondary-color);
        }
    
        /* Universal public-page compatibility with shared header/nav/footer */
        main, .main-content {
            width: 100%;
            max-width: 100%;
            overflow-x: clip;
        }

        main *, main *::before, main *::after,
        .main-content *, .main-content *::before, .main-content *::after {
            min-width: 0;
        }

        main img, main video, main iframe,
        .main-content img, .main-content video, .main-content iframe {
            max-width: 100%;
            height: auto;
        }

        main table, .main-content table {
            max-width: 100%;
        }

        @media (max-width: 768px) {
            main .container,
            .main-content .container {
                width: 100%;
                max-width: 100%;
                padding-left: 14px;
                padding-right: 14px;
            }

            main [style*="grid-template-columns"],
            .main-content [style*="grid-template-columns"] {
                grid-template-columns: 1fr !important;
            }

            main [style*="display: flex"],
            .main-content [style*="display: flex"] {
                flex-wrap: wrap;
            }

            .page-header,
            .policy-header,
            .terms-header,
            .membership-header {
                padding-left: 18px !important;
                padding-right: 18px !important;
                overflow-wrap: anywhere;
            }
        }
