/* Reset and Global Styles */
:root {
    --primary-green: #00B050;
    --dark-green: #0A3323;
    --light-green: #9EFF8D;
    --text-dark: #1A1A1A;
    --white: #FFFFFF;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
}

/* Main container for consistent width and alignment */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation adjustments */
.main-nav {
    display: flex;
    align-items: center;
    padding: 1rem 0; /* Remove horizontal padding */
}

.logo {
    font-size: 34px;
    font-weight: 800;
}

.logo a {
    color: var(--primary-green);
    text-decoration: none;
}

.tagline {
    font-size: 0.4em;
    text-transform: uppercase;
    color: var(--dark-green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
}

/* First, reset any general nav link styles */
.nav-links a {
    text-decoration: none;
}

/* Specific navigation link styles */
.nav-links .sign-in {
    color: var(--primary-green);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links .nav-link {
    color: var(--dark-green);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links .nav-link:hover {
    color: #003319;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sign-in {
    color: var(--primary-green);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sign-in i {
    font-size: 14px;
    color: #00994D; /* Matching NADIS logo color */
}

/* Main content grid */
.main-content {
    display: grid;
    grid-template-columns: 1fr 315px;
    grid-template-areas: 
        "news widget"
        "hero-section widget"
        "health health"
        "webinars webinars"
        "assessments assessments";
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Assign grid areas */
.news-banner {
    grid-area: news;
}

.facebook-widget {
    grid-area: widget;
}

.hero-section {
    grid-area: hero-section;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) 260px;
    gap: 1rem;
}

.hero {
    margin: 0;
}

.blowfly-widget {
    margin: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 400px;
}

.blowfly-widget a {
    text-decoration: none;
    color: white;
}

.featured-health {
    grid-area: health;
}

.featured-webinars {
    grid-area: webinars;
}

.risk-assessments {
    grid-area: assessments;
}

/* Widget container */
.widget-container {
    grid-area: widget;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Top row content */
.news-banner {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0.75rem 2rem;
    background: linear-gradient(90deg, #006633 0%, #00E673 100%);
    position: relative;
    margin-right: 3rem;
    border-radius: 6px;
    width: auto;
}

.news-label {
    font-weight: 600;
    color: #00E673; /* Light green text */
    display: flex;
    align-items: center;
    padding-right: 1.5rem; /* Space before separator */
}

.news-label::after {
    content: '';
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white separator */
    margin: 0 1.5rem; /* Equal padding on both sides */
}

.news-banner p {
    color: white; /* White text */
    margin: 0;
    flex: 1; /* Take up remaining space */
}

.news-banner p a {
    color: white; /* White text */
	text-decoration: none;
	width: 100%;
	display: block;
}

.news-banner::after {
    content: '\f054'; /* Font Awesome chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: white;
    position: absolute;
    right: 2rem; /* Align with container padding */
}


.news-content {
    color: var(--dark-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

.news-content:hover {
    color: var(--primary-green);
}

.news-content i {
    font-size: 12px;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    padding: 1rem; /* Reduced from 2rem to 1rem */
    gap: 2rem;
    padding-left: 0;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--dark-green); /* Added dark green color */
}

.learn-more {
    color: var(--primary-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 20px; /* Increased from 16px */
    font-weight: 500;
}

.learn-more i {
    color: var(--light-green);
    margin-left: 8px;
    font-size: 16px; /* Add this to match the new text size */
}

/* Blowfly Widget */
.blowfly-widget h2 {
    padding-top: 0.5rem;
    margin: 0;
    margin-bottom: 0.5rem;
    width: 100%; /* Full width for proper text alignment */
    text-align: center;
}

/* Create a wrapper for the main content */
.widget-content {
    flex: 1;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

/* Keep powered-by at the bottom */
.powered-by {
    margin: 0;
    margin-top: auto;
    background: linear-gradient(90deg, #005587 0%, #0077BC 100%);
    color: white;
    padding: 10px 26px;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    height: 80px;
}

.powered-by img {
    height: 45px;
    width: auto;
}

.risk-meter {
    position: relative;
    height: 144px;
    margin: 0 auto; /* Keep horizontal centering while removing vertical margins */
    width: 224px;
}

.meter {
    position: absolute;
    width: 224px;
    height: 112px;
    border-radius: 112px 112px 0 0;
    background: linear-gradient(
        90deg,
        #9EFF8D 0%,     /* Green */
        #9EFF8D 15%,    /* Green */
        #B4FF8D 17%,    /* Light green */
        #CCFF8D 19%,    /* Lighter green */
        #E6FF8D 21%,    /* Green-yellow */
        #FFF68D 23%,    /* Yellow-green */
        #FFE68D 25%,    /* Light yellow */
        #FFD600 27%,    /* Yellow */
        #FFD600 73%,    /* Yellow - extended middle section */
        #FFBA00 75%,    /* Dark yellow */
        #FFA366 77%,    /* Orange */
        #FF8066 79%,    /* Light red */
        #FF6666 81%,    /* Red-orange */
        #FF4D4D 83%,    /* Red */
        #FF4D4D 100%    /* Red */
    );
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.meter::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 0;
    background: white;
    border-radius: 108px 108px 0 0;
}

.indicator {
    position: absolute;
    width: 24px;
    height: 92px;
    bottom: 36px;
    left: 50%;
    transform-origin: bottom center;
    transition: transform 1s ease;
    z-index: 2;
    margin-left: -12px;
}

.indicator::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 19px solid #1A1A1A;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

.current-risk {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

.risk-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 500;
}

.risk-status {
    font-size: 26px;
    display: block;
    font-weight: 700;
    line-height: 1;
}

/* Status Colors for the risk meter text risk status; low = #00CC66, medium = #FF8A00, high = #FF4D4D */
.risk-status.low {
    color: #00CC66;
}

.risk-status.medium {
    color: #FF8A00;
}

.risk-status.high {
    color: #FF4D4D;
}

/* Blowfly Widget Buttons */
.blowfly-widget button {
    width: calc(100% - 3rem); /* Adjust width to account for padding */
    margin: 0.25rem auto;
    margin-bottom: 0.5rem;
    padding: 8px 16px;
    background-color: var(--white);
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    justify-content: center;
}

/* Remove the arrow icons from these specific buttons */
.full-forecast i,
.report-case i {
    display: none;
}

.full-forecast {
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.full-forecast a {
    color: var(--primary-green);
    text-decoration: none;
}

.full-forecast:hover {
    background-color: #F5FFF9; /* Very light green background on hover */
}

.report-case {
    color: #FF8A00;
    border: 2px solid #FF8A00;
}

.report-case a {
    color: #FF8A00;
    text-decoration: none;
}

.report-case:hover {
    background-color: #FFF9F2; /* Very light orange background on hover */
}

/* Adjust heading if needed */
.blowfly-widget h2 {
    margin: 0; /* Remove horizontal margin to maintain text alignment */
}

/* Featured Health Issues */
.featured-health {
    padding-right: 2rem;
    padding-left: 2rem;
}

.category-filters {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.category-filters button {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
}

.category-filters button.active {
    background: var(--primary-green);
    color: var(--white);
}

.featured-issues {
    margin: 2rem 0;
    overflow: hidden;
}

.issues-slider {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.3s ease;
    transform: translateX(0);
    margin-left: calc(-28% + 65px); /* Default for desktop */
}

@media (max-width: 768px) {
    .issues-slider {
        margin-left: calc(-339px + 11%);
    }
}

.issue-card {
    flex: 0 0 280px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Add subtle border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Optional: subtle shadow */
}

.issue-card.active {
    flex: 0 0 400px; /* Larger width for active card */
    border: 1px solid rgba(0, 0, 0, 0.15); /* Slightly darker border for active state */
}

@media (max-width: 768px) {
	.issue-card.active {
		flex: 0 0 339px; /* Larger width for active card */
		border: 1px solid rgba(0, 0, 0, 0.15); /* Slightly darker border for active state */
	}
}

.issue-image {
    width: 100%;
    height: 280px; /* Increased from 200px */
    overflow: hidden;
    position: relative;
}

.issue-card.active .issue-image {
    height: 360px; /* Increased from 280px */
}

.issue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.issue-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95); /* White background with slight transparency */
    color: var(--dark-green); /* Dark green text */
}

.issue-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-green); /* Ensure heading is dark green */
}

/* Keep active card with dark green background and white text */
.issue-card.active .issue-content {
    background: rgba(0, 46, 31, 0.9); /* Solid dark green with opacity */
}

.issue-card.active .issue-content h3 {
    color: var(--light-green); /* Light green heading for active slide */
}

.issue-card.active .issue-content p {
    color: white; /* Keep paragraph text white */
}

.issue-card:not(.active) .issue-content p {
    display: none; /* Hide description on inactive cards */
}

.issue-card.active .issue-content p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* Add text overflow handling for inactive slides */
.issue-card:not(.active) .issue-content h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.issue-card:not(.active) .issue-content p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Featured Webinars */
.webinar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
    padding-left: 0;
}

.webinar-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    text-decoration: none;
    display: block;
}

.webinar-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 1;
}

.webinar-card:not(.nadis-library)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    z-index: 2;
}

.webinar-card .play-button {
    z-index: 3;
}

.webinar-card h3 {
    z-index: 3;
}

.nadis-library {
    background: var(--light-green) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.webinar-card.nadis-library h3 {
    color: var(--dark-green);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    margin: 0;
    position: static;
}

.webinar-card.nadis-library h3 .nadis-text {
    font-size: 32px;
    font-weight: 700;
    display: block;
    margin-bottom: 0px;
    line-height: 1;
}

/* Risk Assessments */
.assessment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
    padding-left: 0;
}

.assessment-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    color: var(--white);
    padding: 1.5rem;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('https://placehold.co/800x450/1A1A1A/FFFFFF') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none; /* Added for link styling */
}

.assessment-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 1;
}

.assessment-card span,
.assessment-card h3 {
    position: relative;
    z-index: 2;
    color: #fff; /* Ensure text is visible over the image */
}

.assessment-card span {
    font-size: 14px;
    opacity: 0.9;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Add text shadow for better readability */
    font-weight: 500; /* Make the text slightly bolder */
}

.assessment-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--light-green);
    margin: 0; /* Remove any default margins */
}

