/*
 Theme Name:   Hello Biz Child
 Theme URI:    http://example.com/hello-biz-child/
 Description:  Hello Biz Child Theme
 Author:       Your Name
 Author URI:   http://example.com
 Template:     hello-biz
 Version:      1.0.0
 Text Domain:  hello-biz-child
*/

/* General Styles */
.custom-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}


/* Sticky Header */
.sticky-header {
    width: 100vw; /* Full viewport width */
    left: 0;
    right: 0;
    padding-left: 0;
    padding-right: 0;
    margin-left: calc(-50vw + 50%); /* Center alignment fix */
    position: sticky;
    top: 0px;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Website Name Styling */
.site-name-header h1 {
    text-transform: uppercase;
    color: #001f3f;
    font-weight: bold;
    text-align: center;
    padding-top: 10px;
    margin: 0;
}

.site-name-header h1 a {
    color: inherit;
    text-decoration: none;
}

.site-name-header h1 a:hover {
    color: #058ebd;
/*    text-shadow:
                -0.5px -0.5px 0 #0585b1,
                0.5px -0.5px 0 #0585b1,
                -0.5px 0.5px 0 #0585b1,
                0.5px 0.5px 0 #0585b1,
                -0.5px 0px 0 #0585b1,
                0.5px 0px 0 #0585b1,
                0px -0.5px 0 #0585b1,
                0px 0.5px 0 #0585b1;  */
}

/* Main Menu Styling */
.main-navigation {
    background-color: #001f3f;
    padding: 5px;
}

.primary-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    margin: 8px 15px;
    text-align: center;
}

.primary-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.primary-menu a:hover {
    color: #0ca1d5;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1001;
    pointer-events: auto;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #001f3f;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Featured Posts */

.section-title{
    font-size:20px;
    font-weight: 500;
    color:#001f3f;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.featured-post {
    border: 1px solid #e7e7ea;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0.5px 0.5px 2px #e7e7ea;
}

.featured-post:hover {
    transform: translateY(-5px);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-title {
    margin: 10px;
    font-size: 1em;
    text-align: center;
    color: #001f3f;
}
.featured-post:hover .post-title {
    color:#0ca1d5;
}

/* Sidebar Styles */
.homepage-content {
    display: flex;
}

.featured-posts-section {
    flex: 0 0 75%;
    padding-right: 20px;
}

.sidebar-section {
    flex: 0 0 25%;
}

.widget-title {
    font-size:15px;
    font-weight: bold;
    color:#001f3f;
    margin-top: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Search Bar Styles */
#live-search-container {
    position: relative;
    max-width: 400px;
}
#live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 3px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}
#live-search-results div {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}
#live-search-results div:hover{
    background: #fafafa;
}
#live-search-results div a {
    text-decoration: none;
    text-shadow: 0px 0px 0.5px;
    color: #001f3f;
}
#live-search-results div a:hover {
    color: #0ca1d5;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts-list a {
    text-decoration: none;
    text-shadow: 0px 0px 0.5px;
    color: #001f3f;
}

.recent-posts-list a:hover {
    color: #0ca1d5;
}

