@import url("global.css");

.blog-card {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: var(--bg-color);
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.blog-image {
    width: 100%;
    height: 400px !important;
    display: block;
    opacity: 0.5;
}
.blog-image2 {
    width: 100%;
    height: auto;
    opacity: 0.6;
    filter: blur(5px);
    transition: opacity 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.blog-image2:hover {
    opacity: 1;
    filter: blur(0);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.8)
    );
}
.blog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-color);
    width: 80%;
}
.blog-content2 {
    position: absolute;
    top: 75%;
    left: 30%;
    transform: translate(-50%, -50%);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: start;
    color: var(--text-color);
    width: 80%;
    max-width: fit-content;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    overflow: hidden;
    word-wrap: break-word;
    transition: all 0.3s ease;
}
.label {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}
.blog-title {
    font-size: 22px;
    margin-top: 10px;
    font-weight: bold;
}
.blog-description {
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.5;
}
.read-more {
    font-size: 22px;
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: opacity 0.3s;
}
.read-more:hover {
    opacity: 0.7;
    color: var(--alt-color);
}
@media (max-width: 600px) {
    .blog-card {
        width: 100%;
    }
    .blog-content {
        width: 90%;
    }
    .blog-title {
        font-size: 18px;
    }
    .blog-description {
        font-size: 12px;
    }
    .read-more {
        font-size: 18px;
    }
}

.blcontainer {
    max-width: 1200px;
    margin: auto;
}

.blcontainer h2 {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--text-color);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.explore-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 2px solid var(--alt-text);
}

.explore-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
}
.explore-subtitle {
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.explore-subtitle a {
    text-decoration: none;
    color: var(--alt-color);
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.explore-subtitle a:hover {
    color: var(--text-color);
    scale: 1.05;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    padding: 10px;
}

.sort-label {
    font-weight: 500;
    color: var(--alt-text);
}

.sort-dropdown {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.sort-dropdown:hover {
    border-color: var(--alt-color);
}

.blog-card {
    background-color: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.blog-card img,
.blog-card video {
    width: 100%;
    height: 300px;
    object-fit: contain;
}
.blog-content {
    padding: 20px;
}

.blog-meta {
    font-size: 14px;
    color: var(--alt-text);
    display: flex;
    align-items: center;
}
.blog-meta i {
    margin-right: 5px;
    color: var(--text-color);
}
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

#overlayContent {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    background-color: transparent;
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#overlayImage {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
}

.close-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--error);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

#overlayTitle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

#overlayDescription {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

#overlayVideo {
    max-width: 400px;
    max-height: 400px;
    border-radius: 8px;
    margin-top: 20px;
    margin: 0 auto;
    display: block;
}

#overlayVideoSource {
    width: 100%;
}

.gallery-overlay {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--alt-text);
    transition: color 0.3s ease-in-out;
    padding: 5px 10px;
    border-radius: 5px;
}

.like-button i {
    font-size: 22px;
    margin-right: 5px;
    transition: transform 0.2s ease-in-out;
}

.like-button i.bx-heart {
    color: var(--alt-text);
}

.like-button i.bxs-heart {
    color: var(--error);
}

.like-button:hover {
    color: var(--error);
}

.like-button:hover i {
    transform: scale(1.1);
}
.search-box,
.search-results {
    width: 100% !important;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 0;
}

.pagination nav {
    display: flex;
}

.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #333;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background-color: #007bff;
    color: #fff;
}

.pagination li.active span {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-chips {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    background-color: var(--bg-color);
    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(--alt-text);
}

.chip.active {
    background-color: var(--alt-color);
    color: var(--text-color);
}
