/*
|--------------------------------------------------------------------------
| Page Load Animation
|--------------------------------------------------------------------------
*/

/* This creates the 0.5s fade-in animation */
@keyframes fadeInPage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* This applies the animation to the body of every page */
body {
    /* Apply the animation */
    animation: fadeInPage 0.7s ease-in-out;
}
/*
|--------------------------------------------------------------------------
| Global & Base Styles
|--------------------------------------------------------------------------
*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #fdfdfd;
    color: #050505;
}

main.container {
    width: 96%;
    margin: 20px auto;
    padding: 10px 20px;
    min-height: 70vh; /* Ensures footer isn't too high on empty pages */
	background: #050505;
	border-radius: 13px;
	background: #17D3E8;
    color: #050505;
}

/* Generic page header (for Events, Newsletter, Gallery, etc.) */
.page-header {
    text-align: center;
    border-bottom: 2px solid #EBD9D5;
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.page-header p {
    font-size: 1.2em;
    color: #555;
}

/* Generic "no items" message */
.no-items-message {
    text-align: center;
    font-size: 1.2em;
    color: #777;
    padding: 40px 20px;
    background: #ebd9d5;
    border: 1px dashed #ddd;
    border-radius: 8px;
}


/*
|--------------------------------------------------------------------------
| Header & Navigation Bar
|--------------------------------------------------------------------------
*/
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background-color: #EBD9D5;
    padding: 0 20px;
    color: #ebd9d5;
    position: relative;
    flex-direction: row;
    align-content: center;
}
.navbar .logo a {
    display: block;
    margin: 7px;
	padding: 10px 14px;
    text-decoration: none;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
	background: transparent;
	border-radius: 60%;
}

.logo-container {
    position: relative; /* Container must be relative so absolute positioning inside works relative to it */
    display: inline-block; /* Helps container wrap around the base image */
	width: 300px;
	border-radius: 50%;
	box-shadow: -10px 10px 10px #050505;
}

.base-image {
    display: block;
    width: 300px; /* Makes the base image responsive within its container */
    height: auto;
}

.overlay-image {
    position: absolute;
    top: -22px;
	right: -20px;
	z-index: 1;
	width: 153px;
	height: auto;
	margin: 10px;
}

.navMission {
    margin: 4px;
    padding: 4px;
    border-radius: 13px;
}

nav > div.navMission > a > img {
    width: 150px;
    height: auto;
}

/* By default, the nav-menu is a flex container for desktop
*/
.nav-menu {
    display: flex;
    gap: 1px;
    background: #21823D;
    color: #EBD9D5;
    padding: 3px;
    border-radius: 13px;
    margin-top: 9px;
    width: -webkit-fill-available;
    overflow-x: auto;
    align-items: center;
    justify-content: space-around;
    box-shadow: 2px 2px 0px #21823D, 3px 3px 0px #19672f, 4px 4px 0px #165729, 5px 5px 0px #11411f, 6px 6px 0px #0d2f17, 7px 7px 10px #050505;
	
	/* Make the scrollbar track transparent */
  &::-webkit-scrollbar-track {
    background-color: transparent;
  }

  /* Style the scrollbar thumb (the draggable part) */
  &::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent black for visibility */
    border-radius: 13px; /* Rounded corners for the thumb */
    border: 3px solid transparent; /* Keep some padding/border around the thumb */
    background-clip: content-box; /* Ensures border is outside the background */
  }

  /* Make the scrollbar itself slimmer */
  &::-webkit-scrollbar {
    width: 10px;  /* Width for vertical scrollbar */
    height: 10px; /* Height for horizontal scrollbar */
  }

  /* Style the corner of the scrollbar (if both vertical and horizontal exist) */
  &::-webkit-scrollbar-corner {
    background-color: transparent;
  }
}


