/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Colors */
    --warm-yellow: #FDD65B;
    --soft-orange: #F7A13B;
    --white: #FFFFFF;
    --maroon: #7A1C1C;
    --light-color: #fef9f0;
    --dark-color: #333333;
    
    /* Text Colors */
    --text-color: #333;
    --text-light: #666;
    
    /* UI Colors */
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing & Effects */
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Background */
    --bg-primary: #FFFFFF;
    --bg-secondary: #fef9f0;
    --bg-card: #FFFFFF;
    --hero-gradient-1: rgba(247, 161, 59, 0.8);
    --hero-gradient-2: rgba(247, 161, 59, 0.9);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --white: #1a1a1a;
    --light-color: #2d2d2d;
    --dark-color: #e0e0e0;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --border-color: #404040;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-card: #252525;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --hero-gradient-1: rgba(122, 28, 28, 0.85);
    --hero-gradient-2: rgba(90, 20, 20, 0.95);
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/*  TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--maroon);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--soft-orange);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--soft-orange);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #e6912a;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(247, 161, 59, 0.3);
}

.btn-secondary {
    background-color: var(--warm-yellow);
    color: var(--dark-color);
}

[data-theme="dark"] .btn-secondary {
    color: #333333;
}

.btn-secondary:hover {
    background-color: #f4c847;
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(253, 214, 91, 0.3);
}

[data-theme="dark"] .btn-secondary:hover {
    color: #333333;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--soft-orange);
    color: var(--soft-orange);
}

.btn-outline:hover {
    background-color: var(--soft-orange);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ========== STATIC STATUS BUTTONS ========== */
/* Static status buttons - orange, no hover */
.status-static {
    cursor: default !important;
    pointer-events: none !important;
    user-select: none !important;
    opacity: 0.9 !important;
}

/* Remove ALL hover effects for static status buttons */
.status-static:hover,
.status-static.btn-primary:hover,
.status-static.btn-secondary:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: var(--soft-orange) !important;
    color: #FFFFFF !important;
}

/* HEADER & NAVIGATION */
header {
    background-color: var(--bg-card);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--maroon);
}

/* Navigation Styles */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 12px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--soft-orange);
    background-color: rgba(247, 161, 59, 0.1);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
}

.dark-mode-toggle:hover {
    background-color: rgba(247, 161, 59, 0.1);
    border-color: var(--soft-orange);
}

.dark-mode-toggle i {
    font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--maroon);
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    color: var(--soft-orange);
}

