/* ===================================
   ElectronicDeeds.co.za - Main Styles
   =================================== */

/* CSS Variables - Updated with eDEEDS Colors */
:root {
    --primary-color: #2d7d32;
    --secondary-color: #1b5e20;
    --accent-color: #f57c00;
    --accent-secondary: #e65100;
    --success-color: #059669;
    --warning-color: #f57c00;
    --danger-color: #dc2626;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-color: #e5e7eb;
    --text-muted: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    line-height: 1.6;
    color: #374151;
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted) !important;
}

.text-sm {
    font-size: 0.875rem;
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}

/* Divider and Section Styles */
.divider-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header {
    position: relative;
}

.section-divider {
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
    height: 1px;
    margin: 60px 0;
}

/* Navigation Styles */
.navbar {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(45, 125, 50, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(45, 125, 50, 0.1);
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-width: 2px;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-warning:hover {
    background-color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Orange button styles for eDEEDS */
.btn-orange {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

.btn-orange:focus,
.btn-orange:active {
    background-color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(245, 124, 0, 0.25);
}

.btn-outline-orange {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-orange:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 125, 50, 0.3);
}

.btn-hero-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.3);
}

.btn-instant-search {
    background: linear-gradient(135deg, #2d7d32 0%, #1b5e20 100%);
    color: white;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-instant-search:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(45, 125, 50, 0.3);
    color: white;
}

.btn-instant-search:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hero Section Enhancement */
.hero-section {
    background: var(--primary-color);
    color: white;
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="30" cy="70" r="1" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
    opacity: 0.6;
    pointer-events: none !important;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    pointer-events: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image .card {
    transition: transform 0.3s ease;
}

.hero-image:hover .card:nth-child(1) {
    transform: rotate(-5deg) !important;
}

.hero-image:hover .card:nth-child(2) {
    transform: rotate(2deg) scale(1.02) !important;
}

.hero-accent-green {
    color: #4caf50;
}

.hero-accent-orange {
    color: #ff9800;
}

/* Fix editor functionality in hero section */
.hero-section .jeditable,
.hero-section .tinymce-editable,
.hero-section [class*="editable"] {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.hero-section * {
    pointer-events: auto;
}

/* Compact Hero Section - 150px height */
.hero-section-compact {
    background: var(--primary-color);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    align-items: center;
}

.hero-section-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    opacity: 0.6;
}

.hero-section-compact .container {
    position: relative;
    z-index: 1;
}

/* Enhanced Stats Section */
.stats-section {
    background: var(--light-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(45,125,50,0.05)"/><circle cx="90" cy="90" r="1" fill="rgba(45,125,50,0.05)"/></svg>') repeat;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 10px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 500;
    margin-top: 8px;
}

.stat-number-mini {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.stat-label-mini {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px;
}

/* Services Section Enhancement */
.services-section {
    padding: 100px 0;
    background: white;
    position: relative;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
}

.service-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(45, 125, 50, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card a:not(.btn) {
    color: inherit;
    text-decoration: none;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon-green {
    color: var(--primary-color) !important;
}

.service-icon-green i {
    color: var(--primary-color);
}

/* Service Comparison Cards */
.service-comparison-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

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

.service-comparison-header {
    padding: 20px;
    display: flex;
    align-items: center;
}

.service-comparison-body {
    padding: 20px;
}

.service-comparison-offices {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.service-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.service-time {
    margin-top: 15px;
    text-align: center;
}

/* Process Steps */
.process-step {
    position: relative;
    padding: 30px 20px;
}

.process-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.process-step:hover .process-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--light-color);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.features-visual {
    padding: 40px;
}

.coverage-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.coverage-item {
    text-align: center;
}

.coverage-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.stat-mini {
    text-align: center;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
}

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

.testimonial-rating {
    display: flex;
    gap: 5px;
}

.testimonial-author {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Trust Indicators */
.trust-item {
    padding: 20px;
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-5px);
}

.trust-item i {
    transition: var(--transition);
}

.trust-item:hover i {
    transform: scale(1.1);
}

/* CTA Section Enhancement */
.cta-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #374151 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(0deg, transparent 0%, rgba(255,255,255,0.05) 100%);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer a,
.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

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

.footer .list-unstyled li {
    margin-bottom: 8px;
}

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

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

/* Map Styles */
#map {
    height: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.map-container {
    height: 500px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-info {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.search-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 50, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-select {
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    padding: 12px 16px;
}

.form-floating > label {
    color: #6c757d;
}

.form-floating > .form-control:focus ~ label {
    color: #2d7d32;
}

#infoModal .form-control:focus {
    border-color: #2d7d32;
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 50, 0.25);
}

#infoModal .form-check-input:checked {
    background-color: #2d7d32;
    border-color: #2d7d32;
}

#infoModal .form-check-input:focus {
    border-color: #2d7d32;
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 50, 0.25);
}

#infoModal .modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.card-header {
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    font-weight: 600;
}

.card a:not(.btn) {
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card a:not(.btn):hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Table Styles */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(45, 125, 50, 0.05);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.alert-info {
    background-color: rgba(45, 125, 50, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.alert-success {
    background-color: rgba(5, 150, 105, 0.1);
    border-left-color: var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(245, 124, 0, 0.1);
    border-left-color: var(--accent-color);
    color: var(--accent-secondary);
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.1);
    border-left-color: var(--danger-color);
    color: var(--danger-color);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--border-radius);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.breadcrumb-section {
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 0px;
}

.breadcrumb-section.full-width-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 20%, var(--primary-color) 80%, transparent);
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
}

/* Search Form */
.search-form {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

/* Loading Spinner */
.spinner-custom {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Coverage Page Specific Styles */
.coverage-visual {
    padding: 40px;
}

.coverage-stats-grid {
    margin: 30px 0;
}

.coverage-stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.coverage-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.coverage-stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height:1;
}

.coverage-stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px;
}

.province-list {
    margin-top: 20px;
}

.province-tag {
    display: inline-block;
    background: rgba(45, 125, 50, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 2px;
    font-weight: 500;
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.status-indicator.online {
    background-color: #e8f5e9;
    color: #2d7d32;
}

.status-indicator.offline {
    background-color: #ffebee;
    color: #c62828;
}

.status-indicator i {
    font-size: 0.75rem;
    margin-right: 0.4rem;
}

/* Modern Link Styles */
a {
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--primary-color);
}

a:not(.btn):not(.navbar-brand):not(.nav-link)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

a:not(.btn):not(.navbar-brand):not(.nav-link):hover::after {
    width: 100%;
}

.link-with-arrow:hover i {
    transform: translateX(3px);
    transition: transform 0.3s ease;
}

/* Blog Page Styles */
.blog-articles {
    background: white !important;
}

.blog-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.category-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tag:hover {
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.category-tag.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.blog-categories .d-flex {
    flex-wrap: wrap;
    gap: 8px;
}

.article-image {
    position: relative;
    height: 100%;
    min-height: 200px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-placeholder {
    background: white;
    border-radius: 8px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2d7d32;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    margin-bottom: 15px;
}

.article-title a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.article-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-meta .author {
    font-weight: 500;
    color: var(--primary-color);
}

.article-meta .date {
    position: relative;
}

.article-meta .date::before {
    content: "•";
    margin-right: 15px;
    color: var(--border-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.article-tags .tag {
    display: inline-block;
    background: rgba(45, 125, 50, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.article-tags .tag:hover {
    background: rgba(45, 125, 50, 0.2);
    color: var(--secondary-color);
}

.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    padding: 12px 16px;
    margin: 0 2px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--light-color);
    border-color: var(--border-color);
}

/* FAQ Accordion Styles */
.accordion-item {
    border: none;
    margin-bottom: 15px;
}

.accordion-button {
    border-radius: var(--border-radius) !important;
    border: none;
    font-weight: 600;
    padding: 20px;
    transition: var(--transition);
    background-color: var(--accent-color) !important;
    color: white !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-color) !important;
    color: white !important;
    box-shadow: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.accordion-button.collapsed {
    background-color: var(--accent-color) !important;
    color: white !important;
    border-radius: var(--border-radius) !important;
}

.accordion-button:hover {
    background-color: var(--accent-secondary) !important;
    color: white !important;
    transform: translateY(-1px);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(245, 124, 0, 0.25);
    border-color: var(--accent-color);
}

.accordion-button::after {
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.accordion-body {
    background: white;
    border: 1px solid var(--accent-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 25px;
    line-height: 1.6;
    color: var(--dark-color);
}

.accordion-body p {
    margin-bottom: 15px;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.accordion-body ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.accordion-body li {
    margin-bottom: 8px;
}

.accordion-body strong {
    color: var(--primary-color);
}

.accordion-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.accordion-body a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2d7d32 0%, #1b5e20 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(45, 125, 50, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #0d3d10 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(45, 125, 50, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-image {
        margin-top: 3rem;
    }
    .hero-image > div {
        height: 380px !important;
    }
    .hero-image .card {
        width: 260px !important;
        height: 340px !important;
    }
    .hero-image .card:nth-child(1) {
        top: 50px !important;
        right: 30px !important;
    }
    .hero-image .card:nth-child(2) {
        top: 70px !important;
        right: 15px !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 80px;
        text-align: center;
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .services-section,
    .features-section {
        padding: 80px 0;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .service-card,
    .testimonial-card {
        margin-bottom: 30px;
    }
    
    .process-step {
        margin-bottom: 40px;
    }
    
    .coverage-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-item {
        text-align: center;
        flex-direction: column;
        margin-bottom: 30px;
    }
    
    .feature-icon {
        margin: 0 auto 15px;
    }
    
    .divider-line {
        width: 40px;
    }
    
    .coverage-visual {
        padding: 20px;
        margin-top: 40px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .blog-categories {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .category-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-title a {
        font-size: 1.1rem;
    }
    
    .blog-card {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .article-meta .date::before {
        display: none;
    }
    
    .accordion-button {
        padding: 15px;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .accordion-body {
        padding: 20px;
        font-size: 0.95rem;
    }
    
    .accordion-item {
        margin-bottom: 12px;
    }
    
    #map {
        height: 400px;
    }

    .search-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 60px;
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-image > div {
        height: 360px !important;
    }
    .hero-image .card {
        width: 240px !important;
        height: 320px !important;
    }
    .hero-image .card:nth-child(1) {
        top: 40px !important;
        right: 40px !important;
    }
    .hero-image .card:nth-child(2) {
        top: 60px !important;
        right: 25px !important;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .process-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .process-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        top: -15px;
    }
    
    .trust-item {
        margin-bottom: 30px;
    }
    
    .coverage-stat-card {
        padding: 15px;
    }
    
    .coverage-stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .province-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .category-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .article-image {
        height: 150px;
    }
    
    .article-category {
        top: 10px;
        left: 10px;
        padding: 4px 6px;
        font-size: 0.6rem;
    }
    
    .accordion-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .accordion-body ul {
        padding-left: 15px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .back-to-top {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .testimonial-card,
    .service-card {
        break-inside: avoid;
    }
}

/* Mobile responsive fixes for hero cards */
@media (max-width: 991px) {
    .hero-image {
        margin-top: 3rem;
    }
    
    .hero-image .position-relative {
        height: 380px !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-image .card {
        width: 260px !important;
        height: 350px !important;
        font-size: 0.6rem !important;
    }
    
    /* Center and adjust card positions */
    .hero-image .card:nth-child(1) {
        top: 10px !important;
        right: auto !important;
        left: 50% !important;
        margin-left: -130px !important;
        transform: translateX(-30px) rotate(-5deg) !important;
    }
    
    .hero-image .card:nth-child(2) {
        top: 20px !important;
        right: auto !important;
        left: 50% !important;
        margin-left: -130px !important;
        transform: translateX(-20px) rotate(-4deg) !important;
    }
    
    .hero-image .card:nth-child(3) {
        top: 30px !important;
        right: auto !important;
        left: 50% !important;
        margin-left: -130px !important;
        transform: translateX(-10px) rotate(-3deg) !important;
    }
    
    .hero-image .card:nth-child(4) {
        top: 45px !important;
        right: auto !important;
        left: 50% !important;
        margin-left: -130px !important;
        transform: translateX(0) rotate(0deg) !important;
    }
    
    /* Card body spacing adjustments for green card */
    .hero-image .card:nth-child(4) .card-body {
        padding: 0.6rem !important;
        font-size: 0.6rem !important;
    }
    
    .hero-image .card-body .badge {
        font-size: 0.55rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    .hero-image .card-body strong {
        font-size: 0.65rem !important;
    }
    
    .hero-image .card-body i.bi-file-earmark-text-fill {
        font-size: 0.9rem !important;
    }
    
    .hero-image .card-body i.bi-geo-alt-fill {
        font-size: 1.3rem !important;
    }
    
    .hero-image .card-body i.bi-download {
        font-size: 0.8rem !important;
    }
    
    .hero-image .card-body i.bi-check-circle-fill {
        font-size: 0.55rem !important;
    }
    
    .hero-image .card-body .d-flex {
        font-size: 0.6rem !important;
    }
    
    .hero-image .card-body small {
        font-size: 0.55rem !important;
    }
    
    /* Tighter spacing for sections */
    .hero-image .card:nth-child(4) .mb-2 {
        margin-bottom: 0.4rem !important;
    }
    
    .hero-image .card:nth-child(4) .pb-2 {
        padding-bottom: 0.4rem !important;
    }
    
    .hero-image .card:nth-child(4) .pt-2 {
        padding-top: 0.4rem !important;
    }
    
    /* Adjust map preview height */
    .hero-image .card:nth-child(4) > div > div[style*="height: 60px"] {
        height: 40px !important;
    }
    
    /* Reduce padding on info sections */
    .hero-image .card:nth-child(4) div[style*="padding: 4px 6px"] {
        padding: 3px 5px !important;
    }
    
    .hero-image .card:nth-child(4) div[style*="padding: 2px 0"] {
        padding: 1px 0 !important;
    }
    
    .hero-image .card:nth-child(4) .mb-1 {
        margin-bottom: 0.25rem !important;
    }
}

@media (max-width: 576px) {
    .hero-image .position-relative {
        height: 330px !important;
    }
    
    .hero-image .card {
        width: 230px !important;
        height: 310px !important;
    }
    
    /* Adjust centering for smaller screens */
    .hero-image .card:nth-child(1) {
        margin-left: -115px !important;
        transform: translateX(-25px) rotate(-5deg) !important;
    }
    
    .hero-image .card:nth-child(2) {
        margin-left: -115px !important;
        transform: translateX(-15px) rotate(-4deg) !important;
    }
    
    .hero-image .card:nth-child(3) {
        margin-left: -115px !important;
        transform: translateX(-5px) rotate(-3deg) !important;
    }
    
    .hero-image .card:nth-child(4) {
        margin-left: -115px !important;
    }
    
    .hero-image .card:nth-child(4) .card-body {
        padding: 0.5rem !important;
        font-size: 0.55rem !important;
    }
    
    .hero-image .card-body .badge {
        font-size: 0.5rem !important;
    }
    
    .hero-image .card-body strong {
        font-size: 0.6rem !important;
    }
    
    /* Even tighter spacing for small mobile */
    .hero-image .card:nth-child(4) .mb-2 {
        margin-bottom: 0.3rem !important;
    }
    
    .hero-image .card:nth-child(4) > div > div[style*="height: 60px"] {
        height: 35px !important;
    }
}

/* Add to your stylesheet */
.navbar-brand, 
.logo {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: auto;
}

/* If using fixed/sticky header */
header,
.navbar {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Disable smooth scrolling on the logo specifically */
.navbar-brand img,
.logo img {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}