/*carousel home stykle*/
body.page-home-2,
.page-home-2 #main,
.page-home-2 .site-content,
.hero-wrapper,
.container-fluid.p-0 {
  margin: 0 !important;
  padding: 0 !important;
}

/* 2. Set carousel height to half screen */
		#heroCarousel {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.carousel-item img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}


/* Make slider full width and height */
.homepage-slider {
  width: 100vw;
  height: 100vh;
  position: relative;
  
}

.homepage-slider .slick-slide {
  position: relative;
}

.homepage-slider img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

/* 4. Overlay text like news-title */

		.carousel-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
	background: rgba(0, 51, 102, 0.4); /* deep navy blue */

  /*background: rgba(0, 0, 0, 0.4);*/
  backdrop-filter: blur(2px);
  padding: 1rem 1.2rem;
  border-radius: 2px;
  max-width: 30%;
  color: #fff;
}

.carousel-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
	  color: #fff;
}

.carousel-subtitle {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
}

/* 5. Arrows styled like latest news */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem;
  color: white;
}

.carousel-control-prev-icon::before {
  content: "\f104";
}

.carousel-control-next-icon::before {
  content: "\f105";
}

/* 6. Mobile responsiveness */
@media (max-width: 768px) {
  #heroCarousel,
  .carousel-item img,
  .hero-wrapper {
    height: 60vh;
  }

  .carousel-title {
    font-size: 1.2rem;
  }

  .carousel-subtitle {
    font-size: 0.9rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 36px;
    height: 36px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: ;
  }
}

/* === YouTube Section Styles === */

.youtube-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
  width: 100%;
  box-sizing: border-box;
padding-left: 100px;
	padding-right:100px;

}

.youtube-block {
  flex: 1 1 100%;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  box-sizing: border-box;
	
}

.youtube-block iframe,
.youtube-block img {
  width: 100%;
  height: 300px;
  border: none;
}

.youtube-section h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #333;
}

/* Responsive: stack on small screens, side-by-side on large */
@media (min-width: 768px) {
  .youtube-block {
    flex: 1 1 30%;
  }
	
}
@media (max-width: 768px) {
  .youtube-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .youtube-block {
    flex: 1 1 100%;
  }
}

/*end of youtube section*/

/*
.news-section, .events-calendar {
  padding: 40px 20px;
}

.news-section h2, .events-calendar h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.news-section ul, .events-calendar ul {
  list-style: none;
  padding: 0;
}

.news-section li, .events-calendar li {
  margin-bottom: 10px;
}
*/

/*start directory*/
#directory { position: relative; z-index: 1; } #directory::before { content: ""; position: absolute; inset: 0; background-image: url('https://musomadiocese.or.tz/wp-content/uploads/2025/12/urbanochurch.jpg'); background-size: cover; background-position: center; opacity: 0.05; /* affects only the background */ z-index: -1; }
.directory-container {
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
	padding-left: 0px;
	padding-right: 0px;
	padding-bottom:40px;
	padding-top: 40px;
}

.directory-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.directory-card:hover {
  transform: scale(1.03);
}

.directory-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.directory-card h3 {
  margin: 0;
  padding: 1rem;
  /*background-color: #f8f8f8;*/
  background-color: blue;
	
  font-size: 1.1rem;
  color: #333;
}

.directory-card {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  transition: transform 0.3s ease;
}

.directory-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.directory-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.directory-heading h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #0d4571;
}
.directory-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem;
  color: #000;
  font-size: 1.2rem;
  text-align: center;
  z-index: 2;
  transition: background 0.3s ease;
}