.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.nav-links li a {
    display: block;
    color: #ebd9d5;
    padding: 18px 18px;
    text-decoration: none;
	border-radius: 13px;
}
.nav-links li a:hover {
    background-color: #050505;
}
.user-actions {
    display: flex;
    align-items: center;
}
.user-actions a {
    color: #ebd9d5;
    text-decoration: none;
	padding: 18px 18px;
	border-radius: 13px;
}
.user-actions a:hover {
    background-color: #050505;
}
.user-actions a[href="admin/index.php"] {
    color: #ffc107; 
    font-weight: bold;
}
.user-actions .signup-btn {
    background-color: #21823D;
    border-radius: 13px;
    padding: 18px 18px;
    margin-left: 10px;
}
.user-actions .signup-btn:hover {
    background-color: #050505;
}

/* |--------------------------------------------------------------------------
| NEW: Mobile "Hamburger" Menu Styles
|--------------------------------------------------------------------------
*/
.nav-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #EBD9D5;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}



/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/
.footer {
    background-color: transparent;
    text-align: center;
    padding: 10px;
    color: #050505;
	width: 100%;
	margin: 13px auto;
	font-weight: 600;
}

/* ... bottomlink Styles ... */

body > nav > footer > div > p:nth-child(4) {
    width: fit-content;
    margin: 0 auto;
    padding: 5px;
    border-radius: 13px;
}

/* ... bottomcopyright Styles ... */

body > nav > footer > div > p:nth-child(1) {
    border-radius: 13px;
    padding: 6px;
    width: fit-content;
    margin: 0 auto;
}

/*
|--------------------------------------------------------------------------
| Home Page (index.php)
|--------------------------------------------------------------------------
*/
.hero {
    background: #a14216;
	color: #ebd9d5;
    padding: 40px 20px;
    text-align: center;
    border-radius: 13px;
    margin: 20px 0;
	background-image: url('../imgs/cabinwoods.gif');
    background-size: cover; /* Optional: scales the background image to cover the entire element */
    background-repeat: no-repeat; /* Optional: prevents the GIF from repeating */
    background-position: center center; /* Optional: centers the GIF */
 }
.visual {
	background: #050505;
	border-radius: 18px;
    width: 80%;
    padding: 1px;
    margin: 0px auto;
}
.content-wrapper {
    display: flex;
    flex-wrap: wrap; /* This is key for responsiveness! */
    justify-content: space-between;
    gap: 20px;
	margin-bottom: 10px;
}
.about-section {
    flex: 2; 
    min-width: 300px;
}
.donation-section {
    display: grid;
    background: #EBD9D5;
    border-radius: 13px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 300px; /* This makes it stack */
    box-sizing: border-box;
}

.donation-section-home {
    flex: 1;
    background: #EBD9D5;
    border-radius: 13px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 300px; /* This makes it stack */
    box-sizing: border-box;
}

.donation-form {
    display: flex;
    flex-direction: column;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input,
.form-group select,
.form-group textarea { /* Added textarea */
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 9px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
	background: #EBD9D5;
}
#card-element {
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 4px;
    background: #EBD9D5;
}
#card-errors {
    color: #a14216;
    font-size: 0.9em;
    margin-top: 8px;
}
.submit-btn {
    background-color: #21823D;
    color: #EBD9D5;
    padding: 12px 20px;
    border: none;
    border-radius: 11px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
	/* Basic button styling */
    text-align: center;
    text-decoration: none;
    outline: none; /* Remove default focus outline */
	/* 3D effect with box-shadow */
	box-shadow: 2px 2px 0px #21823D, 3px 3px 0px #19672f, 4px 4px 0px #165729, 5px 5px 0px #11411f, 6px 6px 0px #0d2f17, 7px 7px 10px #050505;
    transform: translateY(0); /* Initial position */
   /* transition: all 0.2s ease-out; */ /* Smooth transition for all changes */

    /* Animation for rising and falling */
    /*animation: button-float 2s infinite alternate ease-in-out;*/
}
.submit-btn:hover, .submit-btn:focus {
    background-color: #21823D;
    box-shadow: 2px 2px 0px #165d2a, 3px 3px 0px #0e3a1a, 4px 4px 0px #0d3519, 5px 5px 0px #0a2d15, 6px 6px 10px #05160a;
    transform: translateY(3px);
	color: #009999;
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
	animation: none !important;
    transition: none !important;
	transform: none !important;
    box-shadow: none !important;
}

