/*
Theme Name: Gospel Ambition
Description: A clean, elegant theme for Gospel Ambition - Fulfilling the Great Commission in this generation
Version: 1.0
Author: Gospel Ambition Team
Text Domain: gospel-ambition
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 999;
}



.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    max-width: 200px;
    max-height: 60px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo-link {
    display: block;
    max-width: 200px;
    max-height: 60px;
}

.site-branding .custom-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
    color: #3498db;
}

/* Dropdown Menus */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li.focus > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    padding: 0.75rem 1rem;
    color: #333;
    border-bottom: none;
}

.main-navigation .sub-menu a:hover {
    background: #f8f9fa;
    color: #3498db;
}

/* Menu indicators */
.main-navigation .menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Main Content */
.site-main {
    min-height: calc(100vh - 160px);
}

/* Blog Styles */
.blog-header {
    background: #bd1218;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.blog-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

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

.post-title a:hover {
    color: #3498db;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* Blog Sidebar */
.blog-sidebar {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    height: fit-content;
}

.blog-sidebar h3 {
    color: #bd1218;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #bd1218;
    padding-bottom: 0.5rem;
}

.sidebar-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-post-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 1rem;
}

.sidebar-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.sidebar-post-link:hover {
    transform: translateX(5px);
}

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 5px;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-content {
    flex: 1;
}

.sidebar-post-title {
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    line-height: 1.3;
    font-weight: 600;
}

.sidebar-post-link:hover .sidebar-post-title {
    color: #bd1218;
}

/* Blog Main Content */
.blog-main-content {
    min-width: 0; /* Prevents flex overflow */
}

/* Single Post */
article.single-post {
    margin: 0;
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Page Content */
.page-content {
    width: 100%;
    padding: 0;
}

.page-content.full-width {
    width: 100%;
    max-width: none;
}

.page-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    width: 100%;
}

.page-body h1, 
.page-body h2, 
.page-body h3, 
.page-body h4 {
    margin: 2rem 0 1rem;
    color: #2c3e50;
    line-height: 1.2;
}
.page-body .gb-white-text {
    color: #fff !important;
}

.page-body p {
    margin-bottom: 1.5rem;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Full width page styling */
.full-width .page-featured-image {
    width: 100%;
    margin: 0;
}

.full-width .page-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.single-post-meta {
    color: #666;
    font-size: 1rem;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.post-body {
    font-size: 1.1rem;
    /* line-height: 1.8; */
    color: #444;
}

.post-body h2, .post-body h3, .post-body h4 {
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    text-align: center;
}

.footer-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-copyright {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Search Form Styles */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: #3498db;
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #2980b9;
}

/* 404 Page Styles */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.error-404-links ul {
    list-style: none;
}

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

.error-404-links a {
    color: #3498db;
    text-decoration: none;
}

.error-404-links a:hover {
    text-decoration: underline;
}

/* Search Results Styles */
.search-results-count {
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.search-result .post-type {
    background: #3498db;
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.search-suggestions {
    margin-top: 2rem;
}

.popular-content ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.popular-content a {
    color: #3498db;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.popular-content a:hover {
    background: #3498db;
    color: white;
}



/* Post Navigation Styles */
.post-navigation {
    margin-top: 3rem;
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.nav-previous,
.nav-next {
    text-align: center;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: #2c3e50;
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 5px;
    display: block;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.form-error {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

input.error,
textarea.error {
    border-color: #e74c3c !important;
}

/* Archive Page Styles */
.archive-description {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.archive-suggestions {
    text-align: center;
    margin-top: 2rem;
}

.category-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.category-list a {
    color: #3498db;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: #3498db;
    color: white;
}

.post-count {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Pagination Styles */
.pagination-wrapper {
    margin: 3rem 0;
    text-align: center;
}

.page-numbers {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-numbers li {
    margin: 0;
}

.page-numbers a,
.page-numbers span {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border: 1px solid #e1e5e9;
    border-radius: 5px;
    color: #333;
    transition: all 0.3s ease;
}

.page-numbers a:hover,
.page-numbers .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.page-numbers .dots {
    border: none;
    background: none;
    color: #666;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .site-branding .custom-logo-link {
        max-width: 150px;
        max-height: 45px;
    }
    
    .site-branding .custom-logo {
        max-height: 45px;
    }
    
    .site-logo {
        font-size: 1.3rem;
        max-width: 150px;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    /* Hide navigation by default on mobile */
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-radius: 0 0 10px 10px;
        padding: 1rem 0;
        display: none;
        z-index: 1000;
    }
    
    /* Show navigation when active */
    .main-navigation.mobile-active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
        padding: 0 1rem;
    }
    
    .main-navigation li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    /* Mobile sub-menus */
    .main-navigation .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f8f9fa;
        margin: 0;
        border-radius: 0;
        padding: 0;
    }
    
    .main-navigation .menu-item-has-children.mobile-open > .sub-menu {
        display: block;
    }
    
    .main-navigation .menu-item-has-children > a::after {
        content: '▶';
        float: right;
    }
    
    .main-navigation .menu-item-has-children.mobile-open > a::after {
        transform: rotate(90deg);
    }
    
    .main-navigation .sub-menu a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        background: #f8f9fa;
        }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .error-404-content {
        grid-template-columns: 1fr;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 15px;
    }
    
    .blog-sidebar {
        order: 2;
        position: static;
        margin-top: 2rem;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .popular-content ul {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .site-branding .custom-logo-link {
        max-width: 120px;
        max-height: 35px;
    }
    
    .site-branding .custom-logo {
        max-height: 35px;
    }
    
    .site-logo {
        font-size: 1.1rem;
        max-width: 120px;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .search-form {
        max-width: 100%;
    }
}
