/* ======================================================
   aboutjast.css - FULLY CORRECTED VERSION
   ====================================================== */

/* Font Awesome Import - with fallback */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");

/* ========== MAIN CONTAINER ========== */
.ojs-editorial-board-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ========== EDITORIAL SECTION WRAPPER ========== */
.editorial-section {
    margin-bottom: 3rem;
}

/* ========== SAFE CARD EXTENSION (uses existing .card) ========== */
.editorial-card.card {
    gap: 12px;
    padding: 12px;
    transition: 0.2s;
}

.editorial-card.card:hover {
    transform: translateY(-3px);
}

/* ========== CARD VARIANT EXTENSIONS ONLY ========== */
.card-featured {
    border-left: 5px solid #2c7da0;
    grid-column: 1 / -1;
    padding: 16px;
}

.card-advisory {
    border-left: 3px solid #10b981;
}

/* ========== LEADERSHIP BLOCK ========== */
.leadership-block {
    background: #f0f6ff;
    border-radius: 24px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #d9e9ff;
    overflow: hidden;
    position: relative;
}

.leadership-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #0c4a6e, #0369a1);
}

.leadership-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.leadership-card {
    background: #fff;
    padding: 12px 10px;
    border-radius: 20px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.04);
    transition: 0.2s;
    border: 1px solid #eef4ff;
}

.leadership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -8px rgba(20, 60, 120, 0.2);
    border-color: #ffb347;
}

.leadership-role {
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #e66f00;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.leadership-role i {
    font-size: 12px;
    color: #0284c7;
}

.leadership-name {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.leadership-position {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

/* ========== SECTION WRAPPER ========== */
.section-wrapper {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.section-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
    flex-shrink: 0;
    position: relative;
}

/* Fixed: Added display property and proper closing */
.section-icon::before {
    content: "\f0ae";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
}

/* ========== SCOPE GRID ========== */
.scope-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 20px 0;
}

.scope-item {
    background: #fff;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid #d9e2ef;
    border-left: 4px solid #dc2626;
    font-size: 14.5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: 0.1s;
}

.scope-item:hover {
    transform: translateY(-2px);
}

.scope-item i {
    margin-right: 8px;
    color: #dc2626;
}

.scope-title {
    font-size: 1rem;
    font-weight: 600;
    color: #036;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scope-sub {
    font-size: 13px;
    color: #2c3e50;
    padding-right: 10px;
    border-right: 2px solid #ffb347;
    font-style: italic;
}

/* ========== HIGHLIGHT BLOCK ========== */
/* Fixed: Removed duplicate border properties */
.highlight-block {
    background: #ffeed9;
    border: 1px solid #fed7aa;
    border-right: 6px solid #f39c12;
    padding: 20px 25px;
    border-radius: 18px;
    margin: 20px 0;
    position: relative;
}

.highlight-block::before {
    content: "⭐";
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.3;
    pointer-events: none;
}

.highlight-title {
    font-size: 17px;
    font-weight: 700;
    color: #a54300;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-text {
    font-size: 15.5px;
    color: #1e2f44;
    line-height: 1.7;
}

/* ========== RTL SUPPORT ========== */
html[dir="rtl"] .leadership-block::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .card-featured,
html[dir="rtl"] .card-advisory {
    border-left: none;
}

html[dir="rtl"] .card-featured {
    border-right: 5px solid #2c7da0;
}

html[dir="rtl"] .card-advisory {
    border-right: 3px solid #10b981;
}

html[dir="rtl"] .scope-item {
    border-left: none;
    border-right: 4px solid #dc2626;
}

html[dir="rtl"] .scope-sub {
    border-right: none;
    border-left: 2px solid #ffb347;
    padding-right: 0;
    padding-left: 10px;
}

html[dir="rtl"] .scope-item i {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="rtl"] .highlight-block {
    border-right: 1px solid #fed7aa;
    border-left: 6px solid #f39c12;
}

html[dir="rtl"] .highlight-block::before {
    right: auto;
    left: 15px;
}

html[dir="rtl"] .section-header {
    flex-direction: row-reverse;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .scope-item {
        padding: 15px;
    }

    .leadership-block {
        padding: 12px;
    }
    
    .section-header {
        gap: 8px;
    }
    
    .section-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .scope-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .ojs-editorial-board-container {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .highlight-block {
        padding: 15px 18px;
    }
    
    .highlight-title {
        font-size: 15px;
    }
    
    .highlight-text {
        font-size: 14px;
    }
    
    .scope-item {
        padding: 12px 15px;
    }
}

@media (max-width: 360px) {
    .leadership-name {
        font-size: 15px;
    }
    
    .leadership-position {
        font-size: 12px;
    }
    
    .leadership-role {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .ojs-editorial-board-container {
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
    
    .leadership-card,
    .scope-item,
    .highlight-block {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .section-icon {
        background: #f0f0f0;
        color: #333;
        box-shadow: none;
    }
    
    .leadership-card:hover,
    .scope-item:hover {
        transform: none;
    }
}