/*
Theme Name:     Divi Child 
Description:    Child Theme of Divi
Author:         elegantenthusiast.com
Template:       Divi

(optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain)
*/
/* Main Footer */
/* Fix for Divi theme injecting <br> tags */
.sg-gallery figure br {
    display: none;
}
/* Schema Gallery Blog Featured Hero Styles */
.sg-featured-hero {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin: 40px 0 50px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}

@media (max-width: 768px) {
    .sg-featured-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

.sg-featured-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #63b332 0%, #5cb9a3 100%);
}

.sg-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sg-featured-hero:hover .sg-featured-image img {
    transform: scale(1.05);
}

.sg-featured-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: #63b332;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.sg-featured-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .sg-featured-content {
        padding: 40px 30px;
    }
}

.sg-featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.sg-featured-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sg-featured-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.sg-featured-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #1f2937;
}

@media (max-width: 768px) {
    .sg-featured-title {
        font-size: 28px;
    }
}

.sg-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.sg-featured-title a:hover {
    color: #63b332;
}

.sg-featured-excerpt {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.sg-featured-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #63b332 0%, #5cb9a3 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    align-self: flex-start;
}

.sg-featured-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 179, 50, 0.4);
}

.sg-featured-read-more svg {
    width: 18px;
    height: 18px;
}

.sg-featured-no-image {
    background: linear-gradient(135deg, #63b332 0%, #5cb9a3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-featured-no-image svg {
    width: 100px;
    height: 100px;
    color: rgba(255, 255, 255, 0.3);
}

/* Schema Gallery Blog Grid Styles */
.sg-blog-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
}

.sg-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    overflow: visible;
    position: relative;
}

@media (max-width: 992px) {
    .sg-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .sg-blog-grid {
        grid-template-columns: 1fr;
    }
}

.sg-blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    will-change: transform;
}

.sg-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(99, 179, 50, 0.12);
}

.sg-blog-image {
    position: relative;
    overflow: hidden;
    padding-bottom: 60%;
    background: linear-gradient(135deg, #63b332 0%, #5cb9a3 100%);
}

.sg-blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sg-blog-card:hover .sg-blog-image img {
    transform: scale(1.1);
}

.sg-blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #63b332;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.sg-blog-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sg-blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #6b7280;
}

.sg-blog-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sg-blog-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.sg-blog-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 14px 0;
    color: #1f2937;
}

.sg-blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.sg-blog-title a:hover {
    color: #63b332;
}

.sg-blog-excerpt {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.sg-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #63b332;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.2s;
}

.sg-blog-read-more:hover {
    gap: 12px;
}

.sg-blog-read-more svg {
    width: 16px;
    height: 16px;
}

.sg-blog-no-image {
    background: linear-gradient(135deg, #63b332 0%, #5cb9a3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-blog-no-image svg {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.4);
}

/* Pagination Styles */
.sg-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0 30px;
    flex-wrap: wrap;
    clear: both;
}

.sg-blog-pagination a,
.sg-blog-pagination span {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0 12px;
}

.sg-blog-pagination a {
    background: #ffffff;
    color: #63b332;
    border: 2px solid #e5e7eb;
}

.sg-blog-pagination a:hover {
    background: #63b332;
    color: #ffffff;
    border-color: #63b332;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 179, 50, 0.3);
}

.sg-blog-pagination span.current {
    background: linear-gradient(135deg, #63b332 0%, #5cb9a3 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(99, 179, 50, 0.3);
}

.sg-blog-pagination .dots {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: default;
}

.sg-blog-pagination a.prev,
.sg-blog-pagination a.next {
    padding: 0 16px;
}

@media (max-width: 576px) {
    .sg-blog-pagination {
        gap: 6px;
    }
    
    .sg-blog-pagination a,
    .sg-blog-pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }
}
/* Kill those BR and P tags in the hidden fields area */
.hst-contact-form-wrapper .frm_fields_container > br {
    display: none !important;
    height: 0 !important;
    line-height: 0 !important;
}

.hst-contact-form-wrapper .frm_fields_container > p:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Target BR tags immediately after hidden inputs */
.hst-contact-form-wrapper input[type="hidden"] + br {
    display: none !important;
}

