/* OJS 3.4 Enhanced Lively Theme - Custom CSS */
/* Upload this file through Website Settings > Appearance > Advanced */

/* ========================================
   MODERN ENHANCEMENTS
======================================== */

/* Smooth animations for better UX */
* {
    transition: all 0.3s ease;
}

/* Modern card-style containers */
.panel, .pkp_block {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
    margin-bottom: 30px;
}

.panel:hover, .pkp_block:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Enhanced headers with gradient backgrounds */
.panel-heading, .pkp_block .title {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    font-weight: 600;
    padding: 20px;
    border: none;
}

/* Vibrant accent colors */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #18BC9C;
    --accent-color: #F39C12;
    --success-color: #27AE60;
    --danger-color: #E74C3C;
}

/* ========================================
   NAVIGATION ENHANCEMENTS
======================================== */

/* Modern navigation bar */
.navbar, .header_view {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 60px;
}

/* NAVBAR BRAND FIXES */
.navbar-brand {
    display: block !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: white !important;
    text-decoration: none !important;
    max-width: 70% !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    padding: 15px !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
}

.navbar-brand:hover, 
.navbar-brand:focus {
    color: #18BC9C !important;
    text-decoration: none !important;
}

/* Site name container fixes for ALL pages */
.site-name {
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Fix for both h1 AND div site-name containers */
.site-name h1,
.site-name div,
.site-name .navbar-brand,
h1.site-name,
div.site-name {
    margin: 0 !important;
    padding: 15px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    color: white !important;
    font-weight: 700 !important;
}

/* Specific fix for h1.site-name (homepage) */
h1.site-name {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: white !important;
}

h1.site-name a,
h1.site-name .navbar-brand {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 15px !important;
    margin: 0 !important;
}

/* Fix for non-homepage pages where site-name is div instead of h1 */
.site-name div .navbar-brand,
div.site-name .navbar-brand {
    display: block !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 15px !important;
    margin: 0 !important;
}

/* Ensure navbar-brand is visible regardless of container */
.navbar-header .navbar-brand,
.navbar-header .site-name .navbar-brand,
.navbar-header h1 .navbar-brand,
.navbar-header div .navbar-brand {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Mobile navbar brand fixes */
@media (max-width: 767px) {
    .navbar-brand {
        font-size: 16px !important;
        padding: 12px 15px !important;
        max-width: 80% !important;
    }
    
    .navbar-header {
        position: relative !important;
    }
    
    .navbar-toggle {
        float: right !important;
        margin-right: 15px !important;
    }
}

/* Logo styling if using logo */
.navbar-brand-logo img {
    max-height: 40px !important;
    width: auto !important;
    display: block !important;
}

.navbar-brand-logo {
    padding: 5px 15px !important;
    line-height: 1 !important;
}

/* Force display for ALL pages - comprehensive selectors */
.site-name a,
.navbar-header a,
h1.site-name a,
div.site-name a,
.navbar-brand,
a.navbar-brand,
.site-name .navbar-brand,
.navbar-header .navbar-brand {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    padding: 15px !important;
}

/* Specific fix for pages where brand is inside div instead of h1 */
.pkp_page_issue .navbar-brand,
.pkp_page_article .navbar-brand,
.pkp_page_user .navbar-brand,
.pkp_page_about .navbar-brand,
.pkp_page_search .navbar-brand {
    display: block !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

/* Override any hiding styles from other CSS */
.navbar-brand:not(:empty) {
    display: block !important;
}

/* CRITICAL: Force h1.site-name to show (homepage issue) */
h1.site-name,
.navbar-header h1.site-name,
.navbar-header h1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    text-indent: 0 !important;
    position: static !important;
    clip: auto !important;
    margin: 0 !important;
    font-size: 20px !important;
    color: white !important;
}

/* Force the anchor inside h1 to show */
h1.site-name a.navbar-brand,
.navbar-header h1.site-name a,
.navbar-header h1 a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 15px !important;
    margin: 0 !important;
    height: auto !important;
    overflow: visible !important;
    text-indent: 0 !important;
    position: static !important;
    clip: auto !important;
}

/* Fallback content if brand is somehow empty */
.navbar-brand:empty:after {
    content: "Mesopotamian Journal of Quran Studies" !important;
    display: block !important;
    color: white !important;
    font-weight: 700 !important;
}

/* ========================================
   EDITORIAL PAGE DYNAMIC ENHANCEMENTS
======================================== */

/* Scroll-triggered animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 20px rgba(139, 169, 143, 0.3);
    }
    50% {
        box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 30px rgba(139, 169, 143, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced diversity header */
.diversity-header {
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.diversity-header:hover {
    animation: pulseGlow 2s infinite;
    transform: translateY(-5px);
}

/* Animated statistics circles */
.stats-circle {
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

.stats-circle:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.stats-circle:nth-child(1) { animation-delay: 0s; }
.stats-circle:nth-child(2) { animation-delay: 0.5s; }
.stats-circle:nth-child(3) { animation-delay: 1s; }

/* Editor cards enhancements */
.editor-card {
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.editor-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.editor-card:hover::before {
    animation: none;
    top: -50%;
    left: 150%;
    opacity: 1;
}

.editor-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Profile photo enhancements */
.profile-photo {
    transition: all 0.4s ease;
    position: relative;
}

.profile-photo:hover {
    transform: rotate(5deg) scale(1.05);
}

.profile-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(139, 169, 143, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.profile-photo:hover::after {
    opacity: 1;
}

/* Contact icons enhancements */
.contact-icon {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.contact-icon:hover::before {
    width: 100%;
    height: 100%;
}

.contact-icon:hover {
    transform: translateY(-3px) rotate(10deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Member cards grid enhancement */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.member-card {
    transition: all 0.5s ease;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    cursor: pointer;
}

.member-card:nth-child(odd) {
    animation: fadeInLeft 0.6s ease-out;
}

.member-card:nth-child(even) {
    animation: fadeInRight 0.6s ease-out;
}

.member-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Text animations */
.animate-text {
    animation: fadeInUp 0.8s ease-out;
}

.animate-text:nth-child(1) { animation-delay: 0.2s; }
.animate-text:nth-child(2) { animation-delay: 0.4s; }
.animate-text:nth-child(3) { animation-delay: 0.6s; }

/* Background pattern animation */
@keyframes patternMove {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.animated-bg {
    animation: patternMove 20s ease-in-out infinite;
}

/* Decorative elements animation */
.decorative-circle {
    animation: rotate360 15s linear infinite;
    transition: all 0.3s ease;
}

.decorative-circle:hover {
    animation-duration: 3s;
    transform: scale(1.2);
}

/* Loading animation for images */
.loading-image {
    position: relative;
    overflow: hidden;
}

.loading-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.loading-image:hover::before {
    left: 100%;
}

/* Section transitions */
.section-transition {
    animation: scaleIn 0.8s ease-out;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .editor-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .stats-circle:hover {
        transform: scale(1.05);
    }
}

/* Performance optimization */
.editor-card,
.member-card,
.profile-photo,
.contact-icon {
    will-change: transform, box-shadow;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .diversity-header,
    .editor-card,
    .member-card,
    .stats-circle,
    .profile-photo,
    .contact-icon,
    .animate-text {
        animation: none !important;
        transition: none !important;
    }
}

.navbar-nav > li > a {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 20px 15px !important;
}

.navbar-nav > li > a:hover {
    color: #18BC9C !important;
    background: rgba(255,255,255,0.1) !important;
}

/* ========================================
   BUTTON ENHANCEMENTS
======================================== */

.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 10px 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #3498DB, #2980B9);
}

.btn-success {
    background: linear-gradient(135deg, #18BC9C, #16A085);
}

.btn-warning {
    background: linear-gradient(135deg, #F39C12, #E67E22);
}

.btn-danger {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
}

/* ========================================
   TYPOGRAPHY ENHANCEMENTS
======================================== */

/* Modern headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 20px;
}

h1 {
    background: linear-gradient(135deg, #2C3E50, #18BC9C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced body text */
body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #34495E;
}

/* Improved links */
a {
    color: #18BC9C;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #16A085;
    text-decoration: none;
    border-bottom: 1px solid #16A085;
}

/* ========================================
   ARTICLE & CONTENT ENHANCEMENTS
======================================== */

/* Article cards */
.article-summary {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #18BC9C;
}

.article-summary:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.article-summary .media-heading {
    color: #2C3E50;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Enhanced forms */
.form-control {
    border-radius: 5px;
    border: 2px solid #BDC3C7;
    padding: 12px 15px;
    font-size: 16px;
}

.form-control:focus {
    border-color: #18BC9C;
    box-shadow: 0 0 0 3px rgba(24, 188, 156, 0.1);
}

/* ========================================
   SIDEBAR & BLOCKS
======================================== */

/* Sidebar blocks */
.pkp_block ul li {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.pkp_block ul li:hover {
    border-left-color: #18BC9C;
    background-color: rgba(24, 188, 156, 0.05);
    padding-left: 20px;
}

/* ========================================
   FOOTER ENHANCEMENTS
======================================== */

footer[role="contentinfo"] {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

footer a {
    color: #18BC9C;
}

footer a:hover {
    color: #16A085;
}

/* ========================================
   RESPONSIVE IMPROVEMENTS
======================================== */

@media (max-width: 768px) {
    .panel, .pkp_block {
        margin-bottom: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ========================================
   ANIMATED ELEMENTS
======================================== */

/* Loading animation for dynamic content */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-primary:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Fade-in animation for content */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-summary, .panel, .pkp_block {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   MODERN UI PATTERNS
======================================== */

/* Modern table styling */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table thead th {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: rgba(24, 188, 156, 0.05);
}

/* Modern alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-left-color: #27AE60;
    color: #27AE60;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-left-color: #3498DB;
    color: #3498DB;
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-left-color: #F39C12;
    color: #F39C12;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-left-color: #E74C3C;
    color: #E74C3C;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
======================================== */

/* Better focus indicators */
*:focus {
    outline: 3px solid #18BC9C;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .panel, .pkp_block {
        border: 2px solid #2C3E50;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ========================================
   EDITORIAL BOARD MODERN LAYOUT STYLES
======================================== */

/* Editorial Board CSS Variables */
:root {
    --editorial-primary: #2C5530;
    --editorial-secondary: #8BA98F;
    --editorial-accent: #5D7C61;
    --editorial-gold: #D4AF37;
    --editorial-cream: #F8F6F0;
    --editorial-light-green: #A8C090;
    --editorial-text-dark: #2C3E50;
    --editorial-text-light: #5A6C7D;
    --editorial-border-radius: 16px;
    --editorial-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --editorial-shadow-light: 0 2px 15px rgba(44, 85, 48, 0.08);
    --editorial-shadow-medium: 0 8px 30px rgba(44, 85, 48, 0.15);
    --editorial-shadow-heavy: 0 15px 45px rgba(44, 85, 48, 0.2);
}

/* Editorial Board Container */
.editorial-board-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Editorial Board Header */
.editorial-header {
    background: linear-gradient(135deg, var(--editorial-primary) 0%, var(--editorial-accent) 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.editorial-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.section-title {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Statistics Section */
.stats-section {
    background: white;
    padding: 60px 40px;
    border-radius: 0 0 24px 24px;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--editorial-cream) 0%, #ffffff 100%);
    padding: 30px;
    border-radius: var(--editorial-border-radius);
    text-align: center;
    border: 1px solid rgba(139, 169, 143, 0.1);
    transition: var(--editorial-transition);
    box-shadow: var(--editorial-shadow-light);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--editorial-shadow-medium);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--editorial-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--editorial-text-light);
    font-weight: 500;
}

/* Board Section */
.board-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Editor-in-Chief Card */
.editor-chief-card {
    max-width: 600px;
    margin: 0 auto 80px;
    background: white;
    border-radius: var(--editorial-border-radius);
    padding: 50px;
    text-align: center;
    box-shadow: var(--editorial-shadow-medium);
    border: 1px solid rgba(139, 169, 143, 0.1);
    position: relative;
    overflow: hidden;
}

.editor-chief-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--editorial-gold), var(--editorial-accent));
}

.photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 30px;
    border: 4px solid white;
    box-shadow: var(--editorial-shadow-medium);
    transition: var(--editorial-transition);
}

.photo:hover {
    transform: scale(1.05);
}

.editor-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--editorial-primary);
    margin-bottom: 0.5rem;
}

.editor-name-en {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--editorial-text-light);
    margin-bottom: 1rem;
}

.editor-affiliation {
    font-size: 1.1rem;
    color: var(--editorial-secondary);
    margin-bottom: 25px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--editorial-accent), var(--editorial-light-green));
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--editorial-transition);
    box-shadow: var(--editorial-shadow-light);
}

.contact-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--editorial-shadow-medium);
    color: white;
    text-decoration: none;
}

.contact-link img {
    width: 24px;
    height: 24px;
}

/* Board Members Grid */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.member-card {
    background: white;
    border-radius: var(--editorial-border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--editorial-shadow-light);
    border: 1px solid rgba(139, 169, 143, 0.1);
    transition: var(--editorial-transition);
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--editorial-gold), var(--editorial-accent));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.member-card:hover::before {
    transform: translateX(0);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--editorial-shadow-heavy);
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--editorial-cream);
    box-shadow: var(--editorial-shadow-light);
    transition: var(--editorial-transition);
}

.member-photo:hover {
    transform: rotate(5deg) scale(1.05);
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--editorial-primary);
    margin-bottom: 0.5rem;
}

