* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
   line-height: 1.6;
   margin: 0;
   padding: 0;
   background: lightgray;
}
#parishes {
    scroll-margin-top: 100px; /* Adjust to match your header height */
  }
  
header {
    background: #e6e2e2;
    color: #282727;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    border-bottom: 5px solid rgb(96, 75, 96);
    position: fixed;
    width: 100%;
    z-index: 1000; /* Ensure the header stays above other content */
    

}
    .logo {
        display: flex;
        align-items: center; /* Center vertically */
    }

    .logo img {
        max-height: 70px; /* Adjust the height to fit your design */
        margin-right: 20px; /* Space between image and text */
    } 
header .logo h1 {
    margin: 0;
    color: #282727;
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
}

.menu-toggle {
    display: none; /* Hide toggle by default */
    cursor: pointer;
    border: 1px dashed rgb(39, 38, 38);
    padding: 5px;
    border-radius: 20%;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #0e0d0d;
    margin: 5px auto;
    /*transition: all 0.3s ease;*/
}
.links
.nav {
    display: flex; /* Show links in a row on larger screens */
   /* position: relative; /* Necessary to position close button */
}

.close-btn {
    display: none; /* Hidden by default */
    color: #ffffff;
    font-size: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute; /* Positioning it inside the nav */
    top: 10px;
    right: 10px;
   /* transition: color 0.3s; /* Smooth transition for hover effect */
}

.nav-list {
    list-style: none;
    display: flex; /* Displays the nav items in a row */
    padding: 0;
}

/* List item styling */
.nav-list li {
    margin: 7px 5px; /* Spacing between items */
    margin-right: 20px;
}

/* Link styling */
.nav-list a {
    color: #0e0d0d;
    text-decoration: none;
    position: relative; /* Needed for positioning the ::after element */
    padding-bottom: 5px; /* Space for the underline effect */
}

/* Hover effect for animating underline */
.nav-list a::after {
    content: ''; /* Empty content for the line */
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0; /* Start with no width */
    height: 3px; /* Line thickness */
    background-color: red; /* Line color */
    color: blue;
    transition: width 0.3s ease-in-out; /* Smooth width animation */
}

/* Hover effect for animating underline and text color */
.nav-list a:hover {
    color: blue; /* Change text color to blue on hover */
}
.nav-list a:hover::after {
    width: 100%; /* Expand the line on hover */
}

/* Active link styling */
.nav-list a.active {
    color: blue; /* Active link color */
}

.nav-list a.active::after {
    width: 100%; /* Ensure the underline is fully expanded for active links */
    background-color: blue; /* Match the active link color */
}
/*=========================================--------------------------------------
===========================================----------------------------*/
.hero {
    position: relative;
    margin-top: 85px;
    padding: 120px 100px;
    color: #ffffff;
    text-align: center;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: heroBackgroundCycle 20s infinite, zoomEffect 30s ease-in-out infinite;
    background-size: cover;
    background-position: center;
    transition: background 10s ease-in-out;
    filter: brightness(0.5);
}

/* Background image & color cycle */
@keyframes heroBackgroundCycle {
    0%   { background: url('images/2025-05-19 at 15.26.34_309653d5.jpg') no-repeat center center / cover; }
    25%  { background: url('images/2025-05-19 at 15.26.35_885be2f0.jpg') no-repeat center center / cover; }
    50%  { background: url('images/2025-05-19 at 15.26.34_36a9cd0e.jpg') no-repeat center center / cover; }
    75%  { background: url('images/2025-05-19 at 15.26.34_309653d5.jpg') no-repeat center center / cover; }
    100% { background: url('images/2025-05-19 at 15.26.35_885be2f0.jpg') no-repeat center center / cover; }
}

/* Zoom (grow/shrink) animation */
@keyframes zoomEffect {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Text animations */
.hero h2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 3s forwards;
}

.hero h2 {
    animation-delay: 0.5s;
}

.hero h4 {
    animation-delay: 1s;
}

.hero a {
    animation-delay: 1.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero h2 {
    font-size: 25px;
    padding-top: 50px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff;
    color: #007700;
    text-decoration: none;
    border-radius: 5px;
   
}
.cta-button:hover{
    background-color: #5a4b8b;
    color: #fff;
    
}
.cta-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    font-weight: bold;
}

.hero h4 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    color: white;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 3.5s steps(20) 1s forwards;
    position: relative;
    margin: 0 auto;
}

.hero h4::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: white;
    animation: blink 0.5s step-end 1s 7 forwards;
    opacity: 0;
}

@keyframes typing {
    from { width: 0; }
    to { width: 20ch; }
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}




