@charset "utf-8";
/* CSS Document */
*{
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.main, .bible-verse,.about-section,.church-announcement, .announcement-scroll{
	margin-bottom: 120px;
}

body{
	font-family: 'Lato', sans-serif;
	color: #333;
	background-color: #fff;
	line-height: 1.6;
}

a{
	text-decoration: none;
	color: inherit;
}

/*header*/

.header{
	background-color: #4e3b2b;
	width: 100%;
	height: 109px;
	padding: 0px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
    z-index: 1000;
}

.logo-image{
	width: 120px;
	height: 120px;
}

.navbar a{
	font-family: "Lato", sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: white;
	margin-left: 20px;
	padding: 10px 16px;
	border-radius: 3px;
	transition: background 0.3s ease;
}

.navbar a:hover{
	 background-color: rgba(36, 102, 73, 0.5);
}

.navbar a:active{
	 background-color: #246649;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* Prevents wrapping */
  padding: 0 40px;
}

.nav-links {
  display: flex;
  gap: 40px;
  flex-wrap: nowrap;
}

.nav-links a {
  white-space: nowrap; /* Prevent text wrapping */
}

.search-container{
	width: 351px;
	height: 40px;
	background-color: rgba(170,170,170,1.00);
	border-radius: 14px;
	align-items: center;
	display: flex;
	overflow: hidden;
}

.search-container input{
	font-family: "Lato", sans-serif;
	font-size: 16px;
	border: none;
	outline: none;
	padding: 0 16px;
	flex: 1;
	background-color: rgba(170,170,170,1.00);
}

.search-container input::placeholder{
	color: #4e3b2b;
}

.search-container button{
	background-color: transparent;
	border: none;
	padding: 10px 16px;
	cursor: pointer;
}

.search-container i{
	color: #4e3b2b;	
	font-size: 20px;
}

.nav-and-search{
	display: flex;
	align-items: center;
	gap: 24px;
}

/*hero*/

.main{
	position: relative;
	text-align: center;
	color: white;
}

.hero-image img{
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: cover;
	filter: brightness(70%);
}

/*for overlay*/
.hero-image {
  height: 90vh;
  position: relative;
  overflow: hidden;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  text-align: center;
  pointer-events: none;
}
.hero-image img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-text h1{
	font-size: 128px;
	font-family: 'Playfair Display', serif;
	margin-bottom: 10px;
	font-weight: bold;
}

.hero-text h2{
	font-family: 'Playfair Display', serif;
	font-size: 75px;
	font-weight: 600;
	margin-bottom: 20px;
}

.hero-text p{
	font-size: 20px;
	font-weight: 300;
	color: #e0e0e0;
	margin-top: 120px;
}

/*bible verse*/

.bible-verse{
	color: white;
	text-align: center;
	position: relative;
	margin-top: 60px;
	overflow: hidden;
	border-radius: 44px;
    padding: 20px; /* Add padding for smaller screens */
}

.bible-bg{
	width: 100%;
	height: 622px;
	border-radius: 44px;
	display: block;
	object-fit: cover;
}

.verse-overlay{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(61, 93, 144, 0.5);
	border-radius: 44px;
	z-index: 1;
}

.verse-text{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	max-width: 80%;
	color: white;
}

.verse-text h2{
	font-family: 'Playfair Display', serif;
	font-size: 96px;
	font-weight: bold;
	margin-bottom: 20px;
}

.verse-text p{
	font-family: 'Lato', sans-serif;
	font-size: 40px;
	font-weight: bold;
}

/*about*/

.about-section{
	padding: 60px 80px;
	background-color: #4e3b2b;
	color: #FFFFFF;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
}

.about-title{
	text-align: center;
	width: 300px;
}

.about-title h2{
	font-family: 'Playfair Display', serif;
	font-size: 96px;
	font-weight: bold;
	margin-bottom: 30px;
}

.about-title{
	flex: 1;
	min-width: 250px;
}

.about-content p{
	font-family: 'Lato', sans-serif;
	font-size: 25px;
	font-weight: 500;
	line-height: 1.6;
	max-width: 1000px;
}

.about-content{
	flex: 2;
	max-width: 1000px;
}

/*church announcements*/

.church-announcement{
	margin: 80px 0;
	padding: 20px;
	color: #423b2b;
}

.announcement-header h2{
	font-family: 'Playfair Display', serif;
	font-size: 50px;
	font-weight: bold;
	text-align: left;
	margin-left: 20px;
}

.announcement-header p{
	font-family: 'Lato', sans-serif;
	font-size: 20px;
	font-weight: 500;
	text-align: left;
	margin-left: 20px;
	margin-bottom: 20px;
}

.announcement-scroll{
	display: flex;
	gap: 30px;
	overflow-x: auto;
	padding: 15px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.announcement-scroll iframe, .announcement-scroll img{
	height: 351px;
	width: auto;
	flex-shrink: 0;
    max-width: 100%; /* Ensure images/iframes don't overflow */
}

/*footer*/

.footer{
	background-color: #4e3b2b;
	color: #ffffff;
	padding: 60px 20px;
	font-family: 'Lato', sans-serif;
}

.footer-heading{
	text-align: left;
	margin-bottom: 40px;
}

.footer-heading h1{
	font-family: 'Playfair Display', serif;
	font-size: 96px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.footer-heading h2{
	font-family: 'Playfair Display', serif;
	font-size: 64px;
	font-weight: 400;
	line-height: 1.2;
	margin: 0;
}

.address-info{
	max-width: 300px;
	margin: 0 0 30px 80px;
	text-align: left;
}

.social-info{
	max-width: 300px;
	margin: 0 80px 30px 0;
	text-align: left;
}

.address-info h3,.social-info h3{
	font-size: 40px;
	font-weight: 500;
	margin-bottom: 15px;
	color: #ffffff;
}

.address-info p, .social-info p{
	margin: 10px 0;
	color: #e0e0e0;
	font-size: 24px;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
}

.footer a{
	color: #e0e0e0;
	text-decoration: underline;
	word-break: break-word;
}

.footer i{
	color: #ffffff;
	font-size: 16px;
	min-width: 16px;
}

@media screen and (min-width: 768px){
	.footer {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		padding: 60px 80px;
		flex-wrap: wrap;
	}
	
	.address-info,.social-info{
		margin: 0;
		max-width: 300px;
	}
	
	.footer-heading{
		width: 100%;
		margin-bottom: 40px;
		text-align: left;
	}
}

@media(max-width:992px){
	.header{
		flex-direction: column;
		height: auto;
		padding: 20px;
		gap: 20px;
		align-items: flex-start;
	}

	.nav-and-search{
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		width: 100%;
	}

	.navbar{
		flex-wrap: wrap;
		width: 100%;
	}

	.navbar a{
		font-size: 20px;
		margin: 5px 10px;
	}
	.search-container{
		width: 100%;
	}
	.hero-text h1{
		font-size: 64px;
	}

	.hero-text h2{
		font-size: 48px;
	}

	.hero-text p{
		font-size: 16px;
	}
	.verse-text h2{
		font-size: 48px;
	}

	.verse-text p{
		font-size: 24px;
	}
	.about-section{
		flex-direction: column;
		padding: 40px 20px;
		text-align: center;
	}

	.about-title,.about-content{
		width: 100%;
		max-width: 100%;
	}
	.announcement-scroll iframe,.announcement-scroll img{
		width: 300px;
		height: auto;
	}
	.footer{
		flex-direction: column;
		align-items: center;
		padding: 40px 20px;
		text-align: center;
	}

	.address-info,.social-info{
		margin: 20px 0;
		max-width: 100%;
	}
}

/*history*/
body {
	margin: 0;
	font-family: 'Lato', sans-serif;
	background-color: #f3eee5;
}

.history-section {
	padding: 100px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.history-header h1 {
	font-family: 'Playfair Display', serif;
	font-size: 64px;
	font-weight: bold;
	color: #4e3b2b;
	margin-bottom: 40px;
	text-align: center;
}

.instruction-box {
	background-color: rgba(78, 59, 43, 0.8);
	color: #ffffff;
	font-family: 'Lato', sans-serif;
	font-weight: 500;
	font-size: 20px;
	padding: 20px 30px;
	border-radius: 12px;
	margin-bottom: 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
    text-align: center; /* Center text within the box */
}

.history-cards {
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: 1133px; /* This needs to be removed or made responsive */
}

.card {
	position: relative;
	width: 1133px; /* This needs to be removed or made responsive */
	height: 311px; /* This needs to be removed or made responsive */
	border-radius: 44px;
	overflow: hidden;
}
.card-image {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	border-radius: 44px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease-in-out;
}

.card-image::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(61, 93, 144, 0);
	transition: background 0.3s ease-in-out;
	border-radius: 44px;
}

.card-image-hoverable{
	position: relative;
	cursor: pointer;
}

.card-image-hoverable:hover::before {
	background: rgba(61, 93, 144, 0.8);
}

.hover-text {
	position: absolute;
	font-family: 'Playfair Display', serif;
	font-weight: bold;
	font-size: 50px;
	color: #ffffff;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.card-image-hoverable:hover .hover-text {
	opacity: 1;
}
.card-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #f3eee5;
	border-radius: 44px;
	padding: 40px;
	box-sizing: border-box;
	display: none;
	overflow-y: auto;
}

input[type="checkbox"] {
	display: none;
}

.card-inner{
  max-width: 1133px;
  margin: 0 auto;
  text-align: left;
	padding: 40px;
}

.card-inner h2 {
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  font-size: 30px;
  color: #4e3b2b;
  margin-bottom: 20px;
}

.card-inner h3 {
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  font-size: 22px;
  color: #4e3b2b;
  margin-bottom: 20px;
}

.card-inner p {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #4e3b2b;
  margin-bottom: 16px;
}

.card-inner ul {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #4e3b2b;
  padding-left: 20px;
}

.card input[type="checkbox"] {
  display: none;
}

.card input[type="checkbox"]:checked ~ .card-content {
  display: block;
}

.card input[type="checkbox"]:checked ~ .card-image {
  display: none;
}

.card-slider{
	display: flex;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none;  /* IE and Edge */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.card-slider::-webkit-scrollbar{
	display: none; /* Chrome, Safari, Opera */
}
.card-slider > div {
	flex: 0 0 100%;
	padding-right: 1rem;
}
.slider-nav{
	display: flex;
	column-gap: 1rem;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	justify-content: center;
	margin-top: 20px;
}
.slider-nav a{
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background-color: #4e3b2b;
	opacity: 0.75;
	transition: opacity ease 250ms;
}
.slider-nav a:hover{
	opacity: 1;
}
.card-slider-5-members,
.card-slider-6-members,
.card-slider-10-members,
.card-slider-11-members{
	display: flex;
	justify-content: space-around;
	gap: 30px;
	margin-top: 10px;
	margin-bottom: 10px;
}
.card-slider-5-left,
.card-slider-5-middle,
.card-slider-6-left,
.card-slider-6-middle,
.card-slider-6-right,
.card-slider-10-left,
.card-slider-10-middle,
.card-slider-11-left,
.card-slider-11-middle,
.card-slider-11-right{
	flex: 1;
}
.card-slider-5-left ul,
.card-slider-5-middle ul,
.card-slider-6-left ul,
.card-slider-6-middle ul,
.card-slider-6-right ul,
.card-slider-10-left ul,
.card-slider-10-middle ul,
.card-slider-11-left ul,
.card-slider-11-middle ul,
.card-slider-11-right ul{
	list-style-type: disc;
	padding-left: 20px;
}

.card-content .slide {
  display: block;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}
.card input[type="checkbox"]:checked ~ .card-content {
  opacity: 1;
}
.slider-buttons { /* Container for prev/next buttons */
    position: absolute;
    bottom: 10px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 3; /* Ensure buttons are above content */
}

.next,
.prev {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.25rem;
  border-radius: 50%; /* Make them circular */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  color: #4e3b2b;
}

.next:hover, .prev:hover {
    background-color: rgba(255, 255, 255, 1);
}

/*.back-to-image {
    background-color: #4e3b2b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}*/

.card-image-hoverable:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}
.card-slider {
	display: flex;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.card-content-wrapper {
  display: none;
  position: relative;
}

.card-toggle:checked ~ .card-content-wrapper {
  display: block;
}

.card-content-slider {
  display: block;
  overflow: hidden;
}
.slide {
  min-width: 100%;
  flex-shrink: 0;
	display: block;
}
.return {
  margin-top: 1rem;
}

/*visual bulletin*/
body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  background-color: #f3eee5;
}

.visual-bulletin-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 100px 20px;
}

/* SECTION HEADINGS */
.visual-bulletin-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: bold;
  color: #4e3b2e;
  text-align: center;
  margin-bottom: 40px;
}

