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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #8134AF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 130px;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 20px 2px 0;
    gap: 15px;
    padding-left: 0;
}

.logo {
    height: 163px;
    width: auto;
    object-fit: contain;
    padding: 0;
    margin: -16px 0;
    position: relative;
    left: 0;
    flex-shrink: 0;
    z-index: 10;
}

/* Desktop Listen Live Button */
.desktop-listen-btn {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    animation: pulse-desktop 2s infinite;
}

.desktop-listen-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
}

@keyframes pulse-desktop {
    0%, 100% { box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(255, 107, 53, 0.7); }
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -4px 0 30px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    padding-top: 80px;
    z-index: 99;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav.active {
    display: block;
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    padding: 20px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: background 0.3s, color 0.3s;
}

.mobile-nav a::before {
    content: '🐾';
    font-size: 0.9em;
}

.mobile-nav a:hover {
    color: #FF6B35;
    background: rgba(255,255,255,0.1);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Header Marquee (Inline in Header) */
/* Mobile-only banner below header */
.mobile-marquee-banner {
    display: block;
    background: linear-gradient(90deg, #FF6B35, #F7931E, #FF6B35);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    color: white;
    font-weight: 600;
    font-size: 0.85em;
    padding: 7px 0;
    overflow: hidden;
    white-space: nowrap;
}

.mobile-marquee-banner .marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    padding-left: 100%;
    line-height: 1;
}

.header-marquee {
    display: none;
    flex: 1;
    background: linear-gradient(90deg, #FF6B35, #F7931E, #FF6B35);
    background-size: 200% 100%;
    border-radius: 20px;
    color: white;
    padding: 8px 0;
    overflow: hidden;
    animation: gradient-shift 3s ease infinite;
    margin: 0;
    align-items: center;
    justify-content: center;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    font-weight: 600;
    font-size: 0.9em;
    padding-left: 100%;
    line-height: 1;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Desktop Sidebar Navigation */
.sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 130px;
    width: 250px;
    height: calc(100vh - 130px);
    background: linear-gradient(180deg, #f5f9fc, #e8f4f8);
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    padding: 30px 20px;
    z-index: 90;
    overflow-y: auto;
}

.sidebar-nav {
    position: static;
    width: auto;
    background: none;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav a::before {
    content: '🐾';
    font-size: 0.9em;
    display: inline-block;
    transition: transform 0.3s ease;
}

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
    animation: paw-bounce 0.5s ease infinite alternate;
}

@keyframes paw-bounce {
    0%   { transform: scale(1) rotate(-10deg); }
    100% { transform: scale(1.35) rotate(10deg); }
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border-left-color: #F7931E;
    transform: translateX(5px);
}

.nonprofit-badge {
    margin-top: 30px;
    padding: 15px;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.nonprofit-badge p {
    margin: 0;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.4;
}

/* Main Content Adjustment for Sidebar */
.main-content {
    transition: margin-left 0.3s;
}

/* Mobile Listen Button (hidden on desktop) */
.mobile-listen-btn {
    display: none;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
    transition: transform 0.2s;
}

.mobile-listen-btn:hover {
    transform: scale(1.05);
}

/* Hero Section with Rotating Background */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop: Make hero full-width (covers sidebar area too) */
@media (min-width: 769px) {
    .hero {
        margin-left: -250px;
        width: calc(100% + 250px);
    }
}

.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #111;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    background: transparent;
    padding: 60px;
    border-radius: 20px;
    box-shadow: none;
    max-width: 700px;
}

@keyframes ripple {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 10px 60px rgba(255, 107, 53, 0.4), 0 0 0 20px rgba(255, 107, 53, 0.1), 0 0 0 40px rgba(255, 107, 53, 0.05);
    }
}

.hero h1 {
    font-size: 3.5em;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.slogan {
    font-size: 1.54em;
    color: #FFD700;
    font-style: italic;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* Desktop Floating Glassmorphism Player */
.listen-live {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 500px;
    transition: all 0.3s ease;
    cursor: move;
}

.listen-live.active {
    display: block;
    animation: slideInFromRight 0.8s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(600px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.listen-live.dragging {
    cursor: grabbing;
    transition: none;
}

.listen-live.minimized {
    padding: 15px 25px;
    cursor: pointer;
}

.listen-live.minimized .player-desktop,
.listen-live.minimized .player-title,
.listen-live.minimized .minimize-btn {
    display: none;
}

.listen-live.minimized .close-btn {
    display: inline-block;
}

.player-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.minimize-btn,
.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimize-btn:hover,
.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.player-title {
    margin-bottom: 20px;
    font-size: 2em;
    background: linear-gradient(90deg, #fff, #FFD700, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    display: inline-block;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.listen-live h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

.listen-live iframe {
    border-radius: 10px;
    max-width: 100%;
}

/* Reopen Button */
.reopen-player-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 40px rgba(255, 107, 53, 0.6);
    }
}

.reopen-player-btn:hover {
    transform: scale(1.1);
}

/* Show desktop player, hide mobile player by default */
.player-desktop {
    display: block;
}

.player-mobile {
    display: none;
}

/* Mission Section */
.mission {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.mission h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.mission p {
    font-size: 1.5em;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Social Section */
.social {
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
}

.social h3 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #2C3E50;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-hero h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5em;
    opacity: 0.9;
}

.about-content {
    padding: 80px 20px;
}

.about-story {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.about-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.story-text h2 {
    font-size: 2.5em;
    color: #2C3E50;
    margin-bottom: 20px;
}

.story-text p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.rainbow-bridge {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 20px;
    margin-bottom: 60px;
}

.rescue-image {
    max-width: 300px;
    margin-bottom: 30px;
}

blockquote {
    font-size: 1.8em;
    font-style: italic;
    color: #FF6B35;
    margin: 30px 0;
}

.mission-statement {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.mission-statement h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.mission-statement p {
    font-size: 1.3em;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Rescues Page */
.rescues-hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 40px 20px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rescues-hero h1 {
    font-size: 2.2em;
}

.rescue-profiles {
    padding: 80px 20px;
}

.rescue-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

.rescue-card.reverse {
    grid-template-columns: 2fr 1fr;
}

.rescue-card.reverse .rescue-photo {
    order: 2;
}

.rescue-photo {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.rescue-info h2 {
    font-size: 2.5em;
    color: #2C3E50;
    margin-bottom: 10px;
}

.breed {
    font-size: 1.2em;
    color: #FF6B35;
    font-weight: 600;
    margin-bottom: 10px;
}

.rescue-date {
    font-size: 1.1em;
    color: #4ECDC4;
    margin-bottom: 20px;
}

.rescue-info p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
}

.rescue-message {
    background: linear-gradient(135deg, #FFD89B, #19547B);
    color: white;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    margin-top: 60px;
}

.rescue-message h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.rescue-message p {
    font-size: 1.3em;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Format Page */
.format-hero {
    background: linear-gradient(135deg, #FA8BFF 0%, #2BD2FF 90%);
    color: white;
    padding: 40px 20px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.format-hero h1 {
    font-size: 2.2em;
}

.format-content {
    padding: 80px 20px;
}

.format-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.format-block {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.format-block h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #2C3E50;
}

.format-block h3 {
    font-size: 1.8em;
    margin: 30px 0 15px;
    color: #FF6B35;
}

.format-block p, .format-block li {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.format-block ul {
    margin-left: 20px;
}

.highlight {
    background: #FF6B35;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin-top: 30px;
}

.format-why {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
}

.format-why h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.format-why p {
    font-size: 1.3em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.listen-cta {
    background: rgba(255,255,255,0.2);
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
}

.listen-cta h3 {
    font-size: 2em;
    margin-bottom: 15px;
}

.btn-listen {
    display: inline-block;
    background: #FF6B35;
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-listen:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Contact Page */
.contact-hero {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    color: white;
    padding: 40px 20px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-hero h1 {
    font-size: 2.2em;
}

.contact-content {
    padding: 80px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.contact-form-block, .contact-info-block {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form-block h2, .contact-info-block h2 {
    font-size: 2.5em;
    color: #2C3E50;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2C3E50;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1em;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #4ECDC4;
}

.btn-submit {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.info-item {
    margin-bottom: 40px;
}

.info-item h3 {
    font-size: 1.8em;
    color: #FF6B35;
    margin-bottom: 15px;
}

.info-item p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.8;
}

.info-item a {
    color: #4ECDC4;
    text-decoration: none;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: transform 0.3s;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
}

.social-btn:hover {
    transform: translateY(-3px);
}

.donate-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px;
    border-radius: 20px;
    text-align: center;
}

.donate-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

.donate-section > p {
    font-size: 1.3em;
    margin-bottom: 40px;
}

.donate-card {
    background: rgba(255,255,255,0.15);
    padding: 50px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.donate-card h3 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.donate-card p, .donate-card li {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 15px;
}

.donate-card ul {
    text-align: left;
    max-width: 600px;
    margin: 30px auto;
}

.donate-buttons {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-donate {
    display: inline-block;
    background: linear-gradient(135deg, #0070BA, #1546A0);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
    transition: all 0.3s ease;
    animation: pulse-donate 2s infinite;
}

.btn-donate:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 112, 186, 0.6);
    animation: none;
}

.btn-petfundr {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    animation: pulse-petfundr 2s infinite;
}

@keyframes pulse-petfundr {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5); }
}

.btn-petfundr:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
    animation: none;
}

@keyframes pulse-donate {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 8px 25px rgba(0, 112, 186, 0.5); }
}

.donate-info {
    font-size: 0.95em;
    font-style: italic;
    opacity: 0.9;
    margin-top: 15px;
}

.tax-note {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 30px;
}

.volunteer-cta {
    background: #FF6B35;
    padding: 40px;
    border-radius: 15px;
}

.volunteer-cta h3 {
    font-size: 2em;
    margin-bottom: 20px;
}

.volunteer-cta p {
    font-size: 1.3em;
    line-height: 1.8;
}

/* Footer */
footer {
    background: #2C3E50;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

footer .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

footer p {
    font-size: 1.1em;
    margin: 10px 0;
    text-align: center;
}

/* Desktop Design (769px and up) */
@media (min-width: 769px) {
    /* Hide mobile banner on desktop */
    .mobile-marquee-banner {
        display: none;
    }

    /* Center hero slides and text in VISIBLE area (hero extends 250px under sidebar, so shift right 125px) */
    .slide {
        background-position: calc(50% + 125px) center;
    }

    .hero {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        position: relative;
        z-index: 10;
        margin-left: 125px;
    }

    /* Show sidebar and header marquee on desktop */
    .sidebar {
        display: block;
    }
    
    .sidebar-nav {
        display: block !important;
    }
    
    .header-marquee {
        display: flex;
    }
    
    /* Hide mobile nav and hamburger on desktop */
    .mobile-nav {
        display: none !important;
    }
    
    .hamburger {
        display: none;
    }
    
    /* Adjust main content and footer for sidebar */
    .main-content,
    footer {
        margin-left: 250px;
    }
    
    /* Show desktop listen button, hide mobile */
    .desktop-listen-btn {
        display: block;
    }
    
    .mobile-listen-btn {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Fix squished donate/support section on mobile */
    .donate-section {
        padding: 30px 16px;
        border-radius: 12px;
    }

    .donate-section h2 {
        font-size: 2em;
    }

    .donate-section > p {
        font-size: 1.1em;
        margin-bottom: 24px;
    }

    .donate-card {
        padding: 20px 16px;
    }

    .donate-card h3 {
        font-size: 1.6em;
    }

    .donate-card p,
    .donate-card li {
        font-size: 1em;
    }

    .donate-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-donate {
        width: 80%;
        max-width: 280px;
        text-align: center;
        font-size: 1.1em;
        padding: 14px 20px;
    }

    /* Social buttons: stack vertically, full width, centered text — home page */
    .social-icons {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .social-icons .social-link {
        width: 80%;
        max-width: 300px;
        white-space: nowrap;
        padding: 14px 20px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    /* Social buttons: stack vertically, full width, centered text — contact page */
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .social-links .social-btn {
        width: 80%;
        max-width: 300px;
        white-space: nowrap;
        padding: 14px 20px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    header .container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
        padding: 4px 10px;
    }
    
    header {
        height: auto;
        overflow: visible;
    }

    .logo {
        height: 67px;
        width: 67px;
        justify-self: start;
        margin: -5px 0;
    }
    
    .desktop-listen-btn {
        display: none;
    }
    
    .mobile-listen-btn {
        display: block;
        justify-self: center;
    }
    
    .hamburger {
        display: flex;
        justify-self: end;
    }
    
    /* Mobile nav inherits desktop glassmorphism style */

    .subtitle {
        font-size: 1em;
    }

    .rescues-hero h1 {
        font-size: 1.6em;
    }
    
    .hero {
        height: auto;
        min-height: unset;
        aspect-ratio: 4/5;
    }
    
    .slide {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        background-color: #1a1a2e;
    }
    
    .hero h1 {
        font-size: 2em;
        color: white;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    }
    
    .slogan {
        font-size: 1em;
        margin-bottom: 0;
        color: white;
        text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    }
    
    .hero-content {
        padding: 30px 20px;
        background: transparent;
        box-shadow: none;
    }
    
    .cta-button {
        font-size: 1.1em;
        padding: 12px 30px;
        margin-top: 15px;
    }
    
    /* Floating player on mobile - glassmorphism */
    .listen-live {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 12px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        animation: slideInUp 0.5s ease-out;
    }
    
    @keyframes slideInUp {
        from { transform: translateY(100px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    .listen-live.active {
        display: block;
    }
    
    .listen-live h2 {
        display: none;
    }
    
    /* Hide desktop player, show mobile player */
    .player-desktop {
        display: none;
    }
    
    .player-mobile {
        display: block;
    }
    
    .mini-player {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .play-btn {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, #FF6B35, #F7931E);
        color: white;
        font-size: 1.8em;
        cursor: pointer;
        flex-shrink: 0;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        z-index: 1010;
    }
    
    .play-btn:active {
        transform: scale(0.9);
    }
    
    .play-btn.playing {
        animation: pulse 1.5s infinite;
    }
    
    @keyframes pulse {
        0%, 100% { box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4); }
        50% { box-shadow: 0 4px 25px rgba(255, 107, 53, 0.7); }
    }
    
    .player-info {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .station-name {
        color: white;
        font-weight: 700;
        font-size: 1.1em;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }
    
    .status-text {
        color: rgba(255,255,255,0.8);
        font-size: 0.85em;
        margin-top: 3px;
    }
    
    .audio-bars {
        display: flex;
        align-items: flex-end;
        gap: 3px;
        height: 25px;
    }
    
    .audio-bars span {
        width: 4px;
        background: #FF6B35;
        border-radius: 2px;
        height: 5px;
    }
    
    .audio-bars.active span:nth-child(1) { animation: bar 0.6s ease infinite; }
    .audio-bars.active span:nth-child(2) { animation: bar 0.6s ease infinite 0.15s; }
    .audio-bars.active span:nth-child(3) { animation: bar 0.6s ease infinite 0.3s; }
    .audio-bars.active span:nth-child(4) { animation: bar 0.6s ease infinite 0.45s; }
    
    @keyframes bar {
        0%, 100% { height: 5px; }
        50% { height: 22px; }
    }
    
    .format-grid, .contact-grid, .about-story, .rescue-card {
        grid-template-columns: 1fr;
    }
    
    .rescue-card.reverse {
        grid-template-columns: 1fr;
    }
    
    .rescue-card.reverse .rescue-photo {
        order: 1;
    }

    }
}

/* ==================== POSTS / NEWS & UPDATES PAGE ==================== */
.posts-section {
    padding: 40px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.post-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 24px;
}

.post-title {
    font-size: 1.5em;
    color: #2C3E50;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.post-body {
    font-size: 1em;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.posts-loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #8134AF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.posts-empty, .posts-error {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .post-photo img {
        height: 180px;
    }

    /* Fix squished colored boxes on mobile */
    .mission-statement,
    .rescue-message,
    .format-why {
        padding: 30px 20px !important;
    }

    .mission-statement h2,
    .rescue-message h2,
    .format-why h2 {
        font-size: 1.8em !important;
    }

    .mission-statement p,
    .rescue-message p,
    .format-why p {
        font-size: 1.1em !important;
    }
}

/* ==================== LIGHTBOX ==================== */
.lightbox-trigger {
    cursor: zoom-in;
    transition: opacity 0.2s;
}
.lightbox-trigger:hover {
    opacity: 0.9;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    animation: lightbox-in 0.2s ease;
}
@keyframes lightbox-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5em;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10000;
}
.lightbox-close:hover {
    opacity: 1;
}