.assessment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5)); /* Darker gradient */
    z-index: 2;
}

/* Footer */
footer {
    background: #0A2E1F; /* Dark green background */
    color: white;
    padding: 2rem; /* Equal padding all around */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem; /* Equal padding all around */
}

.planner-section {
    background: linear-gradient(45deg, #004D26 0%, #00CC66 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.planner-section h3 {
    color: var(--dark-green);
    margin-bottom: 2rem;
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.planner-section h3 i {
    font-size: 42px;
    color: #00E673; /* Reverted back to previous color */
}

.planner-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 2.5rem 0;
}

.planner-section li {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 16px;
    line-height: 1.4;
    padding-left: 0.5rem;
}

.get-app {
    background: linear-gradient(90deg, #00E673 0%, #9EFF8D 100%); /* Darker start color */
    color: var(--dark-green);
    border: none;
    border-radius: 100px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.3s ease;
    width: 100%;
}

.get-app:hover {
    background: linear-gradient(90deg, #00F07A 0%, #ABFF99 100%); /* Adjusted hover state */
    transform: translateY(-1px);
}

.get-app i {
    font-size: 16px;
    color: var(--dark-green);
}

.nadis-links h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 32px;
    font-weight: 600;
}

.updates-services h3 {
    color: #80FFB3;
    margin-bottom: 2rem;
    font-size: 20px;
    font-weight: 600;
}

.nadis-links ul,
.updates-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nadis-links li,
.updates-services li {
    margin-bottom: 1.25rem;
}

.nadis-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 1rem;
}

.nadis-links a:hover {
    color: #B3FFD9; /* Light green on hover */
}

.updates-services a {
    color: #80FFB3;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.updates-services a:hover {
    color: #B3FFD9;
}

.newsletter {
    margin-top: 3rem;
}

.newsletter h3 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 20px;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    align-items: center;
    position: relative; /* For positioning the envelope icon */
}

