/* BharatChar Common CSS - Enhanced Version with Outfit Font */

:root {
    /* Primary Green Colors - More vibrant and modern */
    --primary-color: #0A9F5D;      /* Modern vibrant green - main brand color */
    --primary-light: #45C48B;      /* Lighter fresh green for accents and hover states */
    --primary-dark: #006B3E;       /* Deeper green for buttons and important elements */

    /* Secondary Earth Tones */
    --secondary-color: #5A4427;    /* Rich earthy brown - complements the greens */
    --secondary-light: #8A7055;    /* Lighter warm brown for subtle backgrounds */
    --secondary-dark: #3B2C16;     /* Deep brown for strong contrast elements */

    /* Accent Colors */
    --accent-color: #F8B93B;       /* Warm golden yellow for call-to-actions and highlights */
    --accent-secondary: #3A8F99;   /* Teal blue for secondary accents - creates depth */

    /* Neutral Colors */
    --light-color: #f8f9fa;
    --dark-color: #212121;
    --success-color: #66bb6a;
    --info-color: #29b6f6;
    --warning-color: #ffa726;
    --danger-color: #f44336;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

/* Global Styles */
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Text & Background Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary, .bg-primary-custom, .badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Button Ripple Effect */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* FIXED: More targeted focus styles - only for forms and interactive elements that need accessibility */
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus,
.form-check-input:checked {
    box-shadow: 0 0 0 0.25rem rgba(10, 159, 93, 0.25) !important;
    border-color: var(--primary-color) !important;
}

/* Navigation specific focus styles - remove box shadow for cleaner navigation */
.nav-link:focus,
.navbar-nav .nav-link:focus,
.navbar-toggler:focus {
    box-shadow: none !important;
    outline: 2px solid transparent !important;
}

/* Keep focus styles only for critical accessibility elements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(10, 159, 93, 0.25) !important;
}

/* Button focus styles for accessibility */
.btn-primary:focus,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(10, 159, 93, 0.25) !important;
}

/* Pagination and other interactive elements */
.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(10, 159, 93, 0.25) !important;
    border-color: var(--primary-color) !important;
}

.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Dropdown and accordion focus */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color) !important;
}

.accordion-button:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(10, 159, 93, 0.25) !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color) !important;
    background-color: rgba(10, 159, 93, 0.1) !important;
}

/* Form element colors */
.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.page-link {
    color: var(--primary-color) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--primary-color) !important;
}

/* Header & Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Enhanced Navbar Brand with Logo/Icon */
.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--primary-color);
    text-decoration: none;
}

/* Logo/Icon styling within navbar-brand */
.navbar-brand img,
.navbar-brand i {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

/* SVG Logo specific styling */
.navbar-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

/* Icon specific styling (if using Font Awesome) */
.navbar-brand i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hover effects for logo/icon */
.navbar-brand:hover img {
    transform: rotate(5deg) scale(1.1);
}

.navbar-brand:hover i {
    transform: rotate(5deg) scale(1.1);
    color: var(--primary-dark);
}

/* Text within navbar-brand */
.navbar-brand span {
    transition: all 0.3s ease;
}

.navbar-brand:hover span {
    color: var(--gray-900);
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Page Structure */
.page-header {
    background-color: var(--gray-100);
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/header_bg_2.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25; /* Increased from 0.05 for better visibility */
}

.page-header h1 {
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-500);
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Card Styles */
.content-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    margin-bottom: 1rem;
}

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

.content-card .card-body {
    padding: 1.5rem;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    margin-bottom: 1rem;
}

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

.product-card img, .product-card .icon-container {
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-card .card-text {
    margin-bottom: 1.25rem;
    color: #555;
}

.product-card .btn {
    margin-top: 0.5rem;
}

/* Process Cards */
.process-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    margin-bottom: 2rem;
}

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

.process-card img {
    height: 220px;
    object-fit: cover;
}

.process-card .card-body {
    padding: 1.75rem;
}

.process-card .card-title {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.process-card .card-text {
    color: var(--gray-700);
}

/* Benefit Boxes */
.benefit-box {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    overflow: hidden;
    position: relative;
}

.benefit-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: all 0.3s ease;
}

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

.benefit-box:hover::before {
    height: 8px;
}

.benefit-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.benefit-box:hover .benefit-icon {
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    background-color: #6c6c6c;
    background-image: linear-gradient(135deg, rgba(10,159,93,0.85) 0%, rgba(0,107,62,0.85) 100%), url('../images/cta_bg_2.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.btn-light {
    background-color: white;
    color: var(--primary-dark);
    border: 2px solid white;
}

.btn-light:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-outline-light {
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--accent-color));
}

.footer-links h5 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

/* FIXED: Social Icons - Simple and Reliable Solution */
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    position: relative;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.social-icons a i {
    font-size: 1rem;
    transition: all 0.3s ease;
    color: white;
    position: relative;
    z-index: 2;
}

.social-icons a:hover i {
    transform: scale(1.1);
    color: white;
}

/* Ensure social icons work properly in all contexts */
footer .social-icons a,
.social-icons a {
    overflow: visible !important;
}

footer .social-icons a i,
.social-icons a i {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

/* Remove any conflicting pseudo-elements */
.social-icons a::before,
.social-icons a::after {
    display: none !important;
}

/* IBI Membership Logo Styling */
.ibi-membership {
    display: flex;
    align-items: center;
}

.ibi-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(0.9);
}

