/**
 * Theme Name: Niagara Tree Company
 * Theme URI: https://niagaratreecompany.com
 * Author: Search Gurus
 * Author URI: https://www.searchgurus.ca
 * Description: A modern, professional WordPress theme for Niagara Tree Company blog. Features card-based layouts, infinite scroll, and matching design to the main site. Built by Search Gurus (www.searchgurus.ca).
 * Version: 1.0.2
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: niagaratreecompany
 * Domain Path: /languages
 * Requires at least: 5.8
 * Requires PHP: 7.4
 */

/* Theme Variables */
:root {
    --ntc-green: #00a859;
    --ntc-blue: #265da9;
    --ntc-light-green: #f2fbf7;
    --ntc-light-blue: #e9eef6;
    --ntc-dark-grey: #1f262f;
    --ntc-text: #69707a;
    --ntc-heading: #363d47;
    --ntc-white: #ffffff;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ntc-text);
    background-color: var(--ntc-light-green);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ntc-heading);
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.3rem; }
h6 { font-size: 1.1rem; }

a {
    color: var(--ntc-green);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--ntc-blue);
    text-decoration: underline;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

/* WordPress Required Styles */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.gallery-caption {
    font-size: 0.9rem;
    color: #666;
}

.bypostauthor {
    font-weight: bold;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.sticky {
    display: block;
}

/* Container */
.container {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

@media (min-width: 1500px) {
    .container { max-width: 1440px; }
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col, .col-auto, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 auto; width: 8.33333333%; }
.col-2 { flex: 0 0 auto; width: 16.66666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-5 { flex: 0 0 auto; width: 41.66666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.33333333%; }
.col-8 { flex: 0 0 auto; width: 66.66666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
    .col-sm { flex: 1 0 0%; }
    .col-sm-auto { flex: 0 0 auto; width: auto; }
    .col-sm-1 { flex: 0 0 auto; width: 8.33333333%; }
    .col-sm-2 { flex: 0 0 auto; width: 16.66666667%; }
    .col-sm-3 { flex: 0 0 auto; width: 25%; }
    .col-sm-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-sm-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
    .col-sm-7 { flex: 0 0 auto; width: 58.33333333%; }
    .col-sm-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-sm-9 { flex: 0 0 auto; width: 75%; }
    .col-sm-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-sm-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 768px) {
    .col-md { flex: 1 0 0%; }
    .col-md-auto { flex: 0 0 auto; width: auto; }
    .col-md-1 { flex: 0 0 auto; width: 8.33333333%; }
    .col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.33333333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
    .col-lg { flex: 1 0 0%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; }
    .col-lg-1 { flex: 0 0 auto; width: 8.33333333%; }
    .col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: transparent;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding: 1rem 0;
}

.site-header.scrolled {
    background: rgba(31, 38, 47, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

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

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        align-items: center;
        flex-grow: 1;
        justify-content: flex-end;
    }
    
    .navbar-toggler {
        display: none;
    }
}

.navbar-nav .nav-item:last-child {
    margin-right: 2rem;
}

.navbar-brand img {
    height: 66px;
    width: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--ntc-green);
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    min-width: 280px;
    padding: 0.5rem 0;
    margin-top: 0;
}

.nav-item:hover .dropdown-menu,
.nav-item.dropdown-active .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--ntc-green);
    font-weight: 500;
    transition: background-color 0.15s ease-in-out;
}

.dropdown-item:hover {
    background-color: #e3f5ed;
    text-decoration: none;
}

.dropdown-divider {
    display: block;
    height: 0;
    margin: 0;
    overflow: hidden;
    border-top: 1px solid #e0e5ec;
}

.menu-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.navbar-toggler {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('https://niagaratreecompany.ca/assets/img/backgrounds/home-tree-farm-new.jpg') center/cover;
    padding: 10rem 0 6rem;
    text-align: center;
    color: white;
    margin-top: 0;
}

