/* Blog Page Specific Styles */

/* Blog Hero Section */
.blog-hero-section {
    padding: 120px 0 80px;
    text-align: center;
}

.orange-text {
    color: #F97316;
}

.blog-hero-content h1 {
    margin-bottom: 24px;
}

.blog-hero-content p {
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Search */
.blog-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 60px 16px 24px;
    border: 2px solid #333;
    border-radius: 50px;
    background: #1C1917;
    color: #FFF;
    font-family: 'Sofia Pro';
    font-size: 18px;
    font-weight: 400;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #F97316;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #FACC15;
    color: #1C1917;
}

/* Blog Categories */
.blog-categories {
    padding: 40px 0;
    background: #FFF;
    border-bottom: 1px solid #E5E5E5;
}

.categories-list {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid #E5E5E5;
    border-radius: 50px;
    background: transparent;
    color: #666;
    font-family: 'Sofia Pro';
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: #F97316;
    color: #F97316;
}

.category-btn.active {
    background: #F97316;
    border-color: #F97316;
    color: #FFF;
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 80px 0;
    background: #F8F9FA;
}

/* Blog Grid Layout - 3-2-3 Pattern */
.blog-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

/* Desktop Grid Layout - 3-2-3 Pattern */
@media screen and (min-width: 1025px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    /* Force 3-2-3 layout by targeting specific rows */
    .blog-post:nth-child(4) {
        grid-column: 1 / 2;
    }
    
    .blog-post:nth-child(5) {
        grid-column: 2 / 3;
    }
    
    .blog-post:nth-child(6) {
        grid-column: 3 / 4;
    }
    
    .blog-post:nth-child(7) {
        grid-column: 1 / 2;
    }
    
    .blog-post:nth-child(8) {
        grid-column: 2 / 3;
    }
    
    .blog-post:nth-child(9) {
        grid-column: 3 / 4;
    }
}

