:root {
    --bs-primary: #de3939;
    --bs-primary-rgb: 222, 57, 57;
}

/* Override Bootstrap primary color */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary) !important;
    --bs-btn-border-color: var(--bs-primary) !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #c43232 !important; /* Slightly darker red for hover */
    --bs-btn-hover-border-color: #b82f2f !important; /* Slightly darker red for hover */
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #b82f2f !important; /* Slightly darker red for active */
    --bs-btn-active-border-color: #ad2c2c !important; /* Slightly darker red for active */
    --bs-btn-disabled-bg: var(--bs-primary) !important;
    --bs-btn-disabled-border-color: var(--bs-primary) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary) !important;
    --bs-btn-border-color: var(--bs-primary) !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary) !important;
    --bs-btn-hover-border-color: var(--bs-primary) !important;
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary) !important;
    --bs-btn-active-border-color: var(--bs-primary) !important;
    --bs-btn-disabled-color: var(--bs-primary) !important;
    --bs-btn-disabled-border-color: var(--bs-primary) !important;
    --bs-gradient: none;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

.border-primary {
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-primary-rgb), var(--bs-border-opacity)) !important;
}
/* Apply fonts */
body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Poppins', sans-serif;
}

/* Additional styling for a cleaner look */
.card {
    border-radius: 0.5rem; /* Slightly rounded corners */
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important; /* Lighter shadow */
}

.page-header {
    background-size: cover;
    background-position: center;
}

.article-card {
    transition: transform 0.2s ease-in-out;
}

.article-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

/* Ensure text on primary background is readable */
.bg-primary.text-white a {
    color: rgba(255, 255, 255, 0.8); /* Slightly less than pure white for links */
}

.bg-primary.text-white a:hover {
    color: rgba(255, 255, 255, 1); /* Pure white on hover */
}
.text-justify{
    text-align:justify!important;
}

/* Ensure navbar collapse is visible when open in mobile view */
@media (max-width: 991.98px) {
    .navbar-collapse.show {
        display: block !important;
    }
}