/* === CHURCH BULLETIN === */
.church-bulletin-box {
	background-color: #4e3b2b;
	border-radius: 44px;
	width: 757px; /* Needs to be responsive */
	height: 1144px; /* Needs to be responsive */
	padding: 20px;
	color: white;
	font-size: 18px;
	font-weight: 500;
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
	margin: 0 auto;
	justify-content: center;
}

.church-bulletin-box iframe {
	flex-grow: 1;
	border: none;
	border-radius: 20px;
	width: 684px; /* Needs to be responsive */
	height: 1058px; /* Needs to be responsive */
    max-width: 100%; /* Ensure iframe scales down */
    max-height: 100%; /* Ensure iframe scales down */
}

/* === VISUAL BULLETIN === */
.visual-bulletin-embed iframe {
  width: 90vw;
  max-width: 1280px;
  height: 720px; /* Needs to be responsive */
  border: none;
  border-radius: 44px;
}

/* === HAPPY FRIDAY === */
.happy-friday-box {
  background-color: #4e3b2b;
  width: 100%;
  height: 1010px; /* Needs to be responsive */
  padding: 40px;
  box-sizing: border-box;
  text-align: center;
}

.happy-friday-box h1 {
  color: white;
  margin-bottom: 40px;
}

.happy-friday-box iframe {
  width: 100%;
  height: 800px; /* Needs to be responsive */
  border-radius: 44px;
  border: none;
}

