body{
    margin: 0px;
    box-sizing: border-box;
    padding-top: 65px;
}

.main-image{
    max-width: 100%;
    height: auto;
}

.main-content-button{
    align-self: flex-start;
}
/* Navbar Logo Styling */
.logo {
    max-height: 50px;
    width: auto;
}
.navbar-toggler {
    border: none !important;
    outline: none;
    background: none; 
    padding: 0;
}


.navbar-heading {
    font-size: 20px;
    font-family: 'Cambria', serif;
    font-weight: bold;
    display: inline-block;
}

/* Adjust Navbar Links */
.nav-link {
    font-size: 16px;
    padding: 10px 15px;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link.active {
    background-color: #1aac1a;
    color: #fff !important;
    font-weight: bold;
    border-radius: 5px;
    border: none;
}

.nav-link:hover {
    color: #1aac1a !important;
    background-color: #e9ecef;
    text-decoration: none;
    border-radius: 5px;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-heading {
        font-size: 15px;
    }
    .logo {
        max-height: 40px; /* Adjust logo size */
    }

    .nav-link {
        text-align: center;
        padding: 8px;
    }
    .main-content-button{
        align-self: flex-end;
    }
}


  
@media screen and (max-width:320px) {
    .navbar-heading {
        display: none; /* Hide heading for smaller screens */
    }
}
.main-about{
        position: absolute;
        font-size: 80px;
        color: #595959;
        width: 50px;
        word-break: break-all;
        text-transform: uppercase;
        line-height: 1;
        font-weight: 900;
        left: 3%;
        transform: translateY(50%);
        text-align: center;
        opacity: .1;
        font-family: Anton, sans-serif;
}
.ml-auto{
    margin-left: auto !important;
}

.news-box{
    max-height: 250px;
    color: #007bff;
    border: 2px solid #e9ecef;
    margin: 20px 150px;
    padding: 20px;
    text-align: center;
    overflow: auto;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}
.about-image{
    max-height: 350px;
    width: 100%;
}

.social-media{
    display: flex;
    justify-content: center;
    gap: 15px;
}
.footer {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    font-size: 14px;
}

.social-media a {
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #007bff !important; /* Bootstrap primary color */
}

.history{
    text-align: center;
    padding: 10px;
}
.history-details{
    text-align: justify;
    margin: 50px;
}
.year{
    font-weight: bold;
}
.friars-contact, .friars-provincial{
    text-align: center;
}
.friars-contact-details{
    border: 2px solid;
    margin-left: 22%;
    margin-right: 22%;
    max-height: 400px;
    overflow-y: auto;
}
.main-desc-card {
    border-radius: 18px;
    background-color: #fff;
    margin-bottom: 20px;
    padding: 15px;
    height: auto; 
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Required for absolutely positioned elements inside */
}

.main-desc-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.main-desc-card img {
    border-bottom: 2px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    max-height: 50%;
    width: 100%;
}

.main-desc-card p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px; /* Add spacing between paragraphs */
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-desc-card p.text-center {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px; /* Add spacing below the title */
}

.main-content-button {
    position: relative; /* Use relative to fit within the card content flow */
    display: inline-block; /* Keep the button inline */
    padding: 5px 15px;
    font-size: 14px;
    margin-top: 15px; /* Add spacing above the button */
    text-align: center;
}

/* Media Query for devices with width below 768px */
@media screen and (max-width: 768px) {
    .main-content-button {
        display: block; /* Ensure button spans full width */
        margin: 15px auto; /* Center the button and add spacing */
        width: auto; /* Allow natural width */
    }
    .news-box{
        margin: 20px 50px;
    }
}
.friars-provincial-details img {
    max-height: 700px;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
.pagination button {
    width: 100px;
}

        