/* Footer Styling */
.site-footer {
    position: fixed;
    padding: 0px;
    background-color: #001f3f;
    color: white;
    text-align: center;
    z-index: 1000;
}
.site-footer p {
    margin: 0px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.footer-menu li {
    margin: 0 15px;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer-menu a:hover {
    color: #0ca1d5;
}

/* Content Padding */
.main-content {
    padding-bottom: 70px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .featured-posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-homepage{
        margin: 10px;
    }
    .homepage-content {
        flex-direction: column;
    }
    
    .featured-posts-section {
        padding-right: 0;
    }
    
    .featured-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-top: -13px;
    }
    
    .primary-menu {
        display:none;
    }
    
    .primary-menu.active {
        display: flex;
        flex-direction: column;
    }
    
    .primary-menu li {
        display: block;
        text-align: center;
        margin: 0;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .primary-menu a {
        display: block;
        padding: 5px 5px;
    }
    
    .footer-menu {
        flex-wrap: wrap;
    }
    
    .footer-menu li {
        margin: 5px 10px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .site-name-header h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .featured-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Category Page Styling */
/* Main grid container */

.category-page {
    height: 100vh;
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 20px;
    margin: 30px 0;
}

.page-header h1{
    font-size: 1.17em; /* Default size of h3 */
    font-weight: 500; /* Match h3's weight if needed */
    margin: 1em 0;  
}

/* Grid item styling */
.category-posts-grid .grid-item {
    margin-bottom: 0;
    break-inside: avoid;
    position: relative;
    transition: all 0.3s ease;
}

.category-posts-grid .grid-item-inner {
    border: 1px solid #eaeaea;
    border-radius: 5px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.category-posts-grid .grid-item-inner:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* Post thumbnail styling */
.category-posts-grid .post-thumbnail {
    position: relative;
    overflow: hidden;
}

.category-posts-grid .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.category-posts-grid .post-thumbnail:hover img {
    transform: scale(1.05);
}

/* Post title styling */
.category-posts-grid .entry-title {
    font-size: 16px;
    margin: 10px 0;
    line-height: 1.3;
}

.category-posts-grid .entry-title a {
    color: #001f3f;
    text-decoration: none;
}

.category-posts-grid .entry-title a:hover {
    color: #0ca1d5;
}

/* Post content styling */
.category-posts-grid .entry-content {
    font-size: 14px;
    color: #666;
    flex-grow: 1;
    padding: 0 15px 15px;
}

.category-posts-grid .entry-header {
    padding: 0 15px;
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .category-posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .category-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .category-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .category-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 
 * Single Post Styling
 * This CSS improves the layout of single post pages and adds styling for related posts
 */

/* Main single post container */
.single-post-container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 5px;
}

/* Post title styling */
.single-post-container .entry-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #333;
}

/* Post meta information */
.single-post-container .entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.single-post-container .entry-meta span {
    margin-right: 10px;
}

/* Featured image styling */
.single-post-container .post-thumbnail {
    margin-bottom: 25px;
    text-align: center;
}

.single-post-container .post-thumbnail img {
    max-width: 80%;
    height: auto;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
}

/* Post content styling */
.single-post-container .entry-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
}

.single-post-container .entry-content p {
    margin-bottom: 20px;
}

.single-post-container .entry-content h2,
.single-post-container .entry-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-post-container .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

/* Post footer styling */
.single-post-container .entry-footer {
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
    margin-top: 30px;
}

.single-post-container .entry-footer span {
    display: block;
    margin-bottom: 10px;
}

/* Related Posts Section */
.related-posts {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-posts h2 {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    position: relative;
}

.related-posts h2:after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0073aa;
    margin: 15px auto 0;
}

/* Related posts grid - horizontal layout with max 6 columns and 2 rows */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-gap: 20px;
    max-height: calc(2 * (200px + 20px)); /* Approximate height for 2 rows */
    overflow: hidden; /* Ensure content doesn't exceed 2 rows */
}

.related-post {
    border: 1px solid #e7e7ea;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0.5px 0.5px 2px #e7e7ea;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.related-post h3 {
    margin: 10px;
    font-size: 1em;
    text-align: center;
    color: #001f3f;
}

.related-post:hover .post-title {
    color:#0ca1d5;
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .related-posts-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, auto);
        max-height: calc(3 * (200px + 20px));
    }
}

@media screen and (max-width: 900px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, auto);
        max-height: calc(4 * (200px + 20px));
    }
    
    .single-post-container {
        padding: 15px;
    }
}

@media screen and (max-width: 600px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, auto);
        max-height: calc(6 * (200px + 20px));
    }
    
    .single-post-container .entry-title {
        font-size: 26px;
    }
}

@media screen and (max-width: 480px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(12, auto);
        max-height: calc(12 * (200px + 20px));
    }
}