/* RESPONSIVE NAVIGATION */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    nav.show {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        margin-bottom: 30px;
    }
    
    nav ul li {
        margin: 0 0 15px 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 15px;
        border-radius: var(--border-radius);
        font-size: 1.1rem;
    }
    
    .dark-mode-toggle {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
        padding: 12px;
        font-size: 1rem;
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .filter-options {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 1rem;
    }
    
    .filter-btn {
        flex-shrink: 0;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .cats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        justify-items: center;
        gap: 20px;
    }
    
    .cat-info h3 {
        font-size: 1.3rem;
    }
    
    .cat-location {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.5rem;
    background-color: rgba(247, 161, 59, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(247, 161, 59, 0.2);
    }

    .cat-location i {
        color: var(--soft-orange);
        font-size: 1.1rem;
    }
}

/* HERO SECTION */
.hero {
    background: url('assets/hero/compawnion.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    padding: 100px 0;
    text-align: center;
    position: relative;
    min-height: 100vh; /* Ensures it covers full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ensure the image covers the entire section */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2)); /* Subtle overlay for better text readability */
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: #FFFFFF;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Make buttons more prominent */
.hero-buttons .btn {
    padding: 12px 24px; /* Original padding */
    font-size: 1rem; /* Original font size */
    font-weight: 600;
    border-radius: var(--border-radius); /* USING THE ORIGINAL BORDER RADIUS VARIABLE */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-primary {
    background-color: var(--soft-orange);
    border: none; /* Original has no border */
    color: #FFFFFF;
}

.hero-buttons .btn-primary:hover {
    background-color: #e6912a;
    color: #FFFFFF;
    transform: translateY(-2px); /* Original hover effect */
    box-shadow: 0 6px 12px rgba(247, 161, 59, 0.3); /* Original shadow */
}

.hero-buttons .btn-secondary {
    background-color: var(--warm-yellow);
    border: none; /* Original has no border */
    color: var(--dark-color);
}

[data-theme="dark"] .hero-buttons .btn-secondary {
    color: #333333;
}

.hero-buttons .btn-secondary:hover {
    background-color: #f4c847;
    color: var(--dark-color);
    transform: translateY(-2px); /* Original hover effect */
    box-shadow: 0 6px 12px rgba(253, 214, 91, 0.3); /* Original shadow */
}

[data-theme="dark"] .hero-buttons .btn-secondary:hover {
    color: #333333;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero {
        padding: 80px 0;
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
        max-width: 700px;
    }
    
    .hero-buttons .btn {
        padding: 12px 24px; /* Keep original padding */
        font-size: 1rem; /* Keep original font size */
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 10px;
        border-radius: var(--border-radius); /* Ensure radius is kept */
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 50px 0;
        min-height: 60vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 24px; /* Keep original padding */
        font-size: 0.95rem;
        border-radius: var(--border-radius); /* Ensure radius is kept */
    }
}

/* Fix for browsers that don't support min-height properly */
@supports not (min-height: 100vh) {
    .hero {
        height: 100%;
    }
}

/* Optional: Add smooth fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1, .hero p, .hero-buttons {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero h1 {
    animation-delay: 0.2s;
}

.hero p {
    animation-delay: 0.4s;
}

.hero-buttons {
    animation-delay: 0.6s;
}

/* PAGE HEADER - FIXED FOR ALL PAGES */
.page-header {
    background: url('');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    padding: 100px 0;
    text-align: center;
    position: relative;
    min-height: 60vh; /* Adjusted for page headers */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ensure the image covers the entire section */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-header h1 {
    color: #FFFFFF;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    line-height: 1.6;
    width: 100%;
    text-align: center;
}

/* Responsive adjustments for page headers */
@media (max-width: 992px) {
    .page-header {
        padding: 80px 0;
        min-height: 50vh;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
        min-height: 40vh;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 50px 0;
        min-height: 35vh;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 15px;
    }
}

/* PAGE-SPECIFIC BACKGROUNDS */
/* Our Cats Page */
.our-cats-page .page-header {
    background: url('assets/hero/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Volunteer Page */
.volunteer-page .page-header {
    background: url('assets/hero/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Donate Page */
.donate-page .page-header {
    background: url('assets/hero/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Blog Page */
.blog-page .page-header {
    background: url('assets/hero/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* About Us Page */
.about-page .page-header {
    background: url('assets/hero/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* DARK MODE VERSIONS */
[data-theme="dark"] .page-header {
    background: url('') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

[data-theme="dark"].our-cats-page .page-header,
[data-theme="dark"] .our-cats-page .page-header {
    background: url('assets/hero/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

[data-theme="dark"].volunteer-page .page-header,
[data-theme="dark"] .volunteer-page .page-header {
    background: url('assets/hero/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

[data-theme="dark"].donate-page .page-header,
[data-theme="dark"] .donate-page .page-header {
    background: url('assets/hero/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

[data-theme="dark"].blog-page .page-header,
[data-theme="dark"] .blog-page .page-header {
    background: url('assets/hero/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

[data-theme="dark"].about-page .page-header,
[data-theme="dark"] .about-page .page-header {
    background: url('assets/hero/bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* GENERAL SECTIONS */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--bg-secondary);
}

.mission-section {
    text-align: center;
}

.mission-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

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

/*  CAT CARDS & PROFILES */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.cat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.cat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .cat-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.cat-image {
    height: 250px;
    overflow: hidden;
}

.cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cat-card:hover .cat-image img {
    transform: scale(1.1);
}

.cat-card h3 {
    padding: 20px 20px 10px;
    margin-bottom: 0;
    color: var(--maroon);
}

.cat-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

.cat-card .btn {
    margin: 0 20px 20px;
}

/* Cat Profile (Detailed) */
.cat-profile {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

/* Update the cat-location styling */
.cat-location {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.5rem;
    background-color: rgba(247, 161, 59, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(247, 161, 59, 0.2);
}

.cat-location i {
    color: var(--soft-orange);
    font-size: 1.1rem;
}

/* Update location tag styling */
.location-tag {
    background-color: var(--soft-orange);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(247, 161, 59, 0.3);
    margin-left: 0.3rem;
}

/* Filter Options Styling */
.filter-options {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--soft-orange);
    background-color: rgba(247, 161, 59, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--soft-orange);
    color: white;
    border-color: var(--soft-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(247, 161, 59, 0.3);
}

/* No Cats Message */
.no-events-message {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
    margin: 2rem 0;
    display: none;
}

.no-events-message i {
    font-size: 3rem;
    color: var(--soft-orange);
    margin-bottom: 1rem;
}

.no-events-message h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.no-events-message p {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
}

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

[data-theme="dark"] .cat-profile:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.cat-image-placeholder {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.cat-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-profile:hover .cat-image-placeholder img {
    transform: scale(1.05);
}

.cat-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cat-info h3 {
    color: var(--maroon);
    margin-bottom: 8px;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.2;
}

.cat-info p {
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Update cat-age styling to be less prominent */
.cat-age {
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.cat-personality, .cat-health {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Cat Story Toggle */
.cat-story {
    margin: 15px 0;
}

.story-toggle-btn {
    background: var(--warm-yellow);
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    color: #333333;
    transition: var(--transition);
    width: 100%;
    text-align: left;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.story-toggle-btn:hover {
    background-color: #f4c847;
}

.story-toggle-btn i {
    transition: transform 0.3s ease;
}

.story-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    margin-top: 0;
    padding: 0 10px;
    background-color: rgba(253, 214, 91, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
}

.story-content.active {
    max-height: 500px;
    padding: 15px 10px;
    margin-top: 10px;
}

/* Cat Actions */
.cat-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cat-actions .btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
}

/* FILTER & CATEGORY BUTTONS */
.filter-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-color);
}

.filter-btn.active, 
.filter-btn:hover {
    background-color: var(--soft-orange);
    color: #FFFFFF;
    border-color: var(--soft-orange);
    transform: translateY(-2px);
}

.blog-categories {
    background-color: transparent !important;
    padding: 0 !important;
    margin-top: 70px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 0%;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-color);
}

.category-btn.active, 
.category-btn:hover {
    background-color: var(--soft-orange);
    color: #FFFFFF;
    border-color: var(--soft-orange);
    transform: translateY(-2px);
}

/* Remove the background from the entire section */
.blog-categories {
    background-color: transparent !important;
    padding: 0 !important;
}

/* Ensure the container doesn't add padding */
.blog-categories .container {
    padding-top: 0;
    padding-bottom: 0;
}
/* INVOLVEMENT & HIGHLIGHTS */
.involvement-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.option-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--soft-orange);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--soft-orange);
}

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

[data-theme="dark"] .option-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.option-card h3 {
    color: var(--maroon);
    margin-bottom: 15px;
}

.option-icon {
    font-size: 3rem;
    color: var(--soft-orange);
    margin-bottom: 20px;
}

.highlight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.highlight-card {
    background: var(--bg-card);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    border-top: 4px solid var(--warm-yellow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--warm-yellow);
}

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

[data-theme="dark"] .highlight-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.highlight-card h3, .highlight-card h4 {
    color: var(--maroon);
}

/* BLOG & POSTS */
.blog-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

[data-theme="dark"] .blog-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-card h3 {
    color: var(--maroon);
    margin-bottom: 10px;
}

.read-more {
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
    color: var(--soft-orange);
    transition: var(--transition);
}

.read-more:hover {
    color: var(--warm-yellow);
    transform: translateX(5px);
}

/* Blog Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.blog-post {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    border-top: 4px solid var(--warm-yellow);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--warm-yellow);
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .blog-post:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.post-image {
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 30px;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-meta i {
    color: var(--soft-orange);
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-color);
}

.pagination-btn:hover {
    background-color: rgba(247, 161, 59, 0.1);
    border-color: var(--soft-orange);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background-color: var(--soft-orange);
    color: #FFFFFF;
    border-color: var(--soft-orange);
}

.pagination-btn.prev,
.pagination-btn.next {
    padding: 12px 25px;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 5px;
    color: var(--medium-gray);
    user-select: none;
}

/* NEW: TEAM SLIDER - ABOUT US PAGE */

/* Section wrapper for navigation button alignment */
.our-team-section {
    position: relative;
    margin: 60px 0;
}

/* Slider container - clean and centered */
.team-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
}

/* Wrapper for slides */
.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
    padding: 10px 0;
}

/* Individual slide styling */
.slide {
    flex: 0 0 400px;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    opacity: 0.4;
    transform: scale(0.85);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(30%);
}

/* Active slide - highlighted */
.slide.active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%);
    z-index: 2;
}

.slide.active .team-card {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .slide.active .team-card {
    box-shadow: 0 15px 40px rgba(205, 154, 35, 0.5);
}

/* Team card - clean container */
.team-card {
    background: none;
    border: none;
    max-width: 100%;
    width: 100%;
    padding: 0;
    transition: var(--transition);
}

/* Image container with proper aspect ratio */
.team-image-container {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    background-color: var(--bg-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Navigation Buttons - Aligned with the slider content */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    
    background-color: var(--soft-orange);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(247, 161, 59, 0.3);
}

.slider-nav-btn:hover:not(:disabled) {
    background-color: var(--maroon);
    /* Update transform to maintain vertical center while scaling/moving */
    transform: translateY(-50%) scale(1.05); 
    box-shadow: 0 8px 20px rgba(122, 28, 28, 0.4);
}

.slider-nav-btn:active:not(:disabled) {
    /* Update transform to maintain vertical center while shrinking */
    transform: translateY(-50%) scale(0.95); 
}

.slider-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Responsive Design - Mobile First */
@media (max-width: 1200px) {
    .slide {
        flex: 0 0 350px;
        max-width: 350px;
    }
    
    .slider-prev {
        left: 15px;
    }
    
    .slider-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .our-team-section h2 {
        margin-bottom: 60px;
    }
    
    .slide {
        flex: 0 0 280px;
        max-width: 280px;
    }
    
    .slider-wrapper {
        gap: 20px;
    }
    
    .slider-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .slider-prev {
        left: 10px;
        top: 50%; 
        transform: translateY(-50%); 
    }
    
    .slider-next {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 576px) {
    .slide {
        flex: 0 0 260px;
        max-width: 260px;
    }
    
    .slider-wrapper {
        gap: 15px;
    }
    
    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-prev {
        left: 5px;
        top: 55%; 
        transform: translateY(-50%); 
    }
    
    .slider-next {
        right: 5px;
        top: 55%;
        transform: translateY(-50%);
    }
}

/* Prevent text selection during dragging */
.slider-wrapper * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* FORMS */
/* Fix form container spacing */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--maroon);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-primary);
    color: var(--text-color);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--soft-orange);
    box-shadow: 0 0 0 3px rgba(247, 161, 59, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--text-color);
}

.checkbox-label:hover {
    background: var(--light-color);
}

.checkbox-label input {
    width: auto;
    margin-right: 10px;
}

/* Google Form Container */
.google-form-container {
    width: 100%;
    height: 1200px;
    border: none;
    border-radius: 0;
    margin: 30px 0;
    box-shadow: none;
    overflow: hidden;
}

.google-form-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.form-hint {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.form-hint p {
    margin-bottom: 10px;
}

.form-hint a {
    color: var(--soft-orange);
    font-weight: 600;
    text-decoration: underline;
}

.form-hint a:hover {
    color: var(--maroon);
}

/* CALENDAR & EVENTS */
.events-calendar {
    background-color: var(--bg-secondary);
    padding: 60px 0;
}

.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.calendar-header h3 {
    margin-bottom: 0;
    color: var(--maroon);
}

.calendar-grid {
    margin-bottom: 30px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--maroon);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.calendar-day:hover {
    background-color: rgba(247, 161, 59, 0.1);
}

.calendar-day.empty {
    background-color: transparent;
    cursor: default;
}

.calendar-day.today {
    background-color: var(--warm-yellow);
    color: #333333;
    font-weight: 600;
}

.calendar-day.event {
    background-color: rgba(122, 28, 28, 0.1);
    border: 1px solid var(--maroon);
    font-weight: 600;
}

.calendar-day.selected {
    background-color: var(--soft-orange);
    color: #FFFFFF;
}

.events-list {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.event-item {
    background: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border-left: 4px solid var(--soft-orange);
}

.event-date {
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 5px;
}

.event-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.event-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

.event-location {
    margin-top: 8px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-location i {
    color: var(--soft-orange);
}

/* Event Checkbox Styling */
.date-checkbox-item {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.date-checkbox-item:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.date-checkbox-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    width: 100%;
}

.date-checkbox-item input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.event-checkbox-info {
    flex: 1;
}

.event-date-checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.event-date-checkbox strong {
    font-size: 1.1em;
    color: var(--primary-color);
}

.event-time {
    font-size: 0.9em;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-title-checkbox {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.event-location-checkbox {
    font-size: 0.9em;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* When checkbox is checked */
.date-checkbox-item input[type="checkbox"]:checked + .event-checkbox-info .event-date-checkbox strong {
    color: var(--success-color);
}

.date-checkbox-item input[type="checkbox"]:checked ~ .event-checkbox-info {
    opacity: 0.9;
}

/* Donation Section */
.impact-section {
    background-color: var(--bg-secondary);
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    background: var(--bg-card);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--soft-orange);
    transition: var(--transition);
}

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

[data-theme="dark"] .stat:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.stat h3 {
    font-size: 3rem;
    color: var(--soft-orange);
    margin-bottom: 10px;
}

.stat p {
    color: var(--text-color);
}

/* ========== FORM MESSAGE STYLING - CRITICAL FIXES ========== */

/* Form message containers */
.form-message-container {
    margin: 20px 0;
    padding: 15px;
    border-radius: var(--border-radius);
    display: none;
    animation: fadeIn 0.5s ease;
}

/* Success and error message styling */
.success-message-container,
.error-message-container {
    margin: 20px auto;
    padding: 0;
    max-width: 800px;
    animation: fadeIn 0.5s ease;
}

.success-message-container .success-message,
.error-message-container .error-message {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

.success-message-container .success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message-container .error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message-container .success-message i,
.error-message-container .error-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Fix for existing form messages */
.form-message {
    display: none;
    margin: 20px 0;
    animation: fadeIn 0.5s ease;
}

.form-message .success-message,
.form-message .error-message {
    display: none;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

.form-message .success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message .error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Make sure form messages show when active */
.form-message-container[style*="display: block"],
.form-message[style*="display: block"] {
    display: block !important;
}

.form-message .success-message[style*="display: block"],
.form-message .error-message[style*="display: block"] {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

/* Loading animation fix */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button loading state */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed !important;
}

/* Form validation error styling */
input.error, 
textarea.error,
select.error {
    border-color: var(--danger-color) !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
}

input.error:focus, 
textarea.error:focus,
select.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Form field focus states */
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--soft-orange);
    box-shadow: 0 0 0 3px rgba(247, 161, 59, 0.15);
}

/* Required field indicator */
.form-group label.required::after {
    content: " *";
    color: var(--danger-color);
}

/* Form submit button states */
.btn[type="submit"] {
    position: relative;
    min-height: 48px;
}

.btn[type="submit"]:disabled {
    background-color: var(--border-color) !important;
    border-color: var(--border-color) !important;
    color: var(--text-light) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* --- NEW: Floating Alert Pop-up Styles (Fix for non-scrolling, floating messages) --- */
.floating-alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: slideDownIn 0.5s ease-out forwards;
    display: none; /* Hidden by default */
}

@keyframes slideDownIn {
    0% { transform: translate(-50%, -50px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

.floating-alert-container .alert-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    gap: 10px;
    margin: 0;
}

.floating-alert-container .success {
    background: #d4edda; /* Light Green */
    color: #155724; /* Dark Green Text */
    border: 1px solid #c3e6cb;
}

.floating-alert-container .error {
    background: #f8d7da; /* Light Red */
    color: #721c24; /* Dark Red Text */
    border: 1px solid #f5c6cb;
}

.floating-alert-container i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Overriding old form message styles to ensure they are hidden */
.form-message,
.success-message-container,
.error-message-container {
    display: none !important;
}
/* --- END Floating Alert Pop-up Styles --- */

/* Donation Transparency */
.donation-transparency {
    background: var(--bg-primary);
    padding: 50px 20px;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.donation-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.breakdown-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.breakdown-item:hover {
    transform: translateY(-5px);
    border-color: var(--soft-orange);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .breakdown-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.breakdown-percentage {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--soft-orange);
    margin-bottom: 15px;
}

.breakdown-item h4 {
    color: var(--text-color);
}

.breakdown-item p {
    color: var(--text-light);
}

.breakdown-bar {
    height: 10px;
    background: var(--light-color);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: var(--soft-orange);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Donation Tabs */
.donation-tabs {
    display: flex;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    color: var(--text-light);
}

.tab-btn.active {
    color: var(--soft-orange);
    border-bottom-color: var(--soft-orange);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* Donation Amounts */
.donation-amounts {
    margin: 30px 0;
}

.donation-amounts h4 {
    color: var(--text-color);
}

.amount-options {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.amount-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-color);
}

.amount-btn.active, 
.amount-btn:hover {
    background-color: var(--soft-orange);
    color: #FFFFFF;
    border-color: var(--soft-orange);
}

.custom-amount {
    flex: 1;
    min-width: 150px;
}

.custom-amount input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-primary);
    color: var(--text-color);
}

.custom-amount input:focus {
    border-color: var(--soft-orange);
}

/* Payment Methods */
.payment-methods {
    margin: 40px 0;
}

.payment-methods h4 {
    color: var(--text-color);
}

.method-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.method-option {
    background: var(--bg-card);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--warm-yellow);
    transition: var(--transition);
}

.method-option:hover {
    transform: translateY(-5px);
    border-color: var(--soft-orange);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .method-option:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.method-option h5 {
    color: var(--maroon);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.method-option p {
    color: var(--text-color);
}

/* In-Kind Donations */
.needed-items, .drop-off-info {
    margin: 40px 0;
}

.needed-items h4, .drop-off-info h4 {
    color: var(--text-color);
}

.needed-items ul, .drop-off-info ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

.needed-items li, .drop-off-info li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 10px;
    color: var(--text-color);
}


/* Adoption Guidelines */
.adoption-guidelines {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.guideline-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.guideline-step {
    background: var(--bg-card);
    padding: 25px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--soft-orange);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.guideline-step h3, .guideline-step p {
    color: var(--text-color);
}

.requirements-list {
    margin: 40px 0;
}

.requirements-list h3 {
    color: var(--text-color);
}

.requirements-list p {
    color: var(--text-color);
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.requirement-icon {
    background: var(--warm-yellow);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.requirement-icon i {
    color: #333333;
    font-size: 1.2rem;
}

.requirement-item h4 {
    color: var(--text-color);
}

.requirement-item p {
    color: var(--text-light);
}

/* About Page Section */
.about-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    margin-top: 0;
    background-color: var(--bg-secondary);
}

.about-section {
    margin-bottom: 60px;
    width: 100%;
    background-color: transparent;
    padding: 0;
}

.about-section .container {
    max-width: 100%;
    width: 100%;
}

.about-section:first-child {
    margin-top: 0;
    padding-top: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.value-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    border-top: 4px solid var(--soft-orange);
}

.value-card h3 {
    color: var(--maroon);
}

.value-card p {
    color: var(--text-color);
}

.value-card i {
    font-size: 2rem;
    color: var(--soft-orange);
    margin-right: 10px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.team-member {
    text-align: center;
    width: 100%;
}

.member-image-placeholder {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--warm-yellow), var(--soft-orange));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 600;
}

.team-member h3 {
    color: var(--text-color);
}

.member-role {
    color: var(--soft-orange);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-member p {
    color: var(--text-light);
}

/* Activities List */
.activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.activity-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--warm-yellow);
}

.activity-item h3 {
    color: var(--maroon);
    margin-bottom: 10px;
}

.activity-item p {
    color: var(--text-color);
}

.activity-item i {
    color: var(--soft-orange);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Contact Info */
.contact-info {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--soft-orange);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-info i {
    color: var(--soft-orange);
    width: 20px;
}

.contact-info .social-links {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    justify-content: center;
}

.contact-info .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--soft-orange);
    color: #FFFFFF;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.2rem;
}

.contact-info .social-link i {
    color: #FFFFFF;
    width: auto;
}

.contact-info .social-link:hover {
    background-color: var(--maroon);
    transform: translateY(-3px) scale(1.1);
}

/* Map Container */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 30px 0;
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

[data-theme="dark"] .map-container iframe {
    filter: invert(90%) hue-rotate(180deg);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--soft-orange);
    color: #FFFFFF;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--maroon);
    transform: translateY(-3px) scale(1.1);
    color: #FFFFFF;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--maroon), #5a1414);
    color: #FFFFFF;
    padding: 60px 0 30px;
    position: relative;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer h3, footer h4 {
    color: #FFFFFF;
    margin-bottom: 20px;
}

footer p {
    color: #FFFFFF;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

footer a:hover {
    color: var(--warm-yellow);
    transform: translateX(5px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--warm-yellow);
    width: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Utility Components*/

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--soft-orange);
    color: #FFFFFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(247, 161, 59, 0.3);
    transition: var(--transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--maroon);
    transform: translateY(-3px);
    color: #FFFFFF;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Volunteer Benefits */
.volunteer-benefits {
    margin-top: 50px;
}

.volunteer-benefits h3 {
    text-align: center;
    color: var(--maroon);
    margin-bottom: 30px;
}

.volunteer-benefits .highlight-card h4 {
    color: var(--maroon);
    margin-bottom: 10px;
}

.volunteer-benefits .highlight-card i {
    font-size: 2rem;
    color: var(--soft-orange);
    margin-right: 10px;
}

/* Responsive Design */

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero, .page-header {
        padding: 80px 0;
    }
    
    .hero h1, .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero, .page-header {
        padding: 80px 0;
    }
    
    .hero h1, .page-header h1 {
        font-size: 2rem;
    }
    
    .hero p, .page-header p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .donation-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
        width: 100%;
    }
    
    .tab-btn.active {
        border-left-color: var(--soft-orange);
        border-bottom-color: var(--border-color);
    }
    
    .google-form-container {
        height: 1000px;
    }
    
    .guideline-steps {
        grid-template-columns: 1fr;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* CAT CARDS & PROFILES */
    .cats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
        margin: 40px 0;
    }
    
    .involvement-options {
        grid-template-columns: 1fr;
    }
    
    .blog-preview {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .method-options {
        grid-template-columns: 1fr;
    }
    
    .amount-options {
        flex-direction: column;
    }
    
    .amount-btn, .custom-amount {
        width: 100%;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .cat-actions {
        flex-direction: column;
    }
    
    .cat-actions .btn,
    .cat-actions .status-static {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .requirement-item {
        flex-direction: column;
        text-align: center;
    }
    
    .requirement-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero, .page-header {
        padding: 60px 0;
    }
    
    .hero h1, .page-header h1 {
        font-size: 1.8rem;
    }
    
    .adoption-guidelines,
    .donation-transparency {
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    .calendar-container {
        padding: 25px 15px;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .google-form-container {
        height: 900px;
    }
    
    .cats-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .cat-profile {
        background: var(--bg-card);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        overflow: hidden;
        transition: var(--transition);
        width: 100%;
        max-width: 350px;
        display: flex;
        flex-direction: column;
        border: 1px solid var(--border-color);
    }
    
    .cat-info h3 {
        font-size: 1.2rem;
    }
    
    .cat-age {
        font-size: 0.85rem;
    }
    
    .cat-personality,
    .cat-health {
        font-size: 0.85rem;
    }
    
    .story-toggle-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .cats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-options {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .cat-profile {
        max-width: 100%;
    }
}

/* Print Style */
@media print {
    .hero-buttons,
    .mobile-menu-toggle,
    .back-to-top,
    .social-links,
    .dark-mode-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}

/* Additional Helper Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }


/* ========== SMART FILTER SYSTEM  ========== */
.smart-filter {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.smart-filter:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .smart-filter:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Search Box with Active Filters INSIDE */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
    min-height: 52px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 0.5rem;
}

.search-box-clear-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--soft-orange);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 2;
}

.search-box-clear-btn.visible {
    display: flex;
}

.search-box-clear-btn:hover {
    background-color: rgba(247, 161, 59, 0.1);
}

.search-box:focus-within {
    border-color: var(--soft-orange);
    box-shadow: 0 0 0 3px rgba(247, 161, 59, 0.15);
}

/* Visual enhancement when filters are active */
.search-box.has-filters {
    border-color: var(--soft-orange);
    background-color: rgba(247, 161, 59, 0.03);
    padding-right: 50px;
}

/* Search Icon - Inside the search bar */
.search-box i {
    color: var(--soft-orange);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-box.has-filters i {
    color: var(--soft-orange);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Main Search Input */
#cat-search {
    flex: 1;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    height: 100%;
    padding: 0;
    min-width: 120px;
    transition: var(--transition);
}

#cat-search:focus {
    outline: none;
    box-shadow: none;
}

.search-box.has-filters #cat-search {
    padding-left: 0.5rem;
    font-weight: 500;
}

/* Placeholder styling */
#cat-search::placeholder {
    color: var(--text-light);
    transition: var(--transition);
}

/* Different placeholder when filters are active */
.search-box.has-filters #cat-search::placeholder {
    color: rgba(247, 161, 59, 0.7);
    font-style: italic;
}

/* Hide placeholder when typing */
#cat-search:focus::placeholder,
#cat-search:not(:placeholder-shown)::placeholder {
    color: transparent;
}

/* Active Filters Container - Inside search bar on LEFT */
.active-filters-container {
    display: none;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 60%; /* Reduced for better balance */
    padding-right: 15px;
    margin-right: 10px;
    border-right: 1px solid rgba(247, 161, 59, 0.2);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.active-filters-container.active {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Force chips to never wrap */
.active-filters-container > * {
    flex-shrink: 0;
}

/* Optional: Add a subtle scrollbar for many filters */
.active-filters-container::-webkit-scrollbar {
    height: 4px;
}

.active-filters-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.active-filters-container::-webkit-scrollbar-thumb {
    background: var(--soft-orange);
    border-radius: 2px;
}

.active-filters-container::-webkit-scrollbar-thumb:hover {
    background: #e6912a;
}

/* Firefox scrollbar */
.active-filters-container {
    scrollbar-width: thin;
    scrollbar-color: var(--soft-orange) rgba(0, 0, 0, 0.05);
}

/* Active Filter Chip - Inside search bar */
.active-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    background-color: var(--soft-orange);
    color: white;
    border-radius: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 32px;
    height: auto;
    max-height: 60px;
    box-shadow: 0 2px 4px rgba(247, 161, 59, 0.2);
    flex-shrink: 0;
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
    animation: chipAppear 0.2s ease;
}

@keyframes chipAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.active-filter-chip:hover {
    background-color: #e6912a;
    box-shadow: 0 4px 8px rgba(247, 161, 59, 0.3);
    transform: translateY(-1px);
}

.active-filter-chip .remove-filter {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
    margin-top: 0;
    transition: var(--transition);
}

.active-filter-chip .remove-filter:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.active-filter-chip .remove-filter i {
    font-size: 0.7rem;
    color: white;
}

/* Search-specific chip styling */
.active-filter-chip:has(.remove-filter[data-type="search"]) {
    background-color: var(--warm-yellow);
    color: var(--dark-color);
}

.active-filter-chip:has(.remove-filter[data-type="search"]):hover {
    background-color: #f4c847;
}

.active-filter-chip:has(.remove-filter[data-type="search"]) .remove-filter i {
    color: var(--dark-color);
}

.active-filter-chip:has(.remove-filter[data-type="search"]) .remove-filter:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Instructional text when filters are active */
.search-instruction {
    position: absolute;
    bottom: -25px;
    left: 0;
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.search-box.has-filters .search-instruction {
    opacity: 1;
}

/* Compact Filter Buttons */
.add-filter-buttons {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.add-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    height: 44px;
    min-width: 120px;
    flex-shrink: 0;
}

.add-filter-btn:hover {
    background-color: rgba(247, 161, 59, 0.1);
    border-color: var(--soft-orange);
    color: var(--soft-orange);
    box-shadow: 0 4px 12px rgba(247, 161, 59, 0.15);
}

.add-filter-btn.active {
    background-color: rgba(247, 161, 59, 0.1);
    border-color: var(--soft-orange);
    color: var(--soft-orange);
    box-shadow: 0 4px 12px rgba(247, 161, 59, 0.15);
}

.add-filter-btn i {
    font-size: 0.9rem;
}

.add-filter-btn.active i {
    color: var(--soft-orange);
}

.add-filter-btn[data-filter-type="clear"] {
    border-color: rgba(220, 53, 69, 0.3);
    color: var(--danger-color);
}

.add-filter-btn[data-filter-type="clear"]:hover {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.add-filter-btn[data-filter-type="clear"].active {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* Filter Panels - UPDATED FOR INLINE HEADERS */
.filter-panel {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.filter-panel.active {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    animation: panelSlide 0.3s ease;
}

@keyframes panelSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Update the h4 styling */
.filter-panel h4 {
    margin-bottom: 0;
    color: var(--maroon);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Make sure filter options stay in one line */
.filter-panel .filter-options {
    display: flex;
    gap: 0.8rem;
    flex-wrap: nowrap;
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-panel h4 i {
    color: var(--soft-orange);
}

.filter-option {
    padding: 0.7rem 1.2rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: 40px;
    min-width: 80px;
    flex-shrink: 0;
}

.filter-option:hover {
    background-color: rgba(247, 161, 59, 0.15);
    border-color: var(--soft-orange);
    color: var(--soft-orange);
}

.filter-option.active {
    background-color: rgba(247, 161, 59, 0.15);
    border-color: var(--soft-orange);
    color: var(--soft-orange);
    box-shadow: 0 4px 12px rgba(247, 161, 59, 0.25);
    font-weight: 700;
    animation: optionSelect 0.2s ease;
}

@keyframes optionSelect {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

/* Inline Filter Options */
.filter-options.inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-options.inline .filter-option {
    border-radius: 2rem;
    height: 40px;
    min-width: 80px;
}

/* Filter Panel Close Button */
.filter-panel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.filter-panel-close:hover {
    background-color: rgba(247, 161, 59, 0.1);
    color: var(--soft-orange);
    transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .active-filters-container {
        max-width: 55%;
        gap: 0.6rem;
    }
    
    .search-box.has-filters {
        padding-right: 45px;
    }
    
    .active-filter-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}