.newsletter-form input {
    width: 100%;
    padding: 14px 50px 14px 20px; /* Extra right padding for icon */
    border: none;
    border-radius: 100px;
    font-size: 16px;
    outline: none;
    background: var(--white);
    color: var(--text-dark);
}

.newsletter-form input::placeholder {
    color: #666;
}

/* Remove the submit button and add envelope icon */
.newsletter-form i {
    position: absolute;
    right: 20px;
    color: var(--primary-green);
    font-size: 18px;
    pointer-events: none; /* Ensures the icon doesn't interfere with input */
}

/* Utility Classes */
.view-all {
    color: var(--dark-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 14px;
    gap: 0.5rem;
}

.view-all i {
    font-size: 12px;
    color: var(--primary-green);
}

.view-all:hover {
    color: var(--primary-green);
}

/* Interactive Elements */
.nav-links a,
.sign-in,
.learn-more,
.category-filters button,
.view-all {
    transition: all 0.3s ease;
}

.nav-links a:hover,
.sign-in:hover {
    color: var(--primary-green);
}

.learn-more:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

.category-filters button:hover {
    background: rgba(0, 176, 80, 0.1);
}

.view-all:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

.webinar-card:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "news"
            "hero-section"
            "widget"
            "health"
            "webinars"
            "assessments";
        padding: 0 0.7rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-right: 0;
    }

    .blowfly-widget {
        width: 100%;
    }

    .widget-container {
        gap: 1rem;
    }

    .news-banner {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .container {
        padding: 0;
    }

    .webinar-grid,
    .assessment-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

/* Icon Styles */
.fa-arrow-right {
    margin-left: 0.5rem;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--primary-green);
    padding: 0.5rem;
}

.search-btn i {
    color: var(--primary-green);
}

.search-btn:hover,
.sign-in:hover,
.nav-links a[href="#"] {
    color: #00CC66; /* Lighter green on hover */
}

.search-btn:hover i,
.sign-in:hover i {
    color: #00CC66; /* Lighter green on hover for icons */
}

