/* ======================================================================
   VIA LINGUA OJS 3.5 JOURNAL HOMEPAGE
   Target journal path: vlg
   Upload as Journal Style Sheet for Via Lingua or Site Style Sheet.
   Required template root class: .vlg-home
   Hero is intentionally contained so it does not appear too wide.
   ====================================================================== */

:root {
  --vlg-blue-900: #0f235a;
  --vlg-blue-800: #163b7b;
  --vlg-blue-700: #224d9c;
  --vlg-orange: #f28720;
  --vlg-orange-2: #ff9b31;
  --vlg-red: #af1d17;
  --vlg-bg: #f6f8fc;
  --vlg-card: #ffffff;
  --vlg-text: #15233d;
  --vlg-muted: #617089;
  --vlg-line: #dce4ef;
  --vlg-radius: 16px;
  --vlg-shadow: 0 12px 30px rgba(15, 35, 90, .08);
  --vlg-container: 1240px;
}

body:has(.vlg-home) {
  background: #ffffff !important;
  color: var(--vlg-text);
  overflow-x: hidden;
}

body:has(.vlg-home) .pkp_structure_page,
body:has(.vlg-home) .pkp_structure_content,
body:has(.vlg-home) .pkp_structure_main,
body:has(.vlg-home) .pkp_structure_body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body:has(.vlg-home) .pkp_structure_head,
body:has(.vlg-home) .pkp_structure_footer,
body:has(.vlg-home) .pkp_structure_footer_wrapper,
body:has(.vlg-home) .pkp_structure_sidebar {
  display: none !important;
}

body:has(.vlg-home) .pkp_structure_content::before,
body:has(.vlg-home) .pkp_structure_content::after,
body:has(.vlg-home) .pkp_structure_main::before,
body:has(.vlg-home) .pkp_structure_main::after {
  display: none !important;
  content: none !important;
}

.vlg-home,
.vlg-home * {
  box-sizing: border-box;
}

.vlg-home {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  background: #fff;
  color: var(--vlg-text);
  font-family: "Segoe UI", Inter, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.vlg-home a { transition: .18s ease; }

.vlg-header {
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 35, 90, .06);
  position: relative;
  z-index: 20;
}

.vlg-header-inner {
  max-width: var(--vlg-container);
  margin: 0 auto;
  min-height: 94px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
}

.vlg-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.vlg-brand img {
  display: block;
  width: auto;
  height: 70px;
  max-width: 260px;
  object-fit: contain;
}

.vlg-header-title-text {
  padding-left: 18px;
  border-left: 2px solid var(--vlg-line);
}

.vlg-header-title-text h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.1;
  color: var(--vlg-blue-900);
}

.vlg-header-title-text p {
  margin: 4px 0 0;
  font-size: .98rem;
  color: var(--vlg-text);
  font-weight: 600;
}

.vlg-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--vlg-blue-900);
  white-space: nowrap;
  font-weight: 700;
}

.vlg-lang { display: inline-flex; align-items: center; gap: 8px; }
.vlg-lang a,
.vlg-header-actions a {
  color: var(--vlg-blue-900) !important;
  text-decoration: none !important;
}

.vlg-action-link:hover { color: var(--vlg-orange) !important; }
.vlg-search-link { font-size: 1.6rem; line-height: 1; }

.vlg-main-nav {
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid var(--vlg-line);
  background: rgba(255,255,255,.98);
}

.vlg-nav-inner {
  max-width: var(--vlg-container);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.vlg-nav-inner a {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--vlg-blue-900) !important;
  text-decoration: none !important;
  font-size: .95rem;
  font-weight: 800;
  white-space: nowrap;
}

.vlg-nav-inner a:hover,
.vlg-nav-inner a.is-active { color: var(--vlg-orange) !important; }
.vlg-nav-inner a.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--vlg-orange);
}

