/* Modern public-site refresh. Keeps existing markup and navigation. */
:root {
    --agri-green: #157347;
    --agri-green-dark: #0e4d30;
    --agri-mint: #f3faf5;
    --agri-ink: #1c2b24;
    --agri-line: #d7e6dc;
}

body {
    color: var(--agri-ink);
    background: #f7f8f6;
}

.header_info {
    background: #10281c;
}

.header_top {
    background: linear-gradient(180deg, #ffffff 0%, var(--agri-mint) 100%);
    border-bottom: 1px solid var(--agri-line);
    padding: 10px 0 6px;
}

.head-Agrisnet {
    letter-spacing: 0.04em;
}

.wrapper.sticky nav,
.wrapper.sticky {
    background: var(--agri-green);
    box-shadow: 0 8px 18px rgba(14, 77, 48, 0.18);
}

.carousel-inner img,
.first-slide,
.second-slide {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

#myCarousel {
    border-bottom: 4px solid var(--agri-green);
}

.latest-bar {
    display: flex;
    align-items: stretch;
    margin: 18px auto 8px;
    background: #fff;
    border: 1px solid var(--agri-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(21, 115, 71, 0.08);
}

.latest-label {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    background: var(--agri-green);
    color: #fff;
    font-weight: 700;
    padding: 12px 18px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.latest-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.latest-track {
    display: inline-flex;
    gap: 28px;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    padding: 0 16px;
    animation: latest-marquee 36s linear infinite;
}

.latest-viewport:hover .latest-track {
    animation-play-state: paused;
}

.latest-track a {
    color: var(--agri-ink);
    font-weight: 600;
}

.latest-track a:hover {
    color: var(--agri-green);
    text-decoration: none;
}

.latest-date {
    color: #5d7266;
    font-weight: 500;
    margin-left: 6px;
}

@keyframes latest-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.welcome .card,
.portal-latest,
.infra-card,
.contact-form {
    border: 1px solid var(--agri-line);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(16, 40, 28, 0.06);
    overflow: hidden;
}

.news-title-model,
.important-headting,
.portal-latest > .card-header {
    background: var(--agri-green) !important;
    color: #fff !important;
}

.portal-latest .list-group-item {
    border-left: 0;
    border-right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-latest .list-group-item a {
    color: #145c38;
    font-weight: 600;
}

.badge-new {
    background: #e85d04;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    padding: 2px 8px;
    margin-left: 6px;
}

.section-aj {
    background: #fff;
    border: 1px solid var(--agri-line);
    border-radius: 16px;
    margin-top: 22px;
    padding: 28px 18px;
}

footer.site-footer {
    background: var(--agri-green-dark);
    color: #e7f5ec;
    margin-top: 28px;
    padding: 36px 0 8px;
}
footer.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 32px;
    align-items: start;
    text-align: left;
}
footer.site-footer h5 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
}
footer.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
footer.site-footer li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    line-height: 1.45;
    text-align: left;
}
footer.site-footer li i {
    position: static;
    float: none;
    margin-top: 3px;
    color: #8ee0b0;
    flex: 0 0 auto;
}
footer.site-footer a,
footer.site-footer p,
footer.site-footer li span {
    color: #d7ebdf;
    word-break: normal;
    overflow-wrap: break-word;
    text-align: left;
    margin: 0;
}
footer.site-footer a:hover {
    color: #fff;
    text-decoration: none;
}
footer.site-footer .locate-map {
    display: block;
    width: 100%;
    max-width: 220px;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.18);
}
footer.site-footer .contact-lines {
    line-height: 1.7;
}
footer.site-footer select.form-control {
    width: 100%;
    margin-top: 4px;
    border-radius: 8px;
    height: auto;
}
footer.site-footer .footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin-top: 10px;
    padding: 16px 72px 12px 0;
}
footer.site-footer .footer-bar p {
    flex: 1;
    text-align: right;
    font-size: 13px;
}
footer.site-footer .visitor-pill {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.visitor-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--agri-green-dark);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.visitor-pill span {
    color: var(--agri-green);
}

.contact-form {
    background: #fff;
    padding: 22px 18px 8px;
    margin-top: 12px;
}

.feedback-title {
    font-weight: 800;
    color: var(--agri-green-dark);
    margin: 18px 0 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

.infra-card {
    min-height: 190px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.infra-card p { margin-bottom: 4px; }
.infra-map-tag {
    display: inline-block;
    margin-top: 4px;
    background: #e7f6ec;
    color: #0e4d30;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
}
a:hover .infra-card {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(21, 115, 71, 0.16);
}

@media (max-width: 991px) {
    footer.site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    footer.site-footer .footer-grid {
        grid-template-columns: 1fr;
    }
    footer.site-footer .footer-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    footer.site-footer .footer-bar p {
        text-align: left;
    }
    .latest-bar {
        flex-direction: column;
    }

    .latest-label {
        text-align: center;
    }

    .carousel-inner img,
    .first-slide,
    .second-slide {
        max-height: 220px;
    }
}