.play-button {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    transform: none;
    width: 32px;
    height: 32px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.play-button .fa-play {
    color: var(--dark-green);
    margin-left: 2px;
    font-size: 10px;
}

.submit-icon {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0 1rem;
}

.play-button:hover {
    transform: scale(1.1);
}

.submit-icon:hover {
    color: var(--light-green);
}

/* Search container styling */
.search-container {
    display: flex;
    align-items: center;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
    padding: 0.25rem 0.5rem;
}

.search-input {
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 14px;
    width: 300px;
    font-family: 'Inter', sans-serif;
    border-radius: 20px;
}

.search-input::placeholder {
    color: #666;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--primary-green);
    padding: 0.5rem;
}

.search-btn:hover {
    color: #666;
}

.nav-links a[href="#"]:not(.sign-in) {
    color: var(--dark-green);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 1rem;
}

.footer-links a:hover {
    color: #B3FFD9; /* Light green on hover */
}

.category-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active {
    background: linear-gradient(90deg, #00E673 0%, #9EFF8D 100%);
    color: var(--dark-green);
}

.category-btn:not(.active) {
    background: transparent;
    color: #666;
}

.category-btn:not(.active):hover {
    color: var(--dark-green);
}

.slider-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.nav-arrows {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 20px;
    color: var(--primary-green);
}

.nav-arrow:hover {
    color: #00CC66;
}

.nav-arrow:disabled {
    color: var(--primary-green);
    cursor: pointer;
}

.slide-counter {
    color: #666;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.view-all-link {
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.view-all-link i {
    font-size: 12px;
    color: var(--primary-green);
}

.view-all-link:hover {
    color: var(--primary-green);
}

/* If container class is affecting these sections, override it */
.container .section-hero,
.container .featured-health {
    padding-left: 0;
}

/* Add styles for disabled nav arrows */
.nav-arrow:disabled {
    color: var(--primary-green);
    cursor: pointer;
}

/* Regular webinar card headings */
.webinar-card h3 {
    color: var(--light-green);
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 18px;
    font-weight: 600;
}

/* NADIS library specific heading styles */
.webinar-card.nadis-library h3 {
    color: var(--dark-green);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    margin: 0;
    position: static;
}

/* Add missing hover state for assessment cards */
.assessment-card:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Add specific style for NADIS library play button */
.nadis-library .play-button {
    background: var(--dark-green);
}

.nadis-library .play-button .fa-play {
    color: var(--light-green);
}

/* Section headings */
section h2 {
    color: var(--dark-green);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Blowfly Page Layout */
.blowfly-page {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    margin-bottom: 4rem;
}

.blowfly-content {
    padding-right: 2rem;
}

.blowfly-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.description {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.description .elanco {
    color: var(--primary-green);
    font-weight: 500;
}

/* Forecast Download Button */
.forecast-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-green);
    color: var(--dark-green);
    padding: 8px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.forecast-download:hover {
    transform: translateY(-2px);
}

/* Risk Legend */
.risk-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.risk-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 500;
}

.risk-level.low i { color: var(--light-green); }
.risk-level.medium i { color: #FFD600; }
.risk-level.high i { color: #FF4D4D; }

/* Map Container */
.map-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.map-controls {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #E5E5E5;
}

.map-type {
    padding: 6px 16px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 500;
    cursor: pointer;
}

.map-type.active {
    background: var(--dark-green);
    color: white;
}

.map-fullscreen {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    padding: 6px;
}

.map {
    width: 100%;
    height: 500px;
    background: #F5F5F5;
}

.map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Update Section */
.update-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--dark-green) 0%, var(--primary-green) 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
}

.update-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 14px;
}

.update-header i,
.update-header .date {
    color: var(--light-green);
}

.update-header .update-text {
    font-size: 16px;
    font-weight: 600;
}

.update-content {
    font-size: 16px;
    line-height: 1.6;
    color: white;
    margin: 0;
}

/* Advertisement */
.advertisement {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.advertisement img {
    width: 100%;
    height: auto;
    display: block;
}

/* Resources Section */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.resource-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/10;
    text-decoration: none;
    transition: transform 0.3s ease;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
}

.resource-card:hover {
    transform: scale(1.02);
}

.resource-card h3 {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: var(--light-green);
    font-size: 18px;
    font-weight: 600;
}

.resource-card .info-button {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    transform: none;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-card .info-button i {
    color: var(--light-green);
    font-size: 14px;
}

.resource-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Update responsive styles */
@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

/* Create a flex container for the controls row */
.forecast-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Update forecast download button margin */
.forecast-download {
    margin-bottom: 0;
}

/* Update risk legend margin */
.risk-legend {
    margin-bottom: 0;
}

/* Dropdown Menu */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-links .dropdown:hover .dropdown-content {
    display: block;
}

.nav-links .dropdown-content a {
    color: var(--dark-green);
    padding: 0.75rem 1.5rem;
    display: block;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links .dropdown-content a:hover {
    background: var(--light-green);
    color: var(--dark-green);
}

/* Add dropdown indicator */
.nav-links .dropdown > a::after {
    content: '\f107'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 12px;
}

/* Disease A-Z Page */
.diseases-page {
    padding: 0; /* Changed from 2rem 0 to remove top padding */
}

.diseases-header {
    margin-bottom: 3rem;
}

.diseases-header h1 {
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    margin-top: 0; /* Add this to ensure no top margin */
}

.diseases-header p {
    margin-bottom: 1rem;
    max-width: 800px;
}

.resource-legend {
    margin-top: 2rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.resource-legend span {
    display: inline-flex;
    align-items: center;
    margin-right: 2rem;
}

.resource-legend i {
    margin-right: 0.5rem;
    color: var(--primary-green);
}

.letter-section {
    margin-bottom: 2rem;
}

.letter-section h2 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-green);
}

.disease-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.disease-item:last-child {
    border-bottom: none;
}

.disease-name a {
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 500;
}

.disease-name a:hover {
    color: var(--primary-green);
}

.disease-resources i {
    color: var(--primary-green);
    margin-left: 1rem;
}

/* Style for unavailable icons */
.disease-resources i.empty {
    color: #ccc; /* Light grey color for unavailable icons */
    cursor: not-allowed; /* Show disabled cursor on hover */
}

/* Disease Resources */
.disease-resources a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.disease-resources a:hover {
    color: var(--dark-green);
}

/* If there's a gap from another source, we can also add this */
.disease-resources {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resource-legend span {
        display: block;
        margin-bottom: 0.5rem;
    }
}

/* Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Change to simpler ratio */
    gap: 2rem;
    margin: 2rem 0;
}

.col-8 {
    min-width: 0; /* Add this to prevent overflow */
}

.col-4 {
    min-width: 0; /* Add this to prevent overflow */
}

/* Skyscraper Ad Styling */
.skyscraper-ad {
    position: sticky;
    top: 2rem;
    width: 100%; /* Ensure full width of column */
    max-width: 100%; /* Prevent overflow */
    overflow: visible; /* Change from hidden to visible */
}

.skyscraper-ad img {
    max-width: 100%;
    width: auto; /* Change from 100% to auto */
    height: auto; /* Change back to auto */
    display: block;
}

.ad-placeholder {
    width: 100%;
    height: 600px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 2rem;
    border: 1px solid #eee;
    box-sizing: border-box; /* Include padding and border in width calculation */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar.sticky {
        margin-top: 2rem;
    }

    #related-content {
        order: -1; /* Show related content before ad on mobile */
    }
}

/* Editorial Information */
.editorial-info {
    background: #f5f5f5;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.editorial-info div {
    color: var(--dark-green);
    font-size: 14px;
    line-height: 1.6;
}

.editorial-info span {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 0.5rem;
}

/* Article Content */
.article-content {
    margin-top: 2rem;
}

.article-content h4 {
    color: var(--dark-green);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-green);
}

.article-content > p:first-of-type {
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Article Images */
.article-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0 0.5rem;
}

/* Figure Captions */
span.Figure {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Mobile Ad */
.mobileAd {
    display: none;
}

@media (max-width: 768px) {
    .mobileAd {
        display: block;
        margin: 1rem 0;
        text-align: center;
    }

    .article-content h4 {
        font-size: 1.3rem;
    }

    .article-content > p:first-of-type {
        font-size: 1rem;
    }
}

/* Quiz Section */
.quiz-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(90deg, #006633 0%, #00B050 100%);
    border-radius: 8px;
    color: white;
}

.quiz-header h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.quiz-header h2 strong {
    color: var(--light-green);
}

.quiz-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.quiz-info p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: white;
}

.quiz-info p strong {
    color: var(--light-green);
}

.accreditations h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.accreditation-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-start; /* Align logos to the left */
}

.accreditation-logos img {
    height: 40px;
    width: auto;
}

.quiz-cta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.quiz-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 4px solid var(--light-green);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(158, 255, 141, 0.3);
}

