/* ===========================
   BLOG STYLES
   =========================== */

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Index Hero */
.blog-index-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, #FF6B35, #F7931E, #FF8E53);
    padding-top: 120px;
}

.blog-index-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.orb-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.blog-index-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.blog-index-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blog-index-hero .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
}

/* Blog Post Hero */
.blog-hero {
    position: relative;
    height: 500px;
    margin-top: 64px;
    display: flex;
    align-items: end;
    overflow: hidden;
}

.blog-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-hero-image .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Main Blog Content */
.blog-main {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
}

/* Blog Content Layout */
.blog-content {
    padding: 4rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.blog-text .lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: #FF6B35;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blog-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem 0;
    color: #333;
}

.blog-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.blog-text p {
    margin-bottom: 1.5rem;
}

/* Image Blocks */
.image-block {
    margin: 2.5rem 0;
    text-align: center;
}

.content-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #FF6B35;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.highlight-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #FF6B35;
    font-size: 1.2rem;
}

.highlight-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.highlight-box li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-radius: 12px;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Call to Action */
.call-to-action {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
    border: 2px solid #FF6B35;
}

.call-to-action h3 {
    color: #FF6B35;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #333;
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-post:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.related-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: #333;
}

.related-content .read-time {
    font-size: 0.8rem;
    color: #666;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #FF6B35;
    text-decoration: none;
}

/* Featured Post */
.featured-post {
    margin-bottom: 4rem;
}

.featured-article {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
}

.featured-content {
    padding: 2rem;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.featured-meta .category {
    background: #FF6B35;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-meta .date {
    color: #666;
}

.featured-title a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    line-height: 1.3;
}

.featured-title a:hover {
    color: #FF6B35;
    text-decoration: none;
}

.featured-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 1rem 0;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.read-time {
    font-size: 0.9rem;
    color: #666;
}

.read-more {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e55a32;
    text-decoration: none;
}

/* Posts Grid */
.all-posts {
    margin-bottom: 4rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.post-meta .category {
    background: #FF6B35;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-meta .date {
    color: #666;
}

.post-title a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 1rem;
}

.post-title a:hover {
    color: #FF6B35;
    text-decoration: none;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Categories Section */
.categories-section {
    margin-bottom: 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #FF6B35;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
}

.category-card i {
    font-size: 2.5rem;
    color: #FF6B35;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.post-count {
    background: #FF6B35;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.subscribe-btn {
    background: white;
    color: #FF6B35;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Special Styling Elements */
.future-features, .insight-examples {
    margin: 2.5rem 0;
}

.feature-grid, .insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item, .insight-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.feature-item:hover, .insight-item:hover {
    border-color: #FF6B35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.feature-item h4, .insight-item h4 {
    color: #FF6B35;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.feature-item p, .insight-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.future-vision {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.future-vision h3 {
    text-align: center;
    color: #FF6B35;
    margin-bottom: 2rem;
}

.vision-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.vision-item {
    text-align: center;
    padding: 1rem;
}

.vision-item i {
    font-size: 2rem;
    color: #FF6B35;
    margin-bottom: 1rem;
}

.vision-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.vision-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-index-hero {
        min-height: 400px;
        padding-top: 100px; /* Adjusted for mobile header */
    }
    
    .blog-index-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .blog-index-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid, .insight-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-items {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .blog-hero-content {
        padding: 1.5rem;
    }
    
    .newsletter-section {
        padding: 2rem 1.5rem;
    }
} 