.top-nav-container {
    border-bottom: 1px solid #e5e5e5;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: #008348 !important;
}

.dropdown-item {
    color: #008348;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #008348;
    background-color: rgba(0, 131, 72, 0.1);
}

.header {
    background-image: url("https://d133xfxklnv2y.cloudfront.net/fallarmyworm-header.jpg");
    background-size: cover;
    background-position: 50% 60%;
    position: relative;
}

.header-inner {
    display: flex;
    justify-items: center;
    max-width: 1320px;
    margin: 0 auto;
    flex-direction: column;
    padding: 6rem 2rem 8rem 2rem;
    width: auto;
    text-shadow: 0 0 10px black;
}

@media (max-width: 992px) {
    .nav-item-custom {
        text-align: center;
    }
    .header-inner {
        padding: 4rem 2rem 6rem 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px;
    }
    .header-inner {
        padding: 3rem 2rem 4rem 2rem;
    }
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}


.quick-links-container {
    padding: 3rem 0; /* Adjust padding as needed */
    border-bottom: 1px solid #ccc; /* Adjust color as needed */
}

.quick-links-list {
    list-style-type: none; /* Removes default list styling */
    padding: 0; /* Removes default padding */
    margin: 1rem 0; /* Adjust margin as needed */
    width: 320px; /* Sets a fixed width */
    max-width: 100%; /* Ensures responsiveness */
}

.quick-link-item {
    display: block; /* Makes the link fill the entire list item area */
    padding: 0.5rem 1rem; /* Adjust padding as needed */
    background-color: #f8f9fa; /* Sets a light background color for the item */
    border: 1px solid #ddd; /* Adds a border to each item */
    margin-bottom: 0.5rem; /* Adds space between items */
    text-decoration: none; /* Removes underline from links */
}

.quick-links-title {
    text-align: left; /* Centers the title */
    margin-bottom: 1rem; /* Adds space below the title */
}

.gallery {
    display: flex;
    flex-direction: column;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px; /* Space between images */
}

.image-container {
    flex: 1 0 calc(33.333% - 10px); /* Three images per row minus the gap */
    max-width: calc(
        33.333% - 10px
    ); /* Ensures the width does not exceed three in a row */
    display: flex;
    flex-direction: column;
    margin-bottom: 10px; /* Space between rows of images */
}

.image-container img {
    width: 100%; /* Image takes full width of the container */
    height: auto; /* Height is set to auto to maintain aspect ratio */
    object-fit: cover;
    max-width: 100%; /* Ensures image is not bigger than its container */
}

/* Global image styling for iamges in paragraph blocks */
p img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    object-fit: contain;
}

p span img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    margin-bottom: 10px;
}

.image-extended {
    flex: 1 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.image-extended img {
    width: 100%; /* Image takes full width of the container */
    height: auto; /* Height is set to auto to maintain aspect ratio */
    object-fit: contain; /* Important: This preserves aspect ratio without cropping */
    max-width: 100%; /* Ensures image is not bigger than its container */
}

@media (max-width: 768px) {
    .image-extended {
        margin-left: 0;
        margin-right: 0;
    }
    
    .image-extended img {
        max-height: none; /* Removes any height restrictions on mobile */
    }
}

@media (max-width: 767px) {
    .image-container {
        flex: 0 0 calc(50% - 10px); /* 2 images per row on small screens */
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .image-container {
        flex: 0 0 100%; /* 1 image per row on very small screens */
        max-width: 100%;
    }
}


.description-row {
    text-align: left;
}

.container {
    max-width: 1320px;
    margin: auto;
}

.risk-item-block {
    background-color: #f8f9fa; /* Light grey background */
    border: 1px solid #ddd; /* Light grey border */
    border-radius: 0.25rem; /* Rounded corners */
}

.risk-item-title {
    color: #333; /* Color for the title */
    margin-bottom: 0.5rem; /* Space below the title */
}

.risk-item-description {
    color: #333; /* Darker text color for contrast */
    margin-bottom: 1rem; /* Space above the button */
}

.risk-item-button {
    border: 1px solid #0d6efd; /* No border for the button */
    padding: 0.375rem 0.75rem; /* Padding inside the button */
    border-radius: 0.25rem; /* Rounded corners for the button */
}

.card {
    margin-top: 1rem; /* Space above the card */
    border: 1px solid #dee2e6; /* Light grey border */
    border-radius: 0.25rem; /* Slightly rounded corners */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Light shadow */
}

.card-header {
    background-color: #f8f9fa; /* Light grey background */
    text-align: center;
}

.card-body {
    padding: 1.5rem;
}

.main-report {
    background-color: #B5F6E6;
    padding: 1.5rem;
}

.regional-report-item {
    background-color: #fff; /* Light grey background */
    border: 1px solid #ddd; /* Light grey border */
    border-radius: 0.25rem; /* Rounded corners */
}

.regional-report-title {
    color: #333; /* Color for the title */
    margin-bottom: 0.5rem; /* Space below the title */
}

.regional-report-content {
    color: #333; /* Darker text color for contrast */
    margin-bottom: 1rem; /* Space above the button */
}

.alert p {
    margin-bottom: 0; /* Remove default bottom margin for alert <p> tags */
  }

.cta-form-block {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.cta-form-block h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.cta-form .form-group {
    margin-bottom: 1rem;
}

.cta-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cta-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cta-form button {
    background-color: #0275d8;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cta-form button:hover {
    background-color: #025aa5;
}

.cta-form button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.form-messages {
    margin-top: 1rem;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 0.75rem;
    border-radius: 4px;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 0.75rem;
    border-radius: 4px;
}
