/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    color: #2c3e50;
}

/* Reset heading styles to ensure proper hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #2c3e50;
}

/* Global heading sizes */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Hero Section */
.hero {
    position: relative;
    padding: 10px 0;
    color: white;
    background-color: transparent;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/static/images/home_page_intro_background_1920x1080.35c917c1f861.jpeg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

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

.hero .btn-warning,
.hero .btn-warning:hover,
.hero a.btn-warning,
.hero a.btn-warning:hover {
    color: #000 !important;
}

/* Improve hero text visibility */
.hero-content h1,
.hero-content .display-4 {
    color: #ffffff !important; /* Pure white */
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5); /* Subtle shadow for better contrast */
}

.hero-content p {
    color: #ffffff !important; /* Pure white */
    font-size: 1.2rem; /* Slightly larger for better visibility */
    max-width: 800px; /* Limit width for better readability */
    margin: 0 auto 2rem auto; /* Center and add bottom margin */
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5); /* Subtle shadow for better contrast */
}

/* Fix for WYSIWYG content within hero section */
.hero-content .wysiwyg-content h1,
.hero-content .wysiwyg-content p,
.hero-content .wysiwyg-content p[data-block-key] {
    color: #ffffff !important;
}

/* Add subtle background darkening for better contrast */
.hero::after {
    background-color: rgba(0, 0, 0, 0.65) !important; /* Slightly darker overlay */
}


/* Breadcrumbs with more specific selectors */
.breadcrumbs-nav {
    padding: 1rem 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    font-size: 0.9rem;
}

/* More specific selector to override Bootstrap */
.breadcrumb-item a,
.breadcrumb .breadcrumb-item a {
    color: #000 !important;  /* Using !important to ensure override */
    font-weight: 500;
    text-decoration: underline;
}

.breadcrumb-item a:hover,
.breadcrumb .breadcrumb-item a:hover {
    color: #1a252f !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #5a6a7e;
    content: "•";
    padding: 0 0.75rem;
}

.breadcrumb-item.active {
    color: #5a6a7e;
}

/* Ensure proper spacing when main nav is removed */
.breadcrumbs-nav {
    margin-top: -1px;
}


/* All main sections should have their own padding */
section {
    padding: 3rem 0;
}


/* Feature Grid */
.feature-block {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.feature-text {
    color: #5a6a7e;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .feature-block {
        padding: 1rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }
}


/* Navigation Styles */

.top-nav .navbar-brand {
    padding: 0;
    margin-right: 2rem;  /* Space between logo and contact info */
}

.top-nav .logo {
    height: 40px;  /* Adjust size as needed */
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .top-nav .logo {
        height: 32px;
    }
}

.navbar-light .navbar-nav .nav-link {
    color: #2c3e50;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #1a252f;
}

.top-nav {
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa !important;
}

.top-nav .navbar-nav,
.main-nav .navbar-nav {
    flex-direction: row;
}

.top-nav .nav-link {
    padding: 0 1rem;
}


/* Unified Button Hover States */
.bottom-nav .btn-outline-primary:hover,
.top-nav .btn-outline-primary:hover,
.hero .btn-outline-light:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* Keep the normal states as they are */
.bottom-nav .btn-outline-primary:hover,
.top-nav .btn-outline-primary,
.hero .btn-outline-light {
    transition: all 0.2s ease;
}


/* Bottom Navigation */
.bottom-nav {
    font-size: 0.9rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 3rem 0;
}

.bottom-nav-title {
    display: block;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Rest of your existing bottom-nav styles remain the same */
.bottom-nav ul {
    list-style: none;
    padding: 0;
}

.bottom-nav ul li {
    margin-bottom: 0.75rem;
}

.bottom-nav a {
    color: #5a6a7e;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.bottom-nav a:hover {
    color: #2c3e50;
}



/* Articles Section */

.article-section .section-header {
    text-align: left;
}
.article-section .section-header:after {
    left: 0;
    transform: none;  /* Remove the transform that was centering the underline */
}

.article-link {
    display: block;
    text-decoration: none;
    color: white;
}

.article-link:hover {
    color: white;
    text-decoration: none;
}

.article-card {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-link:hover .article-card {
    transform: translateY(-5px);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.article-link:hover .article-card::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3));
}

.article-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .article-card {
        height: 250px;
    }
}

/* Style the h3 headings in article cards */
.article-content h3 {
    font-size: 1.0rem;
    color: #dddddd;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5); /* Add subtle shadow for better contrast */
}

