html, body {
    margin: 0;
    padding: 0;
    background-color: #f1f3f5;
    font-family: 'Poppins', Arial, sans-serif;
    min-height: 100vh;
    color: #333;
    box-sizing: border-box;
    overflow-x: hidden;
}

.header {
    background: #111;
    padding: 40px 0;
    text-align: center;
}

.logo {
    height: 120px;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.breathe {
    animation: breathe 2s ease forwards;
}

@keyframes breathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.auth-bar {
    position: fixed;
    top: 130px;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #f8fafc;
    border-bottom: 1px solid #e0e7ef;
    padding: 0.75rem 0;
    margin-bottom: 0;
}

.fixed-navbar {
    position: fixed;
    top: 220px; /* match actual .fixed-header height */
    left: 0;
    width: 100%;
    z-index: 1040;
    background: #fff;
    border-bottom: 1px solid #e0e7ef;
}

@media (max-width: 767px) {
    .fixed-navbar {
        top: 80px; /* match mobile header height */
    }
}

.main-content {
    margin-top: 40px;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.container.main-content {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-form-middle {
    margin: 20px auto;
    padding: 20px 15px;
    box-sizing: border-box;
    position: sticky;
    top: 60px;
    z-index: 100;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-form-middle .search-input-group {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: none;
    outline: none;
    box-shadow: none;
}

.search-form-middle .search-input-group .form-control {
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    padding: 12px 15px;
    font-size: 1em;
    box-shadow: none;
}

.search-form-middle .search-input-group .btn {
    border: 1px solid #007BFF;
    border-radius: 0 8px 8px 0;
    padding: 12px 20px;
    background: linear-gradient(90deg, #007BFF, #0056b3);
    box-shadow: none;
}

.search-form-middle .search-input-group .btn:hover {
    background: linear-gradient(90deg, #0056b3, #003d82);
    transform: translateY(-2px);
}

.search-form-middle .search-input-group:focus-within {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    border-radius: 8px;
}

#results {
    width: 100%;
    padding: 10px;
    text-align: left;
}

.result-card {
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.2rem;
    padding: 1.2rem 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
    max-width: 1215px;
    margin-left: auto;
    margin-right: auto;
}

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

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.whisky-name {
    font-size: 1.5em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.whisky-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.whisky-link:hover {
    color: #007BFF;
}

.match-count {
    font-size: 1em;
    font-weight: 400;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    text-align: center;
}

.result-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.whisky-image {
    flex: 0 0 auto;
}

.whisky-image img {
    max-width: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.whisky-details {
    flex: 1;
    min-width: 200px;
}

.whisky-details p {
    margin: 8px 0;
    font-size: 1em;
}

.whisky-details p strong {
    color: #1a1a1a;
    font-weight: 600;
}

.auction-sites {
    font-size: 0.95em;
    color: #666;
    margin: 5px 0;
}

.auction-sites.comma-separated {
    font-size: 0.95em;
    color: #666;
    margin: 5px 0;
    display: inline-block;
}

.price-history {
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

.price-history canvas {
    width: 100% !important;
    height: 300px !important;
    max-height: 300px;
}

.see-all-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(90deg, #28a745, #218838);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95em;
    transition: transform 0.1s ease, background 0.3s ease;
}

.see-all-button:hover {
    background: linear-gradient(90deg, #218838, #1c6d30);
    transform: translateY(-2px);
}

.back-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(90deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.3s ease;
}

.back-button:hover {
    background: linear-gradient(90deg, #5a6268, #4b5257);
    transform: translateY(-2px);
}

.auction-site-counts {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.auction-site-counts p {
    margin: 8px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #1a1a1a;
}

.auction-site-counts ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.auction-site-counts li {
    margin: 5px 0;
    font-size: 1em;
    color: #444;
}

.total-whiskies {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.total-whiskies p {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #1a1a1a;
}

.whisky-stats-box {
    position: relative;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(255, 149, 0, 0.15));
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.whisky-stats-box:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.whisky-stats-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    background: linear-gradient(45deg, #007BFF, #FF9500) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.whisky-stats-box:hover::before {
    opacity: 1;
}

.whisky-stats-content {
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.whisky-stats-content h2 {
    margin: 0 0 15px;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.whisky-stats-content .whisky-count {
    margin: 0;
    font-size: 2.8em;
    font-weight: 400;
    color: #000000;
    text-shadow: none;
    animation: fadeIn 1s ease-in-out;
    line-height: 1;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.whisky-stats-content .whisky-label {
    margin: 8px 0 0;
    font-size: 1em;
    font-weight: 500;
    color: #555;
    text-align: center;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.auction-site-stats-box {
    max-width: 400px;
}

.auction-site-stats-box h2 {
    margin-bottom: 15px;
}

.auction-site-list {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    text-align: left;
}

.auction-site-list p {
    margin: 0;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    font-size: 1em;
    color: #444;
    display: flex;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.auction-site-list p:hover {
    background: rgba(255, 255, 255, 0.8);
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: #007BFF;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: background 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background: #007BFF;
    color: white;
    border-color: #007BFF;
}

.pagination span {
    background: #007BFF;
    color: white;
    border-color: #007BFF;
}

.sort-options {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-size: 1em;
    font-weight: 600;
    color: #1a1a1a;
}

.sort-options select {
    padding: 8px 12px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-options select:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.recommendation {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.recommendation h4 {
    margin: 0 0 5px;
    font-size: 1.2em;
    font-weight: 600;
}

.recommendation p {
    margin: 0;
    font-size: 0.95em;
    color: #444;
}

.recommendation-buy {
    border-left: 4px solid #28a745;
}

.recommendation-sell {
    border-left: 4px solid #dc3545;
}

.auth-box {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}

.auth-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    box-sizing: border-box;
}

.auth-button {
    display: inline-block;
    padding: 10px 22px;
    font-size: 1.08em;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #007BFF 60%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.12s ease, background 0.3s ease, box-shadow 0.2s;
    box-sizing: border-box;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.10);
}

.auth-button:hover {
    background: linear-gradient(90deg, #0056b3 60%, #003d82 100%);
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,123,255,0.18);
}

.auth-button:active {
    transform: scale(1.00);
}

.auth-button.logout {
    background: linear-gradient(90deg, #dc3545 60%, #c82333 100%);
}

.auth-button.logout:hover {
    background: linear-gradient(90deg, #c82333 60%, #b21f2d 100%);
}

/* Form-specific styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 400px;
}

.form-group label {
    font-size: 1em;
    font-weight: 500;
    color: #1a1a1a;
}

.form-group input {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 0.95em;
}

@media screen and (max-width: 480px) {
    .main-content {
        padding: 10px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .whisky-stats-box,
    .user-stats-box,
    .auction-site-stats-box {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    .search-form {
        padding: 10px;
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
        box-sizing: border-box;
    }
    .search-form-middle {
        margin: 15px 0;
        padding: 15px 10px; /* Updated: Increased top padding from 10px to 15px */
        width: 100%;
        max-width: 100%;
    }
    .form-group {
        width: 100%;
        max-width: 100%;
    }
    .form-group input {
        padding: 8px 10px;
        font-size: 0.9em;
        width: 100%;
        max-width: 100%;
    }
    .form-group label {
        font-size: 0.9em;
    }
    button {
        padding: 10px 20px;
        font-size: 0.9em;
        width: 100%;
        max-width: 100%;
    }
    .auth-buttons-container {
        gap: 8px;
        padding: 0 10px;
    }
    .auth-button {
        padding: 6px 12px;
        font-size: 0.9em;
        min-width: 100px;
    }
    h2 {
        font-size: 1.5em;
        text-align: center;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    p {
        font-size: 0.9em;
        word-break: break-word;
        overflow-wrap: break-word;
        text-align: center;
    }
    a {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .result-card {
        padding: 1rem 0.7rem;
        max-width: 100%;
    }
}

/* Autocomplete-specific styles */
.autocomplete-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 2000;
    margin: 0;
    padding: 0;
    list-style: none;
}

.autocomplete-suggestion {
    padding: 10px 15px;
    font-size: 0.95em;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-suggestion:hover {
    background: #f0f6ff;
}

.suggestion-count {
    font-size: 0.85em;
    color: #666;
}

.autocomplete-message {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

.autocomplete-message a {
    color: #007BFF;
    text-decoration: none;
}

.autocomplete-message a:hover {
    text-decoration: underline;
}

/* Mobile-specific styles for autocomplete */
@media screen and (max-width: 768px) {
    .autocomplete-container {
        position: relative;
        width: 100%;
        z-index: 2100;
    }

    .autocomplete-suggestions {
        max-height: 50vh;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        border-radius: 6px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        z-index: 2100;
        width: 100%;
        box-sizing: border-box;
        margin-top: 2px;
        background: #fff;
    }

    .autocomplete-suggestion {
        padding: 8px 12px;
        font-size: 0.9em;
        touch-action: manipulation;
    }

    .suggestion-count {
        font-size: 0.8em;
    }

    body.autocomplete-active {
        overflow: hidden;
    }
}

/* Modal styles for mobile autocomplete */
.autocomplete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2200;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #333;
}

.modal-search-container {
    margin-bottom: 10px;
}

#modal-search-input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.modal-suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-suggestions .autocomplete-suggestion {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.modal-suggestions .autocomplete-suggestion:last-child {
    border-bottom: none;
}

.hero-section {
    margin-top: 3.5rem;
    margin-bottom: 2.5rem;
    padding: 3rem 1.5rem 2.5rem 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(120deg, #f8fafc 60%, #e0e7ff 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
    margin-top: 2.5rem !important;
}

.hero-section h1 {
    font-size: 2.2em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px;
}

.hero-section p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
    margin: 0 0 15px;
}

.hero-section a {
    color: #007BFF;
    font-weight: 600;
    text-decoration: none;
}

.hero-section a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 480px) {
    .hero-section {
        padding: 20px 10px;
    }
    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 1em;
    }
}

.hero-button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.95em;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(90deg, #007BFF, #0056b3);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.3s ease;
    margin: 0 10px;
}

.hero-button:hover {
    background: linear-gradient(90deg, #0056b3, #003d82);
    transform: translateY(-2px);
}

.hero-button:active {
    transform: translateY(0);
}

@media screen and (max-width: 480px) {
    .hero-button {
        padding: 6px 12px;
        font-size: 0.9em;
        margin: 5px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {
    .auth-bar {
        top: 100px;
        padding: 0.5rem 0;
    }
    .main-content {
        margin-top: 140px;
    }
    .hero-section {
        margin-top: 2rem !important;
    }
}

/* Modern Navbar Enhancements */
.modern-navbar {
    background: linear-gradient(to right, #2c3e50, #34495e);
    border-bottom: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1051;
    margin-top: 0 !important;
}

.modern-navbar .navbar-nav {
    width: 100%;
    justify-content: center;
    gap: 1.2rem;
}

.modern-navbar .nav-item {
    display: flex;
    align-items: center;
}

.modern-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.92em;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.modern-navbar .nav-link i {
    font-size: 0.95em;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.modern-navbar .nav-link:hover,
.modern-navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.modern-navbar .nav-link:hover i {
    transform: translateY(-1px);
    opacity: 1;
}

.modern-navbar .nav-link-login {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.2);
}

.modern-navbar .nav-link-login:hover {
    background: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.3);
}

.modern-navbar .nav-link-register {
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.2);
}

.modern-navbar .nav-link-register:hover {
    background: rgba(52, 152, 219, 0.25);
    border-color: rgba(52, 152, 219, 0.3);
}

@media (max-width: 991px) {
    .modern-navbar .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
    .modern-navbar .nav-link {
        width: 85%;
        justify-content: center;
        margin-bottom: 0.3rem;
        font-size: 0.9em;
        padding: 0.8rem 0;
    }
}

.card-animate {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 2;
}
#backToTop {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 24px;
    z-index: 9999;
    background: linear-gradient(90deg, #007BFF, #0056b3);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    font-size: 1.5em;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
}
#backToTop:hover {
    background: linear-gradient(90deg, #0056b3, #003d82);
}
@media (max-width: 480px) {
    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 1.1em;
        bottom: 16px;
        right: 12px;
    }
    .card {
        min-width: 0;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* Force Bootstrap grid to work for vault and other main pages */
.container.main-content {
    max-width: 1140px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
}

[class^="col-"], [class*=" col-"] {
    position: relative !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 auto !important;
        width: 50% !important;
    }
}
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto !important;
        width: 33.333333% !important;
    }
}

/* Prevent chart from growing on hover */
.chart-container, .chart-container canvas, .card .chart-container, .card .chart-container canvas {
  transition: none !important;
  transform: none !important;
}

/* Prevent chart card from scaling on hover */
.card.chart-card:hover, .chart-card:hover, .card .chart-container:hover, .chart-container:hover {
  transform: none !important;
  box-shadow: inherit !important;
}

.container, .container-fluid {
    max-width: none !important;
    width: 100% !important;
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 10px 26px;
    margin: 0 6px 10px 6px;
    background: linear-gradient(90deg, #007BFF 60%, #0056b3 100%);
    color: #fff !important;
    border-radius: 999px;
    font-size: 1.08em;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,123,255,0.10);
    transition: background 0.25s, transform 0.13s, box-shadow 0.18s;
    border: none;
}
.explore-link:hover, .explore-link:focus {
    background: linear-gradient(90deg, #339dff 60%, #007BFF 100%);
    color: #fff !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(0,123,255,0.18);
    text-decoration: none;
}
.explore-link .bi {
    font-size: 1.15em;
    vertical-align: middle;
    opacity: 0.85;
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
    /* Hide the mobile navbar brand text */
    .navbar-brand.d-lg-none {
        display: none !important;
    }

    /* Reduce logo height by 50% on mobile */
    .header .logo {
        height: 60px !important; /* 50% of the original 120px height */
        width: auto !important;
        max-width: 100% !important;
    }

    .header {
        padding: 20px 0 !important; /* Reduce header padding to match smaller logo */
    }

    /* Make the mobile navigation button more visible */
    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0.5rem;
        margin-right: 0.5rem;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    }

    .modern-navbar .navbar-nav {
        gap: 0.5rem;
    }

    .modern-navbar .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85em;
        width: 100%;
        text-align: center;
        margin: 0.2rem 0;
    }

    .modern-navbar .nav-item {
        width: 100%;
    }

    /* Make the Follow Us link more prominent on mobile */
    .modern-navbar .nav-item:has(a[href*="facebook.com"]) .nav-link {
        background: linear-gradient(90deg, #1877f2, #0d6efd);
        color: white !important;
        font-weight: 600;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .modern-navbar .nav-item:has(a[href*="facebook.com"]) .nav-link:hover {
        background: linear-gradient(90deg, #0d6efd, #0a58ca);
        transform: translateY(-1px);
    }
}