/* Desktop navbar styles (outside media query) */
.navbar {
  display: flex;
  align-items: center;
  padding: 1rem;
}

.navbar-brand {
  margin-right: 2rem;
}

.navbar-start {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  justify-content: center;
  gap: 1rem;
}

.navbar-end {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile and tablet adjustments */
@media screen and (max-width: 768px) {
    /* Banner responsive adjustments */
    .banner {
        background-size: cover;
        padding: 60px 0; /* Increased from 30px to 60px */
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
        min-height: 120px; /* Add minimum height */
    }

    .banner .title {
        font-size: 2rem;
        margin-top: 1.5rem; /* Add some top margin to the title */
    }

    .banner .subtitle {
        font-size: 1.2rem;
    }

    .banner-logo {
        max-width: 100px;
        top: 10px;
        left: 10px;
    }

    /* Layout adjustments */
    .columns {
        display: flex;
        flex-wrap: wrap;
        margin: 0 !important;
    }

    .column.is-one-quarter {
        width: 50% !important;
        flex: 0 0 50% !important;
        padding: 0.5rem !important;
        margin: 0 !important;
    }

    /* Card adjustments */
    .card {
        height: auto;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .card-content .title.is-6 {
        font-size: 1.2rem !important;
    }

    .help {
        font-size: 1rem !important;
    }

    /* Cart responsive adjustments */
    .cart-wrapper {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }

    .cart-dropdown {
        position: absolute;
        bottom: 100%;
        right: 0;
        margin-bottom: 8px;
        min-width: 120px;
    }

    .cart-display {
        padding: 12px 16px;
        font-size: 1rem;
    }

    /* Image grid responsive */
    .image-grid .column.is-one-third {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0.5rem;
    }
    
    /* Video containers responsive - stack in one column on mobile */
    .section .columns .column.is-one-third .video-container {
        margin-bottom: 1rem;
    }
    
    .section .columns .column.is-one-third {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0.5rem;
    }

    /* Navbar responsive */
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem;
    }

    .navbar-start {
        display: flex;
        align-items: center;
        justify-content: center; /* Center items */
        flex: 2; /* Give more space to center section */
        margin: 0; /* Remove margins */
        padding: 0; /* Remove padding */
        gap: 0.5rem; /* Reduce gap between items */
    }

    .navbar-end {
        flex: 0 0 auto; /* Don't grow or shrink */
        display: flex;
        align-items: center;
        gap: 0;
    }

    .navbar-brand {
        flex: 0 0 auto; /* Don't grow or shrink */
        margin-right: 0.5rem; /* Reduce margin */
    }

    .navbar-item {
        padding: 0.25rem 0.0; /* Remove horizontal padding */
        font-size: 0.9rem;
        white-space: nowrap; /* Prevent text wrapping */
        margin: 0.1rem; /* Remove margin between items */
    }

    .navbar-end .navbar-item {
        display: inline-flex;
        padding: 0.5rem 0.375rem;
    }

    /* Remove any conflicting styles */
    .navbar-start,
    .navbar-end {
        width: auto;
        flex-direction: row;
    }
}
