/* Blog Tab Styles */

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

.blog-post {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.blog-header {
    border-bottom: 2px solid #E8F5E8;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.blog-title {
    color: #2E7D32;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.blog-date::before {
    content: "📅 ";
}

.blog-author::before {
    content: "✍️ ";
}

.blog-content {
    color: #333;
    line-height: 1.7;
}

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

.blog-content h3 {
    color: #2E7D32;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #4CAF50;
    padding-left: 1rem;
}

.blog-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

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

.blog-image-placeholder {
    background: linear-gradient(135deg, #E8F5E8 0%, #F1F8E9 100%);
    border: 2px dashed #4CAF50;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
    color: #2E7D32;
}

.blog-image {
    margin: 2rem 0;
    text-align: center;
}

.blog-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
    display: block;
    margin: 0 auto;
}

.blog-image img.lazyloaded {
    opacity: 1;
}

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

.placeholder-content {
    font-size: 1.1rem;
    font-style: italic;
}

.blog-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E8F5E8;
    text-align: center;
    color: #666;
}

.blog-footer em {
    color: #2E7D32;
}

/* Blog Navigation Styles */
.blog-navigation {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    max-width: 100%; /* Use full width of container */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.25rem; /* Minimal padding */
}

.blog-navigation h3 {
    margin-bottom: 0.5rem;
    color: #2E7D32;
    font-size: 1rem; /* Even smaller heading */
}

.blog-tabs {
    display: flex;
    justify-content: space-between; /* Distribute evenly across width */
    align-items: center;
    gap: 0.05rem; /* Very small gap */
    overflow: hidden; /* Force no scrolling */
    padding: 0.5rem 0.25rem; /* Minimal padding */
    position: relative;
    /* Timeline arrow background */
    background: linear-gradient(90deg, transparent 0%, #ff6b35 2%, #ff6b35 98%, transparent 100%);
    background-size: calc(100% - 0.5rem) 1px; /* Very thin line */
    background-position: 0.25rem center;
    background-repeat: no-repeat;
    flex-wrap: nowrap; /* Never wrap */
    min-height: 3rem; /* Ensure minimum height for timeline */
}

/* Arrow pointing right at the end of timeline */
.blog-tabs::after {
    content: '→';
    position: absolute;
    right: 0.1rem;
    color: #ff6b35;
    font-size: 0.8rem; /* Much smaller arrow */
    font-weight: bold;
    background: white;
    padding: 0 0.1rem;
}

.blog-tab {
    padding: 0.2rem 0.4rem; /* Very compact padding */
    border: 1px solid #ff6b35; /* Very thin border */
    background: white;
    color: #ff6b35;
    cursor: pointer;
    border-radius: 12px; /* Smaller radius */
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.4rem; /* Even smaller font for better fit */
    white-space: nowrap;
    flex-shrink: 1; /* Allow shrinking */
    flex-grow: 1; /* Allow growing to fill space */
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: none; /* Remove width constraints */
    min-width: 0; /* Allow very small widths */
}

/* Timeline dots */
.blog-tab::before {
    content: '';
    position: absolute;
    bottom: -4px; /* Very close to tab */
    left: 50%;
    transform: translateX(-50%);
    width: 4px; /* Very small dots */
    height: 4px;
    background: #ff6b35;
    border-radius: 50%;
    border: 1px solid white; /* Very thin border */
    z-index: 2;
}

.blog-tab.active::before {
    background: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.3);
}

.blog-tab:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

.blog-tab.active {
    background: #ff6b35;
    color: white;
}

.blog-post {
    transition: opacity 0.3s ease;
}

.blog-post:not(.active) {
    display: none;
}


/* Responsive adjustments for blog timeline visibility on full screen */
@media (min-width: 1200px) {
    .blog-tab {
        font-size: 0.6rem !important;
        padding: 0.3rem 0.6rem !important;
        min-width: 80px !important;
    }
    .blog-tabs {
        gap: 0.2rem !important;
        padding: 0.8rem 0.5rem !important;
        min-height: 4rem !important;
    }
}

@media (min-width: 1400px) {
    .blog-tab {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
        min-width: 100px !important;
    }
    .blog-tabs {
        gap: 0.3rem !important;
        padding: 1rem 0.8rem !important;
        min-height: 4.5rem !important;
    }
}

/* Blog image gallery responsive styles */
.blog-image-gallery {
    margin: 2rem 0;
    text-align: center;
}

.blog-image-container {
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

.blog-image-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

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

/* Responsive image sizing */
@media (max-width: 768px) {
    .blog-image-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .blog-image-container img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-image-container {
        padding: 0 0.5rem;
    }
}