/* Remove empty paragraphs in fieldset */
.hst-contact-form-wrapper fieldset > p:empty,
.hst-contact-form-wrapper .frm_fields_container p:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

/* Remove all BR in the entire form wrapper for safety */
.hst-contact-form-wrapper .frm_forms br {
    display: none !important;
}

/* Contact Page Styles - Maximum Specificity */
.hst-contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.hst-contact-hero {
    text-align: center;
    margin-bottom: 60px;
}

.hst-contact-hero h1 {
    font-size: 48px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin: 0 0 20px !important;
    line-height: 1.2 !important;
}

.hst-contact-hero p {
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: #6b7280 !important;
    max-width: 800px;
    margin: 0 auto 10px !important;
}

.hst-contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 50px !important;
    margin-top: 50px !important;
}

@media (max-width: 992px) {
    .hst-contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

.hst-contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hst-info-card {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.hst-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(99, 179, 50, 0.15) !important;
}

.hst-info-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.hst-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #63b332 0%, #5cb9a3 100%) !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hst-info-icon svg {
    width: 24px !important;
    height: 24px !important;
    stroke: white !important;
}

.hst-info-card h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 !important;
}

.hst-info-card p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

.hst-info-card a {
    color: #63b332 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s;
}

.hst-info-card a:hover {
    color: #5cb9a3 !important;
}

.hst-hours-list {
    margin: 10px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.hst-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px !important;
}

.hst-hours-list li:last-child {
    border-bottom: none;
}

.hst-hours-day {
    font-weight: 600 !important;
    color: #374151 !important;
}

.hst-hours-time {
    color: #6b7280 !important;
}

/* CONTACT FORM - ULTRA SPECIFIC */
.hst-contact-form-wrapper {
    background: #ffffff !important;
    padding: 35px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
}

.hst-contact-form-wrapper h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 0 20px !important;
}

/* Target Formidable specifically */
.hst-contact-form-wrapper .frm_forms,
.hst-contact-form-wrapper form.frm-show-form {
    margin: 0 !important;
}

.hst-contact-form-wrapper .frm_form_fields fieldset {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hst-contact-form-wrapper .frm_form_field {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    clear: both !important;
}

.hst-contact-form-wrapper .frm_form_field.form-field {
    margin: 0 0 10px 0 !important;
}

.hst-contact-form-wrapper label,
.hst-contact-form-wrapper .frm_primary_label {
    display: block !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
}

.hst-contact-form-wrapper input[type="text"],
.hst-contact-form-wrapper input[type="email"],
.hst-contact-form-wrapper input[type="tel"],
.hst-contact-form-wrapper input.frm_text,
.hst-contact-form-wrapper textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    color: #1f2937 !important;
    transition: all 0.2s !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.hst-contact-form-wrapper input[type="text"]:focus,
.hst-contact-form-wrapper input[type="email"]:focus,
.hst-contact-form-wrapper input[type="tel"]:focus,
.hst-contact-form-wrapper textarea:focus {
    outline: none !important;
    border-color: #63b332 !important;
    box-shadow: 0 0 0 3px rgba(99, 179, 50, 0.1) !important;
}

.hst-contact-form-wrapper textarea,
.hst-contact-form-wrapper textarea.frm_text {
    min-height: 100px !important;
    resize: vertical !important;
}

.hst-contact-form-wrapper .frm_submit {
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
}

.hst-contact-form-wrapper button[type="submit"],
.hst-contact-form-wrapper input[type="submit"],
.hst-contact-form-wrapper .frm_button_submit {
    background: linear-gradient(135deg, #63b332 0%, #5cb9a3 100%) !important;
    color: white !important;
    border: none !important;
    padding: 14px 35px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    width: auto !important;
    display: inline-block !important;
    margin: 0 !important;
}

.hst-contact-form-wrapper button[type="submit"]:hover,
.hst-contact-form-wrapper input[type="submit"]:hover,
.hst-contact-form-wrapper .frm_button_submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 179, 50, 0.4) !important;
}

/* Recaptcha and honeypot spacing */
.hst-contact-form-wrapper .frm_form_field.frm_html_container,
.hst-contact-form-wrapper .frm_form_field.frm_hidden {
    margin: 10px 0 !important;
}

