/*
Theme Name: The History of Healing
Theme URI: https://thehistoryofhealing.com
Description: GeneratePress child theme for medical history blog with full-width single post layout, custom post types, and optimized performance.
Author: Navneet Kashyap
Author URI: https://thehistoryofhealing.com
Template: generatepress
Version: 2.7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: history-of-healing
Tags: medical, history, blog, generatepress-child
*/

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    --primary-color: #2C5F8D;
    --secondary-color: #8B4513;
    --accent-color: #D4AF37;
    --text-primary: #1a1a1a;
    --text-secondary: #2a2a2a;
    --text-body: #4a4a4a;
    --text-muted: #5a5a5a;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-accent: #e8f4f8;
    --border-light: #e5e5e5;
    --font-primary: 'Merriweather', Georgia, serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

/* ========================================
   OVERRIDE GENERATEPRESS CONTAINERS
   ======================================== */

/* Force full-width on single posts */
.single .grid-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.single .site-content {
    padding: 0 !important;
    max-width: 100% !important;
}

.single .inside-article {
    padding: 0 !important;
    max-width: 100% !important;
}

.single .content-area {
    width: 100% !important;
    max-width: 100% !important;
}

/* Remove GeneratePress default spacing */
.single .site-main {
    margin: 0 !important;
}

.single .separate-containers .site-main {
    margin: 0 !important;
}

/* ========================================
   CUSTOM CONTENT BOXES
   ======================================== */

.hoh-fact-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(139, 69, 19, 0.05) 100%);
    border: 2px solid var(--accent-color);
    padding: 28px 32px;
    margin: 32px 0;
    border-radius: 12px;
    position: relative;
}

.hoh-fact-box::before {
    content: "📜 Historical Fact";
    position: absolute;
    top: -12px;
    left: 20px;
    background: white;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.hoh-fact-box p {
    font-size: 17px;
    color: var(--text-secondary);
    margin: 0;
}

.hoh-tip-box {
    background: linear-gradient(135deg, rgba(44, 95, 141, 0.08) 0%, rgba(44, 95, 141, 0.04) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 24px 28px;
    margin: 28px 0;
    border-radius: 8px;
}

.hoh-tip-box p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.hoh-tip-box strong {
    color: var(--primary-color);
}

.hoh-highlight-box {
    background-color: var(--bg-accent);
    border-left: 4px solid var(--accent-color);
    padding: 28px 32px;
    border-radius: 8px;
    margin: 32px 0;
}

.hoh-highlight-box p {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.hoh-timeline-box {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
}

.hoh-timeline-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.hoh-timeline-item:last-child {
    border-bottom: none;
}

.hoh-timeline-year {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
    flex-shrink: 0;
}

.hoh-timeline-content p {
    font-size: 16px;
    margin: 0;
}

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

@media (max-width: 768px) {
    .single .grid-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