/* Ensure the text remains visible against varying backgrounds */
.article-card::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
}


/* Services Section */
.service-link {
    display: block;
    text-decoration: none;
    color: white;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.service-link:hover {
    color: white;
    text-decoration: none;
}

.service-card {
    height: 200px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.service-link:hover .service-card-bg {
    transform: scale(1.05);
}

.service-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

/* Style the h3 headings in service cards */
.service-content h3 {
    font-size: 1.0rem;
    color: #dddddd;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-details-btn {
    display: inline-block;
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    width: fit-content;
}

.service-link:hover .service-details-btn {
    opacity: 1;
}

.service-details-btn:hover {
    background-color: #ffd700;
    color: #000;
}

.section-light-blue-2 {
    background-color: #f2f7fe;
}



/* Section Headers */
.section-header {
    margin-bottom: 2rem;
    position: relative;
    color: #2c3e50;
    font-weight: 600;
}

.section-header:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 4rem;
    height: 2px;
    background: #2c3e50;
}

.section-header.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Modal Styling */
.modal-content {
    border-radius: 4px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 2px solid #eee;
    background-color: #f8f9fa;
}

.modal-title {
    color: #2c3e50;
    font-weight: 600;
}

/* Form Elements */
.form-control {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
}

.form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.15);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #2c3e50;
    border-color: #2c3e50;
}

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

.btn-outline-primary {
    color: #2c3e50;
    border-color: #2c3e50;
}

.btn-outline-primary:hover {
    background-color: #2c3e50;
    border-color: #2c3e50;
}
/* Style the label with higher specificity */
.form-label.required::after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
    display: inline-block;
}

/* Style the input with higher specificity */
.form-control.required-field {
    border-left: 4px solid #dc3545;
}

/* Optional: add focus state */
.form-control.required-field:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }

    .feature-card,
    .service-card {
        height: 250px;
    }
}

/* Logo styles */
.navbar-brand {
    padding: 0.5rem 0;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

/* For smaller screens */
@media (max-width: 768px) {
    .logo {
        height: 32px;
    }
}

/* Footer link hover effect */
.hover-opacity {
    transition: opacity 0.2s ease;
}

.hover-opacity:hover {
    opacity: 0.8;
}



/* Help Steps Section */
.help-steps {
    position: relative;
    padding-top: 1rem;
}

.help-steps-line {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    height: 1px;
    background: #dee2e6;
    z-index: 1;
}

.help-step {
    text-align: left;
    position: relative;
    z-index: 2;
    min-height: 60px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: #2c3e50;
    position: absolute;
    left: 0;
    top: 0;
}

.help-step h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #2c3e50;
    padding-top: 80px;
    margin-bottom: 1rem;
}

.help-step p {
    color: #5a6a7e;
    margin: 0;
    line-height: 1.6;
}

.help-steps-section .section-header {
    margin-bottom: 1.5rem;
}

.help-steps .row {
    position: relative;
}

.help-steps .col-md-4 {
    padding-top: 0;
}

.help-step-container {
    position: relative;
    padding-top: 0;
    padding-left: 0;
    padding-right: 15px;
}

@media (max-width: 768px) {
    .help-steps-line {
        display: none;
    }

    .help-step {
        margin-bottom: 2rem;
    }
}



/* About Section */
.section-light-blue-1 {
    background-color: #f2f7fe;
}


/* WYSIWYG Content Area */
.wysiwyg-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

/* Enhanced heading styles with higher specificity for WYSIWYG Content */
.wysiwyg-content h1 { font-size: 2.5rem !important; margin: 2rem 0 1.5rem; }
.wysiwyg-content h2 { font-size: 2rem !important; margin: 2rem 0 1.25rem; }
.wysiwyg-content h3 { font-size: 1.75rem !important; margin: 1.75rem 0 1rem; }
.wysiwyg-content h4 { font-size: 1.5rem !important; margin: 1.75rem 0 1rem; }
.wysiwyg-content h5 { font-size: 1.25rem !important; margin-bottom: 0.75rem; }
.wysiwyg-content h6 { font-size: 1rem !important; margin-bottom: 0.75rem; }

/* Target elements with data-block-key attributes */
h2[data-block-key] { font-size: 2rem !important; }
h3[data-block-key] { font-size: 1.75rem !important; }

/* Special case for the blog template */
body.template-blogpage .wysiwyg-content h2 { font-size: 2rem !important; }
body.template-blogpage .wysiwyg-content h3 { font-size: 1.75rem !important; }

