@font-face {
    font-family: "CoconNextArabic-Regular";
    src: url("https://db.onlinewebfonts.com/t/4ce5fad2df30ef4ed5ee61f579ee24b7.eot");
    src: url("https://db.onlinewebfonts.com/t/4ce5fad2df30ef4ed5ee61f579ee24b7.eot?#iefix") format("embedded-opentype"),
        url("https://db.onlinewebfonts.com/t/4ce5fad2df30ef4ed5ee61f579ee24b7.woff2") format("woff2"),
        url("https://db.onlinewebfonts.com/t/4ce5fad2df30ef4ed5ee61f579ee24b7.woff") format("woff"),
        url("https://db.onlinewebfonts.com/t/4ce5fad2df30ef4ed5ee61f579ee24b7.ttf") format("truetype"),
        url("https://db.onlinewebfonts.com/t/4ce5fad2df30ef4ed5ee61f579ee24b7.svg#CoconNextArabic-Regular") format("svg");
}

/* Custom styles */
body {
    padding-top: 70px; /* Adjust this value based on your navbar height */
    background-color: #f8f9fa; /* Background color for the body */
    background-image: url('../imgs/bg_tbz.svg'); /* SVG background image */
    background-size: cover;
    background-position: center;
    height: 100vh; /* Ensure full viewport height */
    margin: 0; /* Remove default margin */
    overflow-x: hidden; /* Hide horizontal scrollbar */
    position: relative; /* Set position relative for absolute positioning */
    font-family: "CoconNextArabic-Regular";
}

.section {
    padding: 60px 0;
    direction: rtl;
    text-align: right;
}

.rounded-image {
    border-radius: 15px; /* Adjust this value to change the roundness */

}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5); /* Black background with 50% opacity */
    padding: 10px;
    border-radius: 10px; /* Optional: Adds rounded corners */
}

.page-container {
    width: 85%; /* Set the overall width of the page */
    margin: 0 auto; /* Center the page horizontally */
}

.fixed-height-row {
    background-image: url('../imgs/banner1.svg');
    background-size: cover;
    height: 120px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000; /* Text color for better visibility */
    text-align: center;
    font-size: 22px;
}

.fixed-height-row-2 {
    background-image: url('../imgs/banner1.svg');
    background-size: cover;
    height: 220px;
    margin-top: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000; /* Text color for better visibility */
    text-align: center;
    font-size: 22px;
}

footer {
    background-color: #fff; /* Dark background color */
    color: #000; /* Text color */
    padding: 12px 0; /* Vertical padding */
    text-align: center; /* Center align text */
}

.top1-px {
    margin-top: 10px;
    text-align: right;
    direction: rtl;
}

.service-row {
    margin-top: 50px;
    text-align: center;
    background-color: #f8f9fa; /* Light grey background color */
    border-top: 3px solid #ced4da; /* Light grey top bar */
    padding: 20px 0; /* Vertical padding */
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.delete-form {
    position: absolute;
    top: 10px;
    left: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Ensure the overlay is visible */
    color: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 10px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

.overlay:hover {
    opacity: 1; /* Visible on hover */
}
.titleoverlay-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%; /* Adjust the width to your desired size */
    padding-top: 50%; /* This creates a square by setting the height equal to the width */
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.titleoverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.dateoverlay {
    position: absolute;
    top: 20;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}
/*background-image: url('../imgs/tbz_service_cover.png');*/

.watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgb(47, 78, 103, 0.5);
}
.fixed-aspect-ratio {
    position: relative;
    width: 100%;
    padding-top: 100%; /* This creates a 1:1 aspect ratio */
}
.fixed-aspect-ratio > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the entire container */
}

.overlay h5 {
    margin: 0;
}

.delete-form {
    align-self: flex-start;
}

.slider {
    width: 100%; /* Set slider width to 100% */
    height: auto; /* Adjust height using viewport height units (vh) */
    background-color: #ffffff; /* Slider background color */
    overflow: hidden; /* Hide overflow for image slider */
    border-radius: 20px; /* Add rounded corners */
    margin-top: 20px; /* Add top margin to push down the slider */
}

.slider img {
    width: 100%; /* Ensure images fill the slider width */
    height: 100%; /* Fill the slider height */
    object-fit: cover; /* Maintain aspect ratio and cover the area */
    border-radius: 20px; /* Match parent's border radius */
}

.content-bar {
    width: 85%; /* Set content bar width to 100% */
    margin-top: 20px; /* Add top margin */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 20%; /* 90% of viewport height */
    background: linear-gradient(to right, #d0d6da, #f2f2f2); /* Gradient background */
    border-radius: 15px;
    box-sizing: border-box;
}

.navbar {
    width: 85%; /* Set navbar width to 90% */
    margin: 0 auto; /* Center the navbar horizontally */
    background-color: rgba(255, 255, 255, 0.7) !important; /* Transparent white background */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}


.navbar-custom {
    background-color: rgba(255, 255, 255, 0.9) !important; /* Less transparent */
}


@media (max-width: 992px) {
    .navbar-custom {
        background-color: rgba(255, 255, 255, 1) !important; /* Fully opaque on smaller screens */
    }
    .navbar-collapse {
        text-align: right; /* Align text to the right */
    }

    .navbar-nav {
        width: 100%;
        text-align: right; /* Ensure text is aligned right within the nav */
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        text-align: right; /* Align text within each link to the right */
    }

}

.navbar-toggler {
    margin-left: auto;
    padding: 0.25rem 0.75rem; /* Adjust padding to fit your design */
    margin-top: 20px;
    width: 20%;
    float: right;
    right: 0;
}

.navbar-brand img {
    height: 60px; /* Adjust the logo height */
}

.navbar-nav .nav-item .nav-link {
    padding-bottom: 5px; /* Add space below the link for the border */
    border-bottom: 2px solid transparent; /* Initially, set transparent border */
    transition: border-bottom 0.3s ease; /* Smooth transition effect */
}

.navbar-nav .nav-item .nav-link.active {
    border-bottom: 2px solid #007bff; /* Solid border color for active link */
}

.navbar-nav .nav-link {
    font-size: 18px; /* Adjust the font size as needed */
}

.social-buttons {
    position: fixed;
    top: 50%; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    transform: translateY(-50%); /* Center vertically */
    z-index: 9999; /* Ensure buttons stay on top of other content */
}

.social-buttons a {
    display: block;
    margin-bottom: 10px;
    text-align: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-buttons a:hover {
    transform: scale(1.4); /* Add scaling effect on hover */
}

.container {
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 20%; /* 90% of viewport height */
    background: linear-gradient(to right, #7e8d98, #ccc); /* Gradient background */
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
    margin-top: 20px;
}

.column {
    flex: 1; /* Equal width columns */
    padding: 10px;
    color: #fff; /* Text color */
}

.column:nth-child(2) {
    border-left: 1px solid #fff; /* Vertical divider */
    border-right: 1px solid #fff; /* Vertical divider */
}

h2 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.prayer-times {
    text-align: center;
    font-size: 20px;
    line-height: 1.5;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.pagination .page-item {
    margin: 0 0.25rem;
}

.pagination .page-item .page-link {
    color: #2f4e67;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
}

.pagination .page-item.active .page-link {
    background-color: #2f4e67;
    border-color: #000;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}
