/* Force light mode across entire website */
html {
    color-scheme: light !important;
}

body {
    color-scheme: light !important;
    background-color: white !important;
    color: black !important;
}

/* Blogs Page Specific Styles */

/* Blogs Hero Section */
.blogs-hero {
    padding: 80px 0 80px;
    margin-top: 60px;
    text-align: center;
    position: relative;
    background: #ffffff;
}

.blogs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 100%;
    background-color: #ffc801;
    z-index: 0;
    box-shadow: inset 0px 22px 15px rgba(0, 0, 0, 0.1), inset 0px 22px 15px rgba(0, 0, 0, 0.15);
}

.blogs-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 15px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent);
    pointer-events: none;
    z-index: 2;
}

.blogs-hero>* {
    position: relative;
    z-index: 1;
}

.blogs-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.4);
}


/* Blogs Content Section */
.blogs-content-section {
    padding: 80px 0;
    background: white;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.blogs-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 100%;
    box-shadow: inset 0px 8px 15px rgba(0, 0, 0, 0.2), inset 0px -8px 15px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 0;
}

.blogs-content-section>* {
    position: relative;
    z-index: 1;
}

/* Blogs Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1800px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* Ensure 3 columns on larger screens */
@media (min-width: 1024px) {
    .blogs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fancy Loading State */
.fancy-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 400px;
}

.loading-spinner {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.spinner-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffc801;
    animation: bounceSpinner 1.4s infinite ease-in-out both;
}

.spinner-circle:nth-child(2) {
    animation-delay: -0.16s;
}

.spinner-circle:nth-child(3) {
    animation-delay: -0.32s;
}

.loading-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    color: black;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.loading-word {
    animation: fadeInUp 0.8s ease-out both;
    display: inline-block;
}

.loading-word:nth-child(1) {
    animation-delay: 0s;
    color: #555;
}

.loading-word:nth-child(2) {
    animation-delay: 0.2s;
    color: #FFC801;
    font-weight: 600;
}

.loading-word:nth-child(3) {
    animation-delay: 0.4s;
    color: black;
}

.loading-dots {
    display: inline-flex;
    gap: 2px;
}

.dot {
    animation: pulseDot 1.5s infinite ease-in-out;
    color: black;
    font-weight: bold;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Loading Animations */
@keyframes bounceSpinner {

    0%,
    80%,
    100% {
        transform: translateY(10px);
        opacity: 0;
        opacity: 0.5;
    }

    40% {
        transform: translateY(0);
        opacity: 1;
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseDot {

    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: translateY(5px);
    }

    40% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Blog Image */
.blog-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: translateY(-3px);
}

.blog-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
}

.blog-category {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Content */
.blog-content {
    padding: 25px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: black;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.90rem;
    color: black;
}

.blog-author {
    font-weight: 400;
    color: black;
}

.blog-author-link {
    text-decoration: underline;
    color: #DC2644;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.blog-author-link:hover {
    color: #DC2644;
    text-decoration: underline;
}

.blog-author-link:active {
    color: #DC2644;
}

.blog-separator {
    color: #ccc;
}

.blog-read-time {
    color: black;
    font-weight: 400;

}

/* Error State */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #e53e3e;
    font-size: 1.1rem;
    padding: 60px 20px;
    background: #fed7d7;
    border-radius: 12px;
    margin: 20px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: black;
    font-size: 1.1rem;
    padding: 60px 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: black;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .blogs-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .blogs-hero {
        padding: 80px 0 60px;
    }

    .footer-bottom {
        margin: 0 -15px;
    }

    .blogs-hero h1 {
        font-size: 2.5rem;
    }

    .blogs-content-section {
        padding: 60px 0;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .fancy-loading {
        padding: 60px 15px;
        min-height: 300px;
    }

    .loading-text {
        font-size: 1.1rem;
        gap: 6px;
    }

    .spinner-circle {
        width: 10px;
        height: 10px;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .blogs-hero h1 {
        font-size: 2rem;
    }

    .blogs-grid {
        padding: 0 15px;
    }

    .blog-image {
        height: 180px;
    }

    .blog-content {
        padding: 18px;
    }

    .blog-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .blog-meta {
        font-size: 0.8rem;
    }

    .loading-message {
        padding: 40px 15px;
        font-size: 1rem;
    }
}

/* Animation for blog cards loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Blog card loading skeleton (for future use) */
.blog-card-skeleton {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.skeleton-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-content {
    padding: 25px;
}

.skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-title.short {
    width: 70%;
}

.skeleton-meta {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    width: 50%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Hover effects for better interaction */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-card:hover::before {
    opacity: 1;
}

/* Focus states for accessibility */
.blog-card:focus {
    outline: 3px solid #FFC801;
    outline-offset: 2px;
}

.blog-card:focus:not(:focus-visible) {
    outline: none;
}