/* ================================================================
 * News & Events Page - Custom CSS
 * ================================================================ */

:root {
  --primary-color: #1a1a1a;
  --accent-color: #C55D00;
  --text-color: #666;
  --light-bg: #fff9eb;  /* Match site body/navbar (main.css) */
  --white: #fff;
  --border-color: #e5e5e5;
  --default-font: "Onest", sans-serif;
}

/* News & Events page: no ticker; navbar fixed at top (like other pages) */
.news-events-page .fix_nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--light-bg);
  width: 100%;
}

.news-events-page {
  padding-top: 80px; /* space for fixed navbar */
}

/* Scoped to page-blog to avoid conflicting with global styles */ 
.page-blog {
  font-family: var(--default-font);
}

.page-blog * {
  box-sizing: border-box;
}

/* Image Animation */

.page-blog .image-anime {
  position: relative;
  overflow: hidden;
}

.page-blog .image-anime:after {
  content: "";
  position: absolute;
  width: 200%;
  height: 0%;
  left: 50%;
  top: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
}

.page-blog .image-anime:hover:after {
  height: 250%;
  transition: all 600ms linear;
  background-color: transparent;
}

/* Blog Page Section */

.page-blog {
  padding: 80px 0;
  background-color: var(--light-bg);
}

/* Space between card rows */
.page-blog .blog-item {
  margin-bottom: 28px;
}

/* Post Item */

.page-blog .post-item {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Post Featured Image */

.page-blog .post-featured-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
}

.page-blog .post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.page-blog .post-featured-image a figure {
  display: block;
  border-radius: 12px;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.page-blog .post-featured-image a figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.page-blog .post-item:hover .post-featured-image a figure img {
  transform: scale(1.08);
}

/* Post Item Body */

.page-blog .post-item-body {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 28px;
  flex-grow: 1;
  min-width: 0;
}

.page-blog .post-item-body-content {
  flex-grow: 1;
  min-width: 0;
}

/* Post Item Meta */

.page-blog .post-item-meta {
  margin-bottom: 15px;
}

.page-blog .post-item-meta ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.page-blog .post-item-meta ul li {
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #999;
  font-weight: 500;
}

.page-blog .post-item-meta ul li::before {
  content: '';
  display: none;
}

.page-blog .post-item-meta ul li img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-right: 6px;
}

/* Post Item Content */

.page-blog .post-item-content {
  margin-bottom: 12px;
  min-width: 0;
}

.page-blog .post-item-content h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  color: var(--primary-color);
}

.page-blog .post-item-content h2 a {
  color: var(--primary-color);
  transition: color 0.3s ease;
  text-decoration: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: block;
}

.page-blog .post-item-content h2 a:hover {
  color: var(--accent-color);
}

.page-blog .post-item-content p {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

/* Read More Button - use CSS arrow (no image file required) */

.page-blog .readmore-btn {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  text-transform: lowercase;
  color: var(--accent-color);
  padding-right: 28px;
  transition: all 0.4s ease-in-out;
  text-decoration: none;
}

.page-blog .readmore-btn::after {
  content: '\2192';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(-2px, -50%);
  font-size: 16px;
  transition: transform 0.4s ease-in-out;
}

.page-blog .readmore-btn:hover::after {
  transform: translate(4px, -50%);
}

.page-blog .readmore-btn:hover {
  color: #1a1a1a;
}

/* Post Item Button */

.page-blog .post-item-btn {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* Pagination */

.page-blog .page-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.page-blog .page-pagination ul.pagination {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-blog .page-pagination ul.pagination li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  background: var(--white);
  transition: all 0.3s ease;
}

.page-blog .page-pagination ul.pagination li:hover {
  border-color: var(--accent-color);
  background: #fef5ef;
}

.page-blog .page-pagination ul.pagination li.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.page-blog .page-pagination ul.pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
}

.page-blog .page-pagination ul.pagination li.active a {
  color: var(--white);
}

.page-blog .page-pagination ul.pagination li:hover a {
  color: var(--accent-color);
}

.page-blog .page-pagination ul.pagination li.active:hover a {
  color: var(--white);
}

.page-blog .page-pagination ul.pagination li a i {
  color: inherit;
  font-size: 16px;
  transition: color 0.3s ease;
}

/* Responsive Styles */

@media (max-width: 1024px) {
  .page-blog .post-featured-image {
    height: 240px;
  }

  .page-blog .post-item-body {
    padding: 26px 24px;
  }

  .page-blog .post-item-content h2 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding: 60px 0;
  }

  .page-blog .post-featured-image {
    height: 220px;
  }

  .page-blog .post-item-body {
    padding: 24px 20px;
  }

  .page-blog .post-item-content h2 {
    font-size: 16px;
  }

  .page-blog .page-pagination ul.pagination li {
    min-width: 40px;
    height: 40px;
  }

  .page-blog .page-pagination ul.pagination li a {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .page-blog {
    padding: 40px 0;
    overflow-x: hidden;
  }

  .page-blog .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-blog .blog-item {
    margin-bottom: 20px;
  }

  .page-blog .post-item {
    width: 100%;
    max-width: 100%;
  }

  .page-blog .post-featured-image {
    height: 180px;
  }

  .page-blog .post-item-body {
    padding: 20px 16px;
    gap: 14px;
  }

  .page-blog .post-item-meta ul li {
    font-size: 12px;
  }

  .page-blog .post-item-meta ul li img {
    width: 40px;
    height: 40px;
  }

  .page-blog .post-item-content h2,
  .page-blog .post-item-content h2 a {
    font-size: 15px;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .page-blog .readmore-btn {
    font-size: 12px;
  }

  .page-blog .page-pagination {
    margin-top: 40px;
  }

  .page-blog .page-pagination ul.pagination {
    gap: 8px;
  }

  .page-blog .page-pagination ul.pagination li {
    min-width: 36px;
    height: 36px;
  }

  .page-blog .page-pagination ul.pagination li a {
    font-size: 11px;
  }
}
