/* ===== Base Styles ===== */
:root {
    --primary-color: #155724;
    --secondary-color: #155724;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --light-gray: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --transition: none; /* Removed for instant performance - zero animations */
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    /* Override Bootstrap's default primary color */
    --bs-primary: #155724;
    --bs-primary-rgb: 21, 87, 36;
}

/* ===== Accessibility ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
    max-width: 100%;
    position: relative;
    padding-top: 80px; /* Space for fixed header */
}

/* Ensure content is not hidden behind fixed header */
main {
    min-height: calc(100vh - 400px); /* Adjust based on your footer height */
    padding: 2rem 0;
}

/* Blog specific styles */
.blog-section {
    padding: 4rem 0;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('assets/services/1.jpeg') no-repeat center center/cover;
    padding: 120px 0 80px;
    min-height: 400px;
    display: flex;
    align-items: center;
    margin-top: 80px; /* Account for fixed header */
}

.blog-hero h1,
.blog-hero p {
    color: #fff !important;
}

/* Search Form Styles */
.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-form .input-group {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
}

.search-form .form-control {
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px 0 0 50px;
    background: #fff;
    color: #333;
}

.search-form .form-control:focus {
    border: none;
    box-shadow: none;
    outline: none;
    background: #fff;
}

.search-form .btn-primary {
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0 50px 50px 0;
    background-color: #155724;
    color: #fff;
    transition: all 0.3s ease;
    min-width: 60px;
}

.search-form .btn-primary:hover {
    background-color: #0d4217;
    transform: scale(1.05);
}

.search-form .btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(21, 87, 36, 0.25);
}

/* No results message */
.no-results-message {
    width: 100%;
    padding: 3rem 1rem;
}

.no-results-message p {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Mobile responsive search form */
@media (max-width: 767.98px) {
    .blog-hero {
        padding: 100px 0 60px;
        min-height: 350px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    /* Hide search bar on mobile */
    .search-form {
        display: none !important;
    }
}

.blog-card {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

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

.blog-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.blog-card .card-text {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #eee;
    margin: 0 3px;
    border-radius: 4px !important;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0;
}

.cta-section .btn-light {
    color: var(--primary-color);
    font-weight: 600;
}

/* Container adjustments for better mobile experience */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Responsive images and media */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form elements */
.form-control,
.form-select,
textarea {
    width: 100%;
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
}

/* Prevent horizontal scrolling */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix for iOS zoom on input focus */
@supports (-webkit-touch-callout: none) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

p {
    margin-bottom: 1.2rem;
    color: var(--gray-color);
}

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

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

.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 2px solid transparent;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: capitalize;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 87, 36, 0.2);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 87, 36, 0.2);
}

.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-success {
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
}

.btn-success:hover {
    background-color: #20BA5A;
    border-color: #20BA5A;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-lg {
    padding: 0.875rem 2.2rem;
    font-size: 1.1rem;
}

/* Enhanced Button Responsiveness */
.btn {
    min-height: 44px; /* Minimum touch target size for mobile */
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    touch-action: manipulation; /* Prevents double-tap zoom on mobile */
    -webkit-tap-highlight-color: rgba(21, 87, 36, 0.2);
}

.btn-sm {
    min-height: 38px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    min-height: 50px;
    padding: 0.875rem 2.2rem;
    font-size: 1.1rem;
}

/* Hero buttons container */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
}

.hero-buttons .btn {
    flex: 0 1 auto;
}

/* CTA buttons container */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.cta-buttons .btn {
    flex: 0 1 auto;
}

@media (max-width: 767.98px) {
    .cta-section {
        padding: 3.5rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
        margin: 0;
    }
    
    .cta-buttons .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    /* Also fix CTA buttons in other containers */
    .cta-section .btn,
    .cta-section .btn-lg {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
        margin: 0.375rem 0;
    }
}