/* Remove gap between header and hero */
.site-main {
    padding-top: 0;
}

.hero-section:first-child {
    margin-top: -80px;
    padding-top: 12rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.hero-title a {
    color: white;
    text-decoration: none;
}

.hero-title a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.35rem;
    transition: all 0.15s ease-in-out;
}

.btn-green {
    color: white;
    background-color: var(--ntc-green);
    border-color: var(--ntc-green);
}

.btn-green:hover {
    color: white;
    background-color: #008848;
    border-color: #00944e;
    text-decoration: none;
}

.btn-blue {
    color: white;
    background-color: var(--ntc-blue);
    border-color: var(--ntc-blue);
}

.btn-blue:hover {
    color: white;
    background-color: #124489;
    border-color: #1a5098;
    text-decoration: none;
}

.btn-white {
    color: var(--ntc-green);
    background-color: white;
    border-color: white;
}

.btn-white:hover {
    color: var(--ntc-blue);
    background-color: #f8f9fa;
    text-decoration: none;
}

/* Card Styles */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(33, 40, 50, 0.125);
    border-radius: 0.35rem 0.35rem 2.35rem 2.35rem;
    box-shadow: 0 0.25rem 1.5rem 0 rgba(40, 40, 40, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem 0 rgba(40, 40, 40, 0.15);
}

.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--ntc-heading);
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: var(--ntc-green);
    text-decoration: none;
}

.card-text {
    color: var(--ntc-text);
    margin-bottom: 1rem;
}

.card-meta {
    font-size: 0.875rem;
    color: #69707a;
    margin-bottom: 0.75rem;
}

.card-meta i {
    margin-right: 0.25rem;
}

/* Blog Grid */
.blog-grid {
    padding: 4rem 0;
}

.blog-grid .row {
    row-gap: 2rem;
}

/* Sidebar */
.sidebar {
    padding: 0 1rem;
}

.widget {
    background: white;
    border-radius: 0.35rem 0.35rem 2.35rem 2.35rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.25rem 1.5rem 0 rgba(40, 40, 40, 0.1);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ntc-heading);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ntc-green);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e5ec;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* Form Styles */
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #363d47;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d4dae3;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #363d47;
    background-color: #fff;
    border-color: var(--ntc-green);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 89, 0.25);
}

.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #69707a;
}