.member-name-en {
    font-size: 1rem;
    font-weight: 500;
    color: var(--editorial-text-light);
    margin-bottom: 0.5rem;
}

.member-affiliation {
    font-size: 0.9rem;
    color: var(--editorial-secondary);
    margin-bottom: 20px;
}

.member-contacts {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.member-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--editorial-accent), var(--editorial-light-green));
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--editorial-transition);
    font-size: 0.8rem;
}

.member-contact:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--editorial-shadow-light);
    color: white;
    text-decoration: none;
}

.member-contact img {
    width: 18px;
    height: 18px;
}

/* Managing Editor Section */
.managing-editor-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin: 60px 0;
    border-radius: 24px;
}

.managing-editor-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: var(--editorial-border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--editorial-shadow-medium);
}

/* Enhanced Hover Effects */
.member-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(139, 169, 143, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.member-card:hover::after {
    opacity: 1;
}

/* Loading States */
.loading {
    position: relative;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--editorial-accent);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: editorialSpin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes editorialSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Editorial Board Responsive Design */
@media (max-width: 768px) {
    .editorial-board-container {
        padding: 0 15px;
    }
    
    .editorial-header {
        padding: 40px 20px;
    }
    
    .board-section {
        padding: 60px 0;
    }
    
    .editor-chief-card {
        margin: 0 auto 60px;
        padding: 40px 25px;
    }
    
    .board-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .member-card {
        padding: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .contact-links {
        gap: 12px;
    }
    
    .contact-link {
        width: 44px;
        height: 44px;
    }
    
    /* Mobile Typography */
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .editor-name {
        font-size: 1.4rem;
    }
    
    .editor-name-en {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .editor-chief-card {
        padding: 30px 20px;
    }
    
    .member-card {
        padding: 20px;
    }
    
    .photo {
        width: 120px;
        height: 120px;
    }
    
    .member-photo {
        width: 80px;
        height: 80px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Editorial Board Animation Classes */
.editorial-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: editorialFadeInUp 0.6s ease forwards;
}

.editorial-fade-in:nth-child(1) { animation-delay: 0.1s; }
.editorial-fade-in:nth-child(2) { animation-delay: 0.2s; }
.editorial-fade-in:nth-child(3) { animation-delay: 0.3s; }
.editorial-fade-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes editorialFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States for Editorial Board */
.contact-link:focus,
.member-contact:focus {
    outline: 2px solid var(--editorial-primary);
    outline-offset: 2px;
}

/* Performance Optimizations for Editorial Board */
.member-card,
.editor-chief-card,
.stat-card {
    contain: layout style paint;
    will-change: transform;
}

.photo,
.member-photo {
    will-change: transform;
}

/* Lazy Loading Support for Editorial Board */
.editorial-board img[loading="lazy"] {
    min-height: 100px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: editorialLoading 1.5s infinite;
}

@keyframes editorialLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* High Contrast Mode for Editorial Board */
@media (prefers-contrast: high) {
    .member-card,
    .editor-chief-card,
    .stat-card {
        border: 2px solid var(--editorial-text-dark) !important;
    }
    
    .contact-link,
    .member-contact {
        border: 1px solid var(--editorial-text-dark);
    }
}

/* Dark Mode Support for Editorial Board */
@media (prefers-color-scheme: dark) {
    :root {
        --editorial-text-dark: #E2E8F0;
        --editorial-text-light: #94A3B8;
        --editorial-cream: #1A202C;
    }
    
    .editorial-board-container {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        color: var(--editorial-text-dark);
    }
    
    .member-card,
    .editor-chief-card,
    .managing-editor-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .stats-section {
        background: #2d3748;
    }
}

/* Print Styles for Editorial Board */
@media print {
    .editorial-header {
        background: none !important;
        color: black !important;
    }
    
    .member-card,
    .editor-chief-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    
    .contact-links,
    .member-contacts {
        display: none !important;
    }
    
    .stats-section {
        break-inside: avoid;
    }
}