.quiz-link:hover {
    background: transparent;
    color: var(--light-green);
    box-shadow: 0 0 25px rgba(158, 255, 141, 0.8);
    border-color: var(--light-green);
    transform: scale(1.02);
}

.quiz-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.quiz-link:hover i {
    transform: translateX(4px);
    color: var(--light-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quiz-grid {
        grid-template-columns: 1fr;
    }

    .quiz-cta {
        justify-content: flex-start;
    }

    .accreditation-logos {
        flex-wrap: wrap;
    }
}

/* General Page Styles */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--dark-green);
    font-size: 2.5rem;
    margin: 0;
}

.page-header h1 strong {
    color: var(--primary-green);
}

.page-content {
    font-size: 16px;
    line-height: 1.6;
}

.page-content img {
    max-width: 100%;
    height: auto!important;
    display: block;
    object-fit: contain;
}

/* First paragraph after h1 styling */
.page-content h1 + p {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-green);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Heading styles */
.page-content h4 {
    color: var(--dark-green);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.page-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-green);
}

/* Link styles */
.page-content a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-content a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* List styling */
.page-content ul,
.page-content ol {
    margin: 1rem 0 2rem;
    padding-left: 1.2rem;
}

.page-content ul li,
.page-content ol li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    position: relative;
}

.page-content ul li {
    list-style: none;
    padding-left: 1.5rem;
}

.page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
}

.page-content ol {
    counter-reset: item;
    list-style: none;
}

.page-content ol li {
    counter-increment: item;
    padding-left: 1.5rem;
}

.page-content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 600;
}

