/*Root Styles*/

:root {
    --color-light-teal: #96D7D7;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Color Classes */
.gradient-dark {
    background: linear-gradient(135deg, #30479A 0%, #1A8785 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.gradient-teal {
    background: linear-gradient(135deg, #1A8785 0%, #0f766e 100%);
}

.text-light-teal {
    color: #a5f3fc;
}

.bg-light-teal {
    background-color: #a5f3fc;
}

/* Typography */
.text-logo-font {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Logo Specific */
.logo-image-picture {
    height: 3.25rem;
}

/* Hero Section */
.hero-overlay {
    /*background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);*/
    /*background: linear-gradient(45deg, rgba(30, 64, 175, 0.4) 0%, rgba(13, 148, 136, 0.3) 100%);*/
}

.stats-bg {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(26, 135, 133, 0.95) 100%);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.1);
    pointer-events: none;
    z-index: 2;
}

/* Interactive Components */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.process-card {
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}

.process-card:hover {
    border-top-color: #1e40af;
}

/* Layout Components */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.nav-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Menu Toggle Button */
.menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-toggle-btn:hover {
    background: #1e3a8a;
    transform: scale(1.05);
}

.menu-toggle-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.menu-toggle-btn.active i {
    transform: rotate(180deg);
}

/* ====================== */
/* JOOMLA-STYLE MENU CSS */
/* ====================== */

/* Navigation */
.nav-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Stats Section */
.stats-bg {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(26, 135, 133, 0.95) 100%);
}

/* Cards */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.process-card img {
    transition: transform 0.7s ease;
}

.process-card:hover img {
    transform: scale(1.1);
}

/* Map Container */
.map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 64, 175, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Mobile Menu Animation */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* System Messages */
.system-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #10b981;
    color: white;
    border: 1px solid #059669;
}

.alert-warning {
    background-color: #f59e0b;
    color: white;
    border: 1px solid #d97706;
}

.alert-error {
    background-color: #ef4444;
    color: white;
    border: 1px solid #dc2626;
}

.alert-info {
    background-color: #3b82f6;
    color: white;
    border: 1px solid #2563eb;
}

/* Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-blue);
    color: white;
    padding: 8px;
    z-index: 10001;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}

.nav-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-hover:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.process-card img {
    transition: transform 0.7s ease;
}

.process-card:hover img {
    transform: scale(1.1);
}

.map-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(var(--brand-color), 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom styles for the template */
.container {
    /*border: 1px solid red;*/
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Reset and base styles for .template_css_content */
.template_css_content {
    /* Box model */
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;

    /* Typography */
    line-height: 1.5;
    color: #333;

    /* Background */
    background-color: #fff;

    /* Spacing */
    margin: 0;
    padding: 20px;
}

/* Box sizing reset for all elements inside */
.template_css_content *,
.template_css_content *::before,
.template_css_content *::after {
    box-sizing: border-box;
}

/* Typography styles */
.template_css_content h1,
.template_css_content h2,
.template_css_content h3,
.template_css_content h4,
.template_css_content h5,
.template_css_content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
    line-height: 1.25;
    color: #222;
}

.template_css_content h1 {
    font-size: 2em;
}

.template_css_content h2 {
    font-size: 1.5em;
}

.template_css_content h3 {
    font-size: 1.25em;
}

.template_css_content h4 {
    font-size: 1.125em;
}

.template_css_content h5 {
    font-size: 1em;
}

.template_css_content h6 {
    font-size: 0.875em;
    color: #666;
}

/* Paragraphs and text */
.template_css_content p {
    margin-top: 0;
    margin-bottom: 1em;
}

.template_css_content strong {
    font-weight: 600;
}

.template_css_content em {
    font-style: italic;
}

.template_css_content small {
    font-size: 0.875em;
}

/* Links */
.template_css_content a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.template_css_content a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Lists */
.template_css_content ul,
.template_css_content ol {
    margin-top: 0;
    margin-bottom: 1em;
    padding-left: 2em;
}

.template_css_content li {
    margin-bottom: 0.5em;
}

.template_css_content ul ul,
.template_css_content ol ol,
.template_css_content ul ol,
.template_css_content ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Images */
.template_css_content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em 0;
}

/* Blockquotes */
.template_css_content blockquote {
    margin: 1.5em 0;
    padding-left: 1.5em;
    border-left: 4px solid #e5e5e5;
    color: #666;
    font-style: italic;
}

/* Code */
.template_css_content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875em;
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.template_css_content pre {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875em;
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.template_css_content pre code {
    background-color: transparent;
    padding: 0;
}

/* Horizontal rule */
.template_css_content hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2em 0;
}