@media (max-width: 575.98px) {
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }
    
    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .cta-buttons {
        gap: 0.625rem;
    }
    
    .cta-buttons .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .cta-buttons .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    /* Also fix CTA buttons in other containers */
    .cta-section .btn,
    .cta-section .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
        margin: 0.25rem 0;
    }
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Header & Navigation ===== */
.header {
    padding: 0.75rem 0;
    transition: var(--transition);
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img,
.navbar-logo {
    height: auto;
    max-height: 70px;
    max-width: 200px;
    width: auto;
    transition: var(--transition);
}

.navbar-toggler {
    border: 2px solid rgba(21, 87, 36, 0.1);
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    color: var(--dark-color);
    border-radius: 0.375rem;
    transition: var(--transition);
}

.navbar-toggler:hover {
    border-color: var(--primary-color);
    background-color: rgba(21, 87, 36, 0.05);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 87, 36, 0.1);
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

.navbar-nav {
    padding: 0;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    position: relative;
    transition: var(--transition);
    border-radius: 0.375rem;
    font-size: 0.95rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(21, 87, 36, 0.05);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(21, 87, 36, 0.08);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.nav-item .btn {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        margin: 1rem -1rem -0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        text-align: left;
        border-radius: 0.375rem;
    }
    
    .navbar-nav .nav-link::after {
        left: 1rem;
        transform: none;
        bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 4px;
        height: 60%;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        border-radius: 0 2px 2px 0;
    }
    
    .nav-item .btn {
        margin: 0.5rem 0 0;
        max-width: 200px;
        display: inline-block;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-item .btn {
        margin-left: 0.75rem;
        width: auto;
        min-width: 150px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-nav .nav-item {
        margin: 0 0.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-item .btn {
        margin-left: 0.75rem;
        margin-top: 0;
        width: auto;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    height: auto;
    padding: 120px 0 80px;
    background: url('assets/services/2.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    max-width: 800px;
    animation: fadeInDown 1s ease;
}

.hero-section p {
    font-size: 1.1rem;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    max-width: 500px;
    animation: fadeIn 1s ease 0.6s both;
}

.hero-buttons .btn {
    font-size: clamp(14px, 3vw, 18px);
    padding: 10px 20px;
    flex: 1 1 auto;
    max-width: 180px;
    text-align: center;
}

.hero-buttons .btn {
    flex: 1 1 200px;
    max-width: 250px;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0.25rem;
    white-space: nowrap;
}

/* Adjust button sizes for different screen sizes */
@media (max-width: 991.98px) {
    .hero-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        margin: 0.2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin: 0.3rem 0;
        width: 100%;
        max-width: 280px;
        display: block;
    }
    
    .hero-buttons .btn:not(:last-child) {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-buttons .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        max-width: 75%;
        margin: 0.25rem auto;
        line-height: 1.2;
    }
    
    .hero-buttons {
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn:not(:last-child) {
        margin-bottom: 0.4rem;
    }
    
    /* Remove Bootstrap's btn-lg class effects on mobile */
    .hero-buttons .btn.btn-lg {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.8rem;
    animation: bounce 2s infinite;
    z-index: 3;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(-5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* Responsive Hero Section */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0 70px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        padding: 0.7rem 1.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 90px 0 60px;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.8rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .scroll-down {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 80px 0 50px;
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
}

/* ===== Features Section ===== */
.feature-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: rgba(21, 87, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: #fff;
}

/* ===== Services Section ===== */
.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-img {
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.service-content p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ===== About Section ===== */
.about-img {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.experience-box {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(21, 87, 36, 0.3);
    z-index: 2;
}

.experience-box h3 {
    font-size: 2.5rem;
    margin: 0;
    color: #fff;
    line-height: 1;
}

.experience-box p {
    margin: 0;
    color: #fff;
    font-weight: 500;
}

/* ===== Testimonials Section ===== */
.testimonial-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    height: 100%;
    position: relative;
    transition: var(--transition);
}

.testimonial-card::before {
    content: '"\201D';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: rgba(21, 87, 36, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    padding: 6rem 0;
    color: #fff !important;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 87, 36, 0.9) 0%, rgba(15, 70, 28, 0.9) 100%);
    opacity: 0.9;
}

/* Ensure all CTA section text is white */
.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6,
.cta-section p,
.cta-section .lead,
.cta-section .display-1,
.cta-section .display-2,
.cta-section .display-3,
.cta-section .display-4,
.cta-section .display-5,
.cta-section * {
    color: #fff !important;
}

.cta-section h2 {
    color: #fff !important;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 5rem 0 2rem;
    position: relative;
}

.footer h3, 
.footer h4, 
.footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h3::after,
.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    margin-right: 0.75rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-float i {
    font-size: 1.75rem;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 500;
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 767.98px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        right: 15px;
        bottom: 15px;
        font-size: 1.5rem;
    }
    
    .whatsapp-float i {
        font-size: 1.5rem;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hide tooltip on mobile */
    }
    
    /* Adjust position if back-to-top is visible - stack vertically */
    .back-to-top.active {
        bottom: 80px;
    }
}

@media (max-width: 575.98px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        right: 10px;
        bottom: 10px;
        font-size: 1.35rem;
    }
    
    .whatsapp-float i {
        font-size: 1.35rem;
    }
    
    .back-to-top.active {
        bottom: 70px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Responsive Styles ===== */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .hero-section {
        min-height: 600px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* ===== Responsive Styles ===== */
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
    }
    
    .service-card {
        margin-bottom: 25px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 550px;
        padding-top: 90px;
    }
    
    .hero-section h1 {
        font-size: 2.4rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }
    
    .section-padding {
        padding: 4.5rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .nav-item {
        margin: 0.3rem 0;
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
    
    .experience-box {
        right: 15px;
        padding: 1rem;
    }
    
    .experience-box h3 {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    html {
        font-size: 15px;
    }
    
    .hero-section {
        min-height: 500px;
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
        max-width: 90%;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px; /* Larger touch target for mobile */
    }
    
    /* Stack buttons vertically on mobile */
    .btn-group,
    .btn-group-vertical {
        width: 100%;
    }
    
    .btn-group .btn,
    .btn-group-vertical .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    /* Ensure all buttons are mobile-friendly */
    .btn-primary,
    .btn-outline-primary,
    .btn-outline-light,
    .btn-secondary {
        width: 100%;
        max-width: 100%;
        margin: 0.5rem 0;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 3.5rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        padding-bottom: 0.8rem;
    }
    
    .section-header h2::after {
        width: 50px;
    }
    
    .navbar-brand img {
        max-height: 55px;
    }
    
    .navbar-collapse {
        margin: 0.75rem -1rem;
        border-radius: 0.5rem;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-nav .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    .feature-card, 
    .service-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
        color: #fff !important;
    }
    
    .cta-section p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .cta-section .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
        margin: 0.375rem 0;
    }
    
    .footer {
        padding: 4rem 0 2rem;
        text-align: center;
    }
    
    .footer h3,
    .footer h4 {
        margin-top: 2rem;
    }
    
    .footer h3::after,
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
        margin: 1.5rem 0;
    }
    
    .footer-links {
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 20px;
        right: 15px;
    }
    
    .back-to-top.active {
        bottom: 20px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }
    
    .hero-section {
        min-height: 450px;
        padding-top: 70px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-height: 48px;
        width: 100%;
        max-width: 100%;
    }
    
    .navbar-brand img {
        max-height: 50px;
    }
    
    /* All buttons full width on extra small screens */
    .cta-section .btn,
    .hero-buttons .btn,
    .btn-primary,
    .btn-outline-primary,
    .btn-outline-light,
    .btn-secondary,
    .btn-lg,
    .btn-sm {
        width: 100%;
        max-width: 100%;
        margin: 0.5rem 0;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    /* Button groups stack on mobile */
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin: 0.25rem 0;
    }
    
    .experience-box {
        position: relative;
        bottom: 0;
        right: 0;
        margin: 1.5rem auto 0;
        width: 100%;
        max-width: 200px;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
        top: 10px;
        right: 20px;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer h3,
    .footer h4 {
        margin-top: 1.5rem;
    }
}

/* Fix for mobile menu toggler */
.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.5rem;
}

/* Ensure images are responsive */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix for form elements on mobile */
.form-control,
.form-select,
.form-textarea {
    width: 100%;
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
}

/* Adjust spacing for better mobile experience */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure iframes are responsive */
iframe {
    max-width: 100%;
    height: auto;
}

/* Fix for mobile tap targets */
a,
button,
.btn,
[role="button"],
[type="submit"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevent horizontal scrolling */
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Fix for iOS zoom on input focus */
@supports (-webkit-touch-callout: none) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer h3::after,
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .footer-links {
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }


@media (max-width: 575.98px) {
    .hero-section {
        min-height: 450px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.service-hero {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                        url('https://images.unsplash.com/photo-1600566751984-8bca890c8a7c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
            padding: 150px 0 100px;
            color: #fff;
            text-align: center;
            position: relative;
        }
        
        .service-card-detail {
            border: none;
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.3s ease;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            background: #fff;
        }
        
        .service-card-detail:hover {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }
        
        .service-img-container {
            height: 200px;
            overflow: hidden;
        }
        
        .service-img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .service-content {
            padding: 25px;
        }
        
        .service-content h3 {
            color: var(--dark-color);
            margin-bottom: 15px;
            font-weight: 600;
        }
        
        .service-content p {
            color: var(--gray-color);
            margin-bottom: 20px;
        }
        
        .service-features {
            margin-top: 20px;
        }
        
        .service-features li {
            margin-bottom: 10px;
            color: var(--gray-color);
            position: relative;
            padding-left: 25px;
        }
        
        .service-features li:before {
            content: '\f00c';
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            color: var(--primary-color);
            position: absolute;
            left: 0;
            top: 2px;
        }
        
        .service-benefits {
            background-color: #f8f9fa;
            padding: 80px 0;
        }
        
        .benefit-item {
            background: #fff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            height: 100%;
        }
        
        .benefit-item:hover {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }
        
        .benefit-icon {
            width: 70px;
            height: 70px;
            background: rgba(37, 99, 235, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }
        
        .benefit-icon i {
            font-size: 30px;
            color: var(--primary-color);
        }
        
        .service-faq {
            padding: 80px 0;
        }
        
        .accordion-button:not(.collapsed) {
            background-color: rgba(21, 87, 36, 0.05);
            color: var(--primary-color);
        }
        
        .accordion-button:focus {
            box-shadow: none;
            border-color: rgba(21, 87, 36, 0.1);
        }
        
        .accordion-item {
            border: 1px solid rgba(0, 0, 0, 0.05);
            margin-bottom: 15px;
            border-radius: 8px !important;
            overflow: hidden;
        }
        
        .accordion-button:not(.collapsed)::after {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        }

/* Image hover container styles */
.image-hover-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 300px;
    max-width: 100%;
}

.image-hover-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.image-hover-container .image-wrapper {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.image-hover-container .image-wrapper img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.image-hover-container:hover .image-wrapper img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 87, 36, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.5rem;
}

.image-hover-container:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    padding: 1rem;
    text-align: center;
}

.overlay-content h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.overlay-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Override Bootstrap text-primary to use dark green - Stronger specificity */
/* But keep hero section text white */
.hero-section .text-primary,
.hero-section .text-primary *,
.hero-section i.text-primary,
.hero-section .fas.text-primary,
.hero-section .bi.text-primary,
.hero-section .fa.text-primary,
.hero-section [class*="fa-"].text-primary,
.hero-section [class*="bi-"].text-primary {
    color: #fff !important;
}

.text-primary:not(.hero-section .text-primary),
.text-primary:not(.hero-section .text-primary) *,
i.text-primary:not(.hero-section i.text-primary),
.fas.text-primary:not(.hero-section .fas.text-primary),
.bi.text-primary:not(.hero-section .bi.text-primary),
.fa.text-primary:not(.hero-section .fa.text-primary),
[class*="fa-"].text-primary:not(.hero-section [class*="fa-"].text-primary),
[class*="bi-"].text-primary:not(.hero-section [class*="bi-"].text-primary) {
    color: #155724 !important;
}

/* Ensure all primary colored elements use dark green except hero */
a.text-primary:not(.hero-section a.text-primary),
span.text-primary:not(.hero-section span.text-primary),
h2.text-primary:not(.hero-section h2.text-primary),
h3.text-primary:not(.hero-section h3.text-primary),
h4.text-primary:not(.hero-section h4.text-primary),
p.text-primary:not(.hero-section p.text-primary),
div.text-primary:not(.hero-section div.text-primary),
li .text-primary:not(.hero-section li .text-primary) {
    color: #155724 !important;
}

/* Hero section text must always be white */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section .lead,
.hero-section .display-1,
.hero-section .display-2,
.hero-section .display-3,
.hero-section .display-4,
.hero-section .display-5,
.hero-section .text-white,
.hero-section .text-center,
.hero-section .text-white *,
.hero-section .text-center * {
    color: #fff !important;
}

/* Also ensure article headers and contact hero stay white */
.article-header,
.contact-hero,
.portfolio-hero {
    color: #fff !important;
}

.article-header h1,
.article-header h2,
.article-header h3,
.article-header p,
.contact-hero h1,
.contact-hero h2,
.contact-hero h3,
.contact-hero p,
.portfolio-hero h1,
.portfolio-hero h2,
.portfolio-hero h3,
.portfolio-hero p {
    color: #fff !important;
}

/* Service hero should use dark green text on dark background */
/* Service hero should use white text on dark background */
.service-hero {
    color: #fff !important;
}

.service-hero h1,
.service-hero h2,
.service-hero h3,
.service-hero h4,
.service-hero h5,
.service-hero h6,
.service-hero p,
.service-hero .lead,
.service-hero .display-1,
.service-hero .display-2,
.service-hero .display-3,
.service-hero .display-4,
.service-hero .display-5 {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero section buttons - ensure proper visibility */
.hero-section .cta-buttons .btn,
.service-hero .btn,
.service-hero .cta-buttons .btn {
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-section .btn-light {
    background-color: #fff !important;
    color: #155724 !important;
    border-color: #fff !important;
}

.hero-section .btn-success {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}

.hero-section .btn-outline-light {
    background-color: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
}

.hero-section .btn-outline-light:hover {
    background-color: #fff !important;
    color: #155724 !important;
}

.service-hero .btn-light {
    background-color: #fff !important;
    color: #155724 !important;
    border-color: #fff !important;
}

.service-hero .btn-success {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}

.service-hero .btn-outline-light {
    background-color: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
}

.service-hero .btn-outline-light:hover {
    background-color: #fff !important;
    color: #155724 !important;
}

/* Mobile responsive buttons in service hero */
@media (max-width: 767.98px) {
    .service-hero .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .service-hero .cta-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
}

/* Ensure all CTA sections have white text - comprehensive override */
.cta-section,
.cta-section.bg-primary,
section.bg-primary.text-white,
.portfolio-cta {
    color: #fff !important;
}

/* CTA Section Styling */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #155724 0%, #0d4217 100%);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Ensure btn-light buttons are visible in CTA sections */
.cta-section .btn-light {
    background-color: #fff !important;
    color: #155724 !important;
    border-color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa !important;
    color: #155724 !important;
    border-color: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}

.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6,
.cta-section p,
.cta-section .lead,
.cta-section .display-1,
.cta-section .display-2,
.cta-section .display-3,
.cta-section .display-4,
.cta-section .display-5,
.cta-section.bg-primary h1,
.cta-section.bg-primary h2,
.cta-section.bg-primary h3,
.cta-section.bg-primary p,
section.bg-primary.text-white h1,
section.bg-primary.text-white h2,
section.bg-primary.text-white h3,
section.bg-primary.text-white p,
.portfolio-cta h1,
.portfolio-cta h2,
.portfolio-cta h3,
.portfolio-cta p {
    color: #fff !important;
}

/* ===== Enhanced Mobile Responsiveness ===== */

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Typography with clamp */
h1, .h1, .display-1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    line-height: 1.2;
}

h2, .h2, .display-2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
}

h3, .h3, .display-3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.4;
}

h4, .h4, .display-4 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.4;
}

h5, .h5, .display-5 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.5;
}

p, .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.lead {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

/* Responsive Containers */
.container,
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Responsive Tables */
table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table thead,
table tbody,
table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

/* Responsive Forms */
.form-control,
.form-select,
textarea {
    width: 100%;
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
    min-height: 44px;
    border-radius: 0.375rem;
}

.form-label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Responsive Cards */
.card {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.card-body {
    padding: 1.25rem;
}

@media (max-width: 767.98px) {
    .card-body {
        padding: 1rem;
    }
}

/* Responsive Navigation */
.navbar-nav {
    width: 100%;
}

.nav-link {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

@media (max-width: 991.98px) {
    .nav-link {
        padding: 0.875rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Responsive Spacing */
@media (max-width: 767.98px) {
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    .mt-4 {
        margin-top: 1.5rem !important;
    }
}

/* Responsive Grid */
.row {
    margin-left: -10px;
    margin-right: -10px;
}

.row > * {
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 575.98px) {
    .row {
        margin-left: -7.5px;
        margin-right: -7.5px;
    }
    
    .row > * {
        padding-left: 7.5px;
        padding-right: 7.5px;
    }
}

/* Responsive Utilities */
@media (max-width: 767.98px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-block {
        display: block !important;
    }
    
    .d-md-flex {
        display: flex !important;
    }
    
    .text-md-center {
        text-align: center !important;
    }
    
    .text-md-left {
        text-align: left !important;
    }
    
    .mb-md-0 {
        margin-bottom: 0 !important;
    }
    
    .mt-md-0 {
        margin-top: 0 !important;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 991.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px;
        padding-top: 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

/* Fix for iOS Safari viewport */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }
}

/* Responsive Service Cards */
.service-card,
.feature-card,
.testimonial-card {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Responsive Images in Cards */
.card-img-top,
.service-img img,
.feature-icon {
    width: 100%;
    height: auto;
}

/* Responsive Footer */
@media (max-width: 767.98px) {
    .footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer .row > div:last-child {
        margin-bottom: 0;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Responsive CTA Section */
.cta-section {
    padding: 4rem 0;
    text-align: center;
}

@media (max-width: 767.98px) {
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Responsive Hero Section */
.hero-section {
    padding: 100px 0 80px;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }
}

/* Responsive Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (max-width: 767.98px) {
    .section-header {
        margin-bottom: 2rem;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Responsive Video Embeds */
iframe,
embed,
object,
video {
    max-width: 100%;
    height: auto;
}

/* Responsive Modal */
@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
}


/* Image hover container styles moved from inline */
.image-hover-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.image-hover-container:hover .image-wrapper img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 87, 36, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.5rem;
}

.image-hover-container:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    padding: 1rem;
    text-align: center;
}

.overlay-content h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.overlay-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}