/* ========================================
   BLOG PAGE STYLES
   ======================================== */

.awtu-blog-header {
    background: #f8fbfb;
    padding: 5rem 0 4rem 0;
    margin-top: 5rem;
    margin-bottom: 2rem;
}

.awtu-blog-header .container {
    max-width: 85%;
    margin-left: 154px !important;
    margin-right: auto;
    padding: 0 2rem;
}

/* Breadcrumbs */
.awtu-breadcrumb {
    margin-bottom: 2rem;
}

.awtu-breadcrumb .breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.awtu-breadcrumb .breadcrumb li {
    display: flex;
    align-items: center;
}

.awtu-breadcrumb .breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 0.5rem;
    color: #9ca3af;
}

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

.awtu-breadcrumb .breadcrumb a:hover {
    color: var(--primary, #14b08e);
}

.awtu-breadcrumb .breadcrumb .active {
    color: #374151;
    font-weight: 500;
}

/* Blog Header Content */
.blog-header-content {
    max-width: 800px;
    margin-left: 0px;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 490;
    color: #111827;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
}

.blog-description {
    color: #6b7280;
    line-height: 1.6;
}

.blog-description p {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.blog-description p:last-child {
    margin-bottom: 0;
}

/* Responsive */
/* Tablet */
@media (max-width: 1024px) {
    .awtu-blog-header .container {
        margin-left: 0 !important;
    }
    
    .blog-header-content {
        margin-left: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .awtu-blog-header {
        padding: 3rem 0 3rem 0;
        margin-top: 4rem;
    }
    
    .awtu-blog-header .container {
        padding: 0 1rem;
        margin-left: 0;
    }
    
    .blog-header-content {
        margin-left: 0;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-description p {
        font-size: 1rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .awtu-blog-header {
        padding: 2rem 0 2rem 0;
        margin-top: 3rem;
    }
    
    .awtu-blog-header .container {
        padding: 0 0.5rem;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    .blog-description p {
        font-size: 0.875rem;
    }
    
    .awtu-breadcrumb .breadcrumb {
        font-size: 0.8rem;
    }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
    .awtu-blog-header .container {
        margin-left: 400px;
    }
}

/* ========================================
   BLOG FILTERS SECTION STYLES
   ======================================== */

.awtu-blog-filters {
    background: #ffffff;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.awtu-blog-filters .container {
    max-width: 85%;
    margin-left: 154px;
    margin-right: auto;
    padding: 0 2rem;
}

/* Search and Sort Bar */
.blog-search-sort {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    gap: 2rem;
}

.search-container {
    flex: 1;
    width: 1400px;
    max-width: 1400px;
    margin-right: 0px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    font-size: 1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    height: 36px;
    padding: 0.4rem 1rem 0.4rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f9fafb;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary, #14b08e);
    box-shadow: 0 0 0 3px rgba(20, 176, 142, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

/* Sort Container */
.sort-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.sort-label {
    font-size: 1rem;
    color: #6b7c7c;
    font-weight: 4000;
    white-space: nowrap;
}

.sort-dropdown {
    padding: 0.4rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    min-width: 140px;
    height: 36px;
    box-sizing: border-box;
}

.sort-dropdown:focus {
    outline: none;
    border-color: var(--primary, #14b08e);
}

/* Categories */
.blog-categories {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.categories-label {
    font-size: 1rem;
    color: #6b7c7c;
    font-weight: 4000;
    white-space: nowrap;
}

.categories-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.4rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3sease;
    white-space: nowrap;
    height: 31px;
    box-sizing: border-box;
   
}

.category-btn:hover {
    border-color: var(--primary, #14b08e);
    color: var(--primary, #14b08e);
}

.category-btn.active {
    background: var(--primary, #14b08e);
    border-color: var(--primary, #14b08e);
    color: white;
}

/* Results Counter */
.blog-results {
    margin-bottom: 1rem;
}

.results-count {
    font-size: 1rem;
    color: #6b7c7c;
    font-weight: 4000;
    white-space: nowrap;
}

/* Responsive for Filters */
@media (min-width: 1400px) {
    .awtu-blog-header .container {
        margin-left: 154px !important;
        max-width: 85%;
    }
    
    .awtu-blog-filters .container {
        margin-left: 154px;
        max-width: 85%;
    }
    
    .search-container {
        width: 1300px;
        max-width: 1300px;
    }
}

@media (max-width: 1024px) {
    .awtu-blog-header .container {
        margin-left: 77px !important;
        max-width: 85%;
    }
    
    .awtu-blog-filters .container {
        margin-left: 77px;
        max-width: 95%;
    }
    
    .search-container {
        width: 1000px;
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .awtu-blog-header .container {
        margin-left: 0 !important;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .awtu-blog-filters .container {
        margin-left: 0;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .blog-search-sort {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-container {
        width: 100%;
        max-width: none;
        margin-right: 0;
    }
    
    .sort-container {
        justify-content: space-between;
        margin-left: 0;
    }
    
    .blog-categories {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .categories-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .awtu-blog-header .container {
        margin-left: 0 !important;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .awtu-blog-filters .container {
        margin-left: 0;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .awtu-blog-filters {
        padding: 1.5rem 0;
    }
    
    .search-input {
        height: 32px;
        font-size: 0.85rem;
    }
    
    .sort-dropdown {
        height: 32px;
        font-size: 0.8rem;
    }
    
    .categories-buttons {
        gap: 0.25rem;
    }
    
    .category-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        height: 28px;
    }
}

/* ========================================
   BLOG CONTENT SECTION STYLES
   ======================================== */

.awtu-blog-content {
    background: #ffffff;
    padding: 3rem 0;
}

.awtu-blog-content .container {
    max-width: 85%;
    margin-left: 154px !important;
    margin-right: auto;
    padding: 0 2rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Blog Grid */
.blog-main {
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Blog Cards */
.blog-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--primary, #14b08e);
}

.blog-card:hover .blog-card-title {
    color: var(--primary, #14b08e);
}

.blog-card:hover .blog-card-btn {
    background: var(--primary, #14b08e);
    color: white;
    border-color: var(--primary, #14b08e);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-tags {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 2;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tag {
    padding: 0.20rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.tag-maintenance,
.tag-buy-sell,
.tag-security,
.tag-ia-tech,
.tag-news {
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-featured {
    background: var(--primary, #14b08e);
    color: white;
    border: none;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 480;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-description {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.blog-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

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

.blog-card-date,
.blog-card-read-time {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-date::before {
    content: "\f073";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.blog-card-read-time::before {
    content: "\f017";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.blog-card-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-card-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 400px;
}

/* Popular Posts Widget - Specific Styles */
.popular-posts-widget {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    padding: 1.5rem;
}

.popular-widget-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.popular-widget-header i {
    color: var(--primary, #14b08e);
    font-size: 1.25rem;
    font-weight: 400;
}

.popular-widget-header h4 {
    font-size: 0.9375rem;
    font-weight: 480;
    color: #111827;
    margin: 0;
}



.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popular-post-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.popular-post-thumbnail {
    width: 60px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-info {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    font-size: 0.875rem;
    font-weight: 480;
    color: #111827;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    transition: color 0.3s ease;
    cursor: pointer;
}

.popular-post-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.popular-post-number {
    font-size: 1.125rem;
    font-weight: 480;
    color: #6b7c7c;
    flex-shrink: 0;
    min-width: 20px;
}

.popular-post-title:hover {
    color: var(--primary, #14b08e);
}

/* Categories Widget - Specific Styles */
.categories-widget {
    background: white !important;
    border: 1px solid #e5e7eb !important;
}

.categories-btn {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    background: white !important;
    color: #374151 !important;
    border: 1px solid white !important;
    border-radius: 14px;
    font-size: 0.9375rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.categories-btn.active {
    background: var(--primary, #14b08e) !important;
    color: white !important;
    border-color: white !important;
}

.categories-btn:hover:not(.active) {
    border-color: white !important;
}

.category-name {
    flex: 1;
    text-align: left;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
}

.categories-btn:not(.active) .category-count {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}

.categories-btn.active .category-count {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.categories-btn i {
    color: inherit;
    font-size: 0.875rem;
}

.sidebar-widget {
    background: #f8fbfb;
    border: 1px solid color-mix(in oklab, var(--primary) 20%, transparent);
    border-radius: 12px;
    padding: 1.5rem;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.widget-header i {
    color: var(--primary, #14b08e);
    font-size: 1.25rem;
    font-weight: 400;
}

.widget-header h4 {
    font-size: 0.9375rem;
    font-weight: 480;
    color: #111827;
    margin: 0;
}

.widget-content p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    padding: 0.5rem;
    border: 1px solid #ffffff;
    border-radius: 6px;
    font-size: 0.8125rem;
    height: 36px;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary, #14b08e);
}

.newsletter-btn {
    padding: 0.5rem 0.75rem;
    background: var(--primary, #14b08e);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 36px;
}

.newsletter-btn:hover {
    background: #0f9b7a;
}

.newsletter-disclaimer {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.popular-rank {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary, #14b08e);
    min-width: 20px;
}

.popular-content h5 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.popular-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Categories */
.categories-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--primary, #14b08e);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 480;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.categories-btn:hover {
    background: #0f9b7a;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

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

.category-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* App Download Widget */
.app-download-widget {
    background: linear-gradient(to right bottom, oklab(0.676026 -0.126659 0.0177948 / 0.1) 0%, oklab(0.546093 -0.0266517 -0.213514 / 0.1) 100%);
    min-height: 230px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-download-icon {
    width: 50px;
    height: 50px;
    background: color-mix(in oklab, var(--primary) 20%, transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.app-download-icon i {
    font-size: 1.25rem;
    color: var(--primary, #14b08e);
}

.app-download-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-download-content h4 {
    font-size: 1rem;
    font-weight: 480;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.app-download-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.app-download-btn {
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 2rem;
    background: white;
    color: #1f2937;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.app-download-btn:hover {
    background: #e9f2f0;
}

.app-download-btn:active {
    background: #e9f2f0;
    transform: translateY(1px);
}

/* App Download Full Width Section */
.awtu-app-download-fullwidth {
    background: #f8fbfb;
    padding: 4rem 0;
    margin-top: 4rem;
}

.awtu-app-download-fullwidth .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.app-download-fullwidth-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.app-download-fullwidth-content h2 {
    font-size: 2rem;
    font-weight: 480;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.app-download-fullwidth-content p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.app-download-buttons-fullwidth {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-store-btn,
.google-play-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 160px;
}

.app-store-btn:hover,
.google-play-btn:hover {
    background: #333333;
    transform: translateY(-2px);
}

.app-store-icon i,
.google-play-icon svg {
    font-size: 1.5rem;
}

.app-store-text,
.google-play-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.app-store-text span,
.google-play-text span {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.app-store-text strong,
.google-play-text strong {
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive for App Download Full Width */
@media (max-width: 768px) {
    .awtu-app-download-fullwidth {
        padding: 3rem 0;
    }
    
    .app-download-fullwidth-content h2 {
        font-size: 2rem;
    }
    
    .app-download-fullwidth-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .app-download-buttons-fullwidth {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .app-store-btn,
    .google-play-btn {
        min-width: 200px;
        justify-content: center;
    }
}

/* Responsive for Blog Content */
@media (max-width: 1024px) {
    .awtu-blog-content .container {
        margin-left: 77px !important;
        max-width: 85%;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .awtu-blog-content .container {
        margin-left: 0 !important;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .awtu-blog-content {
        padding: 2rem 0;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
    
    .blog-card-title {
        font-size: 0.9rem;
    }
    
    .sidebar-widget {
        padding: 0.75rem;
    }
}