/* === GREETINGS === */
.greetings {
  width: 100%;
  max-width: 1280px;
  padding: 0 20px;
}

.greetings h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: bold;
  color: #4e3b2e;
  text-align: left;
  margin-bottom: 40px;
}

.greetings-box {
	background-color: #4e3b2b;
	border-radius: 44px;
	height: auto;
	padding: 40px;
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: nowrap; /* Needs to be responsive */
}
.greetings-content {
	display: flex;
	flex-wrap: nowrap; /* Needs to be responsive */
    gap: 40px;
}
.greetings-left {
  width: 510px; /* Needs to be responsive */
  text-align: left;
  color: white;
	justify-content: space-around;
	flex-shrink: 0;
	align-items: center;
	flex-direction: column;
	position: relative;
	overflow: visible;
}
.greetings-left img {
  width: 510px; /* Needs to be responsive */
  height: 600px; /* Needs to be responsive */
    max-width: 100%; /* Ensure image scales down */
}

.greetings-name {
  font-family: 'Playfair Display', serif;
  font-size: 100px; /* Needs to be responsive */
  font-weight: bold;
  margin-top: 20px;
  color: #FFFFFF;
	word-wrap: break-word;
	position: relative;
	line-height: 1.35;
}

.greetings-right {
  flex: 1;
  color: white;
  font-size: 32px; /* Needs to be responsive */
  font-weight: 500;
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
	text-align: left;
}
.church-bulletin {
  margin-bottom: 30px; /* Add space below */
}