/* Contained hero so banner is not too wide */
.vlg-hero {
  position: relative;
  width: calc(100% - 40px);
  max-width: 1280px;
  min-height: 372px;
  margin: 18px auto 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.92) 37%, rgba(255,255,255,.25) 68%, rgba(255,255,255,.06) 100%),
    url('/public/site/vlg-home/hero-via-lingua.png');
  background-size: cover;
  background-position: center right;
  box-shadow: var(--vlg-shadow);
}

.vlg-hero-inner {
  max-width: var(--vlg-container);
  margin: 0 auto;
  padding: 48px 34px 28px;
  position: relative;
  z-index: 2;
}

.vlg-hero-copy { max-width: 520px; }

.vlg-hero h2 {
  margin: 0;
  color: var(--vlg-blue-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6.2vw, 5.1rem);
  line-height: .96;
  font-weight: 700;
  letter-spacing: -.05em;
}

.vlg-hero h3 {
  margin: 10px 0 14px;
  color: var(--vlg-orange);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
  font-weight: 800;
}

.vlg-hero p {
  margin: 0;
  color: var(--vlg-text);
  font-size: 1.09rem;
  max-width: 520px;
}

.vlg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 18px;
}

.vlg-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 11px;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(15, 35, 90, .12);
}

.vlg-btn-orange { background: linear-gradient(135deg, var(--vlg-orange), var(--vlg-orange-2)); color: #fff !important; }
.vlg-btn-blue { background: linear-gradient(135deg, var(--vlg-blue-900), var(--vlg-blue-700)); color: #fff !important; }
.vlg-btn:hover { transform: translateY(-1px); }

.vlg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vlg-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.90);
  border: 1px solid #dce5f1;
  color: var(--vlg-blue-900);
  font-size: .94rem;
  font-weight: 700;
}

.vlg-page {
  max-width: var(--vlg-container);
  margin: 18px auto 0;
  padding: 0 18px 34px;
}

.vlg-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
  gap: 18px;
}

.vlg-left-col,
.vlg-right-col { display: grid; gap: 18px; align-content: start; }

.vlg-card {
  background: var(--vlg-card);
  border: 1px solid var(--vlg-line);
  border-radius: var(--vlg-radius);
  box-shadow: var(--vlg-shadow);
  padding: 20px 22px;
}

.vlg-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.vlg-section-heading.compact { margin-bottom: 14px; }
.vlg-section-heading h2 {
  margin: 0;
  color: var(--vlg-blue-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.15;
}
.vlg-section-heading.compact h2 { font-size: 1.82rem; }
.vlg-title-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef4ff; color: var(--vlg-blue-900); font-size: 1rem; flex: 0 0 auto;
}

.vlg-about-card p,
.vlg-contact-card li,
.vlg-footer-brand p,
.vlg-publisher-block p {
  margin: 0;
  color: var(--vlg-text);
}

.vlg-scope-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.vlg-scope-list ul { margin: 0; padding-left: 20px; }
.vlg-scope-list li { margin: 0 0 6px; }

.vlg-issue-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
}

.vlg-issue-cover img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--vlg-line);
  box-shadow: 0 10px 24px rgba(15, 35, 90, .10);
}

.vlg-issue-content h3 {
  margin: 0 0 10px;
  color: var(--vlg-blue-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.95rem;
}

.vlg-issue-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  color: var(--vlg-text);
}
.vlg-issue-meta li { margin-bottom: 4px; }

.vlg-article-list {
  display: grid;
  gap: 14px;
}
.vlg-article-list article {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--vlg-line);
}
.vlg-article-no {
  color: var(--vlg-blue-900);
  font-weight: 900;
  font-size: 1.1rem;
}
.vlg-article-list h4 {
  margin: 0 0 4px;
  color: var(--vlg-blue-900);
  font-size: 1.1rem;
  line-height: 1.35;
}
.vlg-article-list p {
  margin: 0 0 8px;
  color: var(--vlg-muted);
  font-size: .95rem;
}