/* Animation keyframes for rising and falling */
@keyframes button-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px); /* Rise up */
  }
  100% {
    transform: translateY(0);
  }
}

 /* CSS for Flickity Carousel */
    
    .hero-carousel {
        width: 80%;
		margin: 0 auto;
        height: 450px; /* Set height of the carousel */
    }
    .carousel-cell {
        width: 100%; /* Each cell takes full width */
        height: 450px; /* Set height of the cell */
        position: relative;
        background-size: contain;   /* Ensures the full image fits inside */
		background-repeat: no-repeat;
        background-position: center;
		border-radius: 13px;
    }
    /* Cell content (text overlay) */
    .carousel-cell-content {
        position: relative;
		bottom: -54%;
		left: 0%;
		background: rgba(0, 0, 0, 0.0);
		color: white;
		padding: 5px 10px;
		border-radius: 8px;
		max-width: 60%;
		margin: 0 auto;
    }
    .carousel-cell-content h1 {
        font-size: 2.5em;
        margin: 0 0 10px 0;
    }
    .carousel-cell-content p {
        font-size: 1.2em;
        margin: 0;
    }
    /* Flickity button/dot styles */
    .flickity-prev-next-button {
        background: #EBD9D5;
    }
    .flickity-prev-next-button .arrow {
        fill: #333;
    }
    .flickity-page-dots .dot {
        background: rgba(255, 255, 255, 0.5);
    }
    .flickity-page-dots .dot.is-selected {
        background: white;
    }


/*
|--------------------------------------------------------------------------
| Events Page (events.php)
|--------------------------------------------------------------------------
*/
.events-container {
    max-width: 1000px;
    margin: 30px auto;
}
.month-header {
    font-size: 2em;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}
.event-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 18px;
    border-radius: 13px;
    overflow: hidden;
    background: #EBD9D5;
    box-shadow: 5px 5px 5px #736664;
}
.event-image {
    flex: 1;
    min-width: 300px;
}
.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.event-details {
    flex: 2;
    padding: 20px;
    min-width: 300px;
	color: #050505;
	overflow-wrap: break-word;
}
/* ... END of EVENT STYLES ... */


/* ... GALLERY STYLES ... */
.upload-prompt {
    margin-bottom: 13px;
}

a.upload-btn {
    background: #ebd9d5;
    padding: 5px;
	border-radius: 13px;
}

.gallery-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 13px;
    margin-bottom: 20px;
}

.image-info {
    width: 300px;
}

p.caption {
	overflow-wrap: break-word;
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Flash Messages (for contact, login, etc.)
|--------------------------------------------------------------------------
*/
.flash-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.flash-message.success {
    color: #21823D;
    background-color: #ebd9d5;
    border-color: #ebd9d5;
}
.flash-message.error {
    color: #a14216;
    background-color: #ebd9d5;
    border-color: #ebd9d5;
}

.flash-message.info {
    color: #009999;
    background-color: #dddddd;
    border-color: #dddddd;
}

/*
|--------------------------------------------------------------------------
| Contact Page (contact.php)
|--------------------------------------------------------------------------
*/

.contact-container {
    max-width: 800px;
    margin: 30px auto;
}
.form-group textarea {
    height: 150px;
    resize: vertical; 
}
.contact-container .submit-btn {
    background-color: #21823D;
    box-shadow: 2px 2px 0px #21823D, 3px 3px 0px #19672f, 4px 4px 0px #165729, 5px 5px 0px #11411f, 6px 6px 0px #0d2f17, 7px 7px 10px #050505;
    color: #EBD9D5;
	width: -webkit-fill-available;
    margin: 0 auto;
	transform: translateY(0);
}
.contact-container .submit-btn:hover {
    background-color: #21823D;
	box-shadow: 2px 2px 0px #165d2a, 3px 3px 0px #0e3a1a, 4px 4px 0px #0d3519, 5px 5px 0px #0a2d15, 6px 6px 10px #05160a;
	transform: translateY(3px);
	color:#009999;
}

/*
|--------------------------------------------------------------------------
| Merch Page (merch.php)
|--------------------------------------------------------------------------
*/
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
	margin-bottom: 13px;
	justify-items: center;
	
}

