 /* styles.css */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}
    

header {
    background-color: #00239c;
    color: white;
    padding: 1rem;
    text-align: center;
}
  #popupOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  .popup-box {
    position: relative;
    background: white;
    padding: 10px;
    border: 0.1px solid white;
    border-radius:10px;
    width: 300px;
    box-sizing: border-box;
  }
  .popup-box img {
    width: 100%;
    display: block;
    border-radius: 8px;
  }
  .close-btn {
    position: absolute;
    top: 5px; right: 5px;
    width: 30px; height: 30px;
    font-weight: bold;
    color: black;
    background: white;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
  }
  #mainContent {
    display: none;
    padding: 20px;
  }
/* Navbar Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background: #00239c;
    padding: 0.1rem 0rem;
    position: relative;
    z-index: 1000;
}

/* Logo and Name Container */
.logo-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.church-logo {
    width: 80px;
    height: 40px;
    object-fit:cover; /* or 'cover' if you want it to fill the box */
    background-color: white; /* remove white if PNG is transparent */
    border: 2px solid #D4AF37;
   
}


.church-name {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.sub-text {
    color: white;
    font-size: 0.8rem;
    margin: 0;
    text-align: center;
    
}
/* Nav Links (Hidden on Mobile by Default) */
.nav-links {
    display: flex; /* Show by default on desktop */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.9rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #D4AF37;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    z-index: 1002;
}

@media (max-width: 768px) {
    /* Hide regular nav links on mobile */
    .nav-links {
        display: none;
    }
    
    /* Show hamburger on mobile */
    .hamburger {
        display: block;
    }
    
    /* Mobile menu when active */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 220px; /* smaller width */
        height: 100vh;
        background: #00239c;
        padding: 4rem 1rem 1rem;
        gap: 1.25rem;
        text-align: left;
        z-index: 1001;
        transform: translateX(-100%);
        animation: slideIn 0.3s forwards;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active.hide {
        animation: slideOut 0.3s forwards;
    }
    
    @keyframes slideIn {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }
    
    @keyframes slideOut {
        from { transform: translateX(0); }
        to { transform: translateX(-100%); }
    }
    
    /* Smaller nav link font size on mobile */
    .nav-links.active a {
        font-size: 1rem;
        padding: 0.3rem 0;
    }
    
    /* Reduce nav padding on mobile for smaller nav height */
    nav {
        padding: 0.2rem 0.5rem;
    }
    
    /* Reduce logo size */
    .church-logo {
        width: 70px;
        height: 40px;
    }
    
    /* Reduce gap between logo and text */
    .logo-name-container {
        gap: 0.15rem;
    }
    
    /* Smaller church name font size */
    .church-name {
        font-size: 1rem;
    }
    
    /* Smaller sub-text font size */
    .sub-text {
        font-size: 0.7rem;
    }
}

    
    /* Overlay styles */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .overlay.show {
        opacity: 1;
        pointer-events: all;
    }


/* Desktop Styles (Nav Links Visible) */
@media (min-width: 769px) {
    .hamburger {
        display: none; /* Hide hamburger on desktop */
    }

    .nav-links {
        display: flex;
        gap: 1rem;
        flex-grow: 1;
        justify-content: center;
    }
}
/* Image Slider Styles */
.slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    z-index: 1; /* Ensure it stays below the nav bar */
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* Adjust to 100% for one image per slide */
}

.slides img {
    width: 100%; /* Each image takes full width of the slider */
    height: 550px; /* Default height for larger screens */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    flex-shrink: 0; /* Prevent shrinking */
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #00239c;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.slider-button:hover {
    background-color: #D4AF37;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .slides img {
        height: 300px; /* Reduce height for smaller screens */
    }

    .slider-button {
        width: 30px; /* Smaller buttons for mobile */
        height: 30px;
        font-size: 1.2rem;
        padding: 8px;
    }

    .prev-button {
        left: 5px; /* Adjust button positioning for mobile */
    }

    .next-button {
        right: 5px; /* Adjust button positioning for mobile */
    }
}

@media (max-width: 480px) {
    .slides img {
        height: 200px; /* Further reduce height for very small screens */
    }

    .slider-button {
        width: 25px; /* Even smaller buttons for very small screens */
        height: 25px;
        font-size: 1rem;
        padding: 6px;
    }
}

/* Marquee Section Styles */
.marquee-section {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: transparent;
    padding: 10px 0;
}
/* Marquee Section Styles */
.marquee-section {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: transparent; /* No background color */
    padding: 10px 0;
}