.visual-bulletin {
  margin-bottom: 30px;
}

.happy-friday {
	margin-top: 90px;
  margin-bottom: 30px;
}

.greetings-name {
  margin-top: 30px; /* Add space above */
}


/*media*/
/* Horizontal scroll for categories */
.media-content h1{
	font-family: 'Playfair Display', serif;
	font-size: 64px;
	font-weight: bold;
	color: #4e3b2b;
	margin-bottom: 40px;
	text-align: center;
	margin-top: 60px;
}
.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  margin-bottom: 20px;
  scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.category-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background: #f1f1f1;
  cursor: pointer;
  font-family: "Lato", sans-serif;
  white-space: nowrap;
}

.category-btn.active {
  background-color: #5C3A1E;
  color: white;
}

/* Grid layout for videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 10px;
}

.video-item iframe {
   width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.video-item {
  width: 100%;
}

.media-content{
	margin-bottom: 50px;
}
.card,
.card-image,
.card-content {
  border: none !important;
}

/* General responsive fixes */
img, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Make hero text scale better on small screens */
@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 48px;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 14px;
    margin-top: 60px;
  }

  .verse-text h2 {
    font-size: 32px;
  }

  .verse-text p {
    font-size: 18px;
  }

  .about-content p {
    font-size: 18px;
  }

  .announcement-header h2 {
    font-size: 32px;
  }

  .footer-heading h1 {
    font-size: 48px;
  }

  .footer-heading h2 {
    font-size: 32px;
  }

  .address-info p, .social-info p {
    font-size: 18px;
  }

  .address-info h3, .social-info h3 {
    font-size: 24px;
  }
}

/* Improve announcement scroll snapping */
.announcement-scroll {
  scroll-snap-type: x mandatory;
}

