html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Ensure banner image is not cut off by nav menu on smaller devices */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Adjust this value to the height of your navbar */
    }

    img.banner-image {
        display: none;
    }

    nav.navbar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000; /* Keep the navbar on top */
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 60px;
    font-family: 'Georgia', serif;
}

/* Style for all nav links */
.navbar-nav .nav-link {
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: #B93C1A !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    height: 60px;
}

/* Add a more specific rule for the active state */
.navbar-nav .nav-link.active {
    font-weight: bold;
    color: #FF5733 !important; /* Ensure the active color is applied */
}

/* Ensure nav links don't underline on hover */
.navbar-nav .nav-link:hover {
    text-decoration: none;
}

.navbar .navbar-toggler-icon {
    color: #B93C1A;
}

.navbar-brand img {
    max-height: 50px;
}

/* Dropdown menu styling */
.navbar-nav .dropdown-menu {
    background-color: white;
    border-color: #B93C1A;
}

.navbar-nav .dropdown-item {
    color: #B93C1A;
}

.navbar-nav .dropdown-item:hover {
    background-color: #FF5733; /* Slightly lighter shade for hover */
    color: white;
}

/* Adjust the navbar and image spacing */
header {
    margin-bottom: 0;
    padding-bottom: 0;
}

nav.navbar {
    margin-bottom: 0;
    padding-bottom: 0;
}

img.banner-image {
    margin-top: 0;
}

/* Ensure all news images have the same width */
.news-image {
    width: 80%; /* Adjust this percentage to control the image size */
    height: auto; /* Maintain aspect ratio */
    max-width: 300px; /* Set a maximum width similar to the reference page */
    display: block;
    margin: 0 auto; /* Center the images horizontally */
    border: 2px solid #ccc; /* Add a border around the images */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Add subtle shadow for depth */
    position: relative;
    padding: 10px;
}

footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.brand_name {
    font-family: 'Abril Fatface', serif;
    color: #ca0404;
}

h4.nowrap {
    font-family: 'Merriweather Sans', sans-serif;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
}

a {
    color: #ca0404;
    text-decoration: none;
}

a:hover {
    color: #ff5733;
    text-decoration: underline;
}

.icon {
    color: #ca0404;
    margin-right: 10px;
}

.icon:hover {
    color: #ff5733;
}

.quote-container {
    margin-bottom: 20px;
    padding: 15px;
    border-left: 5px solid #ca0404; /* Left border to visually group quote and author */
    background-color: #f9f9f9; /* Light background to highlight the quote section */
    border-radius: 5px;
}

.quote-text {
    font-size: 1rem;
    margin-bottom: 5px; /* Space between quote and author */
    color: #333;
}

.quote-author {
    font-style: italic;
    color: #777;
    text-align: right; /* Align author to the right */
    margin-top: 5px; /* Space above the author name */
}

h1 {
    color: #B93C1A; /* Orange color for headings */
}

h2 {
    color: #B93C1A; /* Orange color for headings */
    margin-bottom: 20px;
    margin-top: 10px;
}

h3 {
    color: #B93C1A; /* Orange color for headings */
}

.bio-box {
    margin-bottom: 40px; /* Add spacing between bios */
    padding: 20px;
    border: 1px solid #ddd; /* Add border around bio box */
    border-radius: 8px;
    background-color: #f9f9f9;
    overflow: hidden; /* Ensure content stays inside the box */
}

.bio-image {
    width: 250px;
    margin-right: 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc; /* Optional: border around images */
    border-radius: 8px;
    float: left; /* Ensure the image stays inside the content box */
}

.jumbotron figure {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.jumbotron figure img {
    border: 1px solid #ccc;
    border-radius: 8px;
}

.jumbotron figure figcaption {
    color: #777;
    margin-top: 10px;
    font-style: italic;
}

/* Style for the active category button */
.category-button.active {
    background-color: #FF5733; /* Highlight with orange color */
    color: white; /* Ensure text is legible */
    border: 1px solid #B93C1A; /* Optional: Add a border to match theme */
}

/* Modal Wrapper */
#subscribe-cta-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center; /* Center the modal */
}

/* Modal Content */
.subscribe-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px; /* Limit width on larger screens */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Content inside the modal */
.subscribe-modal-content h5 {
    color: rgba(205, 88, 40, 1);
    margin-top: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.subscribe-modal-content p {
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
}

.subscribe-modal-content .form-group {
    margin-bottom: 15px;
}

.subscribe-modal-content .form-control {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

.subscribe-modal-content .btn {
    width: 100%;
    background-color: rgba(205, 88, 40, 0.9);
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
}

.subscribe-modal-content .btn:hover {
    background-color: rgba(150, 50, 10, 0.8);
    color: white;
}

.close-cta {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

.close-cta:hover {
    color: #ff0000;
}

button:disabled {
    background-color: #d3d3d3; /* Light gray background */
    color: #888; /* Darker gray text */
    cursor: not-allowed; /* Change cursor to indicate it's disabled */
    opacity: 0.7; /* Slightly reduce opacity */
}

/* Center the modal on the screen */
@media (max-width: 768px) {
    .subscribe-modal-content {
        width: 95%; /* Use more screen width on mobile */
    }
}

/* Floating "Work with us" CTA Button */
.floating-work-with-us {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
    background-color: rgba(205, 88, 40, 1);
    color: white;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.floating-work-with-us:hover {
    background-color: rgba(185, 60, 26, 1);
    box-shadow: -2px 2px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) rotate(-90deg) translateX(-5px);
    color: white;
    text-decoration: none;
}

.floating-work-with-us i {
    font-size: 18px;
}

/* Hide on very small screens */
@media (max-width: 576px) {
    .floating-work-with-us {
        display: none;
    }
}

/* Calendar CTA Box (used on Contact and About pages) */
.calendar-cta-box {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border: 2px solid rgba(205, 88, 40, 0.3);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.calendar-cta-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.calendar-cta-icon {
    font-size: 48px;
    color: rgba(205, 88, 40, 1);
    flex-shrink: 0;
}

.calendar-cta-content h3,
.calendar-cta-content h4 {
    color: rgba(185, 60, 26, 1);
    margin-bottom: 10px;
    font-weight: 700;
}

.calendar-cta-content p {
    color: #555;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.calendar-cta-content .btn {
    background-color: rgba(205, 88, 40, 1);
    border-color: rgba(205, 88, 40, 1);
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendar-cta-content .btn:hover {
    background-color: rgba(185, 60, 26, 1);
    border-color: rgba(185, 60, 26, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 88, 40, 0.3);
}

.calendar-cta-content .btn i {
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-cta-icon {
        font-size: 36px;
    }
    
    .calendar-cta-box {
        padding: 20px;
    }
}