/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
*/

/* ===== LAYOUT ===== */
.wp-block-post-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
}

.wp-site-blocks {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ===== HIDE UNWANTED ELEMENTS ===== */
.wp-block-comments,
.wp-block-post-navigation-link {
    display: none !important;
}

/* ===== HEADER FIXES ===== */
body.home.blog {
    overflow: visible !important;
}

/* ===== SINGLE POST STYLING ===== */
.single-post main.wp-block-group {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.single-post .wp-block-group.alignwide:first-child {
    padding-top: 1rem !important;
}

/* Title — match main-site h1 scaling (clamp 36–58px) */
.single-post .wp-block-post-title {
    font-family: 'Playfair Display', serif !important;
    color: #203A5C !important;
    margin: 1rem auto 1.75rem !important;
    font-size: clamp(36px, 10vw, 58px) !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
    text-align: center;
}

/* Content headings — align with main-site h2/h3 sizing & rhythm */
.wp-block-post-content h2,
.entry-content h2 {
    font-family: 'Playfair Display', serif !important;
    color: #203A5C !important;
    font-size: clamp(26px, 7vw, 3rem) !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    padding: 0 !important;
    margin-top: 3rem !important;
    margin-bottom: 1.25rem !important;
}

.wp-block-post-content h3,
.entry-content h3 {
    font-family: 'Playfair Display', serif !important;
    color: #203A5C !important;
    font-size: clamp(22px, 5vw, 1.8rem) !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    padding: 0 !important;
    margin-top: 2rem !important;
    margin-bottom: 0.75rem !important;
}

/* Italic emphasis in headings → gold accent (matches landing pages) */
.wp-block-post-content h1 em,
.wp-block-post-content h2 em,
.wp-block-post-content h3 em,
.entry-content h1 em,
.entry-content h2 em,
.entry-content h3 em {
    font-style: italic;
    color: #C5A059;
}

/* Body text */
.wp-block-post-content p,
.entry-content p {
    font-family: 'Lato', sans-serif !important;
    line-height: 1.7 !important;
    color: #333 !important;
    margin-bottom: 1.25rem;
}

/* Links with hover animation */
.wp-block-post-content a,
.entry-content a {
    color: #C5A059 !important;
    text-decoration: none !important;
    background-image: linear-gradient(#C5A059, #C5A059) !important;
    background-size: 0% 2px !important;
    background-position: left bottom !important;
    background-repeat: no-repeat !important;
    transition: background-size 0.3s ease !important;
}

.wp-block-post-content a:hover,
.entry-content a:hover {
    background-size: 100% 2px !important;
}

/* Blog archive max-width */
.home.blog .wp-block-query,
.home.blog .wp-block-post-template,
.home.blog .wp-block-group {
    max-width: 1340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== SUBURB POSTS STYLING ===== */

/* Reduce padding between title and content (no featured image) */
.post-template-suburbs-single .wp-block-post-title {
    margin-bottom: 1.5rem !important;
}

.post-template-suburbs-single .wp-block-group.alignwide:first-child {
    padding-bottom: 0.5rem !important;
}

/* Bottom padding below content */
.post-template-suburbs-single .entry-content,
.post-template-suburbs-single .wp-block-post-content {
    padding-bottom: 40px !important;
}

/* Blue headings with gold left border */
.post-template-suburbs-single .entry-content h2,
.post-template-suburbs-single .wp-block-post-content h2 {
    color: #203A5C !important;
    border-left: 4px solid #C5A059;
    padding-left: 1rem;
}

/* Reduce featured image size on single posts only */
.single-post .wp-block-post-featured-image {
    max-width: 50% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