.ibi-logo:hover {
    transform: scale(1.05);
    filter: brightness(1);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll-to-Top Button - Simplified Version */
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#back-to-top:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#back-to-top i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

#back-to-top:hover i {
    transform: translateY(-2px);
}

/* Product Images Specific Styling */
.raw-biochar-img {
    background-color: var(--primary-dark);
}

.pelletized-biochar-img {
    background-color: var(--primary-color);
}

.briquetted-biochar-img {
    background-color: var(--secondary-color);
}

.powdered-biochar-img {
    background-color: var(--primary-light);
}

.granular-biochar-img {
    background-color: var(--secondary-light);
}

.activated-biochar-img {
    background-color: var(--accent-secondary);
}

.liquid-biochar-img {
    background-color: var(--accent-color);
}

.coated-biochar-img {
    background-color: var(--secondary-dark);
}

/* Process Images Styling */
.retort-kiln-img {
    background-color: var(--secondary-dark);
}

.open-pit-img {
    background-color: var(--secondary-light);
}

.rotary-kiln-img {
    background-color: var(--primary-dark);
}

.gasifier-img {
    background-color: var(--accent-secondary);
}

.pyrolysis-reactor-img {
    background-color: var(--primary-light);
}

/* Fix colors for application icons */
.card .rounded-circle i {
    color: var(--primary-color) !important;
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 30px auto;
    border: 4px solid rgba(10, 159, 93, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* RESPONSIVE IMPROVEMENTS - Better Mobile Experience */

/* Mobile Button Spacing - FIXED */
@media (max-width: 767.98px) {
    /* Mobile responsive adjustments for navbar brand */
    .navbar-brand img {
        width: 28px;
        height: 28px;
    }

    .navbar-brand i {
        font-size: 1.3rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    /* Hero Buttons Vertical Spacing */
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important; /* Vertical gap between buttons */
    }

    .hero-buttons .btn {
        width: 100% !important;
        max-width: 280px !important; /* Prevent buttons from being too wide */
        margin: 0 !important; /* Remove all margins */
    }

    /* Override Bootstrap margin classes on mobile */
    .hero-buttons .me-3,
    .hero-buttons .ms-3 {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    /* General button groups on mobile */
    .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .d-flex.gap-3 .btn {
        width: 100% !important;
        margin: 0 !important;
    }

    .d-flex.justify-content-center.gap-3 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* CTA Section button spacing and centering - FIXED */
    .cta-section .d-flex.gap-3,
    .cta-section .d-flex.justify-content-center.gap-3,
    .cta-section .d-flex {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .cta-section .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .navbar-brand img {
        width: 24px;
        height: 24px;
    }

    .navbar-brand i {
        font-size: 1.2rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    #back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    #back-to-top i {
        font-size: 1rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .product-card, .process-card {
        margin-bottom: 2rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 3rem 0;
    }

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

    .benefit-box, .product-card, .process-card {
        margin-bottom: 1.5rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .page-header {
        padding: 5rem 0 2rem;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 0.95rem;
    }

    .section-padding {
        padding: 2.5rem 0;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .page-header {
        padding: 4.5rem 0 1.5rem;
    }
}

/* Footer Legal Links */
.footer-legal-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-legal-links a:not(:last-child):after {
    content: "";
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-legal-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments for footer legal links */
@media (max-width: 576px) {
    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .footer-legal-links a:not(:last-child):after {
        display: none;
    }
}

/* Carbon Credit Calculator Specific Styles */
#marketPriceInfo .alert {
    border-left: 3px solid;
    border-radius: 0.25rem;
}

#marketPriceInfo .alert-success {
    border-left-color: var(--primary-color);
}

#marketPriceInfo .alert-warning {
    border-left-color: var(--accent-color);
}

#marketPriceInfo small {
    line-height: 1.4;
}

/* Hero Overlay Enhancement */
.hero-overlay {
    background: linear-gradient(135deg, rgba(10,159,93,0.7) 0%, rgba(0,107,62,0.8) 100%);
}

/* Carbon Credit Calculator Section Enhancement */
#calculatorModal .card {
    border-color: var(--primary-light);
    border-width: 1px;
}

#calculatorModal .card-title {
    color: var(--primary-dark);
}

#calculationResults .display-6 {
    color: var(--primary-dark);
}

#calculationResults .text-success {
    color: var(--primary-color) !important;
}

/* Call to Action Button Enhancement */
.cta-section .btn-outline-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
}

/* HERO SECTION MOBILE FIXES */

/* Ensure hero background image loads on all devices */
.hero-section {
    /* Remove background-attachment: fixed for mobile to prevent iOS issues */
    background-attachment: scroll;
}

/* Only apply fixed background on larger screens */
@media (min-width: 992px) {
    .hero-section {
        background-attachment: fixed;
    }
}

/* Mobile-specific hero fixes */
@media (max-width: 767.98px) {
    .hero-section {
        /* Ensure proper background rendering on mobile */
        background-attachment: scroll !important;
        /* Use alternative approach for mobile devices */
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        /* Fallback height for mobile */
        min-height: 500px !important;
    }

    /* Additional fallback for problematic mobile browsers */
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('../images/home_hero_biochar_1.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
        opacity: 0.8;
    }
}

/* Ensure hero content is always visible */
.hero-content {
    position: relative;
    z-index: 10; /* Higher than any background elements */
}

/* Hero overlay adjustments for mobile */
@media (max-width: 767.98px) {
    .hero-overlay {
        z-index: 2; /* Between background and content */
    }

    .hero-particles {
        z-index: 3; /* Above overlay, below content */
    }
}