/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo-image {
    height: 45px;
    width: auto;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.bar {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #374151;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgb(55 65 81);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: rgb(37 99 235);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1f2937;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 50;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Overlay when menu is open */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 40;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Search Section Styles */
.search-section {
    background-image: linear-gradient(to bottom right, rgb(249 250 251), rgb(243 244 246));
    padding-top: 4rem;
    padding-bottom: 1rem;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

/* Add practical background pattern */
.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

.search-section .container {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
        padding-bottom: 5px;
    }
}
.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    background: transparent;
    box-shadow: none;
    position: relative;
}

@media (min-width: 640px) {
    .search-form {
        flex-direction: row;
    }
}

.search-input-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgb(229 231 235);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: rgb(59 130 246);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
    outline: none;
}

/* Autocomplete Styles */
.autocomplete-items {
    position: absolute;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    display: none;
    border: 1px solid rgb(229 231 235);
    border-top: none;
}

.autocomplete-items.active {
    display: block;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #f1f1f1;
}

.autocomplete-item strong {
    color: #4f46e5;
    font-weight: 600;
}

.autocomplete-item-category {
    font-size: 0.75rem;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

@media (prefers-color-scheme: dark) {
    .autocomplete-items {
        background-color: #1f2937;
        border: 1px solid #374151;
        border-top: none;
    }

    .autocomplete-item {
        border-bottom: 1px solid #374151;
        color: #e5e7eb;
    }

    .autocomplete-item:hover,
    .autocomplete-item.selected {
        background-color: #111827;
    }

    .autocomplete-item strong {
        color: #60a5fa;
    }

    .autocomplete-item-category {
        background-color: #374151;
        color: #9ca3af;
    }
}

.search-button {
    padding: 0.75rem 2rem;
    background-color: rgb(37 99 235);
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
    transform: translateY(0);
}

.search-button:hover {
    background-color: rgb(29 78 216);
    transform: scale(1.05);
}

/* Search Results Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 1.5rem;
    }
}

@media (max-width: 900px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

.image-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.image-container {
    position: relative;
    aspect-ratio: 4/3; /* Consistent aspect ratio */
    background-color: #f3f4f6; /* Light background while image loads */
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    display: block; /* Remove any extra space */
    image-rendering: high-quality; /* Hint to browser to prioritize quality */
}

/* Add a subtle zoom effect on hover */
.image-container:hover img {
    transform: scale(1.05);
}

/* Loading indicator for images */
.image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
    opacity: 0.7;
}

.image-container.loaded::before {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(2px); /* Slight blur effect for better text readability */
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    width: 100%;
    border: none;
    cursor: pointer;
}

.action-button:hover {
    background: white;
    transform: translateX(5px);
}

.action-button svg {
    width: 16px;
    height: 16px;
}

.preview-button {
    background: rgba(37, 99, 235, 0.9);
    color: white;
}

.preview-button:hover {
    background: rgb(37, 99, 235);
}

.download-button {
    background: rgba(22, 163, 74, 0.9);
    color: white;
}

.download-button:hover {
    background: rgb(22, 163, 74);
}



.image-info {
    padding: 1rem;
    background: white;
}

.share-button {
    background: none;
    border: none;
    color: #4b5563;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.share-button:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.share-button svg {
    width: 0.875rem;
    height: 0.875rem;
}

.share-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
}

.share-menu-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.share-menu.active .share-menu-content {
    transform: translateY(0);
}

.share-menu h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.share-buttons .share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-button.facebook {
    background-color: #1877f2;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.pinterest {
    background-color: #e60023;
}

.share-button.linkedin {
    background-color: #0a66c2;
}

.share-button.copy {
    background-color: #6b7280;
    color: white;
}

.share-buttons .share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-share-menu {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-share-menu:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

@media (max-width: 640px) {
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    .share-button {
        color: #9ca3af;
    }

    .share-button:hover {
        background-color: #374151;
        color: #60a5fa;
    }

    .share-menu-content {
        background-color: #1f2937;
    }

    .share-menu h3 {
        color: #f3f4f6;
    }

    .close-share-menu {
        color: #9ca3af;
    }

    .close-share-menu:hover {
        background-color: #374151;
        color: #f3f4f6;
    }
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.photographer {
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 500;
}

.source-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: #f3f4f6;
    color: #374151;
    font-weight: 500;
}

.size-info {
    font-size: 0.75rem;
    color: #6b7280;
}

.search-status {
    text-align: center;
    padding: 1rem;
    color: #4b5563;
    font-size: 0.875rem;
}

/* Loading Message Styles */
.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: rgba(37, 99, 235, 0.9);
    border-radius: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    color: white;
    font-weight: 500;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.75rem;
}

