* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: rgb(249, 250, 251);
    font-family: system-ui, -apple-system, sans-serif;
}

.header {
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between logo and title */
}

.header-logo {
    height: 60px;
    width: auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-align: left;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    border: none;
    background: none;
    padding: 0;
}

.blog-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: rgb(17, 24, 39);
    margin: 0; /* Remove extra margin */
}

.search-container {
    margin-top: 1rem;
    position: relative;
}

.search-input {
    padding: 0.5rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
}

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

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.main-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3.5rem 1rem;
}

.blog-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out;
    background-color: white; /* Add white background */
    border-radius: 0.5rem; /* Round corners */
    overflow: hidden; /* Ensure image respects border radius */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

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


.blog-image {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: contain;
    object-position: center;
    background-color: #f3f4f6; /* subtle backdrop to frame images when contained */
}

.blog-content {
    padding: 1.5rem;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.blog-title-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(17, 24, 39);
    text-decoration: none;
}

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

.blog-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.blog-excerpt {
    margin-top: 1rem;
    color: #4b5563;
}

.footer {
    background-color: rgb(17, 24, 39);
    color: white;
    margin-top: 3rem;
    padding: 3rem 1rem;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
}

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

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
}

.app-downloads {
    margin-top: 1.5rem;
}

.app-stores {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.store-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #374151;
    border-radius: 0.5rem;
    text-decoration: none;
    color: white;
    transition: background-color 0.2s;
}

.store-link:hover {
    background: #4B5563;
}

.store-text {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}

.store-text strong {
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgb(31, 41, 55);
    text-align: center;
    color: #9ca3af;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: #9ca3af;
    transition: color 0.2s;
}

.social-link:hover {
    color: white;
}

.social-icon {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 768px) {
    .header-wrapper {
        flex-direction: row;
    }

    .search-container {
        margin-top: 0;
    }

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

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

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

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