.announcement-scroll > * {
  scroll-snap-align: start;
}

/* Fix logo and header on very small devices */
@media (max-width: 576px) {
  .logo-image {
    width: 80px;
    height: 80px;
  }

  .header {
    padding: 10px;
  }

  .navbar a {
    font-size: 16px;
  }

  .search-container {
    height: auto;
  }

  .search-container input {
    font-size: 14px;
  }
	.hero-image img {
    object-position: center 30%; /* adjust focus point higher if needed */
  }
}
@media (max-width: 768px) {
  .hero-image {
    height: 100vh;
    position: relative;
    overflow: hidden;
  }

  .hero-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
	   transform: scale(1.3);
  }
}

@media (max-width: 768px) {
  .history-section {
    padding: 20px;
    text-align: center;
  }

  .history-section h2 {
    font-size: 1.8rem;
  }

  .history-section p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .img-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .img-caption {
    font-size: 0.9rem;
    margin-top: 4px;
  }
	.card-container {
    width: 90%;
    max-width: 400px;
    aspect-ratio: 3 / 4; /* Closer to portrait, adjust as needed */
    margin: 0 auto;
    overflow: hidden;
  }

  .card-container .card {
    height: 100%;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .card-container h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .card-container p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .card-container img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .card {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
    transition: transform 0.3s ease; /* <- hover effect stays */
  }

  .card:hover {
    transform: scale(1.03); /* restore your hover scale */
  }

  .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  .card h3 {
    font-size: 1rem;  /* reduced font size */
    margin-top: 0.5rem;
  }

  .card p {
    font-size: 0.85rem; /* fix for too-big text */
    margin: 0.25rem 0 0;
    line-height: 1.3;
  }
}
@media (max-width: 992px) {
  /* Resize the card iframe for smaller screens */
  iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    max-height: 60vh;
  }

  /* Fix card font sizes */
  .church-bulletin h1,
  .visual-bulletin-embed h1,
  .happy-friday h1,
  .greetings h1,
  .greetings-name,
  .greetings-right p {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  /* Shrink container paddings */
  .church-bulletin-box,
  .happy-friday-box,
  .greetings-box {
    padding: 1rem;
  }

  /* Make the greeting section stack vertically */
  .greetings-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .greetings-left img {
    width: 60%;
    height: auto;
  }

  /* Fix iframe layout */
  .visual-bulletin-section iframe {
    display: block;
    margin: 0 auto;
    border: none;
  }

  /* Optional: Simulate hover style on tap */
  .card-hoverable:active,
  .card-hoverable:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
  }
}
@media (max-width: 768px) {
  .visual-bulletin-header h1 {
    font-size: 1.5rem;
  }

  .church-bulletin-box,
  .visual-bulletin-embed iframe,
  .happy-friday-box iframe,
  .greetings-left img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .church-bulletin-box iframe,
  .visual-bulletin-embed iframe,
  .happy-friday-box iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  .greetings-content {
    flex-direction: column;
    gap: 1rem;
  }

  .greetings-left,
  .greetings-right {
    width: 100%;
    text-align: center;
  }

  .greetings-right p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .happy-friday-box h1,
  .church-bulletin h1,
  .visual-bulletin-embed h1 {
    font-size: 1.4rem;
    text-align: center;
  }
}
/* === Responsive Service Sections (Mobile View) === */
@media (max-width: 768px) {
  section {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 60px 6vw !important;
  }

  .text-box {
    width: 100% !important;
    margin-bottom: 30px;
  }

  .hero h1,
  .second-section h1 {
    font-size: 42px !important;
    line-height: 1.2;
  }

  .hero p,
  .second-section p {
    font-size: 18px !important;
  }

  .second-section h1 {
    text-align: center !important;
  }

  .service-main section:nth-child(odd) .text-box:first-child {
    order: 1;
  }

  .service-main section:nth-child(odd) .text-box:last-child {
    order: 2;
  }

  .service-main section:nth-child(even) .text-box:first-child {
    order: 2;
  }

  .service-main section:nth-child(even) .text-box:last-child {
    order: 1;
  }
}
/* === Responsive Video Grid and Category Bar === */
@media (max-width: 768px) {
  .media-content h1 {
    font-size: 28px;
    text-align: center;
  }

  .category-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 20px;
  }

  .category-scroll .category-btn {
    flex: 0 0 auto;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
  }

  .video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 10px;
  }

  .video-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
  }
}
