/**
 * OJS 3.4 MATERIAL THEME - GREEN
 *
 * Primary Color: #2E8B57 (SeaGreen)
 * Secondary Color: #3CB371 (MediumSeaGreen)
 * Accent/Link Color: #20B2AA (LightSeaGreen)
 * Background Color: #F8F9FA
 */

:root {
  --primary: #2E8B57;
  --primary-light: #3CB371;
  --primary-text: #FFFFFF;
  --secondary: #f8f9fa;
  --secondary-text: #333;
  --link: #20B2AA;
  --link-hover: #1a8e88;
}

/* --- Global --- */
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

/* --- Header --- */
.pkp_structure_head {
  background-color: var(--primary);
  border-bottom: 4px solid var(--primary-light);
}

.pkp_structure_head .pkp_site_name h1,
.pkp_structure_head .pkp_site_name h1 a {
  color: var(--primary-text);
}

.pkp_navigation_primary ul[aria-label="Navigation Items"] > li > a {
  color: var(--primary-text);
}

.pkp_navigation_primary ul[aria-label="Navigation Items"] > li > a:hover,
.pkp_navigation_primary ul[aria-label="Navigation Items"] > li > a:focus {
  background-color: var(--primary-light);
}

/* --- Buttons --- */
.pkp_button {
  background: var(--primary) !important;
  color: var(--primary-text) !important;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}

.pkp_button:hover,
.pkp_button:focus {
  background: var(--primary-light) !important;
}

.cmp_button, .cmp_button_link  {
	background: var(--primary) !important;
    color: var(--primary-text) !important;
}

/* --- Article & Issue Details --- */
.obj_article_details .page_title {
  color: var(--primary);
}

.obj_issue_toc .heading {
   border-bottom: 2px solid var(--primary-light);
   color: var(--primary);
}

/* --- Editorial Team Page --- */
.page_editorial_team .section_title,
.page_editorial_team .section_subtitle {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 3px solid var(--primary-light);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.page_editorial_team .board_member {
  background-color: #fff;
  border: 1px solid #ddd;
  border-left: 5px solid var(--primary);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
  transition: box-shadow 0.3s ease;
}

.page_editorial_team .board_member:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left-color: var(--link);
}

.page_editorial_team .member_name {
  font-size: 1.15rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25rem;
}

.page_editorial_team .member_affiliation {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

.page_editorial_team .member_expertise {
  font-size: 0.9rem;
  color: #444;
}

.page_editorial_team .member_expertise strong {
  color: var(--primary);
}

/*
 * ===============================================
 * STYLES FOR ENHANCED JOURNAL DESCRIPTION PAGE
 * ===============================================
 */

/* Import FontAwesome for Icons (Add this to your OJS header if not already present) */
/* @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css'); */

/* Main container for the description */
.journal-description-container {
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
}

/* General section styling */
.description-section {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

/* Section headers */
.description-section .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.description-section .section-header i {
    font-size: 24px;
    color: #2E8B57; /* Main Green from previous theme */
    margin-right: 15px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e9; /* Light green tint */
    border-radius: 50%;
}

.description-section .section-header h2,
.description-section .section-header h3,
.description-section .section-header h4 {
    margin: 0;
    font-weight: 700;
    color: #2E8B57;
}

.description-section .section-header h2 { font-size: 1.8rem; }
.description-section .section-header h3 { font-size: 1.5rem; }
.description-section .section-header h4 { font-size: 1.2rem; color: #333; }

/* Grid layout for policies */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding-top: 15px;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.policy-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #3CB371; /* Secondary green */
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.policy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.policy-item .section-header {
    border: none;
    padding: 0;
    margin-bottom: 10px;
}

.policy-item .section-header i {
    font-size: 18px;
    width: 35px;
    height: 35px;
    color: #3CB371;
    background-color: #fff;
}

.policy-item p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Side-by-side layout for history and sponsorship */
.side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.side-item {
    background-color: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 25px 30px;
}

/* Link styling */
.description-section a {
    color: #20B2AA;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted #20B2AA;
    transition: color 0.2s, border-bottom-color 0.2s;
}

.description-section a:hover {
    color: #1a8e88;
    border-bottom-color: #1a8e88;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .policy-grid, .side-by-side {
        grid-template-columns: 1fr;
    }
    .description-section {
        padding: 20px;
    }
}