/*
Theme Name: Abbas Husain
Author: abbas-husain
Description: Custom theme for abbas-husain
Version: 1.0
*/

:root {
    /* Color Palette */
    --primary-color: #1B2A41;
    --secondary-color: #C9A227;
    --text-color: #2E2E2E;

    /* Typography */
    --font-heading: 'Libre Baskerville', serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 400; /* Regular */
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500; /* Medium */
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Global Wrappers */
.site-container {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.site-content {
}

/* Header Layout */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

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

/* Footer Layout */
.site-footer {
    background-color: #ffffff;
    color: var(--text-color);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-description {
    color: var(--text-color);
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Primary Menu */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--primary-color);
    align-items: center;
    justify-content: center;
}

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

.site-info { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-right {
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    font-family: var(--font-body); 
    color: var(--text-color); 
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .site-header {
        padding: 1rem 0;
    }

    .menu-toggle {
        display: flex; 
    }

    .main-navigation {
        width: 100%;
        display: none; 
        margin-top: 1rem;
        padding-top: 1.5rem;
        padding-bottom: 1rem;
        border-top: 1px solid #eee;
    }

    .main-navigation.toggled {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .main-navigation a {
        font-size: 1.25rem;
        display: block;
        padding: 0.5rem 1rem;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Single Post Layout */
.single-post-wrapper {
    padding: 2rem 0;
}

.single-post-container {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Added slight rounding for aesthetics */
    width: 100%;
    object-fit: cover;
}

.entry-header .entry-title {
    text-align: center;
    font-size: 2.5rem;
}

.entry-header {
	padding: 3rem 0;
    background: #f7f7f7;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Responsive Styles for Single Post */
@media screen and (max-width: 960px) {
    .single-post-container {
        padding: 0 1.5rem;
    }

    .entry-header .entry-title {
        font-size: 2.2rem;
    }
    
    .category-tabs-container .category-tabs-nav {
        overflow-x: scroll;
    }
    
    .article-grid {
        display: block; 
    }
    
    .article-grid .article-card {
        margin-bottom: 2em;
    }
    
    .site-info { 
        display: block; 
    }
    
    .footer-right {
        display: block; 
    }
}

@media screen and (max-width: 600px) {
    .single-post-container {
        padding: 0 1rem;
    }

    .entry-header .entry-title {
        font-size: 1.5rem;
    }

    .entry-content {
        font-size: 1rem;
    }
    
}

/* Single Page Layout */
.single-page-wrapper {
    padding: 0 0 2rem 0; /* Additional top margin to separate from header */
}

.page-featured-image {
    margin-bottom: 2rem;
}

.page-featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Added slight rounding for aesthetics */
    width: 100%;
    object-fit: cover;
}