.loading-text {
    font-size: 0.9rem;
}

/* Dark mode for loading message */
@media (prefers-color-scheme: dark) {
    .loading-message {
        background-color: rgba(59, 130, 246, 0.9);
    }
}

/* How It Works Section */
.how-it-works-section {
    padding: 3rem 0;
    background-color: white;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
    .how-it-works-section {
        background-color: #111827;
    }

    .step {
        background-color: #1f2937;
    }

    .step-content h3 {
        color: #f3f4f6;
    }

    .step-content p {
        color: #9ca3af;
    }

    .features-section {
        background-color: #111827;
    }

    .feature-card {
        background-color: #1f2937;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    }

    .feature-card h3 {
        color: #f3f4f6;
    }

    .feature-card p {
        color: #9ca3af;
    }
}

/* Features Section */
.features-section {
    padding: 2rem 0;
    background-color: white;
}

.features-section h2,
.testimonials-section h2,
.blog-posts-section h2,
.categories-section h2,
.how-it-works-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-0.5rem);
}

.feature-icon {
    font-size: 2.5rem;
    color: rgb(37 99 235);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(31 41 55);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: rgb(107 114 128);
}

/* About Section Redesign */
.about-section {
    text-align: center;
    padding: 2rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-text {
    text-align: center;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 2rem;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    border-radius: 2px;
}

.about-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #4b5563;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}

.about-description:last-of-type {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem auto 0;
    max-width: 1200px;
    padding: 0 1rem;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        max-width: 95%;
    }

    .about-section {
        padding: 3rem 0;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-description {
        font-size: 1rem;
    }
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.2s;
}

.stat-item:hover {
    transform: translateY(-0.5rem);
}

.stat-number {
    font-size: 2.5rem;
    color: rgb(37 99 235);
    margin-bottom: 1rem;
    font-weight: 800;
}

.stat-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(31 41 55);
    margin-bottom: 0.5rem;
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 2rem 0;
    background-color: #f9fafb;
}