.product-item {
    background: #009999;
    border-radius: 8px;
    padding: 5px;
    display: flex;
	box-shadow: 2px 2px 0px #39a88f, 3px 3px 0px #359680, 4px 4px 0px #2d7c6a, 5px 5px 0px #205a4d, 6px 6px 0px #184239, 7px 7px 10px #050505;
	flex-direction: column;
	width: -webkit-fill-available;
	align-items: center;
}

.product-item .product-details {
    text-align: center;
}

.product-image {
    margin: 3px 10px 0px 3px;
}

button.add-to-cart-btn {
    display: block;
	background: #21823D;
    padding: 5px 10px;
	margin-top: 10px;
}

button.add-to-cart-btn:hover, button.add-to-cart-btn:focus {
	background: #050505;
	color: #009999;
	cursor: pointer;
}

form.product-cart-form {
    margin-bottom: 5px;
    display: inline-grid;
}

input[name="quantity"] {
	text-align: center;
}

/* ... (all your other product styles) ... */

/*
|--------------------------------------------------------------------------
| Cart Page (cart.php)
|--------------------------------------------------------------------------
*/
/* ... (all your cart styles) ... */
.cart-summary {
   display: flex;
    gap: 20px;
    background: #050505;
    color: #EBD9D5;
    width: fit-content;
    padding: 7px;
    border-radius: 13px;
    margin-top: 18px;
    flex-wrap: wrap;
    align-items: center;
}

span.cartForm {
	display: flex;
    margin: 10px;
}

a.checkout-btn {
	background: #ebd9d5;
    padding: 7px;
    border-radius: 13px;
}

/*
|--------------------------------------------------------------------------
| Auth Pages (login.php, signup.php)
|--------------------------------------------------------------------------
*/
.auth-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px 40px;
    background: #009999;
	color: #050505;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* ... (all your auth styles) ... */

/*
|--------------------------------------------------------------------------
| Upload Page (upload_gallery.php)
|--------------------------------------------------------------------------
*/
.upload-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px 40px;
    background: #009999;
    color: #050505;
    border-radius: 13px;
    box-shadow: 0px 7px 7px #19453b;
}
/* ... (all your upload styles) ... */

a.upload-btn {
    background: #ebd9d5;
    padding: 5px;
}