/* Tables */
.template_css_content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.template_css_content th,
.template_css_content td {
    padding: 0.75em;
    border: 1px solid #e5e5e5;
    text-align: left;
}

.template_css_content th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.template_css_content tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Forms */
.template_css_content input,
.template_css_content textarea,
.template_css_content select,
.template_css_content button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.template_css_content input[type="text"],
.template_css_content input[type="email"],
.template_css_content input[type="password"],
.template_css_content textarea,
.template_css_content select {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1em;
    transition: border-color 0.2s ease;
}

.template_css_content input:focus,
.template_css_content textarea:focus,
.template_css_content select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.template_css_content button {
    padding: 0.75em 1.5em;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.template_css_content button:hover {
    background-color: #004499;
}

.template_css_content button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Utility classes */
.template_css_content .text-center {
    text-align: center;
}

.template_css_content .text-left {
    text-align: left;
}

.template_css_content .text-right {
    text-align: right;
}

.template_css_content .text-muted {
    color: #666;
}

.template_css_content .mt-1 {
    margin-top: 0.5em;
}

.template_css_content .mt-2 {
    margin-top: 1em;
}

.template_css_content .mt-3 {
    margin-top: 1.5em;
}

.template_css_content .mt-4 {
    margin-top: 2em;
}

.template_css_content .mb-1 {
    margin-bottom: 0.5em;
}

.template_css_content .mb-2 {
    margin-bottom: 1em;
}

.template_css_content .mb-3 {
    margin-bottom: 1.5em;
}

.template_css_content .mb-4 {
    margin-bottom: 2em;
}

.template_css_content .p-1 {
    padding: 0.5em;
}

.template_css_content .p-2 {
    padding: 1em;
}

.template_css_content .p-3 {
    padding: 1.5em;
}

.template_css_content .p-4 {
    padding: 2em;
}

/* Responsive design */
@media (max-width: 768px) {
    .template_css_content {
        padding: 15px;
        font-size: 15px;
    }

    .template_css_content h1 {
        font-size: 1.75em;
    }

    .template_css_content h2 {
        font-size: 1.375em;
    }

    .template_css_content h3 {
        font-size: 1.125em;
    }
}

@media (max-width: 480px) {
    .template_css_content {
        padding: 10px;
        font-size: 14px;
    }

    .template_css_content h1 {
        font-size: 1.5em;
    }

    .template_css_content h2 {
        font-size: 1.25em;
    }
}

.visually-hidden {
    display: none;
}

/* Pagination Component CSS3 (Tags) */

.com_tags-default-items-page_links {
    margin: 1.5rem 0;
}

/* Pagination Component CSS3 */

.pagination__wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination {
    display: flex;
    align-items: center;
    margin: 0 0 1.5rem 0;
    padding: 0;
    list-style: none;
    gap: 0.25rem;
}

.page-item {
    display: inline-flex;
}

/* Base styles for both spans and links */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

/* Regular page links */
.page-item:not(.disabled) .page-link {
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.page-item:not(.disabled) .page-link:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.page-item:not(.disabled) .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #3b82f6;
}

/* Active page */
.page-item.active .page-link {
    color: #ffffff;
    background-color: #2563eb;
    border-color: #2563eb;
}

.page-item.active .page-link:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* Disabled states */
.page-item.disabled .page-link,
.page-item.disabled .page-link:hover {
    color: #9ca3af;
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    cursor: not-allowed;
    pointer-events: none;
}

/* Icon styles */
.icon-angle-double-left,
.icon-angle-left,
.icon-angle-right,
.icon-angle-double-right {
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
}

/* Icon fallback using pseudo-elements */
.icon-angle-double-left:before {
    content: "«";
}

.icon-angle-left:before {
    content: "‹";
}

.icon-angle-right:before {
    content: "›";
}

.icon-angle-double-right:before {
    content: "»";
}

/* Responsive styles */
@media (max-width: 640px) {
    .page-link {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.25rem;
        font-size: 0.75rem;
    }

    .icon-angle-double-left:before,
    .icon-angle-left:before,
    .icon-angle-right:before,
    .icon-angle-double-right:before {
        font-size: 0.875rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .page-link {
        min-width: 2.25rem;
        height: 2.25rem;
    }
}

/* Print styles */
@media print {
    .pagination__wrapper {
        display: none;
    }
}

/* Accessibility */
.page-link:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Remove extra margin for Joomla class */
.ms-0 {
    margin-left: 0 !important;
}

/* Remove bottom margin if needed */
.mb-4 {
    margin-bottom: 1.5rem;
}

/* Hover effect only on non-touch devices */
@media (hover: hover) {
    .page-item:not(.disabled) .page-link:hover {
        background-color: #f3f4f6;
        border-color: #d1d5db;
    }

    .page-item.active .page-link:hover {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
    }
}

/* Animation for active page */
.page-item.active .page-link {
    animation: paginationActive 0.2s ease-in-out;
}

@keyframes paginationActive {
    0% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* RTL Support */
[dir="rtl"] .pagination {
    flex-direction: row-reverse;
}

[dir="rtl"] .icon-angle-double-left:before {
    content: "»";
}

[dir="rtl"] .icon-angle-left:before {
    content: "›";
}

[dir="rtl"] .icon-angle-right:before {
    content: "‹";
}

[dir="rtl"] .icon-angle-double-right:before {
    content: "«";
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.text-shadow-md {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* List styling */
.tags.list-inline {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.list-inline-item {
    display: inline-block;
    margin: 0;
}

/* Button/label styling */
.btn.btn-sm.btn-info,
.btn.btn-sm.label.label-info {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    background-color: #5bc0de;
    color: #fff;
    transition: all 0.2s ease-in-out;
}

.btn.btn-sm.btn-info:hover,
.btn.btn-sm.label.label-info:hover {
    background-color: #31b0d5;
    border-color: #269abc;
    color: #fff;
    text-decoration: none;
}

.btn.btn-sm.label.label-info:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 192, 222, 0.25);
}

/* Specific styling for potato tags */
.tag-2 a,
.tag-list0 a,
.potatoes {
    background-color: #8B4513; /* Brown color for potatoes */
}

.tag-2 a:hover,
.tag-list0 a:hover {
    background-color: #5D2E0E;
}

/* Specific styling for sweet potato tags */
.tag-4 a,
.tag-list1 a,
.sweet-potato {
    background-color: #C6713E; /* Orange-brown for sweet potatoes */
}

.tag-4 a:hover,
.tag-list1 a:hover {
    background-color: #A0522D;
}

/* Specific styling for dairy tags */
.tag-14 a,
.tag-list2 a {
    background-color: #87CEEB; /* Light blue for dairy */
}

.tag-14 a:hover,
.tag-list2 a:hover {
    background-color: #5F9EA0;
}

/* Specific styling for cheese tags */
.tag-15 a,
.tag-list3 a {
    background-color: #FFD700; /* Gold for cheese */
    color: #333; /* Darker text for better contrast on gold */
}

.tag-15 a:hover,
.tag-list3 a:hover {
    background-color: #DAA520;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tags.list-inline {
        gap: 6px;
    }

    .btn.btn-sm.label.label-info {
        padding: 5px 10px;
        font-size: 11px;
    }
}

.content-category ul.tags {
    margin-top: 1rem;
}

.category-desc.template_css_content {
    margin-top: 1rem;
}

.template_article_full_image {
    /*border:1px solid red;*/
    margin-bottom: 1rem;
}

.template_article_full_image .item-image {
    /*border:1px solid red;*/
}

.template_article_full_image .item-image figure {
    /*border:1px solid red;*/
}

.template_article_full_image .item-image img {
    /*border:1px solid red;*/
    max-height: 300px;
    width: auto;
    border-radius: 10px;
}

#fma_joomla6_theme_navigation {
    background: rgba(239, 246, 255, 0.95);
}

.hero-picture-con {
    /*border: 1px solid red;*/
    background: #313131;
    background: linear-gradient(170deg, rgba(49, 49, 49, 1) 0%, rgba(101, 101, 101, 1) 100%);
}

.hero-picture-evap-img {
    /*border: 1px solid red;*/
    margin-left: 85rem;
}

@media (max-width: 1905px) {
    .hero-picture-evap-img {
        /*border: 1px solid red;*/
        margin-left: 66rem;
    }
}

@media (max-width: 1371px) {
    .hero-picture-evap-img {
        /*border: 1px solid red;*/
        margin-left: 57rem;
    }
}

@media (max-width: 1250px) {
    .hero-picture-evap-img {
        /*border: 1px solid red;*/
        margin-left: 45rem;
    }
}

@media (max-width: 907px) {
    .hero-picture-evap-img {
        /*border: 1px solid red;*/
        margin-left: 29rem;
    }
}

@media (max-width: 461px) {
    .hero-picture-evap-img {
        /*border: 1px solid red;*/
        margin-left: 6rem;
    }
}

a#fma_joomla6_logo_text_outer {
    font-size: 1.3rem;
}

#fma-search-dialog::backdrop {
    /*border: 1px solid red;*/
}

#mod-finder-search_input-dialog_search {
    /*outline-color: blue;*/
}