/* Target the specific blog post section with high specificity */
.blog-posts-section .blog-post-content .wysiwyg-content h2,
.blog-posts-section .wysiwyg-content h2,
section.blog-posts-section .wysiwyg-content h2 {
    font-size: 2rem !important;
}

.blog-posts-section .blog-post-content .wysiwyg-content h3,
.blog-posts-section .wysiwyg-content h3,
section.blog-posts-section .wysiwyg-content h3 {
    font-size: 1.75rem !important;
}

.wysiwyg-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.wysiwyg-content a {
    color: #2c3e50;
    text-decoration: underline;
}

.wysiwyg-content a:hover {
    color: #1a252f;
}

.wysiwyg-content ul,
.wysiwyg-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.wysiwyg-content li {
    margin-bottom: 0.5rem;
}

.wysiwyg-content blockquote {
    margin: 2rem 0;
    padding: 1rem 2rem;
    border-left: 4px solid #2c3e50;
    background-color: #f8f9fa;
}

.wysiwyg-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.wysiwyg-content hr {
    margin: 2rem 0;
    border-color: #dee2e6;
}

.wysiwyg-content table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.wysiwyg-content th,
.wysiwyg-content td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.wysiwyg-content th {
    background-color: #f8f9fa;
}


/* Blog Posts List Section */
.blog-posts-section {
    background-color: #fff;
    padding: 3rem 0;
}

.blog-posts-section h1 {
    margin-bottom: 1.5rem;
    position: relative;
    color: #2c3e50;
    font-weight: 600;
}

.blog-posts-section h1:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 4rem;
    height: 2px;
    background: #2c3e50;
}

.blog-post-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.blog-post-image {
    flex: 0 0 250px;
}

.blog-post-image a {
    display: block;
    transition: opacity 0.2s ease;
}

.blog-post-image a:hover {
    opacity: 0.9;
}

.blog-post-image img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 4px;
}

.blog-post-content {
    flex: 1;
}

.blog-post-content h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.blog-post-content h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-content h2 a:hover {
    color: #1a252f;
}

.blog-post-content p {
    color: #5a6a7e;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .blog-post-item {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-post-image {
        flex: 0 0 auto;
    }
}

/* Style for the return link */
.blog-posts-section .return-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-posts-section .return-link:hover {
    color: #1a252f;
}

/* Meta info styling */
.blog-posts-section .meta {
    color: #5a6a7e;
    margin: 1.5rem 0;
}


/* Auth Forms */
.form-control {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
}

.form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.15);
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Registration Forms */

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: #dc3545;
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.hover-no-underline:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.btn-warning {
    color: #000 !important;
}


/* Messages */

.alert {
    border: none;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-dismissible .btn-close {
    padding: 1.25rem;
}

/* Optional: Style specific message types */
.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #cce5ff;
    color: #004085;
}

/* Override Bootstrap heading classes if needed */
.h2, h2 { font-size: 2rem !important; }
.h3, h3 { font-size: 1.75rem !important; }

/* Improve spacing between paragraph and list elements in WYSIWYG content */
.wysiwyg-content p + ul,
.wysiwyg-content p + ol {
    margin-top: 1.5rem;
}

/* Ensure proper spacing after lists */
.wysiwyg-content ul,
.wysiwyg-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

/* Ensure list items have proper spacing */
.wysiwyg-content li {
    margin-bottom: 0.75rem;
}

/* Fix for lists with data-block-key attributes (common in Wagtail) */
.wysiwyg-content p[data-block-key] + ul,
.wysiwyg-content p[data-block-key] + ol {
    margin-top: 1.5rem;
}

/* For specific Wagtail implementation */
[data-block-key] + ul[data-block-key],
[data-block-key] + ol[data-block-key] {
    margin-top: 1.5rem !important;
}

/* Ensure consistent text colors in WYSIWYG content */
.wysiwyg-content p,
.wysiwyg-content ul,
.wysiwyg-content ol,
.wysiwyg-content li {
    color: #5a6a7e; /* Use the same color that paragraphs currently use */
    line-height: 1.7;
}

/* If you need to target specific data-block-key elements */
.wysiwyg-content p[data-block-key],
.wysiwyg-content li[data-block-key] {
    color: #5a6a7e;
}

/* Make sure there's no color inheritance issue from parent elements */
.wysiwyg-content {
    color: #5a6a7e;
}

