/*==============================================================
0. VARIABLES & GLOBAL STYLES
==============================================================*/
:root {
	--primary-font: 'Montserrat', 'Lato', 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	--secondary-font: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
	/* Main Color Scheme */
	--header-bg: #3a6ea5; /* Deeper, more soothing blue for header */
	--header-hover: #2c5985; /* Darker variant for hover states */
	--header-color: #ffffff; /* Keeping white text for readability */
	--body-bg: #fefefe; /* Updated to pure white background */
	--body-color: #333333; /* Slightly darker text for better contrast */

	/* Button Colors */
	--button-primary: var(--header-bg);
	--button-primary-hover: var(--header-hover);
	--accent-color: #6e8898; /* Muted blue-gray accent - comforting and less vibrant */
	--accent-hover: #5a7384; /* Darker variant for hover */
	--button-secondary: var(--accent-color);
	--button-secondary-hover: var(--accent-hover);

	/* Additional Elements */
	--text-muted: #5d6e7c; /* Softer muted text that works with the blue theme */
	--border-color: var(--accent-color);
	--timeline-gradient-start: var(--header-bg);
	--timeline-gradient-end: var(--accent-color);

	/* Additional variables */
	--drag-handle-color: #4f6277; /* Updated to match the theme */
	--timeline-accent: #a3c1e0; /* Lighter blue accent - gentle highlight */

	--modal-bg-overlay: rgba(19, 33, 50, 0.75); /* Darker, more soothing overlay */
	--modal-z-index: 20000;
	--modal-backdrop-z-index: 19999;

	/* Card styling variables */
	--card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	--card-border-radius: 8px;
	--card-border-color: rgba(143, 188, 143, 0.3);
	--card-spacing: 1rem;
}

:root[data-theme='ocean_depths'] {
	--primary-font: 'Montserrat', 'Lato', 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	--secondary-font: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
	/* Main Color Scheme */
	--header-bg: #3a6ea5; /* Deeper, more soothing blue for header */
	--header-hover: #2c5985; /* Darker variant for hover states */
	--header-color: #ffffff; /* Keeping white text for readability */
	--body-bg: #f0f4f8; /* Soft blue-tinted background */
	--body-color: #333333; /* Slightly darker text for better contrast */

	/* Button Colors */
	--button-primary: var(--header-bg);
	--button-primary-hover: var(--header-hover);
	--accent-color: #6e8898; /* Muted blue-gray accent - comforting and less vibrant */
	--accent-hover: #5a7384; /* Darker variant for hover */
	--button-secondary: var(--accent-color);
	--button-secondary-hover: var(--accent-hover);

	/* Additional Elements */
	--text-muted: #5d6e7c; /* Softer muted text that works with the blue theme */
	--border-color: var(--accent-color);
	--timeline-gradient-start: var(--header-bg);
	--timeline-gradient-end: var(--accent-color);

	/* Additional variables */
	--drag-handle-color: #4f6277; /* Updated to match the theme */
	--timeline-accent: #a3c1e0; /* Lighter blue accent - gentle highlight */

	--modal-bg-overlay: rgba(19, 33, 50, 0.75); /* Darker, more soothing overlay */
	--modal-z-index: 20000;
	--modal-backdrop-z-index: 19999;
}

:root[data-theme='serenity'] {
	--primary-font: 'Montserrat', 'Lato', 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	--secondary-font: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
	--header-bg: #87ceeb;
	--header-hover: #6ab0cd;
	--header-color: #ffffff;
	--body-bg: #f5f5f5;
	--body-color: #444444;
	--button-primary: var(--header-bg);
	--button-primary-hover: var(--header-hover);
	--accent-color: #8fbc8f;
	--accent-hover: #7ba97b;
	--button-secondary: var(--accent-color);
	--button-secondary-hover: var(--accent-hover);
	--text-muted: #707070;
	--border-color: var(--accent-color);
	--timeline-gradient-start: var(--header-bg);
	--timeline-gradient-end: var(--accent-color);

	/* Additional variables */
	--drag-handle-color: #666666;
	--timeline-accent: #ffd700;

	--modal-bg-overlay: rgba(0, 0, 0, 0.75);
	--modal-z-index: 20000;
	--modal-backdrop-z-index: 19999;
}

/* Elegance theme */
:root[data-theme='elegance'] {
	--header-bg: #000000;
	--header-hover: #535252;
	--header-color: #ffd700;
	--body-bg: #f5f5f5;
	--body-color: #444444;
	--accent-color: #d9bb18;
	--accent-hover: #dac346;
	--text-muted: #707070;
	--border-color: var(--accent-color);
	--timeline-gradient-start: var(--header-bg);
	--timeline-gradient-end: var(--accent-color);
	--button-primary: var(--header-bg);
	--button-primary-hover: var(--header-hover);
	--button-secondary: var(--accent-color);
	--button-secondary-hover: var(--accent-hover);

	/* Additional variables */
	--drag-handle-color: #666666;
	--timeline-accent: #ffd700;

	--modal-bg-overlay: rgba(0, 0, 0, 0.75);
	--modal-z-index: 20000;
	--modal-backdrop-z-index: 19999;
}

