/**
 * Content Gallery Styles
 */

/* Single Content Styles */
.single-content-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 700;
}

.post-item {
    background-color: transparent;
    border: none;
}

.nikoala-post {
    padding: 2em;
    padding-top: 4em;
    margin: 2em;
}

.nikoala-post p {
    text-align: justify;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.post-meta a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-meta a:hover {
    text-decoration: underline;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
}

.reading-time i {
    margin-right: 5px;
    font-size: 0.95em;
}

.post-thumbnail {
    margin-bottom: 2rem;
    text-align: center;
}

.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-content-inner {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 2rem;
}

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

.post-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
}

.tags-label {
    font-weight: bold;
    color: #555;
}

.post-tags a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.post-header-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}
.post-header-content {
    width: 100%;
}
.company-data-content {
    margin-left: -20px;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.meta-item {
    margin: 0;
    padding: 0;
}

.meta-item:not(:last-child)::after {
    content: " | ";
    margin: 0 8px;
}

.meta-item a {
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

/* Archive & Category Styles */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.content-item {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.content-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.content-item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.77778; /* 16:9 aspect ratio */
}

.content-featured-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1.77778; /* 16:9 aspect ratio */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-item:hover .content-featured-image {
    transform: scale(1.05);
}

.content-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.content-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.5em;
    line-height: 1.3;
}

.content-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-title a:hover {
}

.content-meta {
    font-size: 0.9em;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.content-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.gallery-count {
    margin-bottom: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    background: #f8f8f8;
    padding: 8px 12px;
    border-radius: 20px;
    width: fit-content;
}

.gallery-count .dashicons {
    margin-right: 8px;
}

.content-read-more {
    margin-top: auto;
}

.read-more-button {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

/* Category Filter Styles */
.content-category-filter {
    margin-bottom: 35px;
    padding: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 700;
    margin-right: 15px;
    color: #444;
    min-width: fit-content;
}

.subcategory-label {
    color: #666;
    font-size: 0.9em;
}

.cat-filter-link {
    display: inline-block;
    padding: 8px 16px;
    color: #444;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cat-filter-link:hover {
    background-color: #d5d5d5;
    color: #222;
}

.cat-filter-link.active {
    background-color: #007cba;
    color: #fff;
}

/* Subcategory styling */
.subcategory-link:hover {
    background-color: #e0e0e0;
}

/* Pagination Styles */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover:not(.current) {
    background: #ddd;
}

/* Gallery Styles */
.content-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    overflow: hidden;
    /*border-radius: 8px;*/
    /*box-shadow: 0 3px 10px rgba(0,0,0,0.1);*/
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    /*height: 250px;*/
    /*object-fit: cover;*/
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image:hover {
    opacity: 0.9;
}

.news-lightbox,
.content-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-lightbox.show,
.content-lightbox.show {
    opacity: 1;
}

.news-lightbox-inner,
.content-lightbox-inner {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 35px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Comments Section */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    font-size: 1rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 600;
}

.comment-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.comment-list li.comment.byuser {
    background: unset;
    border: none;
}

#respond.comment-respond {
    background: unset;
}

.comment-body {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.comment-meta {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.comment-author {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-right: 1rem;
}

.comment-author .avatar {
    margin-right: 0.8rem;
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #777;
}

.comment-metadata a {
    color: #777;
    text-decoration: none;
}

.comment-metadata a:hover {
    text-decoration: underline;
}

.comment-content {
    margin: 0.8rem 0;
    line-height: 1.6;
    color: #444;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 0.5rem;
}

.reply a {
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.reply a:hover {
    text-decoration: underline;
}

.comment-respond {
    margin-top: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 600;
}

.comment-notes {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s ease-in-out;
}

.form-control:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 115, 170, 0.25);
}

.submit-btn {
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}


.no-comments {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f5f5f5;
    color: #333;
}

.comments-navigation {
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.comment-navigation .nav-previous,
.comment-navigation .nav-next {
    max-width: 48%;
}

.comment-navigation a {
    text-decoration: none;
    padding: 0.5rem 0;
    display: inline-block;
    transition: color 0.2s ease;
}

/* Content Gallery Shortcode Styles */
.news-gallery-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.news-gallery-grid.columns-1 {
    grid-template-columns: 1fr;
}

.news-gallery-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.news-gallery-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.news-gallery-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.news-gallery-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.news-gallery-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.news-gallery-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.news-gallery-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-gallery-thumbnail {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
}

.news-gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-gallery-link:hover .news-gallery-image {
    transform: scale(1.05);
}

.news-gallery-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-gallery-content {
    padding: 15px;
}

.news-gallery-title {
    margin: 0 0 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.news-gallery-meta {
    font-size: 0.85em;
    color: #777;
    display: flex;
    flex-wrap: wrap;
}

.news-gallery-date {
    margin-right: 5px;
}

.news-gallery-cats {
}

/* Filter Styles */
.news-gallery-filter {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.gallery-cat-filter {
    display: inline-block;
    padding: 5px 12px;
    background-color: #eaeaea;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.2s ease;
    cursor: pointer;
}

.gallery-cat-filter:hover {
    background-color: #d5d5d5;
}

.gallery-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 15px;
    display: flex;
    align-items: center;
}

.gallery-count-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 3px;
}

/* No Content Message */
.no-content-message {
    text-align: center;
    background-color: #f9f9f9;
    padding: 40px 20px;
    border-radius: 10px;
    border: 1px solid #eaeaea;
    margin: 30px 0;
}

.no-content-message p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1em;
}

.no-content-message .button {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-gallery-grid.columns-4,
    .news-gallery-grid.columns-5,
    .news-gallery-grid.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .single-content-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nikoala-post {
        padding: 1em;
        padding-top: 4em;
        margin: 0em;
    }


    .content-archive-title {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-gallery-grid.columns-3,
    .news-gallery-grid.columns-4,
    .news-gallery-grid.columns-5,
    .news-gallery-grid.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-category-filter {
        padding: 15px;
    }

    .filter-row {
        gap: 8px;
    }

    .cat-filter-link {
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .subcategory-link {
        font-size: 0.85em;
        padding: 5px 10px;
    }

    .content-featured-image {
        height: 220px;
    }

    .content-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-content-title {
        font-size: 1.8rem;
    }

    .post-content-inner {
        font-size: 1rem;
    }

    /* Responsive comment styles */

    .comment-author .avatar {
        width: 40px;
        height: 40px;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-metadata {
        margin-top: 0.5rem;
        margin-left: 3.1rem;
    }
}

@media (max-width: 480px) {
    .content-archive-title {
        font-size: 1.8rem;
    }

    .content-category-filter {
        padding: 12px;
    }

    .filter-row {
        gap: 6px;
        margin-bottom: 8px;
    }

    .filter-label {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0;
    }

    .cat-filter-link {
        font-size: 0.8em;
        padding: 5px 10px;
    }

    .subcategory-link {
        font-size: 0.75em;
        padding: 4px 8px;
    }

    .content-content {
        padding: 20px;
    }

    .content-title {
        font-size: 1.3em;
    }

    .news-gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .content-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        height: 200px;
    }

    .single-content-title {
        font-size: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
}