.filter-chips {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;
}

.chip {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.chip:hover {
    background-color: var(--text-secondary);
}

.chip.active {
    background-color: var(--info);
    color: var(--text-color);
}

/* SIDEBAR */
.sidebar,
.sidebar * {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 220px;
    height: auto;
    color: var(--text-color);
    border-right: 1px solid var(--text-secondary);
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    white-space: normal;
    transition: width 0.3s ease;
    background-color: transparent;
    backdrop-filter: blur(10px);
}

.sidebar-inner {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sidebar-title {
    font-size: 12px;
    color: var(--text-color);
    white-space: nowrap;
    text-align: center;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-nav {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    margin: 1.5rem 1rem;
}

.sidebar-heading {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--text-secondary);
    padding-bottom: 0.25rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin: 0.4rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    padding: 0.4rem;
    border-radius: 6px;
}

.sidebar-link:hover {
    color: var(--info);
    text-decoration: none;
}

.sidebar-link.active-link {
    background-color: var(--info);
    color: var(--text-color);
}
@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
        position: relative;
        min-height: auto;
    }

    .sidebar {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: auto;
        overflow: hidden;
        background-color: var(--bg-color);
        transition: width 0.3s ease;
        z-index: 20;
    }

    .sidebar.collapsed-mobile {
        width: 220px;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 15;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .mobile-sidebar-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        left: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-color);
        z-index: 25;
    }

    .content {
        padding: 1rem;
        position: relative;
        z-index: 1;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: background-color 0.2s;
}
.nav-link:hover {
    text-decoration: none;
    color: var(--info);
}
.nav-link i {
    font-size: 1.2rem;
}
.nav-link span {
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    white-space: normal;
}

.nav-link.active {
    color: var(--info);
}

.content {
    flex: 1;
    padding: 2rem 1rem;
    position: relative;
    transition: padding 0.3s ease;
}

.mobile-sidebar-toggle {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: row;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        overflow: hidden;
        background-color: var(--bg-color);
        transition: width 0.3s ease;
        z-index: 20;
    }

    .sidebar.collapsed-mobile {
        width: 230px;
        overflow-y: auto;
    }

    .mobile-sidebar-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-color);
        z-index: 30;
        transition: left 0.3s ease;
    }

    .sidebar.collapsed-mobile + .mobile-sidebar-toggle {
        left: 230px;
    }
    .content {
        padding: 1rem;
    }
}

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

.page-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
}

.tabs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.projects-wrapper {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.blog-card {
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
}

.blog-card img {
    width: 100%;
    max-height: 300px;
    display: block;
    object-fit: cover;
    margin-top: 20px;
}

.blog-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-title-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.arrow-icon {
    font-size: 20px;
    color: var(--info);
    cursor: pointer;
    margin-top: 2px;
}

.blog-title {
    font-size: 20px;
    line-height: 1.3;
    color: var(--text-color);
    cursor: pointer;
    word-break: break-word;
    max-width: 100%;
    flex: 1;
    margin: 0;
    text-align: left;
}
.blog-title:hover {
    text-decoration: underline;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: left;
}

.blog-meta span {
    margin-right: 0.5rem;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.blog-description {
    color: var(--text-color);
    word-break: break-word;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.tag {
    background-color: var(--info);
    color: var(--text-color);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.like-views-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: color 0.3s ease-in-out;
    padding: 5px 10px;
    border-radius: 5px;
    width: fit-content;
}

.like-button i {
    font-size: 22px;
    margin-right: 5px;
    transition: transform 0.2s ease-in-out;
}

.like-button i.bx-heart {
    color: var(--text-secondary);
}

.like-button i.bxs-heart {
    color: var(--error);
}

.like-button:hover {
    color: var(--info);
}

.like-button:hover i {
    transform: scale(1.1);
}

.search-bar {
    position: relative;
    flex: 1;
    margin-right: 1rem;
    max-width: 300px;
}

.search-bar i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.search-bar input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

@media (min-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.filter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
    width: 280px;
    max-width: 100%;
    background: var(--bg-color);
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.filter-icon {
    font-size: 20px;
    color: var(--text-color);
    flex-shrink: 0;
}

.sort-label {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    color: var(--text-color);
}

.sort-dropdown {
    flex-grow: 1;
    min-width: 110px;
    max-width: 140px;
    padding: 5px 8px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: var(--bg-color);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sort-dropdown:hover,
.sort-dropdown:focus {
    border-color: var(--info);
    outline: none;
}

/* Responsive */
@media (max-width: 320px) {
    .filter {
        width: 100%;
        padding: 8px 10px;
        gap: 4px;
    }

    .sort-dropdown {
        max-width: 100%;
        min-width: auto;
    }

    .sort-label {
        font-size: 0.9rem;
    }

    .filter-icon {
        font-size: 18px;
    }
}

.buy-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border: none;
    background-color: var(--info);
    color: var(--text-color);
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.buy-button i {
    padding: 10px;
}
.buy-button:hover {
    background-color: var(--bg-color);
}

.price {
    margin-left: 3px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-right: 5px;
}

.discounted-price {
    color: var(--info);
    font-weight: bold;
}

.full-price {
    color: var(--text-color);
}