.marquee-text {
    color: #00239c; /* Brown text color */
    font-size: 1.5rem;
    font-weight: bold;
    font-family:'Times New Roman', Times, serif;
    display: inline-block;
    padding-left: 10%; /* Start off-screen */
    animation: marquee 25s linear infinite; /* Adjust duration as needed */
}

@keyframes marquee {
    0% {
        transform: translateX(100%); /* Start from the right */
    }
    100% {
        transform: translateX(-100%); /* Move to the left */
    }
}
/* Family and Anbiyans Section Styles */
.count-section {
   /* Dark blue background */
    color: white; /* White text */
    padding: 1rem 1rem;
    text-align: center;
}

.count-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.count-item {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background-color: #00239c; /* Semi-transparent white background */
    border-radius: 10px;
    box-shadow: 0 4px 8px #D4AF37;
}

.count-item h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.count-item .count {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    color: white; /* Gold color for the count */
}

/* Responsive Design */
@media (max-width: 768px) {
    .count-container {
        flex-direction: column;
        align-items: center;
    }

    .count-item {
        width: 80%;
    }
}
/* First Section: Single YouTube Live Stream */
.youtube-live {
    width: 90%; /* Fit the screen width */
    max-width: 1200px; /* Optional: Limit maximum width */
    height: 400px; /* Rectangular shape height */
    margin: 0 auto; /* Center the container */
    padding: 0; /* No padding */
    border: 0; /* No border */
    overflow: hidden; /* Hide overflow */
}

.youtube-live iframe {
    width: 100%;
    height: 100%;
    border: none; /* Remove iframe border */
}

/* Second Section: Three YouTube Videos in Square Shapes */
.youtube-grid {
    display: flex;
    justify-content: space-between; /* Space out the videos */
    width: 90%; /* Same width as the first section */
    max-width: 1200px; /* Optional: Limit maximum width */
    margin: 20px auto; /* Center the container and add margin */
    padding: 0; /* No padding */
    gap: 20px; /* Space between videos */
}

.youtube-video {
    flex: 1; /* Each video takes equal space */
    aspect-ratio: 1 / 1; /* Square shape */
    overflow: hidden; /* Hide overflow */
}

.youtube-video iframe {
    width: 100%;
    height: 100%;
    border: none; /* Remove iframe border */
}
@media (max-width: 768px) {
    .youtube-live {
        height: 250px; /* Adjust height for smaller screens */
    }

    .youtube-grid {
        flex-direction: column; /* Stack videos vertically on small screens */
        gap: 10px; /* Reduce gap between videos */
    }

    .youtube-video {
        aspect-ratio: 16 / 9; /* Change to rectangular shape for better visibility */
    }
}
/* History Section Styles */
.history-section {
    background-color: #FDEFB5; /* Light red background */
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
}