/* Unique backgrounds per directory type */
.directory-type-church h3 { background-color: #0d6efd; }
.directory-type-priest h3 { background-color: #28a745; }
.directory-type-school h3 { background-color: #ffc107; }
.directory-type-department h3 { background-color: #6f42c1; }
/* Dim image on hover */
.directory-card:hover img {
  opacity: 0.6;
}

/* Overlay block for title */
/* Transparent overlay for title */
.directory-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem;
 /* background-color: rgba(255,255,255,.75); /* #EFEDED with 70% opacity */
	background-color:#D38C35;
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  z-index: 2;
  transition: background 0.3s ease;
}
.directory-card {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.directory-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc; /* horizontal divider */
}
.directory-divider {
  width: 100%;
  height: 4px;
  background-color: #D38C35; /* soft light grey */
 /* margin: 12px 0;*/
	margin-top: 8px;
}
/* Optional: slight zoom on hover */
.directory-card:hover {
  transform: scale(1.02);
}
@media (max-width: 768px) {

.directory-grid {
 
	padding-left: 0px !important;
	padding-right:0px !important;
}
}
/*end directory*/




/* Make slider full width and height 
.homepage-slider {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.homepage-slider .slick-slide {
  position: relative;
}

.homepage-slider img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

/* Overlay styling */
.slide-overlay {
  position: absolute;
  bottom: 20%;
  left: 10%;
  z-index: 2;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 500px;
}

.slide-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.cta-button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 24px;
  background: #ffd700;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #ffcc00;
}

/* Optional: gradient overlay 
.homepage-slider .slick-slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  z-index: 1;
}

*/

.latest-news-slider {
  display: flex;
  padding: 0 80px;
  box-sizing: border-box;
  position: relative;
		padding-bottom: 80px;
}

.latest-news-slider > .news-slide {
  margin-right: 2rem;
}
.news-slide {
  flex: 0 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.news-slide {
  position: relative;
	padding: 20px 20px;
}

.news-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
}

.news-card:hover {
  transform: scale(1.02);
}

.news-image-wrapper {
  position: relative;
}

.news-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.news-card:hover img {
  opacity: 0.6;
}

.news-date-badge {
  position: absolute;
  top: 8px;
  left: 8px;
	
  background-color:#e07436;
 // background-color:#0d6efd;
  //background-color: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 8px;
  font-size: 0.8rem;
	font-weight: bold;
  border-radius: 4px;
  z-index: 2;
}

.news-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem;
	background-color:#0d6efd;
  //background-color: rgba(255,255,255,0.75);
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  z-index: 2;
  transition: background 0.3s ease;
}
.news-title {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}
.news-divider {
  width: 100%;
  height: 4px;
	 background-color: #0d6efd;
  //background-color: #e0e0e0;
  margin-top: 0px;
	
}
.latest-news-heading {
  color: #0d6efd; /* Deep slate blue */
	font-size: 20px;
}

.container-fluid.news-section{
	background-color: #f5f5f5;

	
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .latest-news-slider {
    padding: 0 0px;
	  margin:0px;
  }

  .news-slide {
    width: 100%;

  }

  .latest-news-slider {
    padding: 0 0px;
  }

  .news-card img {
    height: 250px;
  }

  .news-title {
    font-size: 1rem;
    padding: 0.8rem;
  }

}


/* Responsive: hide arrows on small screens or reposition */

@media (max-width: 768px) {
  .container-fluid.news-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
@media (max-width: 768px) {
  .news-prev,
  .news-next {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .news-prev,
  .news-next {
    display: none; /* Optional: hide arrows on very small screens */
  }
}


.container-fluid {
  position: relative;
}

.news-prev-btn,
.news-next-btn,
.events-prev-btn,
.events-next-btn {
 background-color: #0d6efd; !important; /* Golden yellow */
  color: #fff; !important;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;

}
.news-prev-btn { left: 50px; }
.news-next-btn { right: 50px; }

.events-prev-btn { left: 50px; }
.events-next-btn { right: 50px; }
/* end news section*/


/*start home carousel */
/* 1. Remove all spacing around carousel */
body.page-home-2,
.page-home-2 #main,
.page-home-2 .site-content,
.hero-wrapper,
.container-fluid.p-0 {
  margin: 0 !important;
  padding: 0 !important;
}

/* 2. Set carousel height to half screen */
		#heroCarousel {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.carousel-item img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}
/*
#heroCarousel,
.carousel-item img {
  width: 100vw;
  height: 80vh;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

		
/* 3. Ensure parent section matches height 
.hero-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Make slider full width and height */
.homepage-slider {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.homepage-slider .slick-slide {
  position: relative;
}

.homepage-slider img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

/* 4. Overlay text like news-title */
/*.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background-color: #0d6efd;
  color: #fff;
  text-align: center;
  z-index: 2;
}

.carousel-title {
  font-size: clamp(1.2rem, 2vw, 2rem);
  margin: 0;
}

.carousel-subtitle {
  font-size: 1rem;
  margin-top: 0.5rem;
}*/
		.carousel-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
	background: rgba(0, 51, 102, 0.4); /* deep navy blue */

  /*background: rgba(0, 0, 0, 0.4);*/
  backdrop-filter: blur(2px);
  padding: 1rem 1.2rem;
  border-radius: 2px;
  max-width: 30%;
  color: #fff;
}

.carousel-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
	  color: #fff;
}

.carousel-subtitle {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
}

/* 5. Arrows styled like latest news */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem;
  color: white;
}

.carousel-control-prev-icon::before {
  content: "\f104";
}

.carousel-control-next-icon::before {
  content: "\f105";
}

/* 6. Mobile responsiveness */
@media (max-width: 768px) {
  #heroCarousel,
  .carousel-item img,
  .hero-wrapper {
    height: 60vh;
  }

  .carousel-title {
    font-size: 1.2rem;
  }

  .carousel-subtitle {
    font-size: 0.9rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 36px;
    height: 36px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: ;
  }
}
/*End Home Carousel*/

/*start boostrap CSS
#heroCarousel {
  max-width: 100% !important;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 8px;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
}

.carousel-caption p {
  font-size: 1.2rem;
  color: #eee;
}

.carousel-caption .btn {
  margin-top: 15px;
  font-weight: bold;
}

/*added boostrap
body.page-home-2,
.page-home-2 #main,
.page-home-2 .site-content {
  margin: 0;
  padding: 0;
}
#heroCarousel {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.carousel-item img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}




.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
}

.carousel-caption p {
  font-size: 1.2rem;
  color: #eee;
}

.carousel-caption .btn {
  margin-top: 15px;
  font-weight: bold;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.8); /* Light background 
  border-radius: 50%;
  padding: 15px;
  width: 50px;
  height: 50px;
  background-size: 60% 60%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Optional: hover effect 
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: #ffd700; /* Golden glow on hover */
}
/*end boostrap CSS*/

