/* ==========================================================================
   JIPP — Journal of Ideas, Policies and Practices
   Official Academic Journal Style (SHD Research Foundation)
   ========================================================================== */

:root {
  --primary: #0d233a;
  --primary-light: #183b5e;
  --primary-dark: #071524;
  --accent: #b47a1f;
  --accent-light: #e6a847;
  --accent-soft: #fbf5eb;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: #0d233a;
  --success: #15803d;
  --danger: #b91c1c;

  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(13, 35, 58, 0.08);
  --shadow-lg: 0 10px 25px rgba(13, 35, 58, 0.12);
  --transition: all 0.2s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
}

/* Top Bar Announcement */
.top-notice-bar {
  background: var(--primary-dark);
  color: #f1f5f9;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-notice-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-notice-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-badge {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.top-notice-right {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}
.top-notice-right a {
  color: #cbd5e1;
  text-decoration: none;
}
.top-notice-right a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--primary);
}
.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.brand-titles {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}
.nav-item a {
  display: block;
  padding: 8px 12px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-item a:hover,
.nav-item.active a {
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-submit-nav {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  margin-left: 6px;
}
.btn-submit-nav:hover {
  background: var(--primary-light) !important;
  color: #fff !important;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 860px;
}
.hero-badge {
  display: inline-block;
  background: rgba(180, 122, 31, 0.25);
  border: 1px solid var(--accent-light);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
}
.hero-subtitle {
  font-size: 1.12rem;
  color: #cbd5e1;
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  font-size: 0.9rem;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
}
.hero-meta-item strong {
  color: #ffffff;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #000000;
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Callout Box */
.notice-box {
  background: #fff;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

/* Search Bar Component */
.search-container {
  background: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin: -24px auto 36px;
  max-width: 900px;
  position: relative;
  z-index: 10;
}
.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(13, 35, 58, 0.1);
}
.search-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Sections */
.section {
  padding: 60px 0;
}
.section-alt {
  background: #ffffff;
}
.section-header {
  margin-bottom: 36px;
}
.section-subtitle {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary);
  line-height: 1.3;
}
.section-desc {
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 8px;
  font-size: 1rem;
}

/* Article Cards */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.article-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.article-badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-authors {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}
.article-affil {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.article-abstract {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.btn-pdf {
  background: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.88rem;
}
.btn-pdf:hover {
  background: var(--primary-light);
  color: #ffffff;
}

/* Editorial Board Layout */
.chief-editor-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}
.chief-photo {
  width: 140px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.board-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.board-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.board-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.board-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.board-affil {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Information Cards Grid */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.info-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.info-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Call for Papers Table */
.data-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th {
  background: var(--primary);
  color: #ffffff;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
}
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: var(--bg-page);
}

/* Guidelines List */
.guideline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.guideline-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 60px 0 24px;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h4 {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
  color: #94a3b8;
}
.footer-col h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 4px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2rem;
  }
  .chief-editor-card {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