/*====================================================---------------------------
======================================================---------------------------
======================================================--------------------------*/

main {
    padding: 20px;
}

section {
   margin: 20px 0;
}

footer {
    background: #36454F;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .menu-toggle {
        display: block; /* Show toggle button */
    }

    .nav {
        position: fixed; /* Fixed position for mobile */
        top: 0;
        left: -250px; /* Hide off-screen by default */
        background: #000000; /* Match header background */
        height: 100%; /* Full height */
        width: 250px; /* Fixed width for the menu */
        padding-top: 60px; /* Space for header */
        transition: left 0.3s ease; /* Smooth transition effect */
    }
    
    .nav-list {
        flex-direction: column; /* Stack items vertically for mobile */
        padding-left: 25px;
    }
    .nav-list a {
    color: white;
    font-size: medium;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    }

    .nav-list li {
        margin: 10px 0; /* Space between stacked items */
    }

    .close-btn {
        display: block; /* Show close button on mobile */
    }

    .hero {
        padding: 40px 10px;
        margin-left: 0; /* No margin on smaller screens */
        background-size: cover;
    }
}

header img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
}
/* Dimming effect */
.overlay {
    display: none;   /* Hidden by default */
    position: fixed; /* Cover entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 999; /* Ensure it sits above other content */
}

.nav.active + .overlay {
    display: block;  /* Show overlay when nav is active */
}


/*---------------------------------------------------STYLE FOR GALLERY--------------------------------------*/
.hero1 {
    margin-top: 85px;
    padding: 120px 100px;
    background: url('images/provincial.jpg') no-repeat center center/cover;
    background-image: url('images/provincial.jpg');
    background-size: 100%; /* Ensures the image covers the entire background
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; 
    color: #ffffff;
    text-align: center;
    top: 0;
    width: 100%;
    height: 200px; /* You may also consider using min-height */
    position: relative;
    left: 0;
    right: 0;
}
.hero1 h2 {
    padding-top: 60px;
   font-size: 25px;
    }


    /* Responsive Styles */
@media (max-width: 600px) {
    .menu-toggle {
        display: block; /* Show toggle button */
    }

    .nav {
        position: fixed; /* Fixed position for mobile */
        top: 0;
        left: -250px; /* Hide off-screen by default */
        background: #000000; /* Match header background */
        height: 100%; /* Full height */
        width: 250px; /* Fixed width for the menu */
        padding-top: 60px; /* Space for header */
        transition: left 0.3s ease; /* Smooth transition effect */
    }
    
    .nav-list {
        flex-direction: column; /* Stack items vertically for mobile */
        padding-left: 25px;
    }
    .nav-list a {
    color: white;
    font-size: medium;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    }

    .nav-list li {
        margin: 10px 0; /* Space between stacked items */
    }

    .close-btn {
        display: block; /* Show close button on mobile */
    }

    .hero1 {
        padding: 40px 10px;
        margin-left: 0; /* No margin on smaller screens */
        background-size: cover;

    }
    .hero1 h2 {
        padding-top: 60px;
       font-size: medium;
        }
}

/*---------------------------------------------------STYLE FOR NEWS PAGE--------------------------------------*/
.hero2 {
    margin-top: 85px;
    padding: 120px 100px;
    background-image: url('images/img2.jpeg');
    backdrop-filter: blur(10px);
    background-size: 100%; /* Ensures the image covers the entire background
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; 
    color: #ffffff;
    text-align: center;
    /*filter: blur(8px);*/
    top: 0;
    width: 100%;
    height: 200px; /* You may also consider using min-height */
    position: relative;
    left: 0;
    right: 0;
}
.hero2 h2 {
    padding-top: 60px;
   font-size: 25px;
    }

    /* Responsive Styles */
@media (max-width: 600px) {
    .menu-toggle {
        display: block; /* Show toggle button */
    }

    .nav {
        position: fixed; /* Fixed position for mobile */
        top: 0;
        left: -250px; /* Hide off-screen by default */
        background: #000000; /* Match header background */
        height: 100%; /* Full height */
        width: 180px; /* Fixed width for the menu */
        padding-top: 60px; /* Space for header */
        transition: left 0.3s ease; /* Smooth transition effect */
    }
    
    .nav-list {
        flex-direction: column; /* Stack items vertically for mobile */
        padding-left: 25px;
    }
    .nav-list a {
    color: white;
    font-size: medium;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    }

    .nav-list li {
        margin: 10px 0; /* Space between stacked items */
    }

    .close-btn {
        display: block; /* Show close button on mobile */
    }

    .hero1 {
        padding: 40px 10px;
        margin-left: 0; /* No margin on smaller screens */
        background-size: cover;

    }
    .hero2 h2 {
        padding-top: 60px;
       font-size: medium;
        }
}

