/* Blog Post Specific Styles */

.blog-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-post-category {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.blog-post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--neutral-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

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

.blog-category-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-featured-image {
    width: 100%;
    margin: 2rem 0 3rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    clear: both;
}

.blog-post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    clear: both;
    margin-top: 2rem;
}

.blog-post-content h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    clear: both;
}

.blog-post-content h2:first-of-type {
    margin-top: 2rem;
}

.blog-post-content h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul, 
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.75rem;
}

.blog-post-content strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Interactive Elements */

.interactive-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--accent-orange);
    padding: 2rem;
    margin: 2rem 0 3rem 0;
    border-radius: 8px;
    clear: both;
    overflow: visible;
}

.interactive-box h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.checklist {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin: 2rem 0 3rem 0;
    clear: both;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    background: #f8f9fa;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checklist-item.checked .checklist-checkbox {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.checklist-checkbox::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 18px;
    display: none;
}

.checklist-item.checked .checklist-checkbox::after {
    display: block;
}

.checklist-text {
    flex: 1;
}

.expandable-section {
    background: white;
    border: 2px solid var(--secondary-blue);
    border-radius: 12px;
    margin: 2rem 0 3rem 0;
    overflow: hidden;
    clear: both;
}

.expandable-header {
    background: var(--secondary-blue);
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.expandable-header:hover {
    background: var(--primary-blue);
}

.expandable-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.expandable-section.open .expandable-icon {
    transform: rotate(180deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 1.5rem;
}

.expandable-section.open .expandable-content {
    max-height: 2000px;
    padding: 1.5rem;
}

.highlight-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid var(--accent-orange);
    padding: 1.5rem;
    margin: 2rem 0 3rem 0;
    border-radius: 8px;
    clear: both;
}

.highlight-box h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem 0;
    clear: both;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--accent-green);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--neutral-gray);
    font-size: 0.95rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0 3rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    clear: both;
}

.comparison-table th {
    background: var(--primary-blue);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.calculator-widget {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0 3rem 0;
    box-shadow: var(--shadow-xl);
    clear: both;
    overflow: visible;
}

.calculator-widget h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.calculator-input-group {
    margin-bottom: 1.5rem;
}

.calculator-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calculator-input-group select,
.calculator-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.calculator-result {
    background: rgba(255,255,255,0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    clear: both;
    overflow: visible;
}

.calculator-result-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
}

.quiz-widget {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: var(--secondary-blue);
    background: #f8f9fa;
}

.quiz-option.selected {
    border-color: var(--accent-green);
    background: #e8f5e9;
}

.quiz-result {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    display: none;
}

.quiz-result.show {
    display: block;
}

.quiz-result h4 {
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.key-takeaways {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0 3rem 0;
    border-left: 4px solid var(--primary-blue);
    clear: both;
}

.key-takeaways h3 {
    color: var(--primary-blue);
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
}

.key-takeaways ul {
    list-style: none;
    padding-left: 0;
}

.key-takeaways li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.key-takeaways li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.3rem;
}

.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.nav-post {
    flex: 1;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.nav-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.nav-label {
    color: var(--neutral-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.nav-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.social-share {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.social-share-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-share-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-twitter { background: #1DA1F2; }
.share-facebook { background: #4267B2; }
.share-linkedin { background: #0077B5; }
.share-email { background: var(--primary-blue); }

/* Image Galleries */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .blog-post-featured-image img {
        height: 250px;
    }
    
    .blog-post-content {
        font-size: 1rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-navigation {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
}