.vlg-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vlg-article-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--vlg-line);
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--vlg-text) !important;
  background: #fff;
  font-size: .9rem;
  font-weight: 700;
}
.vlg-article-actions a:nth-child(2) { border-color: #fdc99e; color: var(--vlg-orange) !important; }
.vlg-article-actions a:hover { background: #f8fbff; }

.vlg-view-all {
  display: inline-block;
  margin-top: 14px;
  color: var(--vlg-orange) !important;
  text-decoration: none !important;
  font-weight: 800;
}

.vlg-announcement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vlg-announcement-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--vlg-line);
}
.vlg-announcement-list li:first-child { border-top: 0; padding-top: 0; }
.vlg-announcement-list span { color: var(--vlg-text); font-weight: 600; }
.vlg-announcement-list time { color: var(--vlg-muted); white-space: nowrap; }

.vlg-info-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.vlg-info-card th,
.vlg-info-card td {
  padding: 10px 8px;
  border-top: 1px solid var(--vlg-line);
  text-align: left;
  vertical-align: top;
}
.vlg-info-card tr:first-child th,
.vlg-info-card tr:first-child td { border-top: 0; }
.vlg-info-card th {
  width: 34%;
  color: var(--vlg-blue-900);
  font-weight: 800;
}

.vlg-quick-links nav { display: grid; gap: 10px; }
.vlg-quick-links a,
.vlg-footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
  color: var(--vlg-blue-900) !important;
  font-weight: 700;
}
.vlg-quick-links a span { color: var(--vlg-orange); }

.vlg-indexing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.vlg-indexing-grid span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--vlg-line);
  border-radius: 10px;
  color: var(--vlg-text);
  font-weight: 700;
  background: #fff;
}

.vlg-contact-card ul {
  margin: 0;
  padding-left: 18px;
}
.vlg-contact-card li + li { margin-top: 8px; }
.vlg-contact-card a { color: var(--vlg-blue-900) !important; text-decoration: none !important; }

.vlg-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.vlg-metrics-grid div {
  border: 1px solid var(--vlg-line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.vlg-metrics-grid strong {
  display: block;
  color: var(--vlg-blue-900);
  font-size: 1.65rem;
  line-height: 1;
}
.vlg-metrics-grid span { color: var(--vlg-muted); font-size: .9rem; font-weight: 700; }

.vlg-footer {
  margin-top: 12px;
  background: linear-gradient(180deg, #0d2f73, #06285e);
  color: #fff;
}

.vlg-footer-inner {
  max-width: var(--vlg-container);
  margin: 0 auto;
  padding: 28px 18px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1.25fr .9fr .9fr;
  gap: 22px;
}

.vlg-footer-col h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: #fff;
}

.vlg-footer-brand img {
  width: 170px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.vlg-publisher-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.vlg-publisher-block img {
  width: 92px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}
.vlg-publisher-block strong { display: block; margin-bottom: 4px; }

.vlg-socials {
  display: grid;
  gap: 10px;
}
.vlg-socials a {
  text-decoration: none !important;
  color: #fff !important;
  font-weight: 700;
}

.vlg-footer-links {
  display: grid;
  gap: 10px;
}
.vlg-footer-links a { color: #fff !important; }

.vlg-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  padding: 12px 18px;
  font-size: .95rem;
}

@media (max-width: 1100px) {
  .vlg-main-grid { grid-template-columns: 1fr; }
  .vlg-footer-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .vlg-header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .vlg-header-title-text {
    padding-left: 0;
    border-left: 0;
  }
  .vlg-header-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .vlg-hero {
    width: calc(100% - 20px);
    max-width: none;
    min-height: 320px;
    border-radius: 14px;
    background-position: center center;
  }
  .vlg-hero-inner { padding: 36px 18px 22px; }
  .vlg-issue-layout { grid-template-columns: 1fr; }
  .vlg-issue-cover { max-width: 240px; }
}

@media (max-width: 640px) {
  .vlg-nav-inner { justify-content: flex-start; }
  .vlg-hero h2 { font-size: 2.5rem; }
  .vlg-scope-list,
  .vlg-metrics-grid,
  .vlg-footer-inner,
  .vlg-indexing-grid { grid-template-columns: 1fr; }
  .vlg-announcement-list li { flex-direction: column; gap: 2px; }
}