/*=========================================================================================================*/
/* Reset margins and paddings */
.headi {
    border-bottom: 4px solid #ffe;
    position: relative;
    display: inline-block; 
}
ul, li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Container styling */
footer .container.row {
    display: flex; /* Makes the children align in a row */
    justify-content: space-between; /* Adds space between each item */
    gap: 20px; /* Adds space between columns */
    flex-wrap: wrap; /* Allows items to wrap if screen size is too small */
}

/* Individual columns styling */
.links {
    flex: 1; /* Makes all columns take equal width */
    min-width: 200px; /* Prevents columns from shrinking too much */
}

.links h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.links ul li {
    margin-bottom: 8px; /* Space between list items */
    font-size: 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.links ul li a {
    color: #fff; /* Bootstrap-like link color */
    text-decoration: none;
    position: relative;
    display: inline-block;
}

/* Hover effect and animation for underline */
.links ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f00;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.links ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.links ul li a:hover {
    text-decoration: none; /* Adds underline on hover */
    color: #318CE7;
}

footer .links  {
    text-align: left;
    margin-left: 25px;
}

@media (max-width: 600px) {
    .container.row {
        flex-direction: column; /* Stack items vertically on small screens */
        /*align-items: center;*/
    }

    .links {
        text-align: center;
    }
}

  .media {
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: center; /* Center the links horizontally */
    gap: 20px; /* Add space between the links */
    margin: 20px 0; /* Add space above and below the media section */
}

.media a {
    font-size: 20px; /* Adjust font size */
    text-decoration: none; /* Remove underline */
    color: #36454F; /* Black text color for links */
    padding: 10px 20px; /* Add padding inside each link */
    border: 1px solid #ddd; /* Add a light border */
    border-radius: 5px; /* Rounded corners */
    background-color: #b0abb2; /* Light background color */
    transition: 0.3s; /* Smooth hover transition */
}

.media a:hover {
    background-color: #007bff; /* Change background on hover */
    color: #fff; /* Change text color on hover */
}

.container2 {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f4f4f4;
}
.events {
    background: #e6e2e2;

}
.events h2,p {
    margin-left: 10px;
}
.info {
    text-align: justify;
}
.offices {
    background: #f9f9f8;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}
.directory h2 {
    color: #5a4b8b;
    margin-bottom: 20px;
}

.bishop-image {
width: 300px;
height: 350px;
}
.bishop-info h3 {
    color: #333;
    margin-bottom: 10px;
}

.bishop-info p {
    color: #555;
    font-size: 16px;
    margin: 5px 0;
    text-align: justify;
}

.bishop-info a {
    color: #5a4b8b;
    text-decoration: none;
}
label
.bishop-info a:hover {
    text-decoration: underline;
}
.readmore {
    background: #007bff;
    padding: 10px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: large;
}
.readmore:hover{
    background-color: #5a4b8b;
}

/*===========================================================*/
.directory-link {
    margin-top: 20px;
    text-align: center;
}
.directory h1{
    color:#5a4b8b;
    border-bottom: 10px solid red;
    position: relative;
    display: inline-block;
}
.directory {
    text-align: center; /* Centers content in the directory */
    margin: 20px auto; /* Adds spacing */
    max-width: 600px; /* Keeps the layout manageable on larger screens */
}



.mission-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 20px; /* Adds space between items */
    justify-content: space-between;
    background: #f7f9f8;
    padding: 20px;
    box-shadow: 3px 2px 3px 2px purple;
}

.mission, .thomo {
    flex: 1 1 calc(50% - 20px); /* Each takes 50% of the width, minus the gap */
    box-sizing: border-box;
}

.mission h4, .thomo h4 {
    margin-bottom: 10px;
}

.mission p, .thomo p {
    margin-top: 0;
}

/* Adjust layout for smaller screens */
@media (max-width: 600px) {
    .mission, .thomo, .wrapper, .form-box {
        flex: 1 1 100%; /* Full width on small screens */
    }
}
.hee1{
    text-align: center; /* Centers content in the directory */
    margin: 20px auto; /* Adds spacing */
    max-width: 600px;
}
.he1{
    text-align: center;
    border-bottom: 4px solid red;
    position: relative;
    display: inline-block;
}

/* Container styling */
.vision-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid layout */
    gap: 20px; /* Space between sections */
    padding: 20px;
    background-color: #f7f9f8; /* Optional background */
    margin: 20px auto;
    box-shadow: 3px 2px 3px 2px purple;
}


