/* Layout wrapper */
.hlm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.hlm-layout-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.hlm-main {
    flex: 1 1 auto;
    min-width: 0;
}

.hlm-sidebar {
    flex: 0 0 300px;
}

/* Fullwidth layout - no sidebar */
.hlm-layout-fullwidth .hlm-layout-row {
    display: block;
}

/* Latest posts block */
.hlm-latest-posts {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.hlm-block-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.hlm-latest-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hlm-latest-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.hlm-latest-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
}

.hlm-latest-title a {
    text-decoration: none;
}

.hlm-latest-date {
    font-size: 12px;
    color: #666;
}

/* Bottom block */
.hlm-bottom-block {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Custom sidebar */
.hlm-custom-sidebar {
    width: 100%;
}

.hlm-custom-sidebar > * {
    margin-bottom: 20px;
}

.hlm-custom-sidebar > *:last-child {
    margin-bottom: 0;
}

/* Sidebar items frontend */
.hlm-sidebar-item-frontend {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.hlm-sidebar-item-frontend:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hlm-sidebar-item-frontend img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hlm-sidebar-post h4 {
    margin: 10px 0 5px;
    font-size: 16px;
}

.hlm-post-thumb {
    margin-bottom: 10px;
}

.hlm-post-date,
.hlm-posts-date {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.hlm-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hlm-posts-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.hlm-posts-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hlm-posts-thumb {
    flex: 0 0 60px;
}

.hlm-posts-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.hlm-posts-content {
    flex: 1;
}

.hlm-posts-content h5,
.hlm-posts-title {
    margin: 0 0 5px;
    font-size: 14px;
}

.hlm-posts-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-top: 5px;
}

.hlm-text-content {
    line-height: 1.6;
}

/* Category list */
.hlm-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hlm-category-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.hlm-category-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hlm-category-item a {
    text-decoration: none;
    color: #333;
}

.hlm-category-item a:hover {
    color: #0073aa;
}

.hlm-category-count {
    color: #666;
    font-size: 12px;
}

/* Bottom section */
.hlm-bottom-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.hlm-bottom-items-wrapper {
    width: 100%;
}

.hlm-bottom-item-frontend {
    margin-bottom: 30px;
}

.hlm-bottom-item-frontend:last-child {
    margin-bottom: 0;
}

/* Post navigation */
.hlm-post-navigation {
    margin: 30px 0;
}

.hlm-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.hlm-nav-previous,
.hlm-nav-next {
    flex: 0 0 auto;
}

.hlm-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.hlm-nav-button:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

.hlm-nav-button.hlm-nav-disabled {
    background: #ccc;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.hlm-nav-arrow {
    font-size: 18px;
    line-height: 1;
}

.hlm-nav-label {
    font-size: 14px;
}

.hlm-nav-previous .hlm-nav-button {
    flex-direction: row;
}

.hlm-nav-next .hlm-nav-button {
    flex-direction: row-reverse;
}

/* Post grid */
.hlm-post-grid {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.hlm-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hlm-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hlm-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.hlm-grid-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s;
}

.hlm-grid-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.hlm-grid-thumb {
    width: 100%;
    overflow: hidden;
}

.hlm-grid-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.hlm-grid-item:hover .hlm-grid-thumb img {
    transform: scale(1.05);
}

.hlm-grid-content {
    padding: 15px;
}

.hlm-grid-title {
    margin: 0 0 10px;
    font-size: 16px;
}

.hlm-grid-title a {
    text-decoration: none;
    color: #333;
}

.hlm-grid-title a:hover {
    color: #0073aa;
}

.hlm-grid-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 10px 0;
}

.hlm-grid-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.hlm-grid-date,
.hlm-grid-author,
.hlm-grid-category {
    display: inline-block;
}

.hlm-grid-author a,
.hlm-grid-category a {
    color: #0073aa;
    text-decoration: none;
}

.hlm-grid-author a:hover,
.hlm-grid-category a:hover {
    text-decoration: underline;
}

.hlm-grid-readmore {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.hlm-readmore-link {
    display: inline-block;
    padding: 8px 15px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.hlm-readmore-link:hover {
    background: #005a87;
    color: #fff;
}

/* Section Title */
.hlm-section-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Share Widget */
.hlm-share-widget {
    margin-top: 18px !important;
}

.hlm-share-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.hlm-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #fff !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: transform 0.08s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.hlm-share-btn:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
    text-decoration: none !important;
}

.hlm-share-btn:active {
    transform: translateY(0) !important;
}

.hlm-share-btn:focus {
    outline: 2px solid #0073aa !important;
    outline-offset: 2px !important;
}

.hlm-share-icon {
    display: inline-flex !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

.hlm-share-icon svg {
    width: 100% !important;
    height: 100% !important;
    fill: currentColor !important;
}

.hlm-share-btn span:not(.hlm-share-icon) {
    font-size: 14px !important;
    line-height: 1.2 !important;
}

/* Share button colors */
.hlm-share-x {
    color: #111 !important;
}

.hlm-share-fb {
    color: #1877F2 !important;
}

.hlm-share-li {
    color: #0A66C2 !important;
}

.hlm-share-tg {
    color: #229ED9 !important;
}

.hlm-share-wa {
    color: #25D366 !important;
}

.hlm-share-copy {
    color: #555 !important;
}

.footer-widget-title {
    margin: 0 0 10px;
}

/* Row and Column Layouts */
.hlm-row-frontend {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.hlm-column-frontend {
    padding: 0 10px;
    box-sizing: border-box;
    width: 100%;
}

.hlm-content-items-wrapper {
    width: 100%;
}

.hlm-content-item-frontend {
    margin-bottom: 20px;
}

.hlm-content-item-frontend:last-child {
    margin-bottom: 0;
}

.hlm-text-block {
    line-height: 1.6;
}

/* Responsive for rows/columns */
@media (max-width: 768px) {
    .hlm-row-frontend {
        flex-direction: column;
    }
    .hlm-column-frontend {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding: 0;
        margin-bottom: 20px;
    }
    .hlm-column-frontend:last-child {
        margin-bottom: 0;
    }
}

/* Responsive */
@media (max-width: 769px) {
    .hlm-layout-row {
        flex-direction: column;
    }
    .hlm-sidebar {
        flex: 1 1 auto;
        width: 100%;
    }
    .hlm-nav-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hlm-nav-previous,
    .hlm-nav-next {
        flex: 1 1 auto;
    }
    .hlm-nav-button {
        width: 100%;
        justify-content: center;
    }
    .hlm-grid-cols-2,
    .hlm-grid-cols-3,
    .hlm-grid-cols-4 {
        grid-template-columns: 1fr;
    }
    .hlm-share-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .hlm-share-grid {
        grid-template-columns: 1fr !important;
    }
}

