/* General Reset */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f5f7fa; /* Light grayish blue */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Top Bar Styling */
.top-bar {
    font-size: 0.9rem;
    background-color: #003580; /* Navy blue */
    color: #ffffff; /* White text */
}
.top-bar .contact-info span {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.top-bar .social-media a {
    font-size: 1.2rem;
    color: #ffffff; /* White icons */
    transition: color 0.3s ease;
}
.top-bar .social-media a:hover {
    color: #ffcc00; /* Bright yellow for hover */
}

/* Navbar Styling */
.navbar {
    background-color: #003580; /* Navy blue */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: auto; /* Adjust height dynamically */
    display: flex;
    align-items: center;
    padding: 10px 20px;
}
.navbar-brand, .nav-link, .dropdown-toggle {
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}
.navbar-brand:hover, .nav-link:hover, .dropdown-toggle:hover {
    color: #ffcc00 !important; /* Bright yellow for hover */
}
.navbar-brand img {
    height: 50px; /* Adjust logo size */
    margin-right: 10px;
}
.dropdown-menu {
    background-color: #e6f0ff; /* Soft blue */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.dropdown-item:hover {
    background-color: #cce0ff;
    color: #003580 !important;
}

/* Main Container */
.container {
    max-width: 95%; /* Increased width */
}
.container-fluid {
    max-width: 98%; /* Slightly increased width for fluid containers */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #003580, #0056b3), url('images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    height: 70vh; /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}
.hero h1 {
    font-size: 3rem; /* Reduced font size */
    font-weight: 700;
    margin-bottom: 15px;
}
.hero p {
    font-size: 1rem; /* Reduced font size */
    margin-bottom: 20px;
    color: #e3f2fd;
}
.hero .btn {
    background-color: #ffcc00;
    color: #003580;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}
.hero .btn:hover {
    background-color: #ffdd33;
    color: #00264d;
}

/* Calendar Styling */
.calendar {
    border: none;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa); /* White to light gray */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.calendar:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.calendar .card-header {
    background-color: #003580; /* Navy blue */
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border-bottom: 2px solid #00264d;
    border-radius: 12px 12px 0 0;
}
.calendar .table {
    margin: 0;
    border-collapse: collapse;
}
.calendar .table th {
    background-color: #cce0ff;
    color: #003580;
    font-weight: bold;
    padding: 10px;
}
.calendar .table td {
    height: 80px;
    vertical-align: middle;
    font-size: 1rem;
    color: #333;
    transition: background-color 0.3s ease;
}
.calendar .table td.bg-primary {
    background-color: #003580 !important; /* Navy blue */
    color: #fff !important;
    border-radius: 50%;
}
.calendar .table td.bg-light {
    background-color: #f8f9fa;
}
.calendar .table td:hover {
    background-color: #e6f0ff;
    cursor: pointer;
}
.calendar .table td.has-article {
    background-color: #ffcc00; /* Highlight color for dates with articles */
    color: #003580;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}
.calendar .table td.has-article:hover {
    background-color: #ffdd33;
}
.calendar .table td.has-article .tooltip-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: #333;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    white-space: nowrap;
}
.calendar .table td.has-article:hover .tooltip-content {
    display: block;
}
.calendar .table td.has-content {
    background-color: #ffcc00; /* Highlight color for dates with content */
    color: #003580;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}
.calendar .table td.has-content:hover {
    background-color: #ffdd33;
}
.calendar .table td.has-content[data-bs-toggle="tooltip"]::after {
    content: '•'; /* Add a marker for dates with content */
    color: #ff0000;
    font-size: 1.2rem;
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Donation Section */
.donation-section {
    background: linear-gradient(to bottom, #f5f7fa, #e6f0ff); /* Light grayish blue to soft blue */
    text-align: center;
    padding: 60px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.donation-section h2 {
    font-size: 2.5rem;
    color: #003580;
    font-weight: bold;
    margin-bottom: 20px;
}
.donation-section p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}
.donation-section .btn {
    background-color: #003580; /* Navy blue */
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    padding: 12px 25px;
    transition: all 0.3s ease;
}
.donation-section .btn:hover {
    background-color: #00264d;
}

/* Donation Form Styling */
.card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.card-header {
    font-size: 1.5rem;
    font-weight: 600;
}
.card-body {
    padding: 20px;
}
.form-control {
    border-radius: 8px;
    padding: 10px;
}
textarea.form-control {
    resize: none;
}
button[type="submit"] {
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
button[type="submit"]:hover {
    background-color: #00264d;
}

/* Donation Form Styling */
.donation-form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.donation-form .form-control {
    border-radius: 8px;
    padding: 10px;
}
.donation-form textarea.form-control {
    resize: none;
}
.donation-form button[type="submit"] {
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.donation-form button[type="submit"]:hover {
    background-color: #00264d;
}

/* Contact Form Styling */
.contact-form {
    max-width: 100%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.contact-form .form-control {
    border-radius: 8px;
    padding: 10px;
}
.contact-form textarea.form-control {
    resize: none;
    height: auto; /* Adjust height dynamically */
}
.contact-form button[type="submit"] {
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.contact-form button[type="submit"]:hover {
    background-color: #00264d;
}

/* Content Styling */
section {
    padding: 60px 0;
}
h2 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}
h3 {
    font-size: 2rem;
    color: #004aad;
    font-weight: 600;
    margin-top: 20px;
}
p {
    color: #555;
    line-height: 1.8;
}

/* Gallery Styling */
.gallery-img {
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: #003580; /* Navy blue */
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 4px solid #00264d;
}
footer a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #ffdd33;
}

/* Sidebar Sections */
.calendar, .list-group {
    background: linear-gradient(to bottom, #ffffff, #e6f0ff); /* White to soft blue */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.list-group-item {
    background-color: #ffffff;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.list-group-item-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.list-group-item-action span {
    font-size: 0.9rem;
    color: #555;
}

/* Total Donation Section */
.text-primary {
    color: #003580 !important;
}
.text-success {
    color: #28a745 !important;
}
.bg-light {
    background-color: #f5f7fa !important;
}

/* Buttons */
.btn-primary {
    background-color: #003580; /* Navy blue */
    border-color: #003580;
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #00264d;
    border-color: #00264d;
}

/* Radio Button Styling */
.form-check-inline {
    margin-right: 15px;
}
.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    vertical-align: middle;
}
.form-check-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .calendar .table td {
        height: 60px;
    }
}

/* Contact Section */
.contact-info {
    font-size: 1rem;
    line-height: 1.8;
}
.contact-info .social-media a {
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s ease;
}
.contact-info .social-media a:hover {
    transform: scale(1.1);
}
.contact-form {
    max-width: 100%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.contact-form .form-control {
    border-radius: 8px;
    padding: 10px;
}
.contact-form textarea.form-control {
    resize: none;
    height: auto;
}
.contact-form button[type="submit"] {
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.contact-form button[type="submit"]:hover {
    background-color: #00264d;
}
.map iframe {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* News and Articles Styling */
.list-group-item {
    font-family: 'Poppins', sans-serif; /* Use a clean and modern font */
    font-size: 1rem;
    padding: 10px 15px;
    border: none;
    border-bottom: 1px solid #e6e6e6;
}
.list-group-item:last-child {
    border-bottom: none;
}
.list-group-item a {
    color: #003580;
    text-decoration: none;
    font-weight: 600; /* Bold font for titles */
}
.list-group-item a:hover {
    color: #0056b3;
}
.list-group-item .text-muted {
    font-size: 0.85rem;
    font-weight: 400;
}

/* Bank Logo Styling */
.bank-logo {
    height: 50px; /* Set a fixed height */
    width: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto; /* Center the logo */
}

/* Article Detail Styling */
.article-detail {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    line-height: 1.8;
}
.article-detail h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003580;
}
.article-detail .text-muted {
    font-size: 0.9rem;
    font-weight: 400;
}
.article-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}
.article-detail .article-content {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

/* Responsive Design for Article Page */
@media (max-width: 768px) {
    .article-detail h1 {
        font-size: 2rem;
    }
    .article-detail .article-content {
        font-size: 1rem;
    }
}

/* Article Listing Styling */
.card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.card-img-top {
    height: 150px;
    object-fit: cover;
}
.card-title {
    font-size: 1rem;
    font-weight: 600;
}
.card-text {
    font-size: 0.85rem;
    color: #555;
}
.pagination {
    margin-top: 20px;
}
.pagination .page-item.active .page-link {
    background-color: #003580;
    border-color: #003580;
    color: #fff;
}
.pagination .page-link {
    color: #003580;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.pagination .page-link:hover {
    background-color: #003580;
    color: #fff;
}

/* Detail View Styling */
.detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    font-size: 1.1rem;
}
.detail-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Prevent text overflow in detail views */
.detail-container, .article-detail, .news-detail {
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Ensure text wraps within the container */
    white-space: normal; /* Allow text to wrap to the next line */
}

/* Loading Screen Styling */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #003580; /* Navy blue */
    z-index: 9999; /* Ensure it appears above all other elements */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease; /* Add fade-out transition */
    pointer-events: all; /* Allow interactions while visible */
}
.loading-screen.hidden {
    pointer-events: none; /* Disable interactions when hidden */
}
.loading-logo {
    width: 100px; /* Adjust logo size */
    height: auto;
    animation: spin 2s linear infinite; /* Add a spinning animation */
}

/* Spinning Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Progress Bar Styling */
.progress-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}
.progress {
    background-color: #e6e6e6; /* Light gray background */
    overflow: hidden;
}
.progress-bar {
    transition: width 0.5s ease-in-out;
}
.tooltip-text {
    position: absolute;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    transform: translate(-50%, -100%);
}

/* Scroll to Top Button */
#scrollToTop {
    background-color: #003580; /* Navy blue */
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}
#scrollToTop:hover {
    background-color: #00264d; /* Darker navy blue */
    transform: scale(1.1);
}

/* Chatbot Widget Styling */
#chatbot-widget {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
}
#chatbot-widget .bg-primary {
    border-radius: 12px 12px 0 0;
}
#chatbot-messages {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
#chatbot-messages div {
    margin-bottom: 10px;
}
#chatbot-messages .text-end {
    text-align: right;
}
#open-chatbot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#open-chatbot:hover {
    background-color: #00264d;
}
