/* Main styles from prototype - converted to match WordPress structure */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #202124;
    background-color: #f8f9fa;
    max-width: 100vw;
    overflow-x: hidden;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.google-logo {
    font-family: 'Product Sans', Arial, sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #5f6368;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.primary-menu {
    display: flex;
    gap: 25px;
    list-style: none;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    text-decoration: none;
    color: #5f6368;
    font-size: 14px;
    transition: color 0.2s;
}

.primary-menu a:hover {
    color: #1a73e8;
}

.sign-in-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 9px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.sign-in-btn:hover {
    background-color: #0d62d9;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
}

.hero-section {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-family: 'Product Sans', Arial, sans-serif;
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #202124;
}

.hero-subtitle {
    font-size: 20px;
    color: #5f6368;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ========== SEARCH BAR - FIXED ========== */
.search-container {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto 30px;
    width: 100%;
    flex-direction: row; /* Explicitly set to row */
}

.search-bar {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #dadce0;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
    transition: border 0.2s;
    min-width: 300px;
}

.search-bar:focus {
    border-color: #1a73e8;
}

.search-btn {
    background-color: #34a853;
    color: white;
    border: 1px solid #34a853;
    border-left: none;
    padding: 12px 24px;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    width: auto;
    min-width: 60px;
}

.search-btn:hover {
    background-color: #2d9249;
}

.search-btn i {
    font-size: 18px;
}
/* ========== END SEARCH BAR FIX ========== */

/* Blog Posts Grid */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #202124;
    font-weight: 500;
}

/* BLOG GRID - 3 COLUMNS */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-image-link {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.blog-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    font-size: 48px;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    background-color: #e8f0fe;
    color: #1a73e8;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: background-color 0.2s;
    align-self: flex-start;
}

.blog-category:hover {
    background-color: #d2e3fc;
}

.blog-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #202124;
    line-height: 1.4;
    flex-grow: 1;
}

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

.blog-title a:hover {
    color: #1a73e8;
}

.blog-excerpt {
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #80868b;
    font-size: 13px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #80868b;
    transition: color 0.2s;
}

.author-link:hover {
    color: #1a73e8;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.views-count i {
    color: #5f6368;
}

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #5f6368;
    font-size: 13px;
    margin-top: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #5f6368;
    text-decoration: none;
    transition: all 0.2s;
}

.page-numbers.current {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.page-numbers:hover:not(.current) {
    background-color: #f8f9fa;
    border-color: #1a73e8;
    color: #1a73e8;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #dadce0;
    padding: 30px 20px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #202124;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #5f6368;
    font-size: 14px;
}

.footer-links a:hover {
    color: #1a73e8;
}

/* Footer Bottom - Full Width Credit Line */
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #dadce0;
    width: 100%;
}

.copyright {
    text-align: center;
    color: #80868b;
    font-size: 13px;
    padding: 15px 0;
    width: 100%;
    background-color: #f8f9fa;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet */
@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-section {
        width: 100%;
        min-width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-links .primary-menu {
        display: none;
    }
    
    /* SEARCH BAR - MOBILE: Button below */
    .search-container {
        flex-direction: column;
        max-width: 100%;
    }
    
    .search-bar {
        border: 1px solid #dadce0;
        border-radius: 4px;
        margin-bottom: 10px;
        min-width: 100%;
        width: 100%;
    }
    
    .search-btn {
        border: 1px solid #34a853;
        border-radius: 4px;
        width: 100%;
        padding: 12px 20px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .header {
        padding: 0 10px;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .hero-section {
        padding: 30px 15px;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sign-in-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
/* ========== SINGLE POST STYLES ========== */
.single-post {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.single-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.single-image {
    width: 100%;
    height: auto;
    display: block;
}

.single-header {
    margin-bottom: 30px;
}

.single-category {
    display: inline-block;
    background-color: #e8f0fe;
    color: #1a73e8;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 16px;
    margin-bottom: 15px;
    text-decoration: none;
}

.single-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #202124;
    line-height: 1.3;
}

.single-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 500;
    color: #202124;
}

.post-date {
    font-size: 13px;
    color: #80868b;
}

.post-stats {
    display: flex;
    gap: 20px;
}

.single-content {
    font-size: 16px;
    line-height: 1.8;
    color: #5f6368;
}

.single-content p {
    margin-bottom: 20px;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    margin: 30px 0 15px;
    color: #202124;
}

.single-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f1f3f4;
}

.post-tags {
    margin-bottom: 30px;
}

.post-tags h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #202124;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #f1f3f4;
    color: #5f6368;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
}

.tag:hover {
    background-color: #e8f0fe;
    color: #1a73e8;
}

/* ========== PAGE STYLES ========== */
.page-content {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #202124;
}

.page-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #5f6368;
}

/* ========== SEARCH PAGE STYLES ========== */
.search-results {
    padding: 40px 0;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #202124;
}

.search-query {
    color: #1a73e8;
}

.search-count {
    color: #5f6368;
    font-size: 16px;
}

.search-result-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.search-result-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.search-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #202124;
}

.search-result-title a {
    text-decoration: none;
    color: inherit;
}

.search-result-title a:hover {
    color: #1a73e8;
}

.search-result-excerpt {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.search-result-meta {
    display: flex;
    gap: 15px;
    color: #80868b;
    font-size: 13px;
}

.search-result-category a {
    color: #1a73e8;
    text-decoration: none;
}

.no-results {
    text-align: center;
    padding: 60px 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-again {
    max-width: 600px;
    margin: 30px auto 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-post,
    .page-content {
        padding: 25px;
    }
    
    .single-title,
    .page-title {
        font-size: 28px;
    }
    
    .single-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-result-card {
        flex-direction: column;
    }
    
    .search-result-image {
        width: 100%;
        height: 200px;
    }
}