.history-heading {
    color: #00239c;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.history-content {
    color: black;
    font-size: 1.2rem;
    line-height: 1.6;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.history-content.expanded {
    max-height: none; /* Allow full expansion on all devices */
}

.history-content strong {
    color: #00239c;
}

/* Read More Button Styles */
.read-more-btn {
    display: block;
    margin: 1rem auto 0;
    padding: 0.5rem 1rem;
    background-color: #00239c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #D4AF37;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .history-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .history-heading {
        font-size: 1.5rem;
    }

    .history-content {
        font-size: 1rem;
        max-height: 150px;
    }

    .history-content.expanded {
        max-height: none; /* Still allow full expansion on mobile */
    }

    .read-more-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Extra small devices */
/* Flex wrapper for responsive layout */
.profiles-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

/* Individual profile block */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Image styles */
.image-container img {
  width: 220px;
  height: 260px;
  object-fit: cover;
  border: 4px solid #0072CE; /* Pantone 285 C */
  border-radius: 0;
}

/* Responsive: Show side-by-side on medium screens and up */
@media (min-width: 768px) {
  .profiles-wrapper {
    flex-direction: row;
    justify-content: center;
  }
}



/* Our Priests Section */
.priests-section {
    padding: 2rem;
    text-align: center;
    background-color: #FDEFB5; /* Light red background */
    margin: 2rem 0; /* Add margin for spacing */
}

.priests-heading {
    font-size: 2rem;
    color: #00239c;
    margin-bottom: 1.5rem;
    font-family: 'Times New Roman', serif; /* Elegant font */
}

.priests-container {
    display: flex;
    justify-content: center; /* Center the profiles horizontally */
    gap: 20px; /* Space between profiles */
    max-width: 1200px; /* Limit maximum width */
    margin: 0 auto; /* Center the container */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.priest-profile {
    flex: 1; /* Each profile takes equal space */
    max-width: 300px; /* Limit maximum width of each profile */
    text-align: center;
    background-color: white; /* White background for each profile */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px #FDEFB5; /* Subtle shadow */
    overflow: hidden; /* Ensure content doesn't overflow */
    padding: 10px; /* Add padding inside the profile */
    border: 3px solid #00239c; /* Add border to all profiles */
}

.priest-profile img {
    width: 100%; /* Make the image fill the container */
    aspect-ratio: 1 / 1.2; /* Slightly taller than square (1:1.2 ratio) */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-radius: 10px; /* Rounded corners */
}

/* Adjust the height of the third image */
.priest-profile:nth-child(3) img {
    aspect-ratio: auto; /* Remove fixed aspect ratio */
    height: 350px; /* Set a specific height */
    object-fit: cover; /* Ensure the image covers the area without distortion */
}

.priest-profile h3 {
    font-size: 1.5rem;
    margin: 10px 0 5px;
    color: #00239c;
}

.priest-profile p {
    font-size: 1rem;
    color: #555;
    margin: 0; /* Remove default margin */
}

/* Responsive Design */
@media (max-width: 768px) {
    .priests-container {
        flex-direction: column; /* Stack profiles vertically on smaller screens */
        align-items: center; /* Center profiles horizontally */
    }

    .priest-profile {
        max-width: 100%; /* Allow profiles to take full width */
        margin-bottom: 20px; /* Add space between stacked profiles */
    }

    .priest-profile:nth-child(3) img {
        height: 300px; /* Adjust height for smaller screens */
    }
}

@media (max-width: 480px) {
    .priest-profile:nth-child(3) img {
        height: 250px; /* Further adjust height for very small screens */
    }
}
/* Jubilee Image Styling */
.priest-profile.jubilee-profile {
    flex: 0 0 100%; /* Take full width */
    max-width: 100%; /* Full width */
    text-align: center; /* Center the image */
    margin: 20px 0; /* Add some margin */
}

.priest-profile.jubilee-profile img {
    width: 80%; /* Make the image wider */
    max-width: 700px; /* Limit maximum width */
    height: auto; /* Maintain aspect ratio */
    aspect-ratio: auto; /* Remove fixed aspect ratio */
    border-radius: 10px; /* Rounded corners */
}

@media (max-width: 768px) {
    .priests-container {
        flex-direction: column; /* Stack profiles vertically */
        align-items: center; /* Center profiles horizontally */
        gap: 30px; /* Increase gap for better spacing */
    }

    .priest-profile {
        max-width: 100%; /* Allow profiles to take full width */
    }
}
/* Prayer Request Button Styles */
.prayer-request-button {
    display: inline-block; /* Make it behave like a button */
    background-color: #00239c; /* Brown background */
    color: white; /* White text */
    padding: 10px 20px; /* Add padding */
    font-size: 1rem; /* Font size */
    border: none; /* Remove border */
    border-radius: 25px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease; /* Smooth hover effect */
    margin: 20px auto; /* Center the button with auto margins */
    text-align: center; /* Center text */
    width: fit-content; /* Fit content width */
    display: block; /* Change to block to center properly */
}

.prayer-request-button:hover {
    background-color: #D4AF37; /* Darker red on hover */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .prayer-request-button {
        margin: 20px 10%; /* Smaller side margins on mobile */
        padding: 8px 16px; /* Slightly smaller padding */
        font-size: 0.9rem; /* Slightly smaller font */
        width: 80%; /* Wider button on mobile */
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .prayer-request-button {
        margin: 20px 5%; /* Even smaller margins */
        padding: 8px 12px; /* More compact padding */
        font-size: 0.85rem; /* Smaller font */
        width: 90%; /* Nearly full width */
    }
}

.memory-section {
  background-color: #FDEFB5;
  padding: 2rem;
  text-align: center;
}

.memory-section h2 {
  font-size: 2rem;
  font-weight: bold;
  color:#00239c ;
  margin-bottom: 1.5rem;
}

.memory-image {
  width: 100%;
  max-width: 900px;
  border: 5px solid #00239c; /* Pantone blue outline */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.outreach-section {
  background-color: #FDEFB5;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Merriweather', serif;
  color: #00239c;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 35, 156, 0.15);
}

.outreach-section h2 {
  font-size: 2.8rem;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1.2px;
  animation: colorPulse 3s infinite;
}

@keyframes colorPulse {
  0%, 100% {
    color: #00239c;
  }
  50% {
    color: #D4AF37;
  }
}

.outreach-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.top-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 35, 156, 0.25);
}

