/* Blog/Content Hub Styles - blog.css */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.search-input {
    flex: 1;
    padding: 20px 30px;
    border: none;
    font-size: 1.1rem;
    outline: none;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Category Navigation */
.category-nav {
    background: #f8f9fa;
    padding: 20px 0;
    position: sticky;
    top: 70px;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.category-btn i {
    font-size: 1.1rem;
}

/* Featured Section */
.featured-section {
    padding: 60px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: block;
    margin: 1rem auto;
}

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

.featured-article {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

.featured-content {
    padding: 25px;
}

.featured-category {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.featured-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.featured-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Main Blog Content */
.blog-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Articles Container */
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.articles-header h2 {
    font-size: 2rem;
    color: #333;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options select {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.article-thumbnail {
    height: 150px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #999;
}

.article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #999;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.load-more-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 160px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget h3 i {
    color: #667eea;
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.newsletter-widget small {
    color: #999;
    font-size: 0.85rem;
}

/* Popular Articles Widget */
.popular-article {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popular-article:hover {
    background: #f8f9fa;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
}

.popular-article:last-child {
    border-bottom: none;
}

.popular-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    min-width: 30px;
}

.popular-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #333;
}

.popular-content .views {
    font-size: 0.85rem;
    color: #999;
}

/* Download Widget */
.download-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.download-item i {
    font-size: 1.5rem;
    color: #667eea;
}

.download-item:hover i {
    color: white;
}

.download-item h4 {
    font-size: 1rem;
    margin-bottom: 3px;
    color: #333;
}

.download-item:hover h4 {
    color: white;
}

.download-item small {
    font-size: 0.85rem;
    color: #666;
}

.download-item:hover small {
    color: rgba(255,255,255,0.9);
}

/* Tips Widget */
.tip-content {
    padding: 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 100%);
    border-radius: 10px;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.6;
    color: #555;
}

.new-tip-btn {
    width: 100%;
    padding: 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.new-tip-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* Resource Categories Section */
.resource-categories {
    padding: 80px 0;
    background: white;
}

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

.topic-card {
    padding: 30px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.topic-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.topic-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.topic-card p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.article-count {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #999;
}

/* Blog CTA Section */
.blog-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-btn.primary {
    background: white;
    color: #667eea;
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .category-wrapper {
        padding: 10px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Service Area Cards */
.service-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-area-card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.service-area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.service-area-card .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-area-card[data-service="programming"] .service-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.service-area-card[data-service="research"] .service-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.service-area-card[data-service="tutoring"] .service-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.service-area-card[data-service="ai-automation"] .service-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.service-area-card[data-service="career"] .service-icon {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.service-area-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.service-area-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.topic-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #555;
}

.explore-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Category Button Variations by Service */
.category-btn[data-service="programming"] {
    border-color: #f093fb;
}

.category-btn[data-service="programming"].active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-btn[data-service="research"] {
    border-color: #4facfe;
}

.category-btn[data-service="research"].active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-btn[data-service="tutoring"] {
    border-color: #43e97b;
}

.category-btn[data-service="tutoring"].active {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-btn[data-service="ai-automation"] {
    border-color: #fa709a;
}

.category-btn[data-service="ai-automation"].active {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Article Card Service Indicators */
.article-card[data-service="programming"] .article-thumbnail {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.article-card[data-service="research"] .article-thumbnail {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.article-card[data-service="tutoring"] .article-thumbnail {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.article-card[data-service="ai-automation"] .article-thumbnail {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Service Filter Tabs */
.service-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.service-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.service-tab:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.service-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Service-specific Download Sections */
.download-section {
    margin-top: 30px;
}

.download-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-section h4 i {
    color: #667eea;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.download-card {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-card:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #667eea;
}

.download-card:hover i {
    color: white;
}

.download-card h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.download-card small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .service-areas {
        grid-template-columns: 1fr;
    }
    
    .category-wrapper {
        padding: 10px 0;
        justify-content: flex-start;
    }
    
    .service-filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .search-container {
        margin: 0 20px 2rem;
    }
    
    .search-input {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .category-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}