/* Restricted area section styles */
.restricted-area-section h1:after {
    display: none;
}

.restricted-area-section ul li a {
    color: #2c3e50;
    text-decoration: none;
}

.restricted-area-section ul li a:hover {
    color: #1a252f;
}

.restricted-area-section ul li {
    margin-bottom: 0.5rem;
}


/* About Section Mobile Padding Fix */
@media (max-width: 767.98px) {
    .section-light-blue-1 .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-light-blue-1 .wysiwyg-content {
        padding-left: 0;
        padding-right: 0;
    }

    .section-light-blue-1 img {
        max-width: 100%;
        height: auto;
        padding: 0;
    }

    /* Adjust image container for better mobile spacing */
    .section-light-blue-1 .col-lg-6:first-child {
        margin-bottom: 1.5rem;
    }

    /* Make sure text doesn't overflow */
    .section-light-blue-1 p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Add better margin between image and text on mobile */
    .section-light-blue-1 .row.align-items-center.g-5 {
        margin-left: 0;
        margin-right: 0;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Adjust general section padding for mobile */
    section {
        padding-left: 0;
        padding-right: 0;
    }

    /* Ensure the g-5 gutters aren't causing overflow */
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }

    .top-nav .logo {
        max-height: 40px; /* Smaller logo on mobile */
    }
    .navbar-collapse {
        margin-top: 0.5rem;
    }

    .bottom-nav {
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .bottom-nav .small-text {
        font-size: 0.85rem;
        margin-bottom: 0;
        padding-left: 0.75rem;
    }

    .bottom-nav ul {
        margin-bottom: 0.5rem;
    }

    .bottom-nav li {
        margin-bottom: 0.25rem;
    }

    .bottom-nav p {
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }

    .bottom-nav .btn {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Comprehensive mobile text size optimization */
@media (max-width: 767.98px) {
  /* Global heading size reduction for mobile */
  h1, .h1 { font-size: 1.75rem !important; }
  h2, .h2 { font-size: 1.5rem !important; }
  h3, .h3 { font-size: 1.25rem !important; }
  h4, .h4 { font-size: 1.1rem !important; }
  h5, .h5 { font-size: 1rem !important; }
  h6, .h6 { font-size: 0.9rem !important; }

  /* Hero section adjustments */
  .hero-content h1,
  .hero-content .display-4 {
    font-size: 1.75rem !important;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
  }

  .hero .btn {
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem !important;
  }

  .hero {
    padding: 2rem 0;
  }

  /* Header (top-nav) adjustments */
  .top-nav {
    font-size: 0.8rem;
  }

  .top-nav .navbar-brand {
    margin-right: 0.5rem;
  }

  .top-nav .nav-link {
    padding: 0 0.5rem;
  }

  /* Feature blocks text reduction */
  .feature-title {
    font-size: 1rem !important;
  }

  .feature-text {
    font-size: 0.85rem;
  }

  /* Section headers */
  .section-header {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem;
  }

  /* Help steps section */
  .help-step h3 {
    font-size: 1.1rem !important;
    padding-top: 60px;
    margin-bottom: 0.5rem;
  }

  .help-step p {
    font-size: 0.85rem;
  }

  /* Service cards */
  .service-content h3,
  .article-content h3 {
    font-size: 0.9rem !important;
  }

  /* Blog/article text */
  .blog-post-content h2 {
    font-size: 1.3rem !important;
  }

  /* WYSIWYG content */
  .wysiwyg-content h1 { font-size: 1.75rem !important; }
  .wysiwyg-content h2 { font-size: 1.5rem !important; }
  .wysiwyg-content h3 { font-size: 1.25rem !important; }
  .wysiwyg-content h4 { font-size: 1.1rem !important; }
  .wysiwyg-content h5 { font-size: 1rem !important; }
  .wysiwyg-content h6 { font-size: 0.9rem !important; }

  .wysiwyg-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  /* Footer optimization */
  .bottom-nav {
    padding: 1.5rem 0;
  }

  .bottom-nav-title {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    !important;
  }

  .bottom-nav ul.small-text li,
  .bottom-nav p {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 1rem 0 !important;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  h1, .h1 { font-size: 1.5rem !important; }
  h2, .h2 { font-size: 1.3rem !important; }

  .hero-content h1,
  .hero-content .display-4 {
    font-size: 1.5rem !important;
  }

  .hero-content p {
    font-size: 0.9rem !important;
  }

  .section-header {
    font-size: 1.3rem !important;
  }
}