/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    scroll-behavior: smooth; /* Enable smooth scrolling */
}

/* Header Styling */
header {
    background-color: #2d572c; /* Darker, more plant-like green */
    color: white;
    text-align: center;
    padding: 1em 0;
}

header .logo {
    position: absolute;
    top: 10px;
    left: 20px;
}

header .logo-reko {
    position: absolute;
    top: 10px;
    right: 20px;
}

header .logo-reko img {
    max-height: 140px; /* Adjust the height as needed */
    width: auto; /* Maintain aspect ratio */
}

header .logo img {
    max-height: 140px; /* Adjust the height as needed */
    width: auto; /* Maintain aspect ratio */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    margin: 10px;
}

header h2 {
    font-size: 1.5em; /* Adjust the size as needed */
    color: white;  /* Use the same color as the header text */
    margin: 10px 0; /* Adjust the spacing as needed */
}

/* Callout Banner Styling */
.callout-banner {
    background-color: #f9f9f9;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

.callout-banner a {
    color: #2d572c;
    font-size: 1.2em;
    text-decoration: none;
    font-weight: bold;
}

.callout-banner p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

/* Navigation Styling */
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px;
}

nav ul li {
    display: inline-block;
    position: relative;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s, background-color 0.3s; /* Transition for smooth hover effect */
}

nav ul li a:hover {
    color: #2d572c; /* Change text color on hover */
    background-color: white; /* Change background color on hover */
    padding: 5px 10px; /* Add padding for better visual effect */
    border-radius: 5px; /* Add border radius for smoother look */
}

/* Main Content Styling */
main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    margin: 20px 0;
    width: 80%;
}

/* Map Styling */
.cmm-usa {
    display: none;
    margin: 0 auto;
    position: relative;
    padding: 10px;
    background: transparent; /* Transparent background */
}

.cmm-usa svg {
    width: 100%;
    z-index: 99;
}

.cmm-usa svg path {
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
}

.cmm-usa-hover-state-info {
    position: relative;
    margin: -40px auto 20px auto;
    display: none;
    box-sizing: border-box;
    padding: 0.75em;
    width: 300px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 20px #999;
    font-size: 14px;
    z-index: 100;
}

.cmm-usa-hover-state-info span {
    display: block;
    line-height: 1.5em;
}

.cmm-usa-hover-state-info span:first-child {
    font-weight: bold;
    text-align: center;
}

.cmm-usa-listview {
    width: 100%;
    text-align: center;
    margin: 1em 0;
}

.cmm-usa-listview ul {
    vertical-align: top;
    list-style: none;
    display: inline-block;
    text-align: left;
    margin: 0;
    padding: 0;
}

.cmm-usa-listview ul li {
    padding: 0;
    margin: 0;
}

.cmm-usa-listview ul li span {
    display: inline-block;
    position: relative;
    height: 12px;
    width: 12px;
    border-radius: 12px;
    color: black;
    text-align: center;
    line-height: 12px;
    font-weight: bold;
    border: 1px solid #999;
    opacity: 1.0;
    margin-right: 0.5em;
}

.cmm-usa-listview ul li span::after {
    content: "\2B9E";
    position: relative;
    color: #333;
    font-size: 12px;
}

.cmm-usa-listview ul li a {
    display: inline-block;
    margin: 0.5em 1em 0.5em 0;
    color: #ccc;
    text-decoration: none;
    font-size: 1.5em;
}

.cmm-usa-listview ul li a.cmm-usa-live-link {
    color: #000;
    text-decoration: underline;
    cursor: pointer;
}

.cmm-usa-title {
    width: 100%;
    text-align: center;
    font-weight: bold;
}

.cmm-usa-credit-link {
    text-align: center;
}

/* Submit A Farm Form Styling */
#submit-a-farm {
    width: 60%;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#submit-a-farm h2 {
    text-align: center;
    font-size: 2em;
    color: #2d572c;
    margin-bottom: 20px;
}

#submit-a-farm p {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 20px;
}

#submit-a-farm form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#submit-a-farm .form-row {
    width: 100%;
    margin-bottom: 15px;
    text-align: left;
}

#submit-a-farm .form-row label {
    display: block;
    margin-bottom: 5px;
    font-size: 1em;
}

#submit-a-farm .form-row input,
#submit-a-farm .form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

#submit-a-farm button {
    padding: 10px 20px;
    background-color: #2d572c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

#submit-a-farm button:hover {
    background-color: #1e3e1e;
}

.homeschool-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2d572c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

.homeschool-button:hover {
    background-color: #1e3e1e;
}

/* Social Section Styling */
#social {
    background-color: #2d572c;
    padding: 20px 0;
    text-align: center;
    color: white;
    width: 100%;
    margin-top: 0;
}

#social h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
    margin-top: 0;
}

#social div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#social a {
    margin: 0 15px;
}

#social img {
    width: 50px;
    height: auto;
    transition: transform 0.3s;
}

#social img:hover {
    transform: scale(1.1);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    #submit-a-farm {
        width: 90%;
    }
}

/* Why Buy Local Section Styling */
#why-buy-local {
    margin: 20px;
}

#why-buy-local h2 {
    text-align: center;
    color: #2d572c;
}

#why-buy-local .image-selection {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

#why-buy-local .image-item {
    text-align: center;
}

#why-buy-local .image-item img {
    cursor: pointer;
    max-width: 100px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

#why-buy-local .image-item img:hover {
    border-color: #2d572c;
}

#why-buy-local .caption {
    font-size: 1.2em;
    font-weight: bold;
}

#info-text {
    text-align: center;
    font-size: 1.2em;
    margin-top: 20px;
    width: 50%;
    margin: 20px auto;
}