/* Text styling */
.vision-container h1 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

.vision p, .vision p {
    margin-top: 0;
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .vision h3, .vision h3, .form-box h2 {
        font-size: 1.25rem;
    }

    .vision p, .vision p {
        font-size: 0.95rem;
    }
}



.wrapper {
    position: relative;
    max-width: 500px; /* Set max-width instead of fixed width */
    width: 90%; /* Makes it responsive to smaller screens */
    margin: 20px auto; /* Centers the form */
    height: fit-content;
    backdrop-filter: blur(5px);
    border: 1px solid blue;
    border-radius: 10px;
    box-shadow: 0 0 3px 2px rgba(0, 0, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper .form-box {
    width: 100%;
    padding: 40px;
}

.form-box h3 {
    font-size: 25px;
    color: blue;
    text-align: center;
    text-decoration: underline;
}

.input-box {
    position: relative;
    width: 100%;
    border: 1px solid blue;
    margin: 30px 0;
    border-radius: 0 15px 15px 15px;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1.3em;
    color: rgb(0, 0, 0);
    font-weight: 500;
    pointer-events: none;
    transition: 0.5s;
    
}

.input-box input:focus ~ label,
.input-box input:valid ~ label,
.input-box textarea:focus ~ label,
.input-box textarea:valid ~ label {
    top: -5px;
    font-size: 1.2em;
    color: white;
    background-color: blue;
    padding: 1px 5px 1px 5px;
    border-radius: 10px;
}

.input-box input,
.input-box textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 1em;
    color: #000;
    font-family: inherit;
    line-height: 1.5;
}

.input-box textarea {
    resize: none; /* Prevent manual resizing */
    min-height: 120px; /* Consistent height for textarea */
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: blue;
}

.btn {
    width: 100%;
    height: 45px;
    background: blue;
    border: none;
    outline: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    transition: 0.3s;
    width: 150px;
}

.btn:hover {
    background: #fff;
    color: blue;
    box-shadow: 3px 3px 9px 9px #318CE7;
}

@media (max-width: 768px) {
    .wrapper {
        width: 95%;
        box-shadow: 0 0 5px 3px rgba(0, 0, 255, 0.1);
    }
    .form-box {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .wrapper .form-box {
        width: auto;
        padding: 20px;
    }
    .input-box {
        margin: 15px 0;
    }
    .input-box input,
    .input-box textarea {
        font-size: 0.9em;
    }
    .form-box h3 {
        font-size: 1.2em;
    }
    .btn {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .form-box h3 {
        font-size: 1em;
    }
    .input-box label {
        font-size: 1em;
    }
    .btn {
        height: 40px;
        font-size: 0.85em;
    }
}


/*==================================================================================*/
.section-title {
    color: #5a4b8b;
    text-align: center;
    margin: 20px 0;
    border-bottom: 10px solid #f00;
    position:relative; 
    display: inline-block;
}
.directory {
    overflow-x: auto;
    margin: 0 auto;
    max-width: 100%;
    padding: 10px;
    border-radius: 5px;
}
.directory-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.directory-table th, .directory-table td {
    border: 1.5px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 16px;
}
.directory-table th {
    background-color: #5a4b8b;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}
.directory-table tr:nth-child(even) {
    background-color: #f2f2f2;
}
.directory-table tr:hover {
    background-color: #318CE7;
    color:white;
}
@media (max-width: 768px) {
    .directory {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .directory-table th, .directory-table td {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .directory-table th, .directory-table td {
        font-size: 12px;
    }
}
td a{
    text-decoration: none;
}
td a:hover{
    color: red;
    text-decoration: underline;
}


.event-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: transparent;
    box-shadow: 5px 5px 12px 16px rgba(255,0,9,0.6);
    margin-left: 15%;
    margin-right: 15%;
   
}

.events p,h3{
    font-size: 15px;
   text-align: center;
   margin: 0 0 10px;
   color: red;
   text-align: justify;
   font-family:'Times New Roman', Times, serif;  
}
.events .clas p{
    color:red;
}
.events b{
    text-decoration: underline;
}
footer .credentials{
    font: 6px;
    color:gray;
    font-family: monospace;

}


.news-section {
    background: linear-gradient(135deg, #f7f7f7, #fff);
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-section .container {
    max-width: 800px;
    margin: auto;
    text-align: justify;
}

.news-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
}

.news-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #34495e;
}

.news-content p strong {
    color: #e74c3c;
    font-size: 1.1rem;
}

.news-content p em {
    font-style: italic;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .news-heading {
        font-size: 1.5rem;
    }

    .news-content p {
        font-size: 0.9rem;
    }
}

