/* Resources Page Specific Styles - Dark Theme Aligned with Landing Page */

/* Resources Hero - Match landing page hero styling */
.resources-hero {
    background: transparent;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.resources-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.resources-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
}

/* Search and Filter Section - Dark glass theme */
.resources-filter {
    background: rgba(15, 32, 39, 0.85);
    padding: 3rem 0;
    border-bottom: 1px solid #2c5364;
    position: sticky;
    top: 70px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.filter-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    min-width: 300px;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 3rem;
    border: 1px solid #2c5364;
    border-radius: 8px;
    background: rgba(15, 32, 39, 0.6);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input::placeholder {
    color: #cbd5e1;
}

.search-box input:focus {
    outline: none;
    border-color: #4fd1c7;
    box-shadow: 0 0 0 2px rgba(79, 209, 199, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #4fd1c7;
    background: transparent;
    color: #4fd1c7;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Featured Content Section - Dark theme */
.featured-content {
    padding: 4rem 0;
    background: transparent;
}

.featured-content h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-item {
    background: rgba(15, 32, 39, 0.7);
    border: 1px solid #2c5364;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.featured-item.featured {
    grid-column: span 2;
}

.featured-image {
    height: 200px;
    background: linear-gradient(135deg, #4fd1c7 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.featured-content-area {
    padding: 1.5rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.content-type {
    background: #4fd1c7;
    color: #0f2027;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.content-type.case-study {
    background: #10b981;
    color: #ffffff;
}

.featured-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.featured-excerpt {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #4fd1c7;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
    color: #6ee7d9;
}

/* Articles and Case Studies Sections - Dark theme */
.articles-section,
.case-studies-section {
    padding: 4rem 0;
    background: transparent;
}

.section-header h2 {
    color: #ffffff;
}

.section-header p {
    color: #ffffff;
}

.articles-grid,
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card,
.case-study-card {
    background: rgba(15, 32, 39, 0.7);
    border: 1px solid #2c5364;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.article-card:hover,
.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-image {
    height: 180px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.case-study-card .card-image {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-excerpt {
    color: #ffffff;
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-tags {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(79, 209, 199, 0.2);
    color: #4fd1c7;
    border: 1px solid #4fd1c7;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.impact-highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.impact-highlight i {
    font-size: 1.1rem;
}

/* Newsletter Section - Dark theme */
.newsletter-section {
    background: rgba(15, 32, 39, 0.5);
    color: white;
    padding: 4rem 0;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-info h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-info p {
    color: #ffffff;
    font-size: 1.1rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #2c5364;
    border-radius: 8px;
    background: rgba(15, 32, 39, 0.6);
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: #cbd5e1;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #4fd1c7;
    box-shadow: 0 0 0 2px rgba(79, 209, 199, 0.1);
}

.newsletter-disclaimer {
    font-size: 0.9rem;
    color: #cbd5e1;
    text-align: center;
}

/* Back to Top Button - Dark theme */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Active nav link styling */
.nav-link.active {
    color: #4fd1c7;
}

.nav-link.active::after {
    width: 100%;
    background: #4fd1c7;
}

/* Empty state for content sections */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #cbd5e1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #4fd1c7;
}

.empty-state h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Loading states */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #cbd5e1;
}

.spinner {
    border: 3px solid #2c5364;
    border-top: 3px solid #4fd1c7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Case Study Modal Styles - Dark theme */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2rem;
}

.modal-content {
    background: rgba(15, 32, 39, 0.95);
    border: 1px solid #2c5364;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: white;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #2c5364;
    position: sticky;
    top: 0;
    background: rgba(15, 32, 39, 0.95);
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #cbd5e1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(79, 209, 199, 0.1);
    color: #4fd1c7;
}

.modal-body {
    padding: 2rem;
}

.case-study-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2c5364;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.case-study-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-study-summary {
    margin-bottom: 3rem;
}

.summary-section {
    margin-bottom: 2rem;
}

.summary-section h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.summary-section p {
    color: #ffffff;
    line-height: 1.6;
}

.case-study-details h3 {
    color: #4fd1c7;
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
}

.case-study-details ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.case-study-details li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #ffffff;
}

.case-study-cta {
    background: rgba(79, 209, 199, 0.1);
    border: 1px solid #4fd1c7;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 3rem;
}

.case-study-cta h3 {
    color: #4fd1c7;
    margin-bottom: 1rem;
}

.case-study-cta p {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resources-hero h1 {
        font-size: 2.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .featured-item.featured {
        grid-column: span 1;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .case-study-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .resources-hero {
        padding: 100px 0 60px;
    }
    
    .resources-hero h1 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .featured-grid,
    .articles-grid,
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content,
    .featured-content-area {
        padding: 1rem;
    }
}