/* Tablet Grid Layout */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Mobile Grid Layout */
@media screen and (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Blog Post Styles */
.blog-post {
    background: #FFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.blog-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.blog-post .post-image {
    height: 240px;
    overflow: hidden;
}

.blog-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.blog-post .post-content {
    padding: 24px;
}

.blog-post .post-title {
    font-family: 'Sofia Pro';
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 12px;
    color: #1C1917;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post .post-title:hover {
    color: #F97316;
}

.blog-post .post-excerpt {
    font-family: 'Sofia Pro';
    font-size: 16px;
    line-height: 24px;
    color: #666;
    margin-bottom: 16px;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-date {
    font-family: 'Sofia Pro';
    font-size: 14px;
    color: #999;
}

.post-category-tag {
    background: #F0F0F0;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Sofia Pro';
    font-size: 12px;
    font-weight: 500;
}

/* Post Author */
.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.post-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author span {
    font-family: 'Sofia Pro';
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Read More Button with Arrow */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F97316;
    font-family: 'Sofia Pro';
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.read-more-btn:hover {
    color: #FACC15;
    transform: translateX(4px);
}

.read-more-btn .arrow-icon {
    transition: transform 0.3s ease;
}

.read-more-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Load More Section with Smooth Transitions */
.load-more-section {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.load-more-btn,
.load-less-btn {
    display: inline-block;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.load-more-btn:hover,
.load-less-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.load-less-btn {
    display: none;
    margin: 0 auto;
}

/* Responsive adjustment for mobile */
@media screen and (max-width: 767px) {
    .load-less-btn {
        margin-left: 0;
    }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results h2 {
    margin-bottom: 16px;
}

.no-results p {
    margin-bottom: 0;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 16px;
}

.newsletter-content p {
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
    align-items: center;
}

.newsletter-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #333;
    border-radius: 50px;
    background: #1C1917;
    color: #FFF;
    font-family: 'Sofia Pro';
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-input:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.newsletter-btn {
    white-space: nowrap;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .blog-hero-section {
        padding: 100px 0 60px;
    }
    
    .blog-hero-content h1 {
        font-size: 48px;
        line-height: 60px;
    }
    
    .blog-hero-content p {
        font-size: 24px;
        line-height: 32px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 20px;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .blog-hero-section {
        padding: 80px 0 40px;
    }
    
    .blog-hero-content h1 {
        font-size: 38px;
        line-height: 44px;
    }
    
    .blog-hero-content p {
        font-size: 20px;
        line-height: 28px;
    }
    
    .search-input {
        font-size: 16px;
        padding: 14px 50px 14px 20px;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
    }
    
    .blog-categories {
        padding: 30px 0;
    }
    
    .categories-list {
        gap: 12px;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .blog-posts-section {
        padding: 60px 0;
    }
    
    .blog-post .post-image {
        height: 200px;
    }
    
    .blog-post .post-content {
        padding: 20px;
    }
    
    .blog-post .post-title {
        font-size: 18px;
        line-height: 26px;
    }
    
    .blog-post .post-excerpt {
        font-size: 14px;
        line-height: 22px;
    }
    
    .newsletter-section {
        padding: 60px 0;
    }
    
    .newsletter-content h2 {
        font-size: 32px;
        line-height: 40px;
    }
    
    .newsletter-content p {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 30px;
    }
    
    .newsletter-input {
        font-size: 14px;
        padding: 14px 20px;
    }
}

@media screen and (max-width: 480px) {
    .blog-hero-content h1 {
        font-size: 38px;
        line-height: 36px;
    }
    
    .blog-hero-content p {
        font-size: 18px;
        line-height: 26px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 12px 45px 12px 16px;
    }
    
    .search-btn {
        width: 36px;
        height: 36px;
    }
    
    .blog-post .post-image {
        height: 180px;
    }
    
    .blog-post .post-content {
        padding: 16px;
    }
    
    .blog-post .post-title {
        font-size: 16px;
        line-height: 24px;
    }
    
    .post-meta {
        gap: 12px;
    }
    
    .post-date {
        font-size: 12px;
    }
    
    .post-category-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .post-author {
        gap: 8px;
    }
    
    .post-author img {
        width: 28px;
        height: 28px;
    }
    
    .post-author span {
        font-size: 12px;
    }
    
    .read-more-btn {
        font-size: 14px;
    }
}

/* Animation Classes */
.blog-post {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.blog-post.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Focus States for Accessibility */
.search-input:focus,
.newsletter-input:focus,
.category-btn:focus {
    outline: 2px solid #F97316;
    outline-offset: 2px;
}

/* Loading States */
.load-more-btn.loading,
.load-less-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.load-more-btn.loading::after,
.load-less-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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

/* Print Styles */
@media print {
    .blog-categories,
    .load-more-section,
    .newsletter-section,
    .search-btn,
    .category-btn {
        display: none;
    }
    
    .blog-post {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Blog Post Page Styles */
.blog-post-content {
    padding: 80px 0;
    background: #FFF;
}

.breadcrumb {
    margin-bottom: 40px;
    font-family: 'Sofia Pro';
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #F97316;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1C1917;
}

.article-header {
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    background: #F97316;
    color: #FFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Sofia Pro';
    font-size: 14px;
    font-weight: 600;
}

.article-date,
.article-read-time {
    font-family: 'Sofia Pro';
    font-size: 14px;
    color: #999;
}

.article-title {
    font-family: 'Sofia Pro';
    font-weight: 700;
    font-size: 48px;
    line-height: 56px;
    color: #1C1917;
    margin-bottom: 24px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: 'Sofia Pro';
    font-size: 16px;
    font-weight: 600;
    color: #1C1917;
}

.author-title {
    font-family: 'Sofia Pro';
    font-size: 14px;
    color: #666;
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Sofia Pro';
    line-height: 1.8;
}

.article-intro {
    font-size: 20px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
    font-weight: 500;
}

.article-body h2 {
    font-family: 'Sofia Pro';
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: #1C1917;
    margin: 40px 0 20px 0;
}

.article-body h3 {
    font-family: 'Sofia Pro';
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: #1C1917;
    margin: 30px 0 16px 0;
}

.article-body p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.article-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.article-body li {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 12px;
}

.article-body strong {
    font-weight: 600;
    color: #1C1917;
}

.article-cta {
    background: #F8F9FA;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.article-cta h3 {
    font-family: 'Sofia Pro';
    font-weight: 700;
    font-size: 28px;
    line-height: 36px;
    color: #1C1917;
    margin-bottom: 16px;
}

.article-cta p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 24px;
}

.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E5E5E5;
}

.article-tags {
    margin-bottom: 30px;
}

.tag-label {
    font-family: 'Sofia Pro';
    font-size: 16px;
    font-weight: 600;
    color: #1C1917;
    margin-right: 16px;
}

.tag {
    display: inline-block;
    background: #F0F0F0;
    color: #666;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Sofia Pro';
    font-size: 14px;
    text-decoration: none;
    margin-right: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #F97316;
    color: #FFF;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-label {
    font-family: 'Sofia Pro';
    font-size: 16px;
    font-weight: 600;
    color: #1C1917;
}

.share-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Sofia Pro';
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: #FFF;
}

.share-btn.linkedin {
    background: #0077B5;
    color: #FFF;
}

.share-btn.whatsapp {
    background: #25D366;
    color: #FFF;
}

.share-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Related Posts Section */
.related-posts-section {
    padding: 80px 0;
    background: #FAFAFA;
}

.related-posts-header {
    text-align: center;
    margin-bottom: 60px;
}

.related-posts-header h2 {
    margin-bottom: 16px;
}

.related-posts-header p {
    margin-bottom: 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.related-post {
    background: #FFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.related-post .post-image {
    height: 240px;
    overflow: hidden;
}

.related-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .post-image img {
    transform: scale(1.05);
}

.related-post .post-content {
    padding: 24px;
}

.related-post .post-title {
    font-family: 'Sofia Pro';
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 12px;
    color: #1C1917;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post .post-title:hover {
    color: #F97316;
}

.related-post .post-excerpt {
    font-family: 'Sofia Pro';
    font-size: 16px;
    line-height: 24px;
    color: #666;
    margin-bottom: 16px;
}

.related-post .post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-post .post-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.related-post .post-author span {
    font-family: 'Sofia Pro';
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Responsive Design for Blog Post */
@media screen and (max-width: 1024px) {
    .article-title {
        font-size: 40px;
        line-height: 48px;
    }
    
    .article-body h2 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .article-body h3 {
        font-size: 22px;
        line-height: 30px;
    }
    
    .article-body p,
    .article-body li {
        font-size: 16px;
    }
    
    .article-intro {
        font-size: 18px;
    }
}

@media screen and (max-width: 767px) {
    .blog-post-content {
        padding: 60px 0;
    }
    
    .article-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .article-meta {
        gap: 12px;
    }
    
    .article-category,
    .article-date,
    .article-read-time {
        font-size: 12px;
    }
    
    .article-author {
        gap: 12px;
    }
    
    .article-author img {
        width: 40px;
        height: 40px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    .author-title {
        font-size: 12px;
    }
    
    .article-body h2 {
        font-size: 24px;
        line-height: 32px;
    }
    
    .article-body h3 {
        font-size: 20px;
        line-height: 28px;
    }
    
    .article-body p,
    .article-body li {
        font-size: 16px;
    }
    
    .article-intro {
        font-size: 16px;
    }
    
    .article-cta {
        padding: 30px 20px;
    }
    
    .article-cta h3 {
        font-size: 24px;
        line-height: 32px;
    }
    
    .article-cta p {
        font-size: 16px;
    }
    
    .related-posts-section {
        padding: 60px 0;
    }
    
    .related-posts-header h2 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media screen and (max-width: 480px) {
    .article-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .article-body h2 {
        font-size: 22px;
        line-height: 30px;
    }
    
    .article-body h3 {
        font-size: 18px;
        line-height: 26px;
    }
    
    .article-body p,
    .article-body li {
        font-size: 15px;
    }
    
    .article-intro {
        font-size: 15px;
    }
    
    .article-cta h3 {
        font-size: 20px;
        line-height: 28px;
    }
    
    .article-cta p {
        font-size: 15px;
    }
    
    .tag {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .share-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
} 