.hst-disclaimer {
    background: #f9fafb !important;
    border-left: 4px solid #63b332 !important;
    padding: 20px 25px !important;
    margin-top: 30px !important;
    border-radius: 8px !important;
}

.hst-disclaimer p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

.hst-disclaimer strong {
    color: #374151 !important;
}

@media (max-width: 768px) {
    .hst-contact-hero h1 {
        font-size: 36px !important;
    }
    .hst-contact-form-wrapper {
        padding: 30px 25px !important;
    }
}




/* Main Footer - Add more specificity */
.hsp-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #fff;
    padding: 50px 0 0;
    margin-top: 0;
    position: relative;
    width: 100%;
}

.hsp-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CTA Section */
.hsp-footer-cta {
    background: linear-gradient(135deg, #168039 0%, #236008 100%);
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 50px;
}

.hsp-footer-cta h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #fff !important;
}

.hsp-footer-cta p {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9) !important;
}

.hsp-footer-cta-btn {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white !important;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.hsp-footer-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.4);
}

/* FIXED Grid Layout - Force top alignment */
.hsp-footer .hsp-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    margin: 0 auto;
    justify-content: center !important;
    align-items: start !important; /* Force all items to align at the top */
}

/* Footer Columns - Ensure consistent alignment */
.hsp-footer .hsp-footer-column {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 !important; /* Remove any default margins */
    padding: 0 !important; /* Remove any default padding */
}

/* Ensure all headers have the same spacing */
.hsp-footer .hsp-footer-column h4 {
    color: #6abe45 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important; /* Consistent margin - no top margin */
    padding: 0 !important; /* No padding */
    text-align: center !important;
    width: 100%;
    line-height: 1.2 !important; /* Consistent line height */
}

/* Force list styles */
.hsp-footer .hsp-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}

.hsp-footer .hsp-footer-links li {
    margin-bottom: 12px !important;
    list-style: none !important;
    text-align: center !important;
}

.hsp-footer .hsp-footer-links a {
    color: #d1d5db !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 15px !important;
    display: inline-block;
}

.hsp-footer .hsp-footer-links a:hover {
    color: #6abe45 !important;
    transform: translateX(5px);
}

/* Contact Info - Force centering */
.hsp-footer .hsp-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.hsp-footer .hsp-contact-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    color: #d1d5db !important;
    font-size: 15px !important;
    justify-content: center !important;
}

.hsp-footer .hsp-contact-icon {
    width: 20px;
    height: 20px;
    background: #6abe45;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    color: white;
}

/* Social Links Section */
.hsp-footer .hsp-social-section {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hsp-footer .hsp-footer-social {
    display: flex !important;
    gap: 15px;
    justify-content: center !important;
}

.hsp-footer .hsp-social-link {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 20px;
}

.hsp-footer .hsp-social-link:hover {
    background: #6abe45;
    transform: translateY(-3px);
}

/* Service Areas */
.hsp-footer .hsp-service-areas {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hsp-footer .hsp-service-areas h5 {
    color: #6abe45 !important;
    font-size: 16px !important;
    margin-bottom: 12px;
    font-weight: 600;
}

.hsp-footer .hsp-areas-list {
    color: #9ca3af !important;
    font-size: 14px;
    line-height: 1.6;
}

/* Bottom Bar */
.hsp-footer .hsp-footer-bottom {
    padding: 25px 0;
}

.hsp-footer .hsp-bottom-content {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hsp-footer .hsp-copyright {
    color: #9ca3af !important;
    font-size: 14px !important;
}

.hsp-footer .hsp-legal-links {
    display: flex !important;
    gap: 25px;
}

.hsp-footer .hsp-legal-links a {
    color: #9ca3af !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.3s ease;
}

.hsp-footer .hsp-legal-links a:hover {
    color: #6abe45 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hsp-footer .hsp-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .hsp-footer .hsp-footer-column {
        width: 100%;
    }
    
    .hsp-footer .hsp-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hsp-footer .hsp-footer-cta {
        padding: 30px 20px;
    }
    
    .hsp-footer .hsp-footer-cta h3 {
        font-size: 24px !important;
    }
}