/* Outer background */
.news-page-wrapper {
  background-color: #e9e9e9;
  padding: 40px 0;
}

/* Grid container: content + sidebar */
.news-grid-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Content box */
.news-content-box {
  background-color: #fff;
  padding: 0;
  border-radius: 0px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Featured image */
.news-image-attached {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.news-image-attached img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Title overlay */
.news-image-attached {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.news-image-attached img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Bottom overlay bar */
.news-overlay-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(0, 85, 179, 0.6); /* deep diocesan blue with transparency */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  padding-left: 20px;
  z-index: 2;
}

.news-overlay-bar h1 {
  font-size: 1rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
  text-transform: none;
}
animation: fadeInUp 0.6s ease-in;
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Breadcrumb */
.breadcrumb-nav {
  margin: 30px;
  font-size: 0.9rem;
  color: #555;
}

.breadcrumb-nav a {
  color: #0056b3;
  text-decoration: none;
  margin-right: 5px;
}

/* Author */
.news-author {
  text-align: left;
  margin: 0 30px 30px;
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
}

/* Main content */
.news-main-content {
  padding: 0 30px 40px;
  font-size: 1rem;
  line-height: 1.6;
}

.sidebar-card {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/*.sidebar-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background-color: #b30000; /* liturgical red 
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}*/
.sidebar-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 30px solid #0056b3;
  border-left: 30px solid transparent;
  border-top-right-radius: 6px;
}

.sidebar-card img {
  width:100px;
  height: 100%;
  object-fit: cover;
  margin-right: 12px;
	top: 0;
  left: 0;
}


.sidebar-card a {
  font-weight: 600;
  color: #0056b3;
  text-decoration: none;
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  .news-grid-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-content-box {
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .news-image-attached img {
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }

  .news-title-square {
    top: 15px;
    left: 15px;
    padding: 12px;
    max-width: 90%;
  }

  .news-title-square h1 {
    font-size: 1.4rem;
  }

  .news-main-content {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .news-author {
    margin: 20px;
    font-size: 0.85rem;
  }

  .news-sidebar {
    margin-top: 40px;
    padding: 15px;
  }

  .sidebar-card {
    flex-direction: row;
    gap: 10px;
  }

  .sidebar-card img {
    width: 50px;
    height: 50px;
  }

  .news-social-share {
    display: none; /* hide vertical icons on mobile */
  }
}

@media (max-width: 768px) {
  .sidebar-card {
    flex-direction: row;
    padding: 10px;
  }

  .sidebar-card img {
  width:100px;
  height: 100%;
  object-fit: cover;
  margin-right: 12px;
	top: 0;
  left: 0;
}

  .sidebar-card a {
    position: relative;
    z-index: 2;
    color: #0056b3;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    padding: 0 10px;
  }

.sidebar-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 30px solid #0056b3;
  border-left: 30px solid transparent;
  border-top-right-radius: 6px;
}
	
}
@media (max-width: 768px) {
  .site-header {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .news-image-attached {
    margin-top: 0;
  }

  .news-page-wrapper {
    padding-top: 0;
  }
	
	.news-overlay-bar {
  height: auto;
  padding: 10px 15px;
}

.news-overlay-bar h1 {
  font-size: clamp(1rem, 4vw, 1.4rem); /* responsive scaling */
  line-height: 1.3;
  margin: 0;
  text-align: center;
}

}