/*start events css*/

.featured-event img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.featured-event h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.event-slide {
  padding: 15px;
  text-align: center;
}

.event-slide img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.event-slide h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

/*for arrows*/
.slick-prev, .slick-next {
  width: 40px;
  height: 40px;
  background-color: #0056b3;
  color: #fff;
  border-radius: 50%;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0;
}

.slick-prev::before, .slick-next::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 18px;
  line-height: 40px;
  display: block;
  text-align: center;
}

.slick-prev::before {
  content: '\f104'; /* Font Awesome left arrow */
}

.slick-next::before {
  content: '\f105'; /* Font Awesome right arrow */
}

.slick-prev {
  left: -50px;
}

.slick-next {
  right: -50px;
}
/*end for arrows



/*home hero slider*
.carousel-slide-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}


.carousel-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
	background: rgba(0, 51, 102, 0.4); /* deep navy blue *

  /*background: rgba(0, 0, 0, 0.4);*
  backdrop-filter: blur(2px);
  padding: 1rem 1.2rem;
  border-radius: 2px;
  max-width: 30%;
  color: #fff;
}

.carousel-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
	  color: #fff;
}

.carousel-subtitle {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
}
.#heroCarousel {
  position: relative;
  overflow: hidden;
  max-height: 80vh; /* Prevents it from exceeding the viewport 
}

.carousel-item img {
  width: 100%;
  height: 100%; /* Makes it fill the screen height 
  object-fit: cover;
  display: block;
}
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


.carousel,
.carousel-inner,
.carousel-item {
  margin: 0;
  padding: 0;
}
.hero-wrapper {
  height: 80vh; /* or 70vh, depending on your preference 
  overflow: hidden;
  position: relative;
}
/* end home hero slider*/
/* bishop section*/

.portfolio-section {
  background-image: url('https://musomadiocese.or.tz/wp-content/uploads/2025/10/pexels-le-john-75311609-10016623-scaled.jpg'); /* Set the background image */
  background-size: cover; /* Cover the entire section */
  background-position: center; /* Center the image */
  height: 100vh; /* Example height */
  color: white; /* Set text color to be visible on the background */
  padding: 20px;
}

.container {
  display: flex; /* Use flexbox for side-by-side layout */
  align-items: center; /* Vertically align items in the center */
  max-width: 1200px; /* Optional: Limit the width of the content */
  margin: 0 auto; /* Center the container */
}

.image-column {
  width: 40%; /* Set width for the image column */
  padding-right: 20px;
}

.image-column img {
  max-width: 100%; /* Ensure the image doesn't overflow */
  height: auto;
  display: block; /* Remove extra space below the image */
}

.info-column {
  width: 60%; /* Set width for the information column */
}

body {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
 /* background-color: #f8f9fa;*/
}

/*.bishop-welcome {
 
  padding: 60px 0;
	
	background-image: url("https://musomadiocese.or.tz/wp-content/uploads/2025/10/pexels-le-john-75311609-10016623-scaled.jpg");
	background-size: cover;
}
.bishop-img{
	height:100%;
	overflow:hidden;
	width:40%;
}
.bishop-photo {
  height: 100%;
  overflow: hidden;
}

.bishop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}*/

.welcome-message {
  background-color: #fefefe;
  color: #333;
}

.welcome-message h2 {
  color: #0d4571;
  margin-bottom: 20px;
}

.welcome-message .lead {
  font-style: italic;
  color: #555;
}

.welcome-message .logo {
  max-width: 120px;
  height: auto;
}

.btn-primary {
  background-color: #0d4571;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .welcome-message {
    text-align: center;
    padding: 40px 20px;
  }

  .bishop-photo {
    height: auto;
    margin-bottom: 20px;
  }

  .bishop-photo img {
    height: auto;
  }

  .welcome-message .logo {
    margin: 0 auto 20px;
  }
}

.logo-heading {
  display: flex;
  align-items: center;
	font-size: 10px;
}
.logo-heading h2 {
  font-size: 1.8rem; /* Adjust as needed */
  line-height: 1.2;
}
.logo {
  max-width: 80px;
  height: auto;
}
/*end bishop section*/

@media (max-width: 768px) {
  .carousel-overlay {
    height: auto;
    padding: 0.5rem 0.8rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-title {
    font-size: 1rem;
    white-space: normal;
    text-overflow: unset;
  }
}
.container-fluid,
.row {
  margin-left: 0;
  padding-left: 0 !important;
	 padding-right: 0 !important;
}
.holy-year-message {
  padding-left: 0 !important;
}
.holy-year-message {
  padding-top: 0 !important;
}
.holy-year-photo img {
  display: block;
  margin-left: 0;
  padding-left: 0;
}
.holy-year-photo{
	margin-left: 0;
	padding-left:0;
}