@font-face {
    font-family: 'icomoon';
    src: url('../res/fonts/icomoon.eot?4dkzcc');
    src: url('../res/fonts/icomoon.eot?4dkzcc#iefix') format('embedded-opentype'),
        url('../res/fonts/icomoon.ttf?4dkzcc') format('truetype'),
        url('../res/fonts/icomoon.woff?4dkzcc') format('woff'),
        url('../resfonts/icomoon.svg?4dkzcc#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

.glyph {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-servustech_add_field:before {
    content: "\e900";
}

.icon-servustech_add_fito:before {
    content: "\e901";
}

.icon-servustech_add_user:before {
    content: "\e902";
}

.icon-servustech_add_view:before {
    content: "\e903";
}

.icon-servustech_alert:before {
    content: "\e904";
}

.icon-servustech_arrow_down:before {
    content: "\e905";
}

.icon-servustech_arrow_left:before {
    content: "\e906";
}

.icon-servustech_arrow_right:before {
    content: "\e907";
}

.icon-servustech_arrow_up:before {
    content: "\e908";
}

.icon-servustech_bar_plot:before {
    content: "\e909";
}

.icon-servustech_bookmark:before {
    content: "\e90a";
}

.icon-servustech_box_view:before {
    content: "\e90b";
}

.icon-servustech_delete:before {
    content: "\e90c";
}

.icon-servustech_document:before {
    content: "\e90d";
}

.icon-servustech_download:before {
    content: "\e90e";
}

.icon-servustech_email:before {
    content: "\e90f";
}

.icon-servustech_external:before {
    content: "\e910";
}

.icon-servustech_eye:before {
    content: "\e911";
}

.icon-servustech_fav:before {
    content: "\e912";
}

.icon-servustech_field:before {
    content: "\e913";
}

.icon-servustech_fito:before {
    content: "\e914";
}

.icon-servustech_home:before {
    content: "\e915";
}

.icon-servustech_line_plot:before {
    content: "\e916";
}

.icon-servustech_list_view:before {
    content: "\e917";
}

.icon-servustech_minus:before {
    content: "\e918";
}

.icon-servustech_ok:before {
    content: "\e919";
}

.icon-servustech_plus:before {
    content: "\e91a";
}

.icon-servustech_search:before {
    content: "\e91b";
}

.icon-servustech_user:before {
    content: "\e91c";
}

.icon-servustech_user_list:before {
    content: "\e91d";
}

.icon-servustech_zoom_in:before {
    content: "\e91e";
}

.icon-servustech_zoom_out:before {
    content: "\e91f";
}

/* Phytopathogens Page Styles */
.banner-section {
    background-color: #595959;
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    margin-bottom: 2rem;
}

.banner-heading {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.banner-subheading {
    font-size: 0.95rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
}

.pest-card {
    border: 1px solid #ececec;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    cursor: pointer;
}

.pest-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pest-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.pest-card-link:hover,
.pest-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.pest-img-wrapper {
    position: relative;
    overflow: hidden;
}

.pest-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pest-img-wrapper:hover img {
    transform: scale(1.08);
}

.pest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pest-img-wrapper:hover .pest-overlay {
    opacity: 1;
    pointer-events: auto;
}

.action-btn {
    width: 38px;
    height: 38px;
    background-color: #d4ac0d;
    color: white !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    text-decoration: none;
}

.action-btn:hover {
    background-color: #bfa020;
}

.pest-title-box {
    padding: 20px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-top: 1px solid #ececec;
}

.pest-name-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #222;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

.pest-common-label {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
    text-align: center;
}

.pagination {
    border: none;
    gap: 15px;
    align-items: center;
}

.pagination .page-item .page-link {
    border: none;
    background: transparent;
    color: #bfa020;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    margin: 0;
    transition: all 0.2s ease;
    font-family: serif;
}

.pagination .page-item.active .page-link {
    background-color: #d4ac0d;
    color: white !important;
}

.pagination .page-item .ellipsis-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bfa020;
    font-size: 1.2rem;
}

.pagination .page-item .page-link:hover {
    background-color: transparent;
    color: #d4ac0d;
}

.pagination .page-item.active .page-link:hover {
    background-color: #bfa020;
    color: white !important;
}

.category-section-title {
    text-align: center;
    font-weight: 700;
    margin: 4rem 0 2.5rem 0;
    font-size: 1.8rem;
    color: #000;
}

.crop-card {
    position: relative;
    border: none;
    margin-bottom: 2rem;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 0;
}

.crop-card img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.crop-card:hover img {
    transform: scale(1.15);
}

.crop-card-body {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.98);
    width: 85%;
    text-align: center;
    padding: 1.2rem 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.crop-title-inner {
    font-size: 0.8rem;
    font-weight: 800;
    margin: 0;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crop-count-inner {
    font-size: 0.7rem;
    color: #777;
    margin-top: 4px;
    display: block;
}

@media (max-width: 768px) {
    .banner-heading {
        font-size: 1.3rem;
    }

    .pest-name-label {
        font-size: 0.8rem;
    }
}

/* Full-width shell: Bootstrap’s body.container-fluid adds 15px horizontal padding (visible white strips) */
body.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100%;
}

/* Rows were paired with that padding via negative margins; without body padding, reset top-level rows */
body.container-fluid > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/*
 * Pest product page: Bootstrap .col-* horizontal padding on header/article indents the whole view
 * (hero banner, grey band) → visible white side gutters. Inner .container in the view still limits text width.
 */
body#home-pest_details #home-header > .col-12,
body#home-pest_details section.row > article.col-sm-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body#home-pest_details #home-header .navbar {
    padding-left: 15px;
    padding-right: 15px;
}

/* Kill horizontal scrollbar on pest details (wide rows, tables, pills, etc.) */
body#home-pest_details {
    overflow-x: hidden;
}

body#home-pest_details section.row {
    max-width: 100%;
}