/*
|--------------------------------------------------------------------------
| Admin Section
|--------------------------------------------------------------------------
*/
.admin-container {
    max-width: 1000px;
    margin: 30px auto;
}
.admin-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-nav-grid {
	display: flex;
    background: #009999;
    flex-direction: column;
	border-radius: 13px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

span.pending-count {
    margin: 10px;
}
/* ... (all your admin grid/card styles) ... */

/*
|--------------------------------------------------------------------------
| Admin Management Tables (Events, Products, Gallery)
|--------------------------------------------------------------------------
*/
.admin-table-container {
    background: #dddddd;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: auto;
	margin-top: 15px;
}

table.admin-table {
	background: #a14216;
	width: 100%;
}

body > nav > main > div > div.admin-table-container > table > tbody {
    background: #009999;
}

button.action-btn.approve, button.action-btn.reject {
    padding: 8px;
    margin: 5px;
	cursor: pointer;
}

button.action-btn.approve {background: #21823d;}

button.action-btn.reject{background:#a14216;}

a.action-btn.edit {
    padding: 19px;
}

div.admin-table-container > h2 {
	color: #050505;
}

/*
|--------------------------------------------------------------------------
| Admin newsletter Topic Badges
|--------------------------------------------------------------------------
*/
.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.topic-badge {
    display: inline-block;
    background-color: #009999;
    color: #050505;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ... (all your admin table styles) ... */
/*
|--------------------------------------------------------------------------
| Profile Page (profile.php)
|--------------------------------------------------------------------------
*/
.profile-container {
    margin: 40px auto;
    padding: 30px;
    background: #21823D;
    border-radius: 13px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.profile-header {
    display: flex;
    flex-wrap: wrap; /* Stacks on mobile */
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.profile-pic-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes it circular */
    object-fit: cover;
    border: 3px solid #eee;
    background-color: #f8f9fa;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 2.2em;
    margin: 0 0 5px 0;
    color: #050505;
}

.profile-info p {
    font-size: 1.1em;
    color: #EBD9D5;
    margin: 0;
}

/* Forms for bio and picture */
.profile-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.profile-form h2 {
    font-size: 1.5em;
    color: #444;
    margin: 0 0 15px 0;
}

#profPic {
	background-color: #17D3E8;
    box-shadow: 0 5px 0 0 #007079;
}

#saveBio {
	background-color: #17D3E8;
    box-shadow: 0 5px 0 0 #007079;
}

#profPic:hover, #profPic:focus {
	color:#050505;
	background: #009999;
    box-shadow: 0 3px 0 0 #050505;
}

#saveBio:hover, #saveBio:focus {
	color:#050505;
	background: #009999;
    box-shadow: 0 3px 0 0 #050505;
}

/* NEWSLETTER STYLES */
.newsletter-container {
	margin: 8px;
}

.post-content {
	overflow-wrap: break-word;
}

article.newsletter-post {
    margin-bottom: 18px;
	border-top: 2px solid #EBD9D5;
}

/*
|--------------------------------------------------------------------------
| Newsletter Search
|--------------------------------------------------------------------------
*/

.newsletter-search-container {
    position: relative; /* Allows absolute positioning for the dropdown */
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #EBD9D5;
}

/* Use existing .form-group styles */
.newsletter-search-container .form-group {
    margin-bottom: 0;
}

#newsletter-search-input {
    /* Use existing form styles, but ensure it's full-width */
    width: 100%;
    padding: 12px;
    border-radius: 9px;
    box-sizing: border-box;
    font-size: 1.1em;
}

#search-results-dropdown {
    display: none; /* Hidden by default */
    position: relative;
    background-color: #009999;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 84%);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background-color: #b9b9b9;
}

.search-result-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #050505;
}
.search-result-item p {
    margin: 0;
    font-size: 0.9em;
    color: #050505;
}

#search-result-display {
    background-color: #EBD9D5;
    border-radius: 8px;
    margin-top: 20px;
    padding: 10px;
    min-height: 50px;
}
#search-result-display .placeholder {
    color: #050505;
    font-style: italic;
    text-align: center;
}

/* We can reuse the existing post styles for the displayed article */
#search-result-display .newsletter-post {
    margin-bottom: 0;
    border-top: none;
}


/*
|--------------------------------------------------------------------------
|==========================================================================
| NEW: RESPONSIVE MEDIA QUERIES
|==========================================================================
|--------------------------------------------------------------------------
*/

@media (min-width: 1024px) {
    /* Ensures the "hidden" mission div doesn't take up space on desktop */
    .navMission picture img[src*="data:image"] {
        display: none; 
    }
    
	.navMission {
        display: none; 
    }
	
	.logo-container {
        width: auto; /* Or specific desktop width */
        max-width: 100%;
		border-radius: 13px;
		padding: 5px;
		box-shadow: 0px 0px 0px 0px #050505;
    }
	
    /* Optional: Adjust the logo container width for the new desktop image */
    .logo-container img {
        width: auto; /* Or specific desktop width */
        max-width: 100%;
    }
}

/* --- Media Query for Desktop (Row Flow) --- */
@media (min-width: 901px) {
	.gallery-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		border-radius: 13px;
		margin-bottom: 20px;
		flex-direction: row;
		gap: 30px;
	}
}