.form-group {
    margin-bottom: 1rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Lead Generation Form Styles */
/* Full Width Contact Section */
.contact-section-fullwidth {
    background: linear-gradient(135deg, var(--ntc-green) 0%, #008f4c 100%);
    padding: 4rem 0;
    color: white;
}

.contact-info-col {
    text-align: center;
    padding-right: 3rem;
}

.contact-section-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-section-phone {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.contact-section-phone a {
    color: white;
    text-decoration: none;
}

.contact-section-phone a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.contact-form-col {
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-header {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-form-inline {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group-half {
    flex: 1;
}

.form-group-full {
    width: 100%;
}

.contact-form-inline label {
    display: block;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.contact-form-inline input,
.contact-form-inline textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.15s ease;
}

.contact-form-inline input:focus,
.contact-form-inline textarea:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    outline: none;
}

.contact-form-inline textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit-fullwidth {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ntc-green);
    background: white;
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 0.5rem;
}

.btn-submit-fullwidth:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit-fullwidth i {
    margin-left: 0.5rem;
    transition: transform 0.15s ease;
}

.btn-submit-fullwidth:hover i {
    transform: translateX(5px);
}

.contact-form-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.contact-form-footer a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.contact-form-footer a:hover {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
    .contact-info-col {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .contact-form-col {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 2rem;
    }
    
    .contact-section-phone {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-section-fullwidth {
        padding: 2rem 0;
    }
}

/* Sidebar Form Styles */
.sidebar-contact-form {
    width: 100%;
}

.sidebar-form-group {
    margin-bottom: 1rem;
}

.sidebar-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ntc-dark-grey);
    margin-bottom: 0.4rem;
}

.sidebar-form-group input,
.sidebar-form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #d4dae3;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-form-group input:focus,
.sidebar-form-group textarea:focus {
    border-color: var(--ntc-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.15);
    outline: none;
}

.sidebar-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.sidebar-form-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--ntc-green);
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sidebar-form-submit:hover {
    background: #008848;
}

.sidebar-form-submit i {
    margin-left: 0.5rem;
}
    
    .contact-section-fullwidth {
        padding: 2rem 0;
    }
}

/* Sidebar form adjustments */
.widget .lead-gen-form-wrapper {
    padding: 1.25rem;
}

.widget .lead-gen-title {
    font-size: 1.25rem;
}

.widget .lead-gen-subtitle {
    font-size: 0.85rem;
}

.lead-gen-form-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.lead-gen-title {
    color: var(--ntc-dark-grey);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.lead-gen-subtitle {
    color: #69707a;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.lead-gen-form .compact-form {
    margin: 0 -0.5rem;
}

.lead-gen-form .compact-form > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.lead-gen-form .form-group {
    margin-bottom: 0.75rem;
}

.lead-gen-form .form-label {
    font-weight: 500;
    color: var(--ntc-dark-grey);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.lead-gen-form .form-control {
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #d4dae3;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.lead-gen-form .form-control:focus {
    border-color: var(--ntc-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.15);
}

.lead-gen-form textarea.form-control {
    min-height: 80px;
}

.btn-lead-gen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--ntc-green);
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    margin-top: 0.25rem;
}

.btn-lead-gen:hover {
    background-color: #008848;
    text-decoration: none;
}

.lead-gen-phone {
    color: #69707a;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.lead-gen-phone a {
    color: var(--ntc-green);
    font-weight: 600;
    text-decoration: none;
}

.lead-gen-phone a:hover {
    color: var(--ntc-blue);
}

/* Sidebar form adjustments */
.widget .lead-gen-form-wrapper {
    padding: 1.25rem;
}

.widget .lead-gen-title {
    font-size: 1.25rem;
}

.widget .lead-gen-subtitle {
    font-size: 0.85rem;
}

.widget .lead-gen-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
}

.widget .btn-lead-gen {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--ntc-dark-grey);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer-heading {
    color: #dddddd;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--ntc-green);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.25rem;
    transition: all 0.15s ease-in-out;
}

.social-links a:hover {
    background: var(--ntc-green);
    color: white;
    text-decoration: none;
}

/* Sidebar social links - make visible on white background */
.widget .social-links a {
    background: var(--ntc-green);
    color: white;
}

.widget .social-links a:hover {
    background: #008848;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: var(--ntc-green);
}

/* Contact Widget */
.contact-info p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--ntc-green);
    width: 20px;
}

/* Infinite Scroll Loading */
.infinite-scroll-loading {
    text-align: center;
    padding: 3rem 0;
}

.infinite-scroll-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 168, 89, 0.3);
    border-radius: 50%;
    border-top-color: var(--ntc-green);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.load-more-btn {
    display: inline-block;
    margin: 2rem auto;
    text-align: center;
}

/* Single Post */
.single-post {
    padding: 4rem 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--ntc-heading);
    margin-bottom: 1rem;
}

.post-meta {
    color: #69707a;
    font-size: 0.95rem;
}

