/* =========================
   Base / Typography
   ========================= */
body {
  font-family: "Noto Sans", serif;
  background: #fff;
  font-size: 18px;
  line-height: 30px;
  font-weight: 400;
  color: #333;
  margin: 0;
  overflow-x: hidden; /* Allow vertical scroll */
}

/* Headings & text rhythm */
h1, h2 {
  color: #f7941d;
  font-weight: bold;
  padding: 10px 0 5px;
  border-bottom: 1px solid #ccc;
  margin-top: 32px;
}
h2 {
  font-size: 20px;
}
h3 {
  color: #1a1a1a;
  font-weight: 600;
  margin-top: 20px;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #007bff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
p {
  margin-bottom: 18px;
}
strong {
  color: #000;
}

/* Section Box Styling */
.section {
  background: #fff;
  padding: 20px 28px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

/* =========================
   Layout: Container + Columns
   ========================= */

.pkp_structure_content {
  max-width: 1360px !important;
  margin: 0 auto !important;
  padding: 24px 12px !important;
  box-sizing: border-box;
}

.pkp_structure_main {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: flex-start;
}

/* MAIN CONTENT */
#main-content {
  flex: 1;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

/* Remove extra paddings that conflict */
#main-content .page,
#main-content .pkp_container,
#main-content .obj_article_details,
#main-content .cmp_notification {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* SIDEBAR - Sticky */
.pkp_structure_sidebar {
  position: sticky;
  top: 80px; /* Adjust based on header height */
  align-self: flex-start;
  flex: 0 0 248px;
  max-width: 248px;
  background: #f8f8f8;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  height: fit-content;
}

.pkp_structure_sidebar .pkp_block {
  margin-bottom: 24px;
}

.pkp_structure_sidebar h2.title {
  font-size: 18px;
  color: #f7941d;
  margin-bottom: 8px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}

/* =========================
   Responsive Adjustments
   ========================= */
@media (max-width: 1024px) {
  .pkp_structure_main {
    display: block;
  }

  #main-content {
    max-width: 100%;
  }

  .pkp_structure_sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
  }
}

/* =========================
   SLIDER STYLES
   ========================= */
.home-slider {
  position: relative;
  width: 100%;
  height: 400px;
  background-image: url('/public/site/images/kjemi/your-slider-image.jpg'); /* Update path */
  background-size: cover;
  background-position: center;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.slider-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  max-width: 80%;
  z-index: 2;
}

.btn-slider {
  display: inline-block;
  margin-top: 20px;
  background-color: #f7941d;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}
.btn-slider:hover {
  background-color: #d87b10;
}
/* Hide the default OJS footer */
.pkp_structure_footer_wrapper {
  display: none !important;
}

/* Custom footer styling */
.kemi-footer {
  background-color: #0194CA !important;
  color: #ffffff !important;
  font-size: 14px;
  font-family: "Segoe UI", sans-serif;
  width: 100%;
  padding: 30px 0 10px;
  margin: 0;
}

.kemi-footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.kemi-footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.kemi-footer-column {
  flex: 1 1 250px;
  min-width: 200px;
}

.kemi-footer a {
  color: #ffffff !important;
  text-decoration: underline;
}

.kemi-footer a:hover {
  color: #fbd45c !important;
  text-decoration: none;
}

.kemi-footer strong {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.kemi-footer-bottom {
  text-align: center;
  font-size: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 10px;
}

/* Responsive Enhancements */
@media screen and (max-width: 768px) {
  .kemi-footer {
    padding: 20px 0 5px;
  }

  .kemi-footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .kemi-footer-column {
    padding-bottom: 10px;
  }

  .kemi-footer a {
    line-height: 1.5;
  }

  .kemi-footer strong {
    font-size: 15px;
    margin-bottom: 4px;
  }
}
/* Keep announcement content responsive */
.pkp_page_announcement .main_entry,
.pkp_page_announcement .page,
.pkp_page_announcement .pkp_page_content,
.pkp_page_announcement .pkp_structure_content {
  max-width: 100% !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Make images within announcement responsive */
.pkp_page_announcement img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.pkp_page_announcement {
  padding: 1rem;
}

body {
  overflow-x: hidden;
}
 .announcement-content {
    text-align: justify;
    margin: 0 auto;
    width: 95%;
    max-width: 960px;
  }

  .announcement-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
  }

  .announcement-content h1 {
    text-align: center;
    color: #0194CA;
  }

/* Ensure all content inside the main journal pages is justified */
#main-content p,
#main-content li,
#main-content ol,
#main-content ul {
  text-align: justify;
}

/* Optionally justify entire sections */
.section,
.announcement-content {
  text-align: justify;
}

/* Maintain existing centered headings but allow justified body text */
#main-content h1,
#main-content h2,
#main-content h3 {
  text-align: center;
}