/* Breakpoint 1: Tablet & Mobile (900px and down)
  This is where the main navigation collapses.
*/
@media (max-width: 900px) {
   
	.navbar {
		justify-content: space-around;
		align-items: center;
		flex-direction: column;
		align-content: center;
	}
   /* Show the hamburger toggle button */
    .nav-toggle {
        display: block;
        background: #21823D;
        border-radius: 18px;
        padding: 13px;
		box-shadow: 2px 2px 0px #175c2a, 3px 3px 0px #114620, 4px 4px 0px #0d3218, 5px 5px 0px #051209;
    }
	
	.nav-toggle:hover, .nav-toggle:focus {
		background:#21823d;
		box-shadow: 2px 2px 0px #0e3a1a, 3px 3px 0px #051409;
	}

    /* Hide the menu by default */
    .nav-menu {
        display: none;
        
        /* Make it a full-width dropdown */
        flex-direction: column;
        width: 96%;
        background-color: #21823D;
        position: relative;
        z-index: 900;
        align-content: center;
        flex-wrap: wrap;
    }

    /* This class is added by JS to show the menu */
    .nav-menu.is-active {
        display: flex;
    }
    
    /* Stack the link lists */
    .nav-links, .user-actions {
        flex-direction: column;
        width: 100%;
    }
    
    /* Style the links for a mobile dropdown */
    .nav-links li a {
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid #444;
    }
    .user-actions {
        padding: 10px 0;
        gap: 1px;
        align-items: stretch; /* Make buttons full-width */
    }
    .user-actions a {
        text-align: center;
        padding: 15px 20px;
    }
    .user-actions .signup-btn {
        margin: 5px 20px;
    }
	
		.hero-carousel,
        .carousel-cell {
            width: 100%;
			height: 350px; /* Make the carousel shorter on mobile */
        }

        .carousel-cell-content {
            /* Adjust positioning and size for small screens */
            left: 0px;
            top: 173px;
            max-width: none; /* Remove desktop max-width */
            width: auto; /* Let it be auto-sized by padding */
            padding: 15px;
        }

        .carousel-cell-content h1 {
            font-size: 1.8em; /* Smaller title font */
        }
        
        .carousel-cell-content p {
            font-size: 1em; /* Smaller text font */
        }

        /* Hide prev/next buttons on mobile, as swiping is more natural */
        .flickity-prev-next-button {
            display: none;
        }
}


/* Breakpoint 2: Mobile Only (768px and down)
  This handles typography, padding, and tables.
*/
@media (max-width: 768px) {
    
    /* #a14216uce padding on main container */
    main.container {
        padding: 0 10px;
        margin-top: 15px;
    }

    /* #a14216uce main heading sizes */
    .page-header h1, .admin-header h1 {
        font-size: 2em;
    }
    .page-header p, .admin-header p {
        font-size: 1.1em;
    }
    
    /* Make forms full-width with less padding */
    .auth-container, 
    .upload-container,
    .admin-form-container,
    .contact-container {
        padding: 20px;
        margin-top: 20px;
    }

    /* Make admin dashboard grid stack to 1 column */
    .admin-nav-grid {
        grid-template-columns: 1fr;
    }
    
    /* THE TABLE FIX: 
      Make all admin tables and the cart table scrollable horizontally 
      without breaking the whole page layout.
    */
    .admin-table-container,
    .cart-table-wrapper {
        overflow-x: auto;
    }
    
    /* Give table cells a minimum width so they don't get too squished */
    .admin-table td, .admin-table th,
    .cart-table td, .cart-table th {
        min-width: 120px;
    }
    
    /* Make cart summary stack cleanly */
    .cart-summary {
        flex-direction: column;
        align-items: stretch; /* Makes total and button full-width */
        text-align: center;
    }
    .checkout-btn {
        width: 100%;
        box-sizing: border-box; /* Include padding in width */
    }
	
}