.bottom-images {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.bottom-images img {
  width: 100%;
  max-width: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 35, 156, 0.2);
}

/* Mobile adjustments - keeps side-by-side layout */
@media (max-width: 768px) {
  .outreach-section h2 {
    font-size: 2rem;
  }
  
  .top-image img {
    max-width: 100%;
  }
  
  .bottom-images {
    gap: 15px;
  }
  
  .bottom-images img {
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .outreach-section h2 {
    font-size: 1.8rem;
  }
  
  .bottom-images {
    gap: 10px;
  }
  
  .bottom-images img {
    max-width: calc(50% - 5px);
  }
}
/* Mass Timings Section Styles */
.mass-timings-section {
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.mass-timings-heading {
    color: #00239c; /* Brown text color */
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Space between icon and text */
}

.mass-timings-heading i {
    font-size: 1.5rem; /* Adjust icon size */
    color:  #00239c; /* Brown icon color */
}

.mass-timings-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.timings {
    flex: 1;
    background-color: #FDEFB5; /* Light red background */
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timings h3 {
    color: #00239c; /* Brown text color */
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timings ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.timings ul li {
    color: black; /* Brown text color */
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timings ul li strong {
    color:  #00239c; /* Dark red for emphasized text */
}

/* Responsive Design */
@media (max-width: 768px) {
    .mass-timings-container {
        flex-direction: column;
    }

    .timings {
        width: 100%;
    }
}
/* Video Section Styles */
.video-section {
    padding: 2rem 1rem; /* Add padding for spacing */
    text-align: center; /* Center align content */
    background-color: #FDEFB5; /* Light red background */
    margin: 2rem 0; /* Add margin for spacing */
}

.video-heading {
    color: #00239c; /* Brown text color */
    font-size: 2rem; /* Large font size */
    margin-bottom: 1.5rem; /* Space below the heading */
    font-family: 'Times New Roman', serif; /* Elegant font */
}

.video-container {
    max-width: 800px; /* Limit maximum width */
    margin: 0 auto; /* Center the container */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden; /* Hide overflow */
    box-shadow: 0 4px 8px #FDEFB5; /* Add a subtle shadow */
}

.video-container iframe {
    width: 100%; /* Full width of the container */
    height: 400px; /* Fixed height for the video */
    border: none; /* Remove iframe border */
    border-radius: 10px; /* Rounded corners */
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-heading {
        font-size: 1.5rem; /* Smaller font size for mobile */
    }

    .video-container iframe {
        height: 250px; /* Adjust height for smaller screens */
    }
}

@media (max-width: 480px) {
    .video-container iframe {
        height: 200px; /* Further adjust height for very small screens */
    }
}
/* Prayer Request Button Styles */
.prayer-request-section {
    text-align: center;
    margin: 2rem 0;
}

.prayer-request-button {
    background-color: #00239c; /* Brown background */
    color: white; /* White text */
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.prayer-request-button:hover {
    background-color: #D4AF37; /* Darker red on hover */
}

/* Announcements Section Base Styling */
.announcements-section {
    padding: 2rem 1rem;
    margin: 2rem 0;
    text-align: center;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #fefcf5;
    color: #2e2e2e;
}

/* Heading */
.announcements-heading {
    max-width: 900px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a237e; /* darker blue */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    user-select: none;
}

.announcements-heading i {
    font-size: 1.8rem;
    color: #1a237e;
    transform: translateY(2px);
}

/* Book Container */
.book {
    width: 850px; /* desktop width */
    height: 500px;
    margin: 0 auto;
    perspective: 1400px;
    border-radius: 16px;
    background: linear-gradient(145deg, #f5e6b8, #e9d8a6);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.15),
        inset 0 0 30px #fff7d1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1.5px solid #d1c18a;
    font-feature-settings: "liga", "kern";
}

/* Pages Container */
.pages {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

/* Each page */
.page {
    background: #fefcf5;
    flex: 1;
    margin: 1.25rem;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: inset 0 0 18px #c1b77e;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #3a3a3a;
    font-style: normal;
    text-align: justify;
    transition: box-shadow 0.3s ease;
    border: 1px solid #e0d7a3;
}

/* Subtle hover effect for desktop */
.page:hover {
    box-shadow: inset 0 0 24px #b3a55f, 0 0 10px rgba(180, 150, 40, 0.2);
}

/* Scrollbar for content overflow */
.page::-webkit-scrollbar {
    width: 10px;
}
.page::-webkit-scrollbar-track {
    background: #f6f2d4;
}
.page::-webkit-scrollbar-thumb {
    background-color: #c1b77e;
    border-radius: 6px;
    border: 2px solid #f6f2d4;
}

/* Page Headings */
.page h3 {
    color: #1a237e;
    margin-bottom: 1.2rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    user-select: text;
}

/* Announcement Titles */
.announcement-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
    color: #4a4a4a;
    font-family: 'Palatino Linotype', 'Book Antiqua', serif;
    user-select: text;
}

/* Announcement Info Text */
.announcement-info {
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
    color: #555;
    font-family: 'Georgia', serif;
    user-select: text;
}

/* Responsive for tablets */
@media (max-width: 900px) {
    .book {
        width: 90%;
        max-width: 600px;
        height: 440px;
        border-radius: 14px;
    }
    .pages {
        flex-direction: column;
    }
    .page {
        height: 50%;
        padding: 2rem 1.5rem;
        margin: 0.75rem auto;
        max-width: 600px;
        font-size: 1rem;
        line-height: 1.6;
    }
    .page h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .announcement-title {
        font-size: 1.15rem;
    }
    .announcement-info {
        font-size: 1rem;
        line-height: 1.65;
    }
    .announcements-heading {
        font-size: 1.8rem;
    }
    .announcements-heading i {
        font-size: 1.4rem;
    }
}

/* Responsive for mobile phones */
@media (max-width: 480px) {
    .book {
        width: 100%;
        max-width: 360px;  /* fit typical mobile screens */
        height: auto;      /* let height adjust */
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        padding-bottom: 1rem;
    }

    .pages {
        flex-direction: column;
        height: auto;
    }

    .page {
        height: auto;
        padding: 1.25rem 1rem;
        margin: 0.5rem auto;
        font-size: 0.95rem;
        line-height: 1.5;
        overflow: visible;
        max-width: 360px;
        border-radius: 10px;
    }

    .page h3 {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
    }

    .announcement-title {
        font-size: 1.1rem;
    }

    .announcement-info {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .announcements-heading {
        font-size: 1.4rem;
        padding: 0 0.5rem;
    }

    .announcements-heading i {
        font-size: 1.1rem;
    }
}


/* Parish News Section Styles */
.parish-news-section {
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.parish-news-heading {
    color: #00239c; /* Brown text color */
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.parish-news-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

/* Left Side: Image Swiper */
.image-swiper {
    flex: 1;
    max-width: 50%;
}

.swiper-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px #FDEFB5;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.swiper-slide {
    flex: 0 0 100%;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Swiper Buttons */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #00239c; /* Brown background */
    color: white; /* White text */
    border: none;
    padding: 5px; /* Smaller padding */
    cursor: pointer;
    font-size: 1rem; /* Smaller font size */
    border-radius: 50%; /* Circular buttons */
    width: 30px; /* Smaller width */
    height: 30px; /* Smaller height */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #D4AF37; /* Darker red on hover */
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: ''; /* Remove default icons */
}

.swiper-button-prev::before {
    content: '<'; /* Custom icon for previous button */
}

.swiper-button-next::before {
    content: '>'; /* Custom icon for next button */
}

.swiper-button-prev {
    left: 10px; /* Position left button */
}

.swiper-button-next {
    right: 10px; /* Position right button */
}
/* Right Side: News Content */
.news-content {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.news-content h3 {
    color: #00239c; /* Brown text color */
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-content h4 {
    color: #D4AF37; /* Dark red text color */
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.news-content p {
    color: #00239c; /* Brown text color */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .parish-news-container {
        flex-direction: column;
    }

    .image-swiper,
    .news-content {
        max-width: 100%;
    }
}
/* Show News Button */
.show-news-btn {
    background-color: #00239c; /* Brown background */
    color: white; /* White text */
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.show-news-btn:hover {
    background-color: #D4AF37; /* Darker red on hover */
}

/* Dialog Box */
.dialog {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FDEFB5; /* Semi-transparent background */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.dialog-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #00239c; /* Brown text color */
}

.close-btn:hover {
    color: #D4AF37; /* Darker red on hover */
}
/* Footer Section Styles */
.footer-section {
    background-color: #00239c; /* Brown background */
    color: white; /* White text */
    padding: 2rem 0; /* Padding top and bottom */
    width: 100%; /* Full width */
    margin: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between; /* Space out columns */
    max-width: 1200px; /* Limit maximum width */
    margin: 0 auto; /* Center the container */
    gap: 1rem; /* Space between columns */
    padding: 0 1rem; /* Add padding to sides */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Equal space for each column on desktop */
.footer-column {
    flex: 1; /* Each column takes equal space */
    min-width: 200px; /* Minimum width for each column */
    margin-bottom: 1.5rem; /* Space between rows on mobile */
    padding: 0 0.5rem; /* Add padding inside columns */
}

/* Footer Logo */
.footer-logo {
    width: 200px; /* Medium square shape */
    height: 170px;
    object-fit: cover;
    border-radius: 10px; /* Rounded corners */
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center the logo */
}

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    text-align: left;
    /* Align text to the left */
}

.quick-links li {
    margin-bottom: 0.5rem; /* Space between links */
}

.quick-links a {
    color: white; /* White text */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth hover effect */
}

.quick-links a:hover {
    color: #D4AF37; /* Gold color on hover */
}

/* Contact Information */
.contact-info {
    list-style: none;
    padding: 0;
    text-align: left; /* Align text to the left */
}

.contact-info li {
    margin-bottom: 0.5rem; /* Space between items */
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}

.contact-info i {
    color: #D4AF37; /* Gold color for icons */
}

/* Google Map */
.map-container {
    width: 100%;
    height: 200px; /* Fixed height for the map */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden; /* Hide overflow */
    margin-bottom: 1rem; /* Add space below the map */
}

/* Donate Us Section */
.donate-info {
    list-style: none;
    padding: 0;
    text-align: left; /* Align text to the left */
}

.donate-info li {
    margin-bottom: 0.5rem; /* Space between items */
}

.donate-info strong {
    color: #D4AF37; /* Gold color for emphasized text */
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Stack columns vertically */
        align-items: center; /* Center align columns */
        text-align: center; /* Center text */
    }

    .footer-column {
        width: 100%; /* Full width for each column */
        padding: 0; /* Remove padding */
        text-align: center; /* Center text */
    }

    .quick-links,
    .contact-info,
    .donate-info {
        text-align: center; /* Center align text */
    }

    .contact-info li {
        justify-content: center; /* Center align contact items */
    }

    .footer-logo {
        margin-bottom: 1rem; /* Add space below the logo */
    }

    .map-container {
        margin-bottom: 1rem; /* Add space below the map on mobile */
    }
}
/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #00239c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 2px 8px #FDEFB5;
    transition: all 0.3s ease;
    opacity: 0.9;
  }
  
  .back-to-top-btn:hover {
    background-color: #D4AF37;
    transform: translateY(-2px);
    opacity: 1;
  }
  
  .back-to-top-btn i {
    font-size: 1.2em;
  }
  
  /* Mobile responsive */
  @media (max-width: 768px) {
    .back-to-top-btn {
      width: 45px;
      height: 45px;
      bottom: 20px;
      right: 20px;
    }
  }
  /* Image Slider Section - Round Images with Info */
.image-slider-section {
    padding: 40px 20px;
    background-color: #FDEFB5;
    text-align: center;
    margin: 2rem 0;
}

.slider-heading {
    color: #00239c;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Times New Roman', serif;
}

.slider-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.slide {
    min-width: 100%;
    display: none;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.slide.active {
    display: block;
}

.round-image-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #00239c;
    box-shadow: 0 4px 8px #FDEFB5;
}

.round-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.priest-info {
    margin-top: 15px;
}

.priest-info h3 {
    color: #00239c;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.priest-info p {
    color: #555;
    font-size: 1.1rem;
    margin: 5px 0;
}

.priest-info .tenure {
    color: #00239c;
    font-weight: bold;
    font-style: italic;
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background-color: #FDEFB5;
    margin-top: 20px;
}

.slider-prev, .slider-next {
    background-color: #00239c;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 0 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.slider-prev:hover, .slider-next:hover {
    background-color: #D4AF37;
}

.slider-dots {
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #00239c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .round-image-container {
        width: 220px;
        height: 220px;
    }
    
    .priest-info h3 {
        font-size: 1.3rem;
    }
    
    .priest-info p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .round-image-container {
        width: 180px;
        height: 180px;
        border-width: 4px;
    }
    
    .slider-heading {
        font-size: 1.5rem;
    }
    
    .priest-info h3 {
        font-size: 1.2rem;
    }
}