/* New Beginnings Theme - Site-Specific Overrides */
/* Base styles are in the shepherdsloft theme. Override theme variables and header to match static export. */

/* ============================================
   PALETTE OVERRIDE (match archive/newbeginnings-static)
   ============================================ */
:root {
    --color-primary: #ef8451;        /* accent: links, buttons, nav (orange) */
    --color-secondary: #ef8451;
    --color-tertiary: #093532;       /* headings, dark text (teal) */
    --color-background-light: #f5f3ee; /* warm off-white */
    --color-text-primary: #0f393b;   /* body text */
    --color-text-secondary: #0f393b;
    --color-text-light: #ffffff;
    --color-border: #e5e5e5;
    --color-footer: #093532;        /* footer container (dark teal) */
}

/* Main content area background (match static export) */
body,
#main-content {
    background-color: #f5f3ee;
}

/* Accent link hover (darker orange) */
a:hover {
    color: #d96d3d;
}

/* ============================================
   TOP HEADER - Orange bar, white nav (match static)
   ============================================ */
#main-header {
    background-color: #ef8451 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

#main-header .logo .site-title,
#main-header .logo .site-title a,
#main-header #top-menu a,
#main-header #mobile_menu a {
    color: #fff !important;
}

#main-header #top-menu a:hover,
#main-header #top-menu a.active,
#main-header #mobile_menu a:hover,
#main-header #mobile_menu a.active {
    color: rgba(255,255,255,0.9) !important;
}

/* Mobile menu bar icon (hamburger) - visible on orange */
.mobile_menu_bar {
    color: #fff;
}

/* Hide header on main page only */
body.home-page #main-header {
    display: none;
}

body.home-page #page-container {
    padding-top: 0;
}

/* ============================================
   NEW BEGINNINGS SPECIFIC STYLES
   ============================================ */

/* Hero Section - Specific Layout (match static export colors) */
.et_pb_section_0.sl-section {
    padding-top: 4px;
    background-color: #f5f3ee !important;
}

.sl-hero-subtitle {
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    color: #ef8451 !important;
    letter-spacing: 1px;
    line-height: 1.5em;
}

.sl-hero-title {
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    font-size: 64px;
    color: #093532 !important;
    letter-spacing: -0.02em;
    line-height: 1.15em;
}

.sl-hero-text {
    color: #0f393b !important;
    font-size: 18px;
    line-height: 1.8em;
}

.hero-row .et_pb_column_0 {
    order: 1;
    padding-top: 6%;
}

.hero-row > .sl-column:last-child {
    position: relative;
    order: 2;
}

/* Hero Section Images - Logo Overlap */
.hero-row > .sl-column:last-child {
    position: relative;
}

.et_pb_image_0 {
    position: absolute;
    _top: -20px;
    _left: -20px;
    z-index: 2;
    max-width: 60%;
    height: auto;
    margin-left: -61px;
}

.et_pb_image_1 {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    margin-top: 180px;
}

/* add rounded corner to the footer to match other elements */
#main-footer {
    border-radius: 22px;
}

/* Mobile: single column, reversed order */
@media (max-width: 980px) {
    .hero-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-row .et_pb_column_0 {
        order: 2; /* First column becomes second on mobile */
        padding-top: 0;
    }
    
    .hero-row > .sl-column:last-child {
        order: 1; /* Second column becomes first on mobile */
    }

    .et_pb_image_0 {
        position: relative;
        _top: 0;
        _left: 0;
        max-width: 100%;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: 137px;
        height: 137px;
    }
    
    .et_pb_image_1 {
        margin-top: 0;
    }
}

/* Info Box Styling */
.info-box {
    background-color: #f2ebe4;
    border-radius: 22px;
    padding: 60px;
    margin-top: 37px;
}

@media (max-width: 980px) {
    .info-box {
        padding: 40px 30px;
    }
}

@media (max-width: 767px) {
    .info-box {
        padding: 20px;
    }
}

/* About Section */
.about-section {
    background-color: #fff;
}

.about-section h2 {
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    font-size: 42px;
    color: #093532;
    letter-spacing: -0.02em;
    line-height: 1.15em;
    margin-bottom: 20px;
}

.about-section .about-text {
    color: #0f393b;
    font-size: 16px;
    line-height: 1.8em;
    margin-bottom: 20px;
}

.about-section .et_pb_button {
    margin-top: 20px;
}

.section-icon {
    margin-bottom: 20px;
}

/* Section Titles */
.causes-title,
.support-title,
.give-title {
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    color: #093532;
    margin-bottom: 16px;
}

.causes-title {
    font-size: 26px;
}

.support-title {
    font-size: 26px;
}

.give-title {
    font-size: 26px;
}

.causes-text,
.support-text,
.give-text {
    color: #0f393b;
    font-size: 16px;
    line-height: 1.8em;
}

.sl-cause-item {
    border-bottom: none;
}

/* Give Section Blurbs */
.give-blurbs .sl-blurb {
    margin-bottom: 30px;
}

.give-blurbs .sl-blurb img {
    width: auto;
    height: auto;
}

.give-image {
    margin-top: 30px;
}

/* Get Involved Section */
.get-involved {
    text-align: center;
}

.get-involved h2 {
    text-align: left;
}

/* Responsive Adjustments */
@media (max-width: 980px) {
    .et_pb_column_0 {
        padding-top: 0;
    }
    
    .sl-hero-title {
        font-size: 40px;
    }

    .sl-hero-text {
        font-size: 16px;
    }

    .sl-hero-subtitle {
        font-size: 14px;
    }
    
    .causes-title,
    .support-title,
    .give-title {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .sl-hero-title {
        font-size: 24px;
    }

    .sl-hero-subtitle {
        font-size: 14px;
    }

    .sl-hero-text {
        font-size: 14px;
    }

    .sl-blurb h4 {
        font-size: 14px;
    }
    
    .about-section h2 {
        font-size: 28px;
    }
    
    .causes-title,
    .support-title,
    .give-title {
        font-size: 20px;
    }
}

/* Blog/News Listing Styles */
.news-listing {
    padding-top: 80px;
}

.et_pb_post {
    margin-bottom: 60px;
    word-wrap: break-word;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.et_pb_post .entry-title {
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    font-size: 24px;
    color: #093532;
    margin-bottom: 10px;
}

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

.et_pb_post .entry-title a:hover {
    color: #ef8451;
}

.et_pb_post .post-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.et_pb_post .post-meta a {
    color: #ef8451;
}

.et_pb_post .entry-content {
    padding-top: 15px;
}

.et_pb_post .more-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: #ef8451;
}

.et_pb_post .entry-featured-image-url {
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.et_pb_post .entry-featured-image-url img {
    width: 100%;
    height: auto;
    display: block;
}

/* Single Post/News Styles */
.single-page #main-content {
    padding-top: 100px;
}

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.single-post-container .entry-title {
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    font-size: 36px;
    color: #093532;
    margin-bottom: 15px;
}

.single-post-container .post-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-post-container .post-meta a {
    color: #ef8451;
}

.single-post-container .entry-content {
    font-size: 16px;
    line-height: 1.8em;
}

@media (max-width: 767px) {
    .single-post-container .entry-title {
        font-size: 28px;
    }
    
    .et_pb_post .entry-title {
        font-size: 20px;
    }
}