/*==============================================================
1. LAYOUT & RESPONSIVE STYLES
==============================================================*/
/* Global layout constraints */
body {
	font-family: var(--primary-font);
	background-color: var(--body-bg);
	color: var(--body-color);
	line-height: 1.6;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	width: 100%;
	padding: 0 1rem;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

/* Container adjustments */
.container {
	width: 100%;
	padding-right: 1rem;
	padding-left: 1rem;
	margin-right: auto;
	margin-left: auto;
}

/* Mobile-first responsive design */
@media (min-width: 576px) {
	.container {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	.container {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 1440px;
		padding-left: 2rem;
		padding-right: 2rem;
	}
	.container-fluid {
		max-width: 1440px;
		margin-left: auto;
		margin-right: auto;
		width: 100%;
		padding-left: 2rem;
		padding-right: 2rem;
	}

	body {
		padding: 0 2rem;
	}

	h2 {
		text-align: center;
		margin-bottom: 2rem;
	}

	.card-body {
		padding: 2rem;
	}

	.section-content {
		padding-left: 2rem;
	}
}

@media (min-width: 1200px) {
	.container {
		max-width: 1140px;
	}
}

@media (min-width: 1400px) {
	.container {
		max-width: 1320px;
	}
}

/* Navigation responsive styles */
.navbar-toggler {
	padding: 0.5rem;
	border: none;
	margin-left: auto;
}

.navbar-toggler:focus {
	box-shadow: none;
}

.navbar-collapse {
	transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
	.navbar-collapse {
		background-color: var(--header-bg);
		padding: 1rem;
		border-radius: 0.5rem;
		margin-top: 0.5rem;
	}

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

/* Image handling */
img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.card-img-top {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Timeline container adjustments */
.timeline-container {
	max-width: 100%;
	overflow-x: hidden;
	padding: 1rem;
}

@media (min-width: 992px) {
	.timeline-container {
		padding: 2rem;
	}
}

/* Modal adjustments */
/* Review and keep only customizations that do not conflict with MDBootstrap modal behavior */
.modal-dialog {
	max-width: 90%;
	margin: 1.75rem auto;
}

@media (min-width: 576px) {
	.modal-dialog {
		max-width: 500px;
	}
}

@media (min-width: 992px) {
	.modal-dialog {
		max-width: 800px;
	}
}

/*==============================================================
2. Theme preview swatches
==============================================================*/
.theme-swatch {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 5px;
	border-radius: 50%;
	vertical-align: middle;
}

/*==============================================================
3. CARD STYLES - Global card styling for consistency
==============================================================*/
/* Base card styles */
.card {
	border-radius: var(--card-border-radius);
	border: 1px solid var(--card-border-color);
	box-shadow: var(--card-shadow);
	margin-bottom: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Card body spacing */
.card-body {
	padding: 1rem;
}

.card-body.text-center {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

/* Card title and text spacing */
.card-title {
	margin-bottom: 0.5rem;
}

.card-text {
	margin-bottom: 0;
}

/* Feature card specific styles */
.feature-card {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}

.feature-card:hover {
	text-decoration: none;
	color: inherit;
}

.feature-card .card {
	height: 100%;
	margin: 0;
}

.feature-card:hover .card {
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Feature cards section container */
.feature-cards-section {
	padding: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.card-body {
		padding: 0.75rem;
	}
	
	.card-body.text-center {
		padding-top: 0.375rem;
		padding-bottom: 0.375rem;
	}
}

/*==============================================================
4. RESET & BOX-SIZING
==============================================================*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

html {
	height: 100%;
	-webkit-text-size-adjust: 100%;
}

/*==============================================================
5. TYPOGRAPHY & BASIC ELEMENTS
==============================================================*/
p {
	font-family: var(--primary-font);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
	font-family: var(--secondary-font);
	color: #555555;
}

a {
	text-decoration: none;
	color: var(--header-hover);
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--accent-color);
	text-decoration: none;
}

/* Accessible screen reader only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/*==============================================================
6. BUTTONS, FORMS, UPLOADS & ALERTS
==============================================================*/
/* Upload Container */
.upload-container {
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 2px dashed var(--accent-color);
	border-radius: 8px;
	text-align: center;
	transition: all 0.3s ease;
	background-color: rgba(143, 188, 143, 0.05);
}

.upload-container:hover,
.upload-container.dragover {
	border-color: var(--accent-hover);
	background-color: rgba(143, 188, 143, 0.1);
}

.upload-container input[type='file'] {
	display: block;
	width: 100%;
	margin: 1rem 0;
	cursor: pointer;
	font-size: 1rem;
	padding: 0.5rem;
	appearance: none;
}

.upload-help {
	margin: 0.75rem 0;
	padding: 0 1rem;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.upload-help ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.upload-help li {
	margin: 0.25rem 0;
	padding-left: 1.25rem;
	position: relative;
}

.upload-help li:before {
	content: '•';
	position: absolute;
	left: 0;
	color: var(--accent-color);
}

/* Buttons */
button[type='submit'],
.btn {
	display: inline-block;
	font-size: 1rem;
	text-align: center;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	appearance: none;
	border: none;
	padding: 0.5rem 1rem;
	font-weight: 500;
}

.btn-primary {
	background-color: var(--button-primary);
	color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
	background-color: var(--button-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
	background-color: var(--button-secondary);
	color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover:not(:disabled) {
	background-color: var(--button-secondary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline-secondary {
	background-color: transparent;
	color: var(--button-secondary);
	border: 1px solid var(--button-secondary);
}

.btn-outline-secondary:hover:not(:disabled) {
	background-color: var(--button-secondary);
	color: #fff;
	transform: translateY(-2px);
}

.btn-success {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}

.btn-success:hover {
	background-color: var(--accent-hover);
	border-color: var(--accent-hover);
}

.btn-warning {
	background-color: #f0d58c;
	border-color: #e6c167;
	color: #6b5a2b;
}

.btn-warning:hover {
	background-color: #e6c167;
	border-color: #d9b448;
	color: #6b5a2b;
}

/* Form Styling */
form.needs-validation {
	max-width: 500px;
	margin: 0 auto;
}

form .form-control {
	min-height: 44px;
	font-size: 1rem;
	border-color: #d1d1d1;
	border-radius: 6px;
	transition: all 0.3s ease;
}

form .form-control:focus {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 0.25rem rgba(143, 188, 143, 0.25);
}

form p.small.mb-3 {
	margin-top: 1rem;
	font-size: 0.875rem;
}

form button.btn {
	min-width: 120px;
	font-size: 1rem;
	padding: 0.6rem 1.2rem;
}

.form-select:focus {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 0.25rem rgba(143, 188, 143, 0.25);
}

/* Alerts */
.alert {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	border: none;
}

.alert-success {
	background-color: rgba(143, 188, 143, 0.2);
	color: #3c6e3c;
	border-left: 4px solid var(--accent-color);
}

.alert-danger {
	background-color: rgba(220, 53, 69, 0.1);
	color: #721c24;
	border-left: 4px solid #dc3545;
}

.alert-info {
	background-color: rgba(135, 206, 235, 0.2);
	color: #336b89;
	border-left: 4px solid var(--button-primary);
}

/* Status & Warning Messages */
.error-message,
.status-message {
	display: none;
	padding: 1rem;
	margin: 1rem 0;
	border-radius: 6px;
	text-align: center;
	font-weight: 600;
}

.error-message {
	background-color: rgba(220, 53, 69, 0.1);
	color: #721c24;
	border-left: 4px solid #dc3545;
}

.status-message {
	background-color: rgba(143, 188, 143, 0.2);
	color: #3c6e3c;
	border-left: 4px solid var(--accent-color);
}

#status {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	word-break: break-word;
	transition: all 0.3s ease;
}

#status.error {
	background-color: rgba(220, 53, 69, 0.1);
	color: #721c24;
	border-left: 4px solid #dc3545;
}

#status.success {
	background-color: rgba(143, 188, 143, 0.2);
	color: #3c6e3c;
	border-left: 4px solid var(--accent-color);
}

.warning-style {
	background-color: rgba(220, 53, 69, 0.1);
	color: #721c24;
	padding: 0.75rem 1rem;
	text-align: center;
	font-size: 1rem;
	border-radius: 6px;
	border-left: 4px solid #dc3545;
}

/*==============================================================
7. FEATURES & PRODUCTS
==============================================================*/
.features-section {
	padding: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.product-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid rgba(143, 188, 143, 0.2);
}

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

.product-card h3 {
	margin-bottom: 1rem;
	color: #555555;
}

.product-card .price {
	font-size: 1.25rem;
	font-weight: 600;
	color: #555555;
	margin: 1rem 0;
}

.purchase-button {
	width: 100%;
	padding: 0.75rem 1.5rem;
	background-color: var(--button-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.purchase-button:hover:not(:disabled) {
	background-color: var(--button-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.purchase-button:disabled {
	background-color: #d1d1d1;
	cursor: not-allowed;
}

/* Features Table */
.features-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	overflow: hidden;
}

.features-table th,
.features-table td {
	border: 1px solid #e5e5e5;
	padding: 12px;
	text-align: left;
}

.features-table th {
	background-color: var(--button-primary) !important;
	color: #fff;
	font-weight: 500;
}

.features-table tr:nth-child(even) {
	background-color: rgba(245, 245, 245, 0.6);
}

.features-table tr:nth-child(odd) {
	background-color: rgba(143, 188, 143, 0.05);
}

.features-table tr:hover {
	background-color: rgba(143, 188, 143, 0.1);
}

/*==============================================================
8. FOOTER & FIXED SOCIAL BAR
==============================================================*/
footer.fixed-social-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 999;
	background-color: var(--header-bg);
	padding: 0.5rem 0;
	text-align: center;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

footer.fixed-social-bar .container {
	padding: 0;
	margin: 0 auto;
	text-align: center;
}

footer.fixed-social-bar .btn-link {
	color: rgba(255, 255, 255, 0.8) !important;
	transition: all 0.3s ease;
}

footer.fixed-social-bar .btn-link:hover {
	color: #ffffff !important;
	transform: translateY(-3px);
}

/*==============================================================
9. PET-RELATED SECTIONS
==============================================================*/
.pet-highlights {
	padding: 1.5rem;
	text-align: center;
	margin: 0 auto;
	max-width: 800px;
}

.pet-image {
	width: min(25%, 300px);
	max-width: 90%;
	max-height: 800px;
	display: block;
	margin: 0 auto 1rem;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border: 3px solid rgba(143, 188, 143, 0.3);
	transition: all 0.3s ease;
}

.pet-image.clickable {
	cursor: pointer;
}

.pet-image.clickable:hover {
	transform: scale(1.02);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pet-image-wrapper {
	display: flex;
	justify-content: center;
	margin: 1rem auto;
}

.pet-name {
	font-size: 1.5rem;
	margin: 0.5rem 0;
	color: #555555;
}

.pet-details,
.pet-visibility {
	margin-bottom: 0.5rem;
	text-align: center;
	color: var(--body-color);
}

/* Additional customizations */
.pet-details {
	color: var(--text-muted);
	font-style: normal;
	max-width: 700px;
	margin: 1rem auto;
	line-height: 1.2;
}

.pet-visibility {
	font-size: 0.95rem;
	color: var(--text-muted);
	text-align: center;
}

.pet-info {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.pet-info h2#petName {
	text-align: center;
	font-size: 1.8rem;
	margin-bottom: 1rem;
	color: #555555;
}

.pet-image-container img {
	max-width: min(70%, 450px) !important;
	width: auto !important;
	margin: 0 auto !important;
	border: 3px solid rgba(143, 188, 143, 0.5);
	border-radius: 12px;
	background-color: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.pet-image-container img:hover {
	transform: scale(1.02);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.candles-container {
	text-align: center;
	margin-top: 1.5rem;
	padding: 1rem;
	border-radius: 8px;
}

/* Load More Button */
.load-more-container {
	text-align: center;
	margin: 2rem 0;
}

#load-more-btn {
	background-color: var(--button-primary);
	color: #fff;
	border: none;
	font-size: 1rem;
	padding: 0.75rem 1.5rem;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#load-more-btn:hover:not(:disabled) {
	background-color: var(--button-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Gallery Layout */
.gallery-section {
	text-align: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem;
}

.gallery {
	display: grid;
	grid-template-columns: 1fr;
	justify-items: center;
	gap: 1.5rem;
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

.gallery-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 300px;
	margin: 0 auto 1.5rem;
	transition: all 0.3s ease;
}

.gallery-item:hover {
	transform: translateY(-5px);
}

/* Additional gallery item rules (from map styles) */
.gallery-item {
	width: 300px;
	height: 300px;
	position: relative;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 8px;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
	border-color: var(--accent-color);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-item.selected {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.3);
}

.blurb-box {
	background-color: #ffffff;
	margin: 0.75rem auto 0;
	padding: 1rem;
	border-radius: 8px;
	font-size: 0.9rem;
	color: var(--body-color);
	line-height: 1.6;
	text-align: justify;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(143, 188, 143, 0.2);
}

/* Pet Gallery Grid */
.pet-gallery {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	grid-auto-flow: row;
	gap: 1.5rem;
	justify-items: center;
	margin-top: 2rem;
	margin-bottom: 3rem;
}

.pet-gallery .pet-thumb {
	max-width: 400px;
	width: 100%;
	min-width: 180px;
	margin: 0 0.5rem;
	position: relative;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.pet-gallery .pet-thumb:hover {
	transform: scale(1.05);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.pet-gallery .pet-thumb img {
	width: 100%;
	max-width: 400px;
	height: auto;
	object-fit: cover;
	border-radius: 8px;
}

.pet-gallery .pet-thumb::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.15));
	pointer-events: none;
	border-radius: 8px;
}

/*==============================================================
10. MODAL COMPONENTS
==============================================================*/
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--modal-bg-overlay);
	z-index: var(--modal-z-index);
	padding: 1rem;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	backdrop-filter: blur(3px);
}

.modal.active {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: 5vh;
}

.modal-content {
	position: relative;
	background-color: #ffffff;
	border-radius: 12px;
	padding: 1rem;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
	max-height: 90vh;
	width: 100%;
	max-width: min(600px, calc(100vw - 2rem));
	overflow-y: auto;
	overflow-x: hidden;
	overflow-wrap: break-word;
	margin: 0 auto;
	border: 1px solid rgba(143, 188, 143, 0.3);
	display: flex;
	flex-direction: column;
}

.modal-header {
	padding: 1rem 0.75rem;
	border-bottom: 1px solid rgba(143, 188, 143, 0.2);
	margin-bottom: 1rem;
}

.modal-title {
	font-size: 1.4rem;
	margin-bottom: 0.25rem;
	color: #555555;
	font-family: var(--primary-font) !important;
	font-weight: 600;
}

.modal-body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
}

.modal-body.image-modal-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

/* Custom modal close X button for full color control */
.modal-close-x {
	color: #222 !important;
	background: rgba(255,255,255,0.95) !important;
	z-index: 1050 !important;
	position: absolute;
	top: 15px;
	right: 15px;
	border: none;
	font-size: 2rem;
	cursor: pointer;
	line-height: 1;
	border-radius: 50%;
	transition: all 0.3s ease;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.modal-close-x:hover, .modal-close-x:focus-visible {
	background: #f5f5f5 !important;
	color: #111 !important;
	outline: 2px solid #6495ed;
	outline-offset: 2px;
}
.modal-close-x span {
	font-size: 2rem;
	font-weight: bold;
	line-height: 1;
	display: block;
	width: 100%;
	text-align: center;
}

.modal-footer {
	padding: 1rem 0.75rem;
	border-top: 1px solid rgba(143, 188, 143, 0.2);
	margin-top: 1rem;
	text-align: right;
}

.modal-image {
	max-width: 100%;
	max-height: 70vh;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Modal arrow button improvements */
.modal .arrow-btn, .modal .btn-floating {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.92);
	color: #3a6ea5;
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: bold;
	cursor: pointer;
	z-index: 1020;
	transition: all 0.2s cubic-bezier(.4,0,.2,1);
	box-shadow: 0 2px 8px rgba(0,0,0,0.13);
	outline: none;
}
.modal .arrow-btn span, .modal .btn-floating i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2rem;
	line-height: 1;
}
.modal .arrow-btn:focus-visible, .modal .btn-floating:focus-visible {
	outline: 3px solid #6495ed;
	outline-offset: 2px;
	background: #e3f0ff;
}
.modal .arrow-btn:hover, .modal .btn-floating:hover {
	background: #e3f0ff;
	color: #2c5985;
	transform: translateY(-50%) scale(1.08);
}
.modal .left-arrow, .modal .btn-floating.start-0 {
	left: 18px;
}
.modal .right-arrow, .modal .btn-floating.end-0 {
	right: 18px;
}
@media (max-width: 600px) {
	.modal .arrow-btn, .modal .btn-floating {
		width: 36px;
		height: 36px;
		font-size: 1.5rem;
	}
	.modal .arrow-btn span, .modal .btn-floating i {
		font-size: 1.5rem;
	}
	.modal .left-arrow, .modal .btn-floating.start-0 {
		left: 6px;
	}
	.modal .right-arrow, .modal .btn-floating.end-0 {
		right: 6px;
	}
}

.modal-info-container {
	width: 100%;
	padding-top: 1.5rem;
	margin-top: 1.5rem;
	border-top: 1px solid rgba(143, 188, 143, 0.2);
	text-align: left;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 8px;
	padding: 1rem;
}

.modal #scrollTopBtn {
	display: none !important;
}

.image-preview {
	display: block;
	max-width: 300px;
	max-height: 300px;
	object-fit: contain;
	margin: 1rem auto;
	border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	border: 2px solid rgba(143, 188, 143, 0.3);
}

/*==============================================================
11. WIZARD FORM COMPONENTS
==============================================================*/
.wizard-form {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.wizard-form label {
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #555555;
}

.wizard-form input[type='text'],
.wizard-form textarea,
.wizard-form select {
	margin-bottom: 1.25rem;
	padding: 10px 12px;
	font-size: 1rem;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d1d1d1;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.wizard-form input[type='text']:focus,
.wizard-form textarea:focus,
.wizard-form select:focus {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.15);
	outline: none;
}

.wizard-form textarea {
	resize: vertical;
	min-height: 100px;
}

.wizard-form input[type='file'] {
	margin-bottom: 1.25rem;
	padding: 8px;
	border: 1px dashed #d1d1d1;
	border-radius: 6px;
	background-color: rgba(143, 188, 143, 0.05);
}

.wizard-form input[type='file']:hover {
	background-color: rgba(143, 188, 143, 0.1);
	border-color: var(--accent-color);
}

.wizard-radio-group {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.25rem;
}

.wizard-radio-group label {
	font-weight: normal;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.wizard-radio-group input[type='radio'] {
	margin-right: 6px;
}

/*==============================================================
12. TIMELINE & MEMORIES COMPONENTS
==============================================================*/
.section-memories,
.section-timeline {
	border: 1px solid rgba(143, 188, 143, 0.3);
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 2.5rem;
	background-color: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Add New Timeline Entry button styling */
#addTimelineEntryBtn {
	display: inline-block;
	margin: 1.5rem auto;
	padding: 0.75rem 1.5rem;
	background-color: var(--button-primary);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#addTimelineEntryBtn:hover {
	background-color: var(--button-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#addTimelineEntryBtn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ensure button container is properly centered */
.section-timeline .text-center {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-top: 1rem;
}

.timeline-container {
	position: relative;
	margin: 1.5rem auto;
	width: 100%;
	max-width: 1200px;
	min-height: 200px;
	background: rgba(255, 255, 255, 0.9);
	padding: 1rem;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	overflow-x: hidden;
}

.timeline-container .bar {
	display: none; /* Remove the vertical timeline bar */
}

.timeline-container .horizontal-line {
	display: none; /* Remove the horizontal lines */
}

/* --- Timeline Grid Layout --- */
.timeline-grid {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-template-areas:
    'iconCol title actions'
    'iconCol image actions'
    'iconCol content actions';
  align-items: center;
  gap: 0.5rem 0.75rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1rem 0.5rem 1rem 0.5rem;
  margin-bottom: 1.25rem;
}
.timeline-icon-col {
  grid-area: iconCol;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  position: relative;
}
.entry-icon {
  margin-bottom: 0.5rem;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.drag-handle {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  font-size: 1.5rem;
  color: #888;
  z-index: 1;
}
.drag-handle:active {
  cursor: grabbing;
}
.entry-title {
  grid-area: title;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  margin-top: 0.25rem;
}
.entry-image {
  grid-area: image;
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry-image img {
  max-width: 100px;
  max-height: 100px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.entry-content {
  grid-area: content;
  margin-top: 0.5rem;
  font-size: 0.98rem;
  color: #444;
}
.entry-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
@media (max-width: 600px) {
  .timeline-grid {
    grid-template-columns: 36px 1fr auto;
    grid-template-areas:
      'iconCol title actions'
      'iconCol image actions'
      'iconCol content actions';
    padding: 0.5rem 0.25rem 0.5rem 0.25rem;
  }
  .entry-image img {
    max-width: 70px;
    max-height: 70px;
  }
  .entry-title {
    font-size: 1rem;
  }
}

.timeline-container .timeline-entry:active {
	cursor: grabbing;
}

.timeline-container .timeline-entry:hover .drag-handle {
	opacity: 1;
	color: var(--button-primary);
	transform: scale(1.1);
}

.timeline-container .entry-wrapper {
	position: relative;
	margin-bottom: 1rem;
	transform: translateZ(0);
    font-size: 1.5rem;
}

.feature-card .card-text {
    color: var(--body-color);
    font-size: 1rem;
    line-height: 1.5;
}

.feature-cards-section {
    padding-top: 1.5rem !important; /* Reduced from 5rem (py-5) */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-cards-section {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }

    .feature-card .card-img-top {
        height: 180px;
    }

    .feature-card .card-body {
        padding: 1.25rem;
    }

    .feature-card .card-title {
        font-size: 1.25rem;
    }

    .feature-card .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .feature-card .card-img-top {
        height: 160px;
    }

    .feature-card .card-body {
        padding: 1rem;
    }
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--body-bg);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 2rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-content .about-header {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--body-color);
}

.hero-content .about-paragraph {
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
}

.hero-content .first_letter {
    font-size: 1.5em;
    font-weight: bold;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content .about-header {
        font-size: 2rem;
    }
    
    .hero-content .about-paragraph {
        font-size: 1rem;
    }

    .hero-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 250px;
    }
}

/* Feature Cards */
.feature-card .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(143, 188, 143, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card .card-body {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

/* Floating Bubble */
.floating-bubble {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.floating-bubble .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--body-color);
    transition: all 0.2s ease;
}

.floating-bubble .btn:hover {
    background: rgba(143, 188, 143, 0.1);
    color: var(--accent-color);
}

.floating-bubble .btn i {
    width: 16px;
    text-align: center;
}

/* Timeline Styles */
.section-timeline h3.about-header {
    color: var(--accent-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.section-timeline h3.about-header span {
    display: block;
}

.timeline-container .timeline-entry {
    position: relative;
    margin: 1rem 0;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: auto 120px minmax(0, 1fr) auto;
    grid-template-areas: 
        'icon image content actions'
        'icon image content actions';
    align-items: start;
    gap: 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(143, 188, 143, 0.15);
    user-select: none;
    transition: all 0.3s ease;
    width: 100%;
}

.timeline-container .entry-content {
    grid-area: content;
    padding-right: 1rem;
}

.timeline-container .entry-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.timeline-container .entry-text {
    font-size: 0.9rem;
    color: var(--body-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.timeline-container .timeline-date {
    font-size: 0.85rem;
    color: #666;
}

.timeline-container .entry-actions {
    grid-area: actions;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.timeline-container .entry-image {
    grid-area: image;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

.timeline-container .entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating options bubble */
.floating-options-bubble {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: white;
}

.floating-options-bubble .option {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.floating-options-bubble .option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.floating-options-bubble .option i {
    width: 16px;
    text-align: center;
}

.floating-options-bubble .option small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Ellipsis button and dropdown */
.ellipsis-floating-wrapper {
    position: fixed;
    top: 55px;
    right: 15px;
    z-index: 1001;
}

.ellipsis-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--button-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.ellipsis-btn:hover {
    background-color: var(--button-primary-hover);
    transform: translateY(-3px);
}

.ellipsis-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    color: white;
}

.ellipsis-dropdown.show {
    display: flex;
}

.ellipsis-option {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ellipsis-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ellipsis-option i {
    width: 16px;
    text-align: center;
}

.ellipsis-option small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Icon Grid Styles */
.icon-grid-container {
    margin-bottom: 1rem;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.icon-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-grid-item:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.icon-grid-item.selected {
    background-color: #e9ecef;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.icon-grid-item i {
    font-size: 1.25rem;
}

.icon-grid-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.icon-grid-pagination {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Image Options Styles */
#imageOptions .btn-outline-primary {
    min-width: 150px;
}

#imageOptions .btn-outline-primary.active {
    background-color: #0d6efd;
    color: white;
}

/* Image Gallery Grid */
.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.image-gallery-grid .gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.image-gallery-grid .gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.image-gallery-grid .gallery-item.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(143, 188, 143, 0.3);
}

.image-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .image-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
}

/* Scroll to top button */
#scrollTopBtn {
    position: fixed;
    top: 55px;
    right: 15px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--button-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    padding: 0;
}

#scrollTopBtn:hover {
    background-color: var(--button-primary-hover);
    transform: translateY(-3px);
}

#scrollTopBtn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Desktop layout adjustments */
@media (min-width: 992px) {
    .container {
        max-width: 1440px;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    h2 {
        text-align: center;
        margin-bottom: 2rem;
    }

    .card-body {
        padding: 2rem;
    }

    .section-content {
        padding-left: 2rem;
    }
}

/* Mobile navigation fixes */
.navbar-toggler {
    padding: 0.5rem;
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-collapse {
    transition: all 0.3s ease;
}

/* Image handling */
img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Timeline container adjustments */
.timeline-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Modal adjustments */
/* Review and keep only customizations that do not conflict with MDBootstrap modal behavior */
.modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

@media (min-width: 992px) {
    .modal-dialog {
        max-width: 800px;
    }
}

/* Footer adjustments */
footer {
    margin-top: auto;
}

/* Form adjustments */
.form-outline {
    margin-bottom: 1.5rem;
}

/* Card adjustments */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button adjustments */
.btn {
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-floating {
    border-radius: 50%;
}

/* Alert adjustments */
.alert {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Timeline adjustments */
.timeline-entries {
    padding: 1rem;
}

@media (min-width: 992px) {
    .timeline-entries {
        padding: 2rem;
    }
}

/* Gallery adjustments */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 2rem;
    }
}

/* Loading spinner adjustments */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Accessibility improvements */
:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        max-width: none;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }
}

/* Memory card styles */
.memory-card {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.memory-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.memory-card .card-body {
    padding: var(--card-spacing);
}

.memory-card .candle-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-style: italic;
}

/* Timeline styles */
.timeline-event {
    position: relative;
    padding-left: 40px;
    margin-bottom: 1rem;
}

.timeline-event .drag-handle {
    position: absolute;
    left: 0;
    top: 20%;
    cursor: move;
    z-index: 1;
}

.timeline-event .entry-icon {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(20%);
    z-index: 2;
}

.timeline-event .event-card {
    margin-left: 20px;
    position: relative;
}

/* Gallery styles */
.pet-gallery {
    display: none;
}

.pet-gallery.active {
    display: block;
}

/* Navbar & Dropdowns (custom overrides for MDB) */
.navbar,
.navbar-expand-md {
	background-color: var(--header-bg) !important;
	padding-top: 0.25rem !important;
	padding-bottom: 0.25rem !important;
	position: relative;
	width: 100vw;
	left: 0;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	box-sizing: border-box;
	z-index: 1000;
}

.navbar .nav-link {
	font-family: var(--primary-font) !important;
	color: var(--header-color) !important;
	transition: background-color 0.3s ease;
	text-decoration: none !important;
	padding: 0.4rem !important;
	position: relative;
	display: inline-block;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link:active {
	background-color: var(--header-hover) !important;
	color: #fff !important;
}

.navbar-nav .nav-item .nav-link[aria-current='page'] {
	font-weight: 600;
	color: #ffffff !important;
	text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

.navbar-brand {
	display: flex;
	align-items: center;
	margin-right: auto !important;
}

.navbar-brand img {
	margin-right: 0.5rem;
	width: auto;
	height: 50px !important;
	max-height: 50px !important;
}

.navbar-brand span {
	position: static;
	margin-left: 1rem;
	font-size: 1.1rem !important;
	font-family: var(--primary-font) !important;
}

.navbar-toggler {
	margin-left: auto !important;
}

.dropdown-menu {
	margin-top: 0.25rem !important;
	background-color: var(--header-bg) !important;
	border: 1px solid var(--header-hover) !important;
}

.dropdown-menu .dropdown-item {
	color: var(--header-color) !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
	background-color: var(--header-hover) !important;
	color: #ffffff !important;
}

/* .container-fluid for nav content: max-width and side padding */
@media (min-width: 992px) {
	.container-fluid {
		max-width: 1440px;
		margin-left: auto;
		margin-right: auto;
		width: 100%;
		padding-left: 2rem;
		padding-right: 2rem;
	}
}
@media (max-width: 991.98px) {
	.container-fluid {
		width: 100%;
		padding-left: 1rem;
		padding-right: 1rem;
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
	}
}

#pageSpinner {
  display: none !important;
}

.gallery-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.gallery-nav-btn {
  min-width: 40px;
  min-height: 40px;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

@media (max-width: 600px) {
  .pet-gallery .pet-thumb {
    max-width: 90vw;
    min-width: 120px;
  }
  .gallery-nav-btn {
    min-width: 32px;
    min-height: 32px;
    font-size: 1.1rem;
  }
}

.candles-container {
  position: static !important;
  margin: 1rem auto 0 auto !important;
  text-align: center;
  width: 100%;
  padding: 1rem 0 0.5rem 0;
  background: none;
  border: none;
}

/* Timeline entry icon and drag handle alignment */
.timeline-container .timeline-entry {
  display: flex;
  align-items: flex-start;
  position: relative;
  gap: 0.5rem;
}
.timeline-container .entry-icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  top: 20%;
  margin-right: 0.25rem;
  min-width: 32px;
}
.timeline-container .drag-handle {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 32px;
  margin-right: 0.25rem;
}
@media (max-width: 600px) {
  .timeline-container .timeline-entry {
    gap: 0.2rem;
  }
  .timeline-container .entry-icon, .timeline-container .drag-handle {
    min-width: 24px;
  }
}

/* --- Pet Gallery Mobile Accordion --- */
@media (max-width: 600px) {
  .gallery-container {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
  }
  .pet-gallery {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.5rem 0;
  }
  .pet-gallery .pet-thumb {
    flex: 0 0 45vw;
    max-width: 45vw;
    min-width: 120px;
    margin: 0 0.25rem;
  }
}

/* --- Timeline Entry Layout --- */
.timeline-container .timeline-entry {
  display: grid;
  grid-template-columns: 40px 1fr 60px;
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "icon image actions"
    ". title actions"
    ". content actions";
  align-items: start;
  gap: 0.5rem 1rem;
}
.timeline-container .entry-icon {
  grid-area: icon;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  top: 20%;
}
.timeline-container .drag-handle {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-top: 1.5rem;
}
.timeline-container .entry-title {
  grid-area: title;
  text-align: center;
  margin: 0.25rem 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--accent-color);
}
.timeline-container .entry-image {
  grid-area: image;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}
.timeline-container .entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.timeline-container .entry-content {
  grid-area: content;
  margin-top: 0.5rem;
}
.timeline-container .entry-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.5rem;
}
.timeline-container .entry-actions .edit-entry {
  order: 1;
}
.timeline-container .entry-actions .delete-btn {
  order: 2;
}
@media (max-width: 600px) {
  .timeline-container .timeline-entry {
    grid-template-columns: 32px 1fr 40px;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "icon image actions"
      ". title actions"
      ". content actions";
    gap: 0.25rem 0.5rem;
  }
  .timeline-container .entry-image {
    width: 100px;
    height: 100px;
    min-width: 80px;
    min-height: 80px;
  }
  .timeline-container .entry-title {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .modal .arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
  .modal .arrow-btn span {
    font-size: 1.5rem;
  }
  .modal .left-arrow {
    left: 6px;
  }
  .modal .right-arrow {
    right: 6px;
  }
}

/* Ensure timeline entry content is left-aligned and spaced below the image */
.entry-content {
  text-align: left;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  word-break: break-word;
}

/* Make modal form inputs lighter than modal background for visibility */
.memory-input, .timeline-input {
  background-color: #f8f9fa !important; /* Lighter than default modal bg */
  border: 1px solid #e0e0e0;
  color: #333;
}

/* Ensure .form-label floats above input when focused or filled (MDB style) */
.form-outline .form-label {
  top: 0.65rem;
  left: 0.75rem;
  pointer-events: none;
  transition: 0.2s ease all;
  background: transparent;
  z-index: 2;
}
.form-outline .form-control:focus ~ .form-label,
.form-outline .form-control:not(:placeholder-shown) ~ .form-label,
.form-outline .form-control:valid ~ .form-label {
  top: -0.8rem;
  left: 0.65rem;
  font-size: 0.85em;
  color: #3b71ca;
  background: #fff;
  padding: 0 0.25em;
  z-index: 3;
}

/* Remove overlay for select and textarea as well */
.form-outline .form-select:focus ~ .form-label,
.form-outline .form-select:not([value=""]) ~ .form-label {
  top: -0.8rem;
  left: 0.65rem;
  font-size: 0.85em;
  color: #3b71ca;
  background: #fff;
  padding: 0 0.25em;
  z-index: 3;
}

.form-outline textarea.form-control:focus ~ .form-label,
.form-outline textarea.form-control:not(:placeholder-shown) ~ .form-label,
.form-outline textarea.form-control:valid ~ .form-label {
  top: -0.8rem;
  left: 0.65rem;
  font-size: 0.85em;
  color: #3b71ca;
  background: #fff;
  padding: 0 0.25em;
  z-index: 3;
}

@media (max-width: 768px) {
  /* Remove this block to prevent overriding the main.container padding-bottom */
  /* main, body, .container {
    padding-bottom: 40px !important;
  } */
}
.faq-hero-section {
  margin-bottom: 0.2rem !important;
  padding-bottom: 0.2rem !important;
}
.faq-hero-section .lead {
  margin-bottom: 0.1rem !important;
}
.container.mb-5 {
  margin-bottom: 0.5rem !important;
  padding-bottom: 0.2rem !important;
}
#faqAccordion .accordion-button {
  font-size: 0.7em;
}
#faqAccordion .accordion-body {
  font-size: 0.9em;
}

main.container {
  padding-bottom: 0;
}

#contactForm {
  margin-bottom: 66px; /* Footer height (56px) + 10px gap */
}

