/* ===========================
   IAECER HOME PAGE CSS (CLEAN)
   SCCCTS STYLE JOURNAL CARDS
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f2f2;
  color: #222;
  line-height: 1.5;
}

/* Main container */
.container {
  width: min(1150px, 92%);
  margin: 24px auto 60px;
}

/* About box */
.about-card {
  background: #0b5a84;
  color: #fff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  max-width: 1111px;
  margin: 0 auto 35px;
  font-size: 14px;
  line-height: 1.7;
}

/* Section title */
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #0b5a84;
  margin: 18px 0 20px;
}

/* =====================================
   JOURNAL GRID (NO OVERLAP GUARANTEED)
   ===================================== */

.journals-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin-top: 20px !important;
  clear: both !important;
}

/* Journal card */
.journal-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  position: static !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Top part: cover + text */
.journal-top {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 18px;
  align-items: start;
}

/* Cover image */
.journal-cover {
  width: 130px;
  height: 170px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ddd;
  background: #fafafa;
}

/* Journal title */
.journal-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px;
  line-height: 1.3;
}

/* ISSN / Subtitle */
.journal-tags {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
}

/* =====================================
   BUTTONS (SCCCTS STYLE)
   ===================================== */

.journal-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #eee;
  background: #fafafa;
}

.btn {
  padding: 14px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  border-right: 1px solid #eee;
  text-decoration: none;
  background: transparent;
  transition: 0.2s;
}

.journal-actions .btn:last-child {
  border-right: none;
}

.btn:hover {
  background: #f0f8ff;
  color: #0b5a84;
}

/* =====================================
   MOBILE RESPONSIVE
   ===================================== */

@media (max-width: 900px) {
  .journals-grid {
    grid-template-columns: 1fr !important;
  }

  .journal-top {
    grid-template-columns: 120px 1fr;
  }

  .journal-cover {
    width: 110px;
    height: 150px;
  }

  .journal-actions {
    grid-template-columns: 1fr;
  }

  .btn {
    border-right: none;
    border-top: 1px solid #eee;
  }

  .btn:first-child {
    border-top: none;
  }
}
/* ===== Make main container wider ===== */
.container {
  width: min(1350px, 96%);
  margin: 24px auto 60px;
}

/* ===== Wider cards like SCCCTS ===== */
.journals-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(620px,1fr)) !important;
  gap: 28px !important;
  justify-content: center !important;
}

/* ===== Bigger Card ===== */
.journal-card {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

/* ===== Bigger top section ===== */
.journal-top {
  grid-template-columns: 190px 1fr !important;
  gap: 22px !important;
  padding: 24px !important;
}

/* ===== Bigger cover image ===== */
.journal-cover {
  width: 170px !important;
  height: 220px !important;
  border-radius: 6px !important;
}

/* ===== Bigger journal title ===== */
.journal-info h3 {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin-bottom: 14px !important;
}

/* ===== Bigger ISSN line ===== */
.journal-tags {
  font-size: 16px !important;
  color: #666 !important;
}

/* ===== Button area bigger ===== */
.journal-actions {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ===== Bigger buttons like SCCCTS ===== */
.btn {
  padding: 18px 12px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .journals-grid {
    grid-template-columns: 1fr !important;
  }

  .journal-top {
    grid-template-columns: 150px 1fr !important;
  }

  .journal-cover {
    width: 140px !important;
    height: 190px !important;
  }
}
/* ==========================================================
   GREEN–BLUE PILL BUTTONS + ICONS (Override)
   Put at END of CSS
   ========================================================== */

.journal-actions {
  background: transparent !important;
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 14px !important;
}

/* Base button style */
.journal-actions .btn {
  flex: 1 !important;
  min-width: 160px !important;
  text-align: center !important;
  padding: 12px 18px !important;
  border-radius: 999px !important;   /* pill shape */
  font-weight: 900 !important;
  font-size: 14px !important;
  color: #ffffff !important;
  border: none !important;
  text-decoration: none !important;
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.20) !important;
}

/* Button 1 - View Journal */
.journal-actions .btn:nth-child(1) {
  background: linear-gradient(90deg, #14b8a6, #2563eb) !important;
}
.journal-actions .btn:nth-child(1)::before {
  content: "📘";
  font-size: 16px;
}

/* Button 2 - Current Issue */
.journal-actions .btn:nth-child(2) {
  background: linear-gradient(90deg, #06b6d4, #0ea5e9) !important;
}
.journal-actions .btn:nth-child(2)::before {
  content: "📄";
  font-size: 16px;
}

/* Button 3 - Submit */
.journal-actions .btn:nth-child(3) {
  background: linear-gradient(90deg, #22c55e, #16a34a) !important;
}
.journal-actions .btn:nth-child(3)::before {
  content: "✍";
  font-size: 16px;
}

/* Hover animation */
.journal-actions .btn:hover {
  transform: translateY(-3px) scale(1.02) !important;
  filter: brightness(1.05) !important;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25) !important;
  color: #ffffff !important;
}

/* Click effect */
.journal-actions .btn:active {
  transform: translateY(-1px) scale(0.99) !important;
}

/* Mobile: stack nicely */
@media (max-width: 700px) {
  .journal-actions .btn {
    min-width: 100% !important;
  }
}
/* ==========================================================
   JOURNAL GRID / CARDS BACKGROUND = GREY
   ========================================================== */

/* Grey card background */
body.pkp_site_index .oj-card {
  background: linear-gradient(135deg, #ffffff, #f3f4f6) !important; /* white → light grey */
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

/* Make hover still premium */
body.pkp_site_index .oj-card:hover {
  background: linear-gradient(135deg, #ffffff, #e5e7eb) !important; /* slightly darker grey */
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14) !important;
}
body.pkp_site_index .oj-journal-grid {
  padding: 18px !important;
  border-radius: 18px !important;
  background: #f3f4f6 !important;
}