/* Footer gold bar — vertical center (must live here: pages load main-styles.min.css, not main-styles.css) */
footer .final-text {
    padding: 22px 28px !important;
    display: flex !important;
    align-items: center !important;
    min-height: 76px !important;
    box-sizing: border-box !important;
}

footer .final-text .justify-text {
    margin: 0 !important;
    width: 100%;
}

footer .final-text ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

footer .final-text li {
    line-height: 1.45 !important;
}

/* Center column content when footer is a single legal column */
footer.row > .col-md-6.no-padding {
    display: flex;
    align-items: center;
}

/* Front site header polish */
#home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1040;
    background: #ffffff;
}

#home-header.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#home-header > .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.container-fluid.has-sticky-header {
    padding-top: 84px !important;
}

#home-header .navbar {
    padding: 0.55rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(17, 24, 39, 0.10);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

#home-header .navbar-brand.main-logo {
    margin-left: 0 !important;
    width: 72px !important;
    height: 72px !important;
}

@media (min-width: 992px) {
    #home-header .navbar-brand.main-logo {
        margin-left: 18px !important;
    }
}

#home-header #top-links.navbar-nav .nav-link {
    padding: 0.6rem 0.65rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    color: #1f2937;
    transition: background-color 160ms ease, color 160ms ease;
}

#home-header #top-links.navbar-nav .nav-link:hover,
#home-header #top-links.navbar-nav .nav-link:focus {
    background: rgba(207, 176, 35, 0.10);
    color: #0f172a !important;
}

#home-header .navbar-toggler {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.35rem 0.55rem;
}

/* Reference-like header layout: logo left, nav centered, actions right */
#home-header #main-menu .fc-header-bar {
    gap: 12px;
}

@media (min-width: 992px) {
    #home-header #main-menu .fc-header-bar {
        min-height: 64px;
    }

    #home-header #top-links {
        flex: 1 1 auto;
        justify-content: center;
        align-items: center;
        gap: 6px;
    }

    #home-header .fc-header-right {
        flex: 0 0 auto;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }
}

/* Header CTA button */
#home-header .fc-login-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 400;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 18px rgba(207, 176, 35, 0.22);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Underline-style "active" + hover like the reference */
#home-header #top-links .nav-link {
    background: transparent;
    position: relative;
}

#home-header #top-links .nav-link::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 3px;
    background: linear-gradient(90deg, #CFB023, #E2C45A);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: center;
    transition: opacity 180ms ease, transform 180ms ease;
}

#home-header #top-links .nav-link:hover::after,
#home-header #top-links .nav-item.active .nav-link::after,
#home-header #top-links .nav-link.active::after,
#home-header #top-links .nav-item .nav-link[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Active link: gold text + slightly bolder weight */
#home-header #top-links .nav-item.active .nav-link,
#home-header #top-links .nav-item[aria-current="page"] .nav-link {
    color: #CFB023 !important;
    font-weight: 800;
}

/* Logged-in user info in header */
.fc-user-info {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 4px 0 !important;
}

.fc-user-greeting {
    font-size: 0.78rem;
    font-weight: 400;
    color: #1a1a2e;
    white-space: nowrap;
    line-height: 1.2;
}

.fc-user-meta {
    font-size: 0.72rem;
    color: #6b7280;
    white-space: nowrap;
    line-height: 1.2;
}

.fc-user-meta a {
    color: #CFB023;
    text-decoration: none;
    font-weight: 600;
}

.fc-user-meta a:hover {
    text-decoration: underline;
}

/* Modal styling */
.fc-modal .modal-header {
    border-bottom: 1px solid rgba(17, 24, 39, 0.10);
}

.fc-modal .modal-title {
    font-weight: 900;
    letter-spacing: 0.2px;
}

.fc-modal .form-control {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.16);
}

.fc-modal .btn.btn-primary {
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(207, 176, 35, 0.22);
}

.fc-modal-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
}

.fc-modal-links a {
    color: rgba(31, 41, 55, 0.82) !important;
    text-decoration: none;
}

.fc-modal-links a:hover {
    color: #111827 !important;
    text-decoration: underline;
}

/* Keep header compact on small screens */
@media (max-width: 991.98px) {
    #home-header #top-links.navbar-nav .nav-link {
        padding: 0.55rem 0.5rem;
    }
}