/* Rescue Stories Archive Styles - Fixed Version */

/* ===================================
   HERO SECTION
   =================================== */
.rescue-stories-hero-section {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 0;
    color: white;
}

.rescue-stories-hero-section .hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.rescue-stories-hero-section .hero-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.rescue-stories-hero-section .hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   FILTER SECTION
   =================================== */
.rescue-stories-filter-section {
    background: #f5f5f5;
    padding: 30px 20px;
    border-bottom: 2px solid #e0e0e0;
}

.rescue-stories-filter-section .filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.rescue-stories-filter-section .filter-tab {
    padding: 12px 30px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.rescue-stories-filter-section .filter-tab:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
    border-color: #4CAF50;
}

.rescue-stories-filter-section .filter-tab.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* ===================================
   ARCHIVE PAGE CONTAINER
   =================================== */
.rescue-stories-archive-page {
    padding: 60px 20px;
}

/* ===================================
   STORIES GRID
   =================================== */
.rescue-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.no-stories {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

/* ===================================
   STORY CARD
   =================================== */
.rescue-story-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rescue-story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image Wrapper */
.rescue-story-card .story-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

.rescue-story-card .story-image-wrapper .story-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

.rescue-story-card .story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rescue-story-card:hover .story-image {
    transform: scale(1.08);
}

.rescue-story-card .animal-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(76, 175, 80, 0.95);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Header Content */
.rescue-story-card .story-header-content {
    padding: 25px 25px 15px;
}

.rescue-story-card .story-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.rescue-story-card .story-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rescue-story-card .story-title a:hover {
    color: #4CAF50;
}

/* Main Content */
.rescue-story-card .story-main-content {
    padding: 0 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rescue-story-card .story-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Meta Information */
.rescue-story-card .story-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.rescue-story-card .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.rescue-story-card .meta-icon {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.rescue-story-card .meta-icon img.emoji {
    width: 18px;
    height: 18px;
}

.rescue-story-card .meta-text {
    font-weight: 500;
    color: #333;
}

/* Read More Link */
.rescue-story-card .story-read-more {
    display: inline-flex;
    align-items: center;
    color: #4CAF50;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.rescue-story-card .story-read-more:hover {
    color: #45a049;
    padding-right: 5px;
}

/* ===================================
   CTA SECTION
   =================================== */
.rescue-cta-section {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 20px;
}

.rescue-cta-section .cta-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.rescue-cta-section .cta-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.rescue-cta-section .cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 30px;
}

.rescue-cta-section .volunteer-button {
    display: inline-block;
    background: white;
    color: #4CAF50;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.rescue-cta-section .volunteer-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: #f8f8f8;
}

/* ===================================
   STATISTICS SECTION
   =================================== */
.rescue-statistics-section {
    background: #f9f9f9;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.rescue-statistics-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.rescue-statistics-section .stat-item {
    text-align: center;
    padding: 35px 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.rescue-statistics-section .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.rescue-statistics-section .stat-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    margin-bottom: 20px;
}

.rescue-statistics-section .stat-icon {
    color: #4CAF50;
    width: 36px;
    height: 36px;
}

.rescue-statistics-section .stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 10px;
    line-height: 1;
}

.rescue-statistics-section .stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* ===================================
   SINGLE RESCUE STORY PAGE
   =================================== */
.single-rescue-story-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.single-rescue-story-page .rescue-story-profile-box {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.single-rescue-story-page .rescue-story-image-area {
    width: 100%;
}

.single-rescue-story-page .rescue-story-large-image,
.single-rescue-story-page .rescue-story-placeholder-svg {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-rescue-story-page .rescue-story-info-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-rescue-story-page .rescue-story-name-single {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.single-rescue-story-page .rescue-story-type-single {
    font-size: 18px;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-rescue-story-page .type-icon {
    font-size: 24px;
}

.single-rescue-story-page .rescue-story-key-sentence-single {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    padding: 15px;
    background: #f9f9f9;
    border-right: 4px solid #4CAF50;
    border-radius: 8px;
}

.single-rescue-story-page .rescue-story-specs-single {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.single-rescue-story-page .rescue-story-specs-single p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.single-rescue-story-page .rescue-story-specs-single strong {
    color: #333;
    font-weight: 600;
}

/* Bio Content */
.single-rescue-story-page .rescue-story-bio-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.single-rescue-story-page .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4CAF50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-rescue-story-page .title-icon {
    font-size: 32px;
}

.single-rescue-story-page .rescue-story-bio-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

/* Treatment Details Box */
.single-rescue-story-page .rescue-treatment-details-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #c8e6c9;
    margin-bottom: 40px;
}

.single-rescue-story-page .treatment-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.single-rescue-story-page .detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.single-rescue-story-page .detail-item.full-width {
    grid-column: 1 / -1;
}

.single-rescue-story-page .detail-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-rescue-story-page .detail-value {
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 600;
}

/* Back Button */
.single-rescue-story-page .back-to-archive-wrapper {
    text-align: center;
    margin: 40px 0;
}

.single-rescue-story-page .back-to-archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4CAF50;
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.single-rescue-story-page .back-to-archive-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Related Stories */
.single-rescue-story-page .related-rescue-stories {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 3px solid #e0e0e0;
}

.single-rescue-story-page .related-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-align: center;
}

.single-rescue-story-page .related-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.single-rescue-story-page .related-story-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.single-rescue-story-page .related-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.single-rescue-story-page .related-story-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.single-rescue-story-page .related-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-rescue-story-page .related-story-card:hover .related-story-image img {
    transform: scale(1.08);
}

.single-rescue-story-page .related-story-content {
    padding: 25px;
}

.single-rescue-story-page .related-story-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.single-rescue-story-page .related-story-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    /* Hero Section */
    .rescue-stories-hero-section {
        padding: 50px 20px;
    }
    
    .rescue-stories-hero-section .hero-title {
        font-size: 32px;
    }
    
    .rescue-stories-hero-section .hero-description {
        font-size: 16px;
    }
    
    /* Filter Section */
    .rescue-stories-filter-section .filter-tabs {
        gap: 10px;
    }
    
    .rescue-stories-filter-section .filter-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Stories Grid */
    .rescue-story-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* CTA Section */
    .rescue-cta-section {
        padding: 50px 25px;
    }
    
    .rescue-cta-section .cta-title {
        font-size: 28px;
    }
    
    .rescue-cta-section .cta-description {
        font-size: 16px;
    }
    
    /* Statistics */
    .rescue-statistics-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .rescue-statistics-section .stat-number {
        font-size: 40px;
    }
    
    .rescue-statistics-section .stat-label {
        font-size: 14px;
    }
    
    /* Single Page */
    .single-rescue-story-page {
        padding: 40px 15px;
    }
    
    .single-rescue-story-page .rescue-story-profile-box {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 25px;
    }
    
    .single-rescue-story-page .rescue-story-name-single {
        font-size: 28px;
    }
    
    .single-rescue-story-page .rescue-story-bio-content,
    .single-rescue-story-page .rescue-treatment-details-box {
        padding: 25px;
    }
    
    .single-rescue-story-page .treatment-details-grid {
        grid-template-columns: 1fr;
    }
    
    .single-rescue-story-page .related-stories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rescue-stories-hero-section .hero-title {
        font-size: 26px;
    }
    
    .rescue-statistics-section .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .rescue-story-card .story-title {
        font-size: 20px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rescue-story-card {
    animation: fadeInUp 0.6s ease-out;
}

.rescue-story-card:nth-child(1) { animation-delay: 0.1s; }
.rescue-story-card:nth-child(2) { animation-delay: 0.2s; }
.rescue-story-card:nth-child(3) { animation-delay: 0.3s; }
.rescue-story-card:nth-child(4) { animation-delay: 0.4s; }
.rescue-story-card:nth-child(5) { animation-delay: 0.5s; }
.rescue-story-card:nth-child(6) { animation-delay: 0.6s; }