/* Blog Main Page */
.blog-main {
    padding: 3rem 0 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.blog-subtitle {
    text-align: center;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (prefers-color-scheme: dark) {
    .blog-main {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    }

    .page-title {
        color: #f3f4f6;
    }

    .blog-subtitle {
        color: #9ca3af;
    }
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

.blog-post-card {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0px 0 1rem 0; /* Add padding to top to compensate for negative margin of image */
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blog-post-image-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
    line-height: 0; /* Fix space at top of images */
    font-size: 0; /* Additional fix for space above images */
    display: block; /* Ensure block display */
    margin-top: -34px; /* Make images flush with the top of the card */
}

.blog-post-image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-image-container:hover .blog-post-image-overlay {
    opacity: 1;
}

.blog-share-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #2563eb;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.blog-share-button:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.blog-post-card:hover .blog-post-image {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: -10px; /* Adjust spacing between image and content */
}

.blog-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.blog-post-title a:hover {
    color: #2563eb;
}

.blog-post-excerpt {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex-grow: 1;
}

.blog-post-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-post-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.blog-post-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    margin-bottom: 0;
}

.blog-post-button {
    display: block;
    flex: 1;
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: white;
    border-radius: 0.375rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-post-actions .blog-share-button {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
}

.blog-post-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: white;
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: white;
    color: #4b5563;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-button:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.pagination-button.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination-button.next,
.pagination-button.prev {
    font-size: 0.875rem;
}

/* Dark mode for blog posts */
@media (prefers-color-scheme: dark) {
    .blog-posts-section {
        background-color: #111827;
    }

    .pagination-button {
        background-color: #1f2937;
        color: #e5e7eb;
        border-color: #374151;
    }

    .pagination-button:hover {
        background-color: #374151;
        color: #60a5fa;
    }

    .pagination-button.active {
        background-color: #60a5fa;
        color: #111827;
        border-color: #60a5fa;
    }

    .blog-post-card {
        background-color: #1f2937;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    }

    .blog-post-title {
        color: #f3f4f6;
    }

    .blog-post-excerpt {
        color: #9ca3af;
    }

    .blog-post-link {
        color: #60a5fa;
    }

    .blog-post-link:hover {
        color: #93c5fd;
    }

    .blog-share-button {
        background-color: rgba(31, 41, 55, 0.9);
        color: #60a5fa;
    }

    .blog-share-button:hover {
        background-color: #60a5fa;
        color: #111827;
    }

    .blog-post-actions .blog-share-button {
        background-color: rgba(31, 41, 55, 0.9);
        color: #60a5fa;
    }

    .blog-post-actions .blog-share-button:hover {
        background-color: #60a5fa;
        color: #111827;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.reduced-motion * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .image-card,
    .blog-post-card,
    .feature-card,
    .testimonial-card,
    .stat-item,
    .faq-item {
        border: 1px solid;
    }

    .search-button,
    .action-button,
    .blog-post-button,
    .share-button {
        border: 1px solid;
    }

    .image-overlay {
        background: rgba(0, 0, 0, 0.7) !important;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f9fafb;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #9ca3af;
}

.breadcrumbs a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.breadcrumbs li:last-child span {
    color: #6b7280;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .breadcrumbs li:not(:first-child):not(:last-child) {
        display: none;
    }

    .breadcrumbs li:last-child span {
        max-width: 200px;
    }
}

@media (prefers-color-scheme: dark) {
    .breadcrumbs {
        background-color: #111827;
        border-bottom-color: #374151;
    }

    .breadcrumbs a {
        color: #e5e7eb;
    }

    .breadcrumbs a:hover {
        color: #60a5fa;
    }

    .breadcrumbs li:not(:last-child)::after {
        color: #6b7280;
    }

    .breadcrumbs li:last-child span {
        color: #9ca3af;
    }
}

/* Blog Post Page Styles */
.blog-post-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-post {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.blog-post-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.blog-post-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Blog Post Share Styles */
.blog-post-share {
    position: relative;
}

.share-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.share-trigger:hover {
    background-color: #f3f4f6;
    color: #1d4ed8;
}

.share-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: -100px;
    width: 300px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-menu-content {
    padding: 1.5rem;
    position: relative;
}

.share-menu h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.share-button.facebook {
    background-color: #1877f2;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.linkedin {
    background-color: #0a66c2;
}

.share-button.pinterest {
    background-color: #e60023;
}

.share-button.email {
    background-color: #6b7280;
}

.share-button.copy {
    background-color: #2563eb;
}

.share-button.print {
    background-color: #4b5563;
}

.share-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.close-share-menu {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.close-share-menu:hover {
    color: #1f2937;
}

.blog-post-featured-image {
    margin: 0;
    width: 100%;
}

.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.blog-post-featured-image figcaption {
    padding: 0.5rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    background-color: #f9fafb;
}

.blog-post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    padding: 2rem;
}

@media (max-width: 768px) {
    .blog-post-content-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-post-title-large {
        font-size: 1.875rem;
    }
}

.blog-post-toc {
    position: sticky;
    top: 2rem;
    align-self: start;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.blog-post-toc h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.blog-post-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-post-toc li {
    margin-bottom: 0.5rem;
}

.blog-post-toc a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.blog-post-toc a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.blog-post-content-main {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
}

.blog-post-content-main h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.blog-post-content-main h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 1rem;
}

.blog-post-content-main p {
    margin-bottom: 1.25rem;
}

.blog-post-content-main a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-content-main a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.blog-post-content-main ul,
.blog-post-content-main ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post-content-main li {
    margin-bottom: 0.5rem;
}

.blog-post-image {
    margin: 2rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.content-image {
    width: 100%;
    border-radius: 0.5rem;
}

.blog-post-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    padding: 0.5rem 0;
}

.blog-post-related {
    padding: 2rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.blog-post-related h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 640px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.related-post-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.related-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    padding: 1rem 1rem 0.5rem;
    line-height: 1.4;
}

.related-post-card .blog-post-button {
    margin: 0 1rem 1rem;
    display: inline-block;
}

/* Dark mode for blog post page */
@media (prefers-color-scheme: dark) {
    .blog-post {
        background-color: #1f2937;
    }

    .blog-post-title-large {
        color: #f3f4f6;
    }

    .blog-post-meta {
        color: #9ca3af;
    }

    .share-trigger {
        color: #60a5fa;
    }

    .share-trigger:hover {
        background-color: #374151;
        color: #93c5fd;
    }

    .share-menu {
        background-color: #1f2937;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    }

    .share-menu h3 {
        color: #f3f4f6;
    }

    .close-share-menu {
        color: #9ca3af;
    }

    .close-share-menu:hover {
        color: #f3f4f6;
    }

    .blog-post-featured-image figcaption {
        color: #9ca3af;
        background-color: #111827;
    }

    .blog-post-toc {
        background-color: #111827;
    }

    .blog-post-toc h2 {
        color: #f3f4f6;
    }

    .blog-post-toc a {
        color: #60a5fa;
    }

    .blog-post-toc a:hover {
        color: #93c5fd;
    }

    .blog-post-content-main {
        color: #d1d5db;
    }

    .blog-post-content-main h2,
    .blog-post-content-main h3 {
        color: #f3f4f6;
        border-top-color: #374151;
    }

    .blog-post-content-main a {
        color: #60a5fa;
    }

    .blog-post-content-main a:hover {
        color: #93c5fd;
    }

    .blog-post-image figcaption {
        color: #9ca3af;
    }

    .blog-post-related {
        background-color: #111827;
        border-top-color: #374151;
    }

    .blog-post-related h2 {
        color: #f3f4f6;
    }

    .related-post-card {
        background-color: #1f2937;
    }

    .related-post-card h3 {
        color: #f3f4f6;
    }
}

/* Categories Section */
.categories-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.category-image-container {
    width: 100%;
    height: 100%;
}

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

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    text-align: center;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 0.875rem;
    opacity: 0.9;
}

@media (prefers-color-scheme: dark) {
    .categories-section {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    }
}

/* Testimonials Section Redesign */
.testimonials-section {
    padding: 6rem 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background-color: #ffffff;
    color: #1f2937;
}

.newsletter-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: #1d4ed8;
}

.form-privacy {
    font-size: 0.875rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.privacy-label input {
    margin-top: 0.25rem;
}

.privacy-label a {
    color: white;
    text-decoration: underline;
}

.newsletter-success, .newsletter-loading, .newsletter-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.newsletter-success i {
    font-size: 3rem;
    color: #10b981;
}

.newsletter-error i {
    font-size: 3rem;
    color: #ef4444;
}

/* Spinner animation for loading state */
.spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #60a5fa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .form-group {
        flex-direction: column;
    }

    .newsletter-button {
        padding: 0.75rem;
    }

    .newsletter-title {
        font-size: 2rem;
    }

    .hide-on-mobile {
        display: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    .newsletter-input {
        background-color: #f9fafb;
        color: #1f2937;
    }
}

/* FAQ Section Redesign */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item h3 {
    font-size: 1.65rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.7;
    text-align: center;
}

/* Footer Redesign */
.footer {
    background: #1f2937;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-column h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #f3f4f6;
}

.footer-logo {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.social-icon:hover {
    background: #60a5fa;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .search-section {
        background-image: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }

    .search-section::before {
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2360a5fa' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .about-section,
    .faq-section {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }

    .about-description,
    .faq-item p {
        color: #9ca3af;
    }

    .stat-item,
    .testimonial-card,
    .faq-item {
        background-color: #1f2937;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    }

    .stat-number {
        color: #60a5fa;
    }

    .stat-label {
        color: #f3f4f6;
    }

    .testimonial-content {
        color: #e5e7eb;
    }

    .testimonial-author h4 {
        color: #f3f4f6;
    }

    .footer {
        background: #111827;
    }

    /* Dark mode dropdown menu */
    .dropdown-menu {
        background-color: #1f2937;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }

    .dropdown-menu a {
        color: #f3f4f6;
    }

    .dropdown-menu a:hover {
        background-color: #111827;
        color: #60a5fa;
    }
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }

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

.filter-section {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    max-width: 80rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #4b5563;
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:hover {
    border-color: #2563eb;
}

@media (prefers-color-scheme: dark) {
    .filter-section {
        background: #1f2937;
    }

    .filter-group label {
        color: #e5e7eb;
    }

    .filter-select {
        background-color: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }

    .filter-toggle {
        background-color: #374151;
        color: #e5e7eb;
    }

    .filter-toggle:hover {
        background-color: #4b5563;
    }
}

/* Filter section styles */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    justify-content: center;
    position: relative;
}

.filter-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: center;
}

.filter-toggle {
    display: none;
    width: 100%;
    padding: 0.75rem;
    background-color: #f3f4f6;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    margin-bottom: 1rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-toggle i {
    transition: transform 0.3s ease;
}

.filter-toggle.active i {
    transform: rotate(180deg);
}

.filter-group {
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 200px;
}

/* Color filter swatches */
.color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-red { background-color: #ef4444; }
.color-orange { background-color: #f97316; }
.color-yellow { background-color: #eab308; }
.color-green { background-color: #22c55e; }
.color-blue { background-color: #3b82f6; }
.color-purple { background-color: #a855f7; }
.color-pink { background-color: #ec4899; }
.color-brown { background-color: #92400e; }
.color-black { background-color: #171717; }
.color-white { background-color: #ffffff; }
.color-gray { background-color: #9ca3af; }

@media (max-width: 768px) {
    .filter-section {
        gap: 1rem;
        padding: 1rem;
    }

    .filter-group {
        flex-basis: auto;
        min-width: 150px;
    }

    .filter-toggle {
        display: flex;
    }

    .filter-wrapper {
        display: none;
        width: 100%;
        overflow-x: visible;
        flex-wrap: wrap;
    }

    .filter-wrapper.active {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .filter-group {
        flex-basis: 100%;
    }
}

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

.filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    font-size: 0.875rem;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:hover {
    border-color: #2563eb;
}

.filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
    border-color: #2563eb;
}

/* Preview Modal Styles */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.preview-content {
    background-color: white;
    border-radius: 1rem;
    max-width: 95%;
    max-height: 95vh;
    width: 1000px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@media (max-width: 768px) {
    .preview-modal {
        padding: 0.5rem;
    }

    .preview-content {
        max-width: 98%;
        max-height: 98vh;
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-preview {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-preview:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.preview-image-container {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    position: relative;
}

.preview-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.preview-image-container img.loaded {
    opacity: 1;
}

/* Loading indicator for preview modal */
.preview-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* Hide spinner when image is loaded */
.preview-image-container.image-loaded::before {
    display: none;
}

.preview-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.preview-metadata p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.preview-action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
    min-width: 180px;
}

.preview-action-button svg {
    width: 18px;
    height: 18px;
}

.download-action {
    background-color: #16a34a;
    color: white;
}

.download-action:hover {
    background-color: #15803d;
    transform: translateY(-2px);
}



/* Dark mode for preview modal */
@media (prefers-color-scheme: dark) {
    .preview-content {
        background-color: #1f2937;
    }

    .preview-image-container {
        background-color: #111827;
    }

    .preview-metadata p {
        color: #e5e7eb;
    }
}

/* Page Content Styles */
.page-content {
    min-height: 70vh;
}

.page-header {
    background-image: linear-gradient(to bottom right, rgb(249 250 251), rgb(243 244 246));
    padding: 4rem 0 2rem;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 10px;
}

.page-body {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.page-body h2:first-child {
    margin-top: 0;
}

.page-body p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.page-body ul, .page-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-body li {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-align: center;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #4b5563;
    transform: translateY(-2px);
}

/* Contact Page Styles */
.contact-info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.social-icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.social-icon-large:hover {
    transform: scale(1.1);
}

/* Dark mode for pages */
@media (prefers-color-scheme: dark) {
    .page-header {
        background-image: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }

    .page-body {
        background-color: #1f2937;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .page-body h2 {
        color: #f3f4f6;
    }

    .page-body p, .page-body li {
        color: #9ca3af;
    }

    .form-group label {
        color: #e5e7eb;
    }

    .form-control {
        background-color: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #374151;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.pagination button.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: 2.5rem;
    color: #6b7280;
    font-weight: bold;
}

/* Dark mode for pagination */
@media (prefers-color-scheme: dark) {
    .pagination button {
        background-color: #1f2937;
        color: #e5e7eb;
        border-color: #4b5563;
    }

    .pagination button:hover {
        background-color: #374151;
    }

    .pagination button.active {
        background-color: #3b82f6;
        border-color: #3b82f6;
    }
}