/* Table styling */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-content table td,
.page-content table th {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.page-content table th {
    background: var(--dark-green);
    color: white;
    font-weight: 600;
}

.page-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.page-content table td p {
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .page-content h4 {
        font-size: 1.2rem;
        margin: 1.5rem 0 1rem;
    }

    .page-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .page-content table td,
    .page-content table th {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

.intro-section {
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--dark-green);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--dark-green);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Feature Boxes */
.feature-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.feature-content h3 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: var(--dark-green);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links a {
    color: var(--dark-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.quick-links a:hover {
    color: var(--primary-green);
}

.quick-links a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    margin-right: 0.75rem;
    color: var(--primary-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .feature-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Team Page Styles */
.team-section {
    margin-bottom: 4rem;
}

.team-section h2 {
    color: var(--dark-green);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-green);
}

.section-intro {
    margin-bottom: 2rem;
    color: var(--dark-green);
}

.team-member {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.member-info h3 {
    color: var(--dark-green);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.credentials {
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.role {
    color: var(--dark-green);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.expertise-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.expertise-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.expertise-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
}

/* Disease Groups */
.disease-group {
    margin: 1rem 0;
}

.disease-group-heading {
    color: var(--text-dark);
    font-size: inherit;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

/* Indent and style grouped items */
.disease-group .disease-item {
    padding-left: 1.5rem;
    opacity: 0.9; /* Slightly lighter */
}

.disease-group .disease-item .disease-name a {
    color: var(--text-dark);
}

.disease-group .disease-item:last-child {
    margin-bottom: 0;
}

.riskAssessments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.assessment {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.assessment:hover {
    transform: translateY(-5px);
}

.assessment .image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.assessment .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.assessment:hover .image img {
    transform: scale(1.05);
}

.assessment a {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.assessment a:hover {
    color: #3498db;
}

.assessment p {
    padding: 0 1rem 1rem;
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Make sure the content spans full width */
.bulletin-content.article {
    max-width: 100%;
    padding: 0;
}

/* Login Page Layout */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
}

.login-welcome {
    padding: 4rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
}

.welcome-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.welcome-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    max-width: 400px;
}

.welcome-benefits li {
    color: white;
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.welcome-benefits li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.social-links a {
    color: white;
    font-size: 1.25rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.social-links a:hover {
    opacity: 1;
}

.login-form-container {
    background: white;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#login {
    max-width: 400px;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

#login h1 {
    color: var(--dark-green);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    background: none;
    padding: 0;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-row input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-row input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0,176,80,0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.remember-me input[type="checkbox"] {
    width: auto;
}

.form-row button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-row button:hover {
    background: var(--dark-green);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.login-footer p {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.login-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    color: var(--dark-green);
}

.terms {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #718096;
    white-space: nowrap;
}

.terms a {
    color: #4a5568;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-welcome {
        padding: 2rem;
        text-align: center;
    }
    
    .welcome-content p {
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .login-form-container {
        padding: 2rem;
    }

    .terms {
        white-space: normal;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .terms a {
        display: inline-block;
        margin: 0 0.25rem;
    }
}

/* Additional styles for registration form */
.password-hint {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

#register select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    background-color: white;
    color: #4a5568;
    transition: all 0.2s ease;
}

#register select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0,176,80,0.1);
    outline: none;
}

#custom {
    margin-bottom: 1.5rem;
}

/* Style for dynamic membership number field */
#custom .form-row {
    margin-bottom: 1.5rem;
}

#custom .form-row:last-child {
    margin-bottom: 0;
}

#custom input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

#custom input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0,176,80,0.1);
    outline: none;
}

/* Style for validation messages */
.field-validation-valid {
    display: block;
    font-size: 0.875rem;
    color: #e53e3e;
    margin-top: 0.5rem;
}

/* jQuery validation error messages */
.error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

input.error {
    border-color: #e53e3e;
    color: inherit;
}

input.error:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}

.contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.contact-info p {
    font-size: 1rem;
    margin: 0;
}

.contact-info a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.contact-info a:hover {
    opacity: 0.9;
}

.promo-content {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    max-width: 400px;
}

.promo-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.promo-content p {
    margin: 0;
    font-size: 1rem;
}

/* Tables in Article */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.article-content table td,
.article-content table th {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.article-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.article-content table td p {
    margin: 0;
}

/* Lists in Article */
.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.article-content ul li {
    list-style-type: disc;
    color: var(--text-dark);
}

.article-content ol li {
    list-style-type: decimal;
    color: var(--text-dark);
}

/* Nested Lists */
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .article-content table td,
    .article-content table th {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Sidebar Sticky Container */
.sidebar.sticky {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Related Content */
#related-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

#related-content h2 {
    color: var(--dark-green);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-green);
}

#related-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#related-content li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

#related-content li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#related-content a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}

#related-content a:hover {
    color: var(--primary-green);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar.sticky {
        margin-top: 2rem;
    }

    #related-content {
        order: -1; /* Show related content before ad on mobile */
    }
}

/* Mobile Menu Styles */
@media screen and (max-width: 768px) {
    .main-nav {
        padding: 1rem;
        position: relative;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 1rem;
    }

    .logo {
        position: static;
        transform: none;
        text-align: center;
        grid-column: 2;
    }

    .logo a {
        font-size: 28px; /* Slightly smaller font for mobile */
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #00B050;
        font-size: 1.5rem;
        padding: 0.5rem;
        cursor: pointer;
        grid-column: 1;
    }

    .nav-right {
        display: block;
        grid-column: 3;
    }

    .nav-right .search-container {
        border: none;
        padding: 0;
    }

    .nav-right .search-input {
        display: none;
    }

    .nav-right .search-btn {
        padding: 0.5rem;
        font-size: 1.25rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100vh;
        background: white;
        padding: 2rem;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links .nav-link {
        font-size: 1.1rem;
        color: #333;
        text-decoration: none;
        padding: 0.5rem 0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: flex;
        flex-direction: column;
    }

    .mobile-close {
        display: none;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: #333;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-links.active .mobile-close {
        display: block;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-overlay.active {
        display: block;
    }
}

/* Desktop styles - ensure they only apply above 768px */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-close,
    .mobile-overlay {
        display: none;
    }
}

.page-content p + img {
    margin-top: 2rem; /* Add space between paragraph and image that follows */
}

.page-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem; /* Add space below images */
}

/* Regular styles for risk assessments grid */
.riskAssessments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Mobile styles for risk assessments */
@media (max-width: 768px) {
    .riskAssessments {
        grid-template-columns: 1fr;  /* Single column on mobile */
        gap: 1.5rem;  /* Slightly reduced gap */
        margin: 1.5rem 0;
        padding: 0 1rem;  /* Add some padding on the sides */
    }

    .assessment {
        margin-bottom: 0;  /* Remove bottom margin as we have gap */
    }

    .assessment .image {
        height: 180px;  /* Slightly smaller image height for mobile */
    }

    .assessment a {
        font-size: 1.1rem;  /* Slightly smaller font size */
        padding: 0.75rem 1rem;  /* Adjusted padding */
    }

    .assessment p {
        font-size: 0.9rem;
        padding: 0 1rem 1rem;
        line-height: 1.4;
    }

    /* Adjust bulletin title for mobile */
    .bulletin-title h1 {
        font-size: 1.75rem;
        padding: 0 1rem;
    }
	
	.bulletin-title > h3 {
    	color: var(--dark-green);
    	font-size: 1.15rem;
    	margin: 0;
	}

    /* Adjust bulletin content for mobile */
    .bulletin-content.article {
        padding: 0;
    }

    .bulletin-content.article > p {
        padding: 0 1rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Mobile styles for diseases page */
@media (max-width: 768px) {
    .diseases-page {
        padding: 0;
    }

    .diseases-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .diseases-header h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .diseases-header p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .resource-legend {
        margin-top: 1.5rem;
        padding: 0.75rem;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .resource-legend span {
        font-size: 0.9rem;
        margin-right: 0;
    }

    .letter-section {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .letter-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.25rem;
    }

    .disease-item {
        padding: 0.5rem 0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .disease-name {
        flex: 1 1 100%;
    }

    .disease-name a {
        font-size: 0.95rem;
    }

    .disease-resources {
        display: flex;
        gap: 0.75rem;
        margin-left: 0;
    }

    .disease-resources i {
        font-size: 1.1rem;
        margin-left: 0;
    }

    .disease-group {
        margin: 0.75rem 0;
    }

    .disease-group-heading {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .disease-group .disease-item {
        padding-left: 1rem;
    }

    /* Content grid adjustments */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1rem 0;
    }

    .col-8 {
        width: 100%;
    }

    .col-4 {
        width: 100%;
    }

    /* Skyscraper ad adjustments */
    .skyscraper-ad {
        position: static;
        margin-top: 2rem;
    }

    .ad-placeholder {
        height: 250px;
        margin-bottom: 1rem;
    }
}

/* Mobile styles for bulletin content */
@media (max-width: 768px) {
    .bulletin-content.article {
        padding: 0;
    }

    .editorial-info {
        margin: 0 1rem 1.5rem;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .article-content {
        padding: 0 1rem;
    }

    .article-content h4 {
        font-size: 1.25rem;
        margin: 1.5rem 0 1rem;
        padding-bottom: 0.25rem;
    }

    .article-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .article-content img {
        margin: 1rem 0 0.5rem;
        border-radius: 4px;
    }

    .article-content span.Figure {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .article-content ul,
    .article-content ol {
        margin: 1rem 0;
        padding-left: 1.25rem;
    }

    .article-content li {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .article-content table {
        margin: 1rem 0;
        font-size: 0.9rem;
    }

    .article-content table td,
    .article-content table th {
        padding: 0.75rem;
    }

    .mobileAd {
        margin: 1.5rem 0;
        padding: 0 1rem;
    }

    .mobileAd .sponsorTitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .mobileAd img {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile styles for content */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1rem 0;
        padding: 0 1rem;
    }

    .col-8 {
        width: 100%;
    }

    .col-4 {
        width: 100%;
    }

    /* Page header adjustments */
    .page-header {
        margin-bottom: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    /* Content section adjustments */
    .content-section {
        margin-bottom: 2rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Feature box adjustments */
    .feature-box {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .feature-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .feature-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Sidebar adjustments */
    .sidebar.sticky {
        margin-top: 2rem;
    }

    .sidebar-widget {
        padding: 1rem;
    }

    .sidebar-widget h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .quick-links li {
        margin-bottom: 0.5rem;
    }

    .quick-links a {
        font-size: 0.9rem;
    }

    /* Skyscraper ad adjustments */
    .skyscraper-ad {
        position: static;
        margin-top: 2rem;
    }

    .ad-placeholder {
        height: 250px;
        margin-bottom: 1rem;
    }

    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .planner-section {
        padding: 1.5rem;
    }

    .planner-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .planner-section ul {
        margin-bottom: 2rem;
    }

    .planner-section li {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .get-app {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .nadis-links h3,
    .updates-services h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .nadis-links ul,
    .updates-services ul {
        margin-bottom: 1.5rem;
    }

    .nadis-links li,
    .updates-services li {
        margin-bottom: 0.75rem;
    }

    .newsletter {
        margin-top: 2rem;
    }

    .newsletter h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .newsletter-form input {
        padding: 12px 40px 12px 16px;
        font-size: 0.9rem;
    }
}

/* News Section Styles */
.news {
    margin: 2rem 0;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.news-list li {
    background: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    padding: 1rem;
    border: none;
}

.news-list li:hover {
    transform: none;
    box-shadow: none;
}

.news-list li a {
    color: var(--dark-green);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: block;
    transition: color 0.2s ease;
}

.news-list li a:hover {
    color: var(--primary-green);
}

.news-list li p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile styles for news section */
@media (max-width: 768px) {
    .news {
        margin: 1.5rem 0;
        padding: 0 1rem;
    }

    .news-list {
        gap: 1rem;
    }

    .news-list li {
        padding: 1.25rem;
    }

    .news-list li a {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .news-list li p {
        font-size: 0.9rem;
    }
}

/* News Article Styles */
.news.article {
    margin: 2rem 0;
    padding: 0;
    max-width: 100%;
}

.news.article p {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding: 0;
}

.news.article p:last-child {
    margin-bottom: 0;
}

.news.article p a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news.article p a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* Mobile styles for news article */
@media (max-width: 768px) {
    .news.article {
        margin: 1.5rem 0;
        padding: 0 1rem;
    }

    .news.article p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
}

/* News Article Content Styles */
.news.article {
    margin: 2rem 0;
    padding: 0;
    max-width: 100%;
}

/* Lists in News Article */
.news.article ul,
.news.article ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.news.article ul li,
.news.article ol li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #2c3e50;
    font-size: 1.1rem;
}

.news.article ul li {
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}

.news.article ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
}

.news.article ol {
    counter-reset: item;
    list-style: none;
}

.news.article ol li {
    counter-increment: item;
    padding-left: 1.5rem;
    position: relative;
}

.news.article ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 600;
}

/* Links in News Article */
.news.article a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.news.article a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* Tables in News Article */
.news.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.news.article table th {
    background: var(--dark-green);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.1);
}

.news.article table td {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    color: #2c3e50;
    line-height: 1.6;
}

.news.article table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.news.article table tr:hover {
    background-color: #f1f5f9;
}

/* Images in News Article */
.news.article img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
}

.news.article figure {
    margin: 1.5rem 0;
}

.news.article figcaption {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

/* Mobile styles for news article content */
@media (max-width: 768px) {
    .news.article ul,
    .news.article ol {
        margin: 1.25rem 0;
        padding-left: 1.25rem;
    }

    .news.article ul li,
    .news.article ol li {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .news.article table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1.25rem 0;
    }

    .news.article table th,
    .news.article table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .news.article img {
        margin: 1.25rem 0;
        border-radius: 6px;
    }

    .news.article figcaption {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
}

/* Webinar Content Styles */
.webinarVideo {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.webinarVideo h1 {
    color: var(--dark-green);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    padding: 1.5rem;
    border-bottom: 2px solid var(--light-green);
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.buttons {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.buttons .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.buttons .button:hover {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.buttons .button:active {
    transform: translateY(0);
}

/* Bulletin content in webinar */
.webinarVideo .bulletin-content.article {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #eee;
}

.webinarVideo .bulletin-content.article p {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Quiz Section in Webinar */
.quiz-section {
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    border-radius: 12px;
    overflow: hidden;
}

.quiz-content {
    padding: 2rem;
}

.quiz-header h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-header h2 strong {
    color: var(--light-green);
}

.quiz-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.quiz-info p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: white;
}

.quiz-info p strong {
    color: var(--light-green);
}

.accreditations h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.accreditation-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-start; /* Align logos to the left */
}

.accreditation-logos img {
    height: 40px;
    width: auto;
}

.quiz-cta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.quiz-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 4px solid var(--light-green);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(158, 255, 141, 0.3);
}

.quiz-link:hover {
    background: transparent;
    color: var(--light-green);
    box-shadow: 0 0 25px rgba(158, 255, 141, 0.8);
    border-color: var(--light-green);
    transform: scale(1.02);
}

.quiz-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.quiz-link:hover i {
    transform: translateX(4px);
    color: var(--light-green);
}

/* Mobile styles for webinar content */
@media (max-width: 768px) {
    .webinarVideo {
        margin: 1rem 0;
    }

    .webinarVideo h1 {
        font-size: 1.5rem;
        padding: 1.25rem;
    }

    .buttons {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }

    .buttons .button {
        width: 100%;
        justify-content: center;
    }

    .webinarVideo .bulletin-content.article {
        padding: 1.25rem;
    }

    .webinarVideo .bulletin-content.article p {
        font-size: 1rem;
    }

    .quiz-section {
        margin-top: 2rem;
    }

    .quiz-content {
        padding: 1.5rem;
    }

    .quiz-header h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .quiz-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quiz-info p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .accreditation-logos {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .quiz-cta {
        justify-content: flex-start;
    }

    .quiz-link {
        width: 100%;
        justify-content: center;
    }
}

/* Blowfly Page Layout */
.blowfly-page {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    margin-bottom: 4rem;
}

.blowfly-content {
    padding-right: 2rem;
}

/* Mobile styles for blowfly page */
@media (max-width: 768px) {
    .blowfly-page {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .blowfly-content {
        padding-right: 0;
        order: 2;
    }

    .blowfly-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .right-column {
        order: 1;
        padding: 0;
    }

    .blowfly-widget {
        order: 0;
        margin: 0 0 1.5rem 0;
        width: 100%;
    }

    .forecast-controls {
        order: 3;
        margin: 0 0 1.5rem 0;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .forecast-download {
        width: 100%;
        justify-content: center;
    }

    .risk-legend {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .map-container {
        order: 4;
        margin: 0 0 1.5rem 0;
        width: 100%;
    }

    .map-controls {
        padding: 0.75rem;
    }

    .map {
        height: 300px;
    }

    .update-info {
        order: 5;
        margin: 0 0 1.5rem 0;
        width: 100%;
        padding: 1.5rem;
    }

    .update-header {
        margin-bottom: 1rem;
    }

    .blowfly-resources {
        order: 6;
        width: 100%;
    }

    .blowfly-resources h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .resource-grid {
        gap: 1rem;
    }

    /* Move advertisement to bottom */
    .advertisement {
        order: 999; /* High order value to ensure it's at the bottom */
        margin: 0 0 2rem 0;
        width: 100%;
        position: relative;
        z-index: 1;
    }

    .advertisement img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    /* Ensure footer stays at the very bottom */
    footer {
        order: 1000;
        position: relative;
        z-index: 2;
    }
}

/* Search Page Styles */
.page-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* Search Form Styles */
#form0 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Create a flex container for the search input and button */
#form0 > input[type="text"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

#SearchTerm:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.1);
}

#submit-button {
    padding: 0.75rem 2rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#submit-button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        gap: 1rem;
    }

    #SearchTerm {
        width: 100%;
    }

    #submit-button {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

/* Search Results Styles */
#search-results {
    margin-top: 2rem;
}

#search-results p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

#search-results p strong {
    color: var(--dark-green);
    font-weight: 600;
}

#search-results .row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#search-results .col-xs-12 {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#search-results .col-xs-12:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#search-results .col-xs-12 a {
    color: var(--dark-green);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
    transition: color 0.3s ease;
}

#search-results .col-xs-12 a:hover {
    color: var(--primary-green);
}

#search-results .col-xs-12 p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Pagination Styles */
#search-results .row:last-child {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

#search-results button {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#search-results button.current {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

#search-results button:hover:not(.current) {
    background: #f8f9fa;
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem;
    }

    #form0 {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    #SearchTerm {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    #submit-button {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    #search-results {
        margin-top: 1.5rem;
    }

    #search-results p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    #search-results .col-xs-12 {
        padding: 1.25rem;
    }

    #search-results .col-xs-12 a {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    #search-results .col-xs-12 p {
        font-size: 0.95rem;
    }

    #search-results .row:last-child {
        margin-top: 1.5rem;
        flex-wrap: wrap;
    }

    #search-results button {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Latest News Sidebar Styles */
.latest-news {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.latest-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-green);
}

.latest-news h2 {
    color: var(--dark-green);
    font-size: 1.25rem;
    margin: 0;
}

.view-all-news {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all-news:hover {
    color: var(--dark-green);
}

.view-all-news i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-all-news:hover i {
    transform: translateX(4px);
}

.latest-news .news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.latest-news .news-list li {
    padding: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.latest-news .news-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.latest-news .news-list li a {
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.5rem;
}

.latest-news .news-list li a:hover {
    color: var(--primary-green);
}

.latest-news .news-list li p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .latest-news .news-list {
        gap: 0.75rem;
    }

    .latest-news .news-list li {
        padding-bottom: 0.75rem;
    }

    .latest-news .news-list li:last-child {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .login-container {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .login-welcome {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 8px;
        width: auto;
    }

    .login-form-container {
        margin: 0 1rem;
        padding: 1.5rem;
        width: auto;
    }

    #login {
        width: 100%;
        max-width: 100%;
    }

    .welcome-content {
        width: 100%;
    }

    .welcome-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }

    .welcome-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .promo-content {
        margin-top: 1.5rem;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }

    .terms {
        margin-top: 1rem;
        font-size: 0.875rem;
        color: #718096;
        white-space: normal;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .terms a {
        display: inline-block;
        margin: 0 0.25rem;
    }
}

/* Facebook Widget */
.facebook-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 2rem;
    overflow: hidden;
    width: 315px;
}

.facebook-widget .widget-content {
    padding: 0;
}

.facebook-widget h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem;
    color: var(--dark-green);
}

.facebook-feed {
    margin: 0;
    margin-bottom: 0.5rem;
    width: 315px;
    overflow: hidden;
}

.facebook-feed iframe {
    width: 100% !important;
    max-width: none;
    margin-bottom: -10px;
}

.facebook-widget .view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    border: 1px solid var(--primary-green);
    border-radius: 6px;
    transition: all 0.2s ease;
    margin: 0.75rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-right: 0;
        margin-right: 0;
    }

    .facebook-widget .view-more {
        margin: 0 0.75rem 0.75rem;
    }
}