.post-meta span {
    margin-right: 1.5rem;
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 0.35rem 0.35rem 2.35rem 2.35rem;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2, .post-content h3, .post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.35rem;
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--ntc-green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

/* Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e5ec;
    display: flex;
    justify-content: space-between;
}

.nav-previous, .nav-next {
    max-width: 45%;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #69707a;
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: 600;
    color: var(--ntc-heading);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e5ec;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 0.35rem;
    background: white;
    color: var(--ntc-text);
    text-decoration: none;
    border: 1px solid #e0e5ec;
    transition: all 0.15s ease-in-out;
}

.pagination a:hover {
    background: var(--ntc-green);
    color: white;
    border-color: var(--ntc-green);
}

.pagination .current {
    background: var(--ntc-green);
    color: white;
    border-color: var(--ntc-green);
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block;
        order: 2;
        margin-left: auto;
    }
    
    .navbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(31, 38, 47, 0.98);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    .navbar-collapse.active,
    .navbar-collapse.show {
        display: flex !important;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0 !important;
        padding: 0;
        text-align: left !important;
    }
    
    .navbar-nav .nav-item:last-child {
        margin-right: 0;
    }
    
    .nav-item {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left !important;
        width: 100%;
    }
    
    .nav-link {
        justify-content: flex-start !important;
        padding: 0;
        text-align: left !important;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        background: transparent;
        box-shadow: none;
        padding-left: 1rem;
        min-width: auto;
        margin-top: 0.5rem;
    }
    
    .nav-item:hover .dropdown-menu {
        display: none;
    }
    
    .nav-item.dropdown-active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.7);
        padding: 0.5rem 0;
        text-align: left !important;
    }
    
    .dropdown-item:hover {
        background: transparent;
        color: var(--ntc-green);
    }
    
    .navbar-brand img {
        height: 42px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .navbar-collapse .btn {
        margin: 1rem 0 0 0 !important;
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 8rem 0 4rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .sidebar {
        margin-top: 3rem;
        padding: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-previous, .nav-next {
        max-width: 100%;
        text-align: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: white; }
.text-green { color: var(--ntc-green); }
.text-blue { color: var(--ntc-blue); }

.bg-white { background-color: white; }
.bg-light-green { background-color: var(--ntc-light-green); }
.bg-dark-grey { background-color: var(--ntc-dark-grey); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }

/* Form Widget Specific */
.form-widget {
    background: linear-gradient(135deg, var(--ntc-light-green) 0%, white 100%);
    border: 2px solid var(--ntc-green);
}

.form-widget .widget-title {
    color: var(--ntc-green);
    border-bottom-color: var(--ntc-blue);
}

/* Skip Link for Accessibility */
.skip-link {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Fix white bar issues */
.site-main {
    background-color: var(--ntc-light-green);
    min-height: 100vh;
}

.single-post {
    background-color: var(--ntc-light-green) !important;
}

section.bg-light-green {
    background-color: var(--ntc-light-green) !important;
}

/* Ensure hero connects properly to content */
.hero-section + section {
    margin-top: 0;
    padding-top: 4rem;
}

.skip-link:focus {
    top: 6px;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e0e5ec;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.35rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-meta {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-author {
    font-weight: 600;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #69707a;
}

.comment-content {
    margin-bottom: 1rem;
}

.comment-reply-link {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive Images */
.wp-block-image img,
.wp-block-media-text__media img,
.wp-block-cover-image img,
.wp-block-cover img {
    max-width: 100%;
    height: auto;
}

/* Fixed Navbar Adjustments */
body {
    padding-top: 90px;
}

.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: rgba(31, 38, 47, 0.95);
}

.navbar-brand-item {
    height: 66px;
    width: auto;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.15s ease-in-out;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
}

.navbar-dark .navbar-toggler {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Breadcrumbs */
.breadcrumbs-section {
    background-color: var(--ntc-light-green);
    border-bottom: 1px solid rgba(0, 168, 89, 0.1);
    padding: 0.5rem 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.25rem 0;
    margin: 0;
    list-style: none;
    background-color: transparent;
    border-radius: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.75rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    display: inline-block;
    padding-right: 0.75rem;
    color: var(--ntc-green);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--ntc-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease-in-out;
}

.breadcrumb-item a:hover {
    color: var(--ntc-blue);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--ntc-text);
    font-weight: 400;
}
