.blogs {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.blogs-container {
    width: 75%;
    text-align: center;
    padding: 30px;
}

.blogs-container h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.blog-thumbnail {
    background: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: right;
    width: 100%;
    cursor: pointer;
}

.blog-thumbnail a {
    color: inherit;
    text-decoration: none;
}

.blog-thumbnail:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 150px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-thumbnail:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.blog-description {
    padding: 20px;
}

.blog-description p {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
}

.blog-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}


.blog-category {
    background-color: black;
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 14px;
    border: none;
    border-radius: 25px;
    background: #004B6A;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pagination button.active {
    background: #F37B74;
    transform: scale(1.1);
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.page-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: #333;
}

/* Loading styles */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading.active {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Blog Post Modal/Page Styles */
.blog-post-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.blog-post-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-blog {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-blog:hover {
    background: rgba(0, 0, 0, 0.9);
}

.blog-post-header {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.blog-post-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 30px 30px;
    color: white;
}

.blog-post-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.blog-post-body {
    padding: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.blog-post-body h3 {
    color: #2c3e50;
    margin: 30px 0 15px;
    font-size: 1.3rem;
}

.blog-post-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.blog-post-tags {
    padding: 0 30px 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blogs-container {
        width: 95%;
        padding: 20px;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-post-content {
        width: 95%;
        margin: 1% auto;
    }

    .blog-post-title {
        font-size: 1.5rem;
    }

    .blog-post-body {
        padding: 20px;
        font-size: 1rem;
    }
}

body {
    font-family: 'Almarai', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}