.info-section {
    display: none;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.info-section img {
    max-width: 150px;
    margin: 10px;
    border-radius: 5px;
}

.info-section p {
    margin: 10px 0;
}

.info-section:nth-child(odd) img {
    float: left;
}

.info-section:nth-child(even) img {
    float: right;
}

/* Sell With Reko Section Styling */
#sell-with-reko {
    margin: 40px 0;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#sell-with-reko h1 {
    text-align: center;
    color: #2d572c;
    font-size: 3em;
}

#sell-with-reko h2 {
    color: #2d572c;
    font-size: 2em;
}

#sell-with-reko .reko-info h2,
#sell-with-reko .reko-info h3 {
    text-align: center;
    color: #2d572c;
}

#sell-with-reko .centered-text {
    width: 75%;
    margin: 20px auto;
    font-size: 1.2em;
    text-align: left;
}

#sell-with-reko .icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

#sell-with-reko .icon-item {
    width: calc(25% - 20px);
    text-align: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

#sell-with-reko .icon-item img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

#sell-with-reko .icon-item h4 {
    margin-bottom: 10px;
    color: #2d572c;
}

#sell-with-reko .icon-item p {
    font-size: 1em;
    color: #333;
}

.schedule-demo-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #2d572c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.5em;
    transition: background-color 0.3s;
}

.schedule-demo-button:hover {
    background-color: #1e3e1e;
}

/* Map iframes */
.map {
    width: 880px; /* This should match the width of your iframe */
    margin-left: auto;
    margin-right: auto;
}

.map-iframe {
    width: 880px;
    height: 720px;
}

.state-info {
    width: 80%;
    margin: 40px auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.state-info h2 {
    text-align: center;
    color: #2d572c;
}

.state-info h3 {
    color: #2d572c;
    margin-top: 20px;
}

.state-info p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-top: 10px;
}

/* Sponsors Section Styling */
#our-sponsors {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 40px 0;
}

.sponsor {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.sponsor-left, .sponsor-right {
    width: 45%;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

.sponsor img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.sponsor h1 {
    font-size: 2em;
    color: #2d572c;
    margin-bottom: 10px;
}

.sponsor h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
}

.sponsor-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2d572c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

.sponsor-button:hover {
    background-color: #1e3e1e;
}

/* Contact Us Section Styling */
#contact-us {
    width: 60%;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.contact-container {
    text-align: center;
}

.contact-container h2 {
    font-size: 2em;
    color: #2d572c;
    margin-bottom: 20px;
}

.contact-container p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.contact-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-row {
    width: 100%;
    margin-bottom: 15px;
    text-align: left;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-size: 1em;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

button[type="submit"] {
    padding: 10px 20px;
    background-color: #2d572c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #1e3e1e;
}

/* How Can I Help Section Styling */
#how-can-i-help {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#how-can-i-help h2 {
    color: #2d572c;
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
}

#how-can-i-help p {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 20px;
}

#how-can-i-help ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 1.2em;
    margin-bottom: 20px;
}

#how-can-i-help li {
    margin-bottom: 10px;
}

#how-can-i-help a {
    color: #2d572c;
    text-decoration: underline;
}

#how-can-i-help a:hover {
    color: #1e3e1e;
}

/* Homeschool Curriculum Section Styling */
#homeschool-curriculum {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#homeschool-curriculum h2 {
    color: #2d572c;
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
}

#homeschool-curriculum p {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 20px;
}


/* Mobile Optimizations */
@media (max-width: 768px) {
    #contact-us {
        width: 90%;
    }
}

@media (max-width: 768px) {
    header .logo,
    header .logo-reko {
        position: static;
        display: inline-block;
        margin: 0 auto;
        max-height: 80px;
    }

    header {
        text-align: center;
    }

    header h1 {
        font-size: 2em;
    }

    header h2 {
        font-size: 1.2em;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    nav ul li a {
        font-size: 1em;
    }

    main {
        padding: 10px;
    }

    section {
        width: 100%;
    }

    #info-text {
        width: 90%;
    }

    #sell-with-reko h1 {
        font-size: 2.5em;
    }

    #sell-with-reko h2 {
        font-size: 1.5em;
    }

    #sell-with-reko .centered-text {
        width: 90%;
        font-size: 1em;
    }

    #sell-with-reko .icon-grid {
        flex-direction: column;
        align-items: center;
    }

    #sell-with-reko .icon-item {
        width: 80%;
        margin: 10px 0;
    }

    .map {
        width: 100%;
    }

    .map-iframe {
        width: 100%;
        height: 480px;
    }

    .state-info {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cmm-usa-listview ul {
        display: flex; /* Use flexbox for layout */
        flex-wrap: wrap; /* Allow items to wrap to the next line */
        justify-content: space-around; /* Distribute items evenly */
        text-align: center; /* Center align for better readability */
    }

    .cmm-usa-listview ul li {
        flex: 1 1 calc(33.333% - 1em); /* Make each item take up 1/3 of the width, minus margin */
        margin: 0.5em; /* Add some space around items */
        display: flex; /* Use flexbox for better control */
        align-items: center; /* Center align items vertically */
        justify-content: center; /* Center align items horizontally */
    }

    .cmm-usa-listview ul li span {
        margin-right: 0.5em; /* Space between dot and text */
    }

    .cmm-usa-listview ul li a {
        font-size: 1.2em; /* Slightly smaller font size */
        margin: 0; /* Reset margin */
    }

    .cmm-usa-listview {
        padding: 1em; /* Add some padding for better touch targets */
    }
}

@media (max-width: 768px) {
    .sponsor {
        flex-direction: column;
    }

    .sponsor-left, .sponsor-right {
        width: 100%;
        margin-bottom: 20px;
    }
}
