/* Slider styles */
.bg-slider-option {
    position: relative;
    width: 100%;
    max-height: 750px;
    overflow: hidden;
}

.slider-option {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.carousel {
    position: relative;
    z-index: 2;
    height: 100%;
}

.carousel-item {
    height: 750px; /* Match max-height of bg-slider-option */
    background: transparent;
}

.slider-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.slider-content-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-content {
    background: transparent;
    width: 100%; /* Fix: Changed from 600% to 100% */
    padding: 20px;
    max-width: 600px;
}

.slider-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.slider-content p {
    font-size: 1rem;
    line-height: 1.6;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
}

.slider-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.slider-button:hover {
    background-color: #0056b3;
    transform: translateX(-50%) scale(1.05);
}

.slider-button:active {
    background-color: #0056b3;

}

/* Modal styles */
.modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #007bff;
    color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 0;
}

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

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 20px;
}

/* Form styles */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.contact-form-app .form-control {
    height: 50px;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    box-shadow: none;
    padding-left: 25px;
    margin-bottom: 0;
    font-size: 14px;
    color: #737d8b;
}

.contact-form-app .form-group {
    margin-bottom:20px;
}

.contact-form-app .form-text {
    margin-bottom: 0px;
}

.form-text {
    margin-bottom: 30px;
}

.contact-form-app .form-control:focus {
    border-color: #007bff;
    outline: none;
}

/* Style select */
.contact-form-app select.form-control {
    height: 50px;
    padding: 0 25px;
    font-size: 14px;
    color: #737d8b;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="#737d8b" d="M1.5 3.5l4.5 5 4.5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

/* Custom file input */
.custom-file-upload {
    position: relative;
    height: 50px;
    border: 1px solid #f0f0f0;
    background-color: #fff;
    border-radius: 0;

    display: flex;
    align-items: center;
    padding-left: 25px;
    font-size: 14px;
    color: #737d8b;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.custom-file-upload .file-upload-text {
    font-size: 14px;
    color: #737d8b;
    line-height: 1.5;
}

.custom-file-upload:hover .file-upload-text,
.custom-file-upload input[type="file"]:focus + .file-upload-text {
    color: #007bff;
}

.custom-file-upload input[type="file"]:valid + .file-upload-text::after {
    content: ' (' attr(data-file-count) ' файлов выбрано)';
}

/* Labels and help text */
.form-label {
    font-weight: 500;
    color: #212529;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-text {
    font-size: 12px;
    color: #737d8b;
    margin-top: 5px;
}

/* Submit button */
.btn-primary {
    background-color: #007bff;
    border: none;
    border-radius: 0;
    font-weight: 500;
    padding: 12px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Success and error messages */
.success-message,
.form-errors {
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: 100%;
    }

    .modal-content {
        border-radius: 8px;
    }

    .modal-body {
        padding: 15px;
    }

    .contact-form-app .form-control,
    .custom-file-upload,
    .contact-form-app select.form-control {
        height: 45px;
        font-size: 13px;
        padding-left: 20px;
        margin-bottom: 20px;
    }

    .contact-form-app select.form-control {
        background-position: right 10px center;
    }

    .custom-file-upload .file-upload-text {
        font-size: 13px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-text {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .btn-primary {
        font-size: 13px;
        padding: 10px;
    }

    .success-message,
    .form-errors {
        font-size: 14px;
    }

    .bg-slider-option {
        max-height: 500px; /* Reduce height for mobile */
    }

    .carousel-item {
        height: 500px; /* Match mobile max-height */
    }

    .slider-content {
        padding: 15px;
        max-width: 100%; /* Full width on mobile */
    }

    .slider-content h3 {
        font-size: 1.4rem; /* Smaller heading */
    }

    .slider-content p {
        font-size: 0.9rem; /* Smaller text */
        line-height: 1.4;
    }

    .slider-button {
        padding: 10px 20px;
        font-size: 1rem;
        bottom: 20px;
    }
}
@media screen and (max-width: 767px) {
    .carousel-control {
        display: block;
    }
}
@media screen and (max-width: 480px) {
    .slider-content p {
      display: block;
    }
}
.modal-content {
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* About section */
.about-greenforest {
    padding: 40px 0;
}

.about-greenforest-content h2 {
        font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    position: relative;
    padding-bottom: 10px;
}

.about-greenforest-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #737d8b;
    margin-bottom: 15px;
}

.about-greenforest-content .btn-default {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.about-greenforest-content .btn-default:hover {
    background-color: #0056b3;
}

/* Image Grid */
.about-greenforest-img .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 45px; /* Space between images */
    justify-items: center; /* Center images in grid cells */
}

.about-greenforest-img a {
    width: 300px; /* Fixed width for uniformity */
    height: 200px; /* Fixed height for uniformity */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-greenforest-img .fifth-image {
    grid-column: 2 / 3; /* Center fifth image in second row */
}

.about-greenforest-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scale images to cover container */
    object-position: center; /* Center images */
    display: block;
}

.about-greenforest-img a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bg-about-greenforest {
        padding: 30px 0;
    }

    .bg-about-greenforest h2 {
        font-size: 1.8rem;
    }

    .bg-about-greenforest p {
        font-size: 13px;
    }

    .bg-about-greenforest .btn-center {
        font-size: 12px;
        padding: 8px 16px;
    }

    .about-greenforest-img .image-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 10px;
    }

    .about-greenforest-img a {
        width: 180px;
        height: 135px;
    }

    .about-greenforest-img .fifth-image {
        grid-column: 1 / 3; /* Center fifth image across both columns */
    }
}

@media (max-width: 576px) {
    .bg-about-greenforest {
        padding: 20px 0;
    }

    .bg-about-greenforest h2 {
        font-size: 1.6rem;
    }

    .bg-about-greenforest p {
        font-size: 12px;
    }

    .bg-about-greenforest .btn-center {
        font-size: 11px;
        padding: 7px 14px;
    }

    .about-greenforest-img .image-grid {
        grid-template-columns: repeat(2, 1fr); /* Maintain 2 columns */
        gap: 8px;
    }

    .about-greenforest-img a {
        width: 160px;
        height: 120px;
    }

    .about-greenforest-img .fifth-image {
        grid-column: 1 / 3; /* Center fifth image */
    }
}

/* Image modal */
#imageModal .modal-dialog {
    max-width: 800px; /* Larger modal for full-size images */
}

#imageModal .modal-content {
    border-radius: 15px;
}

#imageModal .modal-header {
    background-color: #007bff;
    color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#imageModal .modal-body {
    padding: 0;
}

#imageModal img {
    border-radius: 0 0 10px 10px;
}

@media (max-width: 576px) {

    .about-greenforest-content h2 {
        font-size: 1.8rem;
    }

    .about-greenforest-content p {
        font-size: 0.9rem;
    }

    .about-greenforest-content .btn-default {
        font-size: 13px;
        padding: 8px 16px;
    }

    #imageModal .modal-dialog {
        max-width: 100%; /* Adjust modal width for mobile */
    }
}

/* About certificate accreditation section */
.bg-about-certificate-accreditation {
    padding: 40px 0;
    background-color: #f8f9fa; /* Light background for contrast, adjust as needed */
}

.about-certificate-accreditation-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
}

.about-certificate-accreditation-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #737d8b;
    margin-bottom: 15px;
}

.about-certificate-accreditation-img {
    display: flex;
    align-items: center; /* Vertical centering */
    justify-content: center;
    padding: 0;
}

.about-certificate-accreditation-img img {
    width: 100%;
    max-width: 500px; /* Limit max size for larger screens */
    height: auto;
    object-fit: contain; /* Preserve image aspect ratio */
    border-radius: 5px; /* Optional: slight rounding */
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .about-certificate-accreditation .row {
        flex-direction: column-reverse; /* Ensure text is above image on mobile */
    }

    .about-certificate-accreditation-img {
        margin-bottom: 20px;
    }

    .about-certificate-accreditation-img img {
        max-width: 100%; /* Full width on mobile */
    }

    .about-certificate-accreditation-content h2 {
        font-size: 1.8rem;
    }

    .about-certificate-accreditation-content p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 991px) {
    .about-greenforest-img {
        display: block;
			margin-top:30px;
    }
}

.btn-center {
    padding: 12px 30px;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
     background-color: #007bff;
     margin-top: 40px;
   
}

.btn-center:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    color:#fff;
}

/* Working section */
.bg-working-section {
    padding: 60px 0;
    background-color: #f8f9fa; /* Light background for modern look */
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    position: relative;
    padding-bottom: 10px;
}

.working-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 430px;
}

.working-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.working-icon {
    width: 100%;
    max-width: 300px; /* Larger square images */
    height: 300px;
    object-fit: cover; /* Preserve high-quality 1024x1024 images */

}

.working-icon img {
    width: 100%;
    max-width: 300px; /* Larger square images */
    height: 300px;
    object-fit: cover; /* Preserve high-quality 1024x1024 images */
    border-radius: 8px;
    margin-bottom: 15px;
}

.working-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0;
}

/* Working modal */
#workingModal .modal-dialog {
    max-width: 900px; /* Larger for image + description */
}

#workingModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#workingModal .modal-header {
    background-color: #007bff;
    color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#workingModal .modal-body {
    padding: 30px;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .working-icon img {
        max-width: 200px; /* Smaller for tablets */
        height: 200px;
    }

    .working-content h4 {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .working-icon img {
        max-width: 250px; /* Slightly larger for mobile visibility */
        height: 250px;
    }

    .working-content h4 {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    #workingModal .modal-dialog {
        max-width: 100%;
    }

    #workingModal .modal-body {
        padding: 20px;
    }

    #workingModal .modal-description {
        font-size: 1rem;
    }
}

/* Timeline section */
.bg-timeline-section {
    padding: 60px 0;
    background-color: #f8f9fa; /* Light background for modern look */
}

.timeline-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    position: relative;
    padding-bottom: 10px;
}

.timeline-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeline-image {
    flex: 0 0 auto;
    margin-right: 20px;
}

.timeline-image img {
    width: 120px;
    height: 120px;
    object-fit: cover; /* Ensure high-quality 1024x1024px images */
    border-radius: 8px;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #007bff; /* Matches site accent color */
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #737d8b; /* Matches site text color */
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-image img {
        width: 100px;
        height: 100px;
    }

    .timeline-content h4 {
        font-size: 1.3rem;
    }

    .timeline-content p {
        font-size: 1rem;
    }

    .timeline-section .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .timeline-image img {
        width: 100px;
        height: 100px;
    }

    .timeline-content h4 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }

    .timeline-section .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Custom checkbox */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.2l-3.5-3.5L4 14.1l5 5 10-10-1.4-1.4z"/></svg>');
    background-size: 14px;
    background-position: center;
}

.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-check-label {
    font-size: 14px;
    color: #737d8b;
    cursor: pointer;
    user-select: none;
}

.form-check-input:invalid ~ .form-check-label {
    color: #dc3545;
}

/* Responsive adjustments for checkbox */
@media (max-width: 576px) {
    .form-check {
        margin-bottom: 15px;
    }

    .form-check-input {
        width: 16px;
        height: 16px;
    }

    .form-check-label {
        font-size: 13px;
    }
}

#modalDescription ul {
    padding-left: 2rem;
}

#modalDescription ul li {

    list-style: inside;
    font-size: 15px;
    font-weight: 400;
    color: #696969;
}

/* Contact map section */
.contact-map-section {
    position: relative;
    padding: 0;
    margin: 0;
}

#map {
    position: relative;
    width: 100%;
    height: 500px; /* Increased height for better map visibility */
    overflow: hidden;
}

#map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact card overlay */
.contact-card {
    position: absolute;
    top: 60px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 400px;
    width: 90%;
    transition: transform 0.3s ease;
}

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

/* Contact address list */
.contact-address {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-address li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-address i {
    font-size: 24px;
    color: #007bff; /* Matches site accent color */
    margin-right: 15px;
    line-height: 1.5;
}

.contact-address .contact-content {
    flex: 1;
}

.contact-address .contact-content-p {
    margin-top:15px;
}
.contact-address p {
    font-size: 14px;
    color: #737d8b; /* Matches site text color */
    margin: 0;
    line-height: 1.6;
}

.contact-address a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-address a:hover {
    color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #map {
        height: 450px; /* Slightly reduced height for tablets */
    }

    .contact-card {
        max-width: 350px;
        padding: 15px;
        top: 15px;
        left: 15px;
    }

    .contact-address i {
        font-size: 20px;
        margin-right: 10px;
    }

    .contact-address p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    #map {
        height: 400px; /* Reduced height for mobile */
    }

    .contact-card {
        position: relative; /* Stack below map on mobile */
        top: 0;
        left: 0;
        max-width: 100%;
        border-radius: 0;
        padding: 20px;
        margin: 0 auto;
    }

    .contact-address li {
        margin-bottom: 12px;
    }

    .contact-address i {
        font-size: 18px;
    }

    .contact-address p {
        font-size: 12px;
    }
}


/* Compact form section */
.compact-form-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #9fc2e7 0%, #1e76d5 100%);
    color: #fff;
}

.compact-form-section .container-fluid {
    max-width: 1320px; /* Constrain to 1320px */
}

.form-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    color: #212529; /* Reset text color inside card */
}

.form-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.compact-form-section .section-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0px 0px 56px;
}

.compact-form-section .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    position: relative;
    padding-bottom: 8px;
}


/* Compact form adjustments */
.compact-form-section .form-group {
    margin-bottom: 12px; /* Tighter spacing */
}

.compact-form-section .form-control,
.compact-form-section .custom-file-upload,
.compact-form-section select.form-control {
    height: 40px;
    font-size: 13px;
    padding-left: 15px;
    border-radius: 5px;
}

.compact-form-section .form-label {
    font-size: 13px;
    margin-bottom: 4px;
    color: #212529;
}

.compact-form-section .form-text {
    font-size: 11px;
    margin-bottom: 8px;
    color: #737d8b;
}

.compact-form-section .form-check {
    margin-bottom: 12px;
}

.compact-form-section .form-check-label {
    font-size: 13px;
    color: #737d8b;
}

.compact-form-section .form-check-label a {
    color: #007bff;
    text-decoration: none;
}

.compact-form-section .form-check-label a:hover {
    color: #0056b3;
}

.compact-form-section .btn-primary {
    padding: 10px;
    font-size: 13px;
    border-radius: 5px;
    max-width: 300px;
}

/* Form messages */
.form-messages {
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 23px;
    text-align: center;
}

.form-messages.success {
    color: #28a745;
}

.form-messages.error {
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .compact-form-section {
        padding: 30px 0;
    }

    .form-card {
        padding: 20px;
    }

    .compact-form-section .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .compact-form-section {
        padding: 20px 0;
    }

    .form-card {
        padding: 15px;
        border-radius: 10px;
    }

    .compact-form-section .section-header h2 {
        font-size: 1.6rem;
    }

    .compact-form-section .form-group {
        margin-bottom: 10px;
    }

    .compact-form-section .form-control,
    .compact-form-section .custom-file-upload,
    .compact-form-section select.form-control {
        height: 38px;
        font-size: 12px;
        padding-left: 10px;
    }

    .compact-form-section .form-label {
        font-size: 12px;
    }

    .compact-form-section .form-text {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .compact-form-section .form-check-input {
        width: 14px;
        height: 14px;
    }

    .compact-form-section .form-check-label {
        font-size: 12px;
    }

    .compact-form-section .btn-primary {
        font-size: 12px;
        padding: 8px;
    }

    .form-messages {
        font-size: 12px;
    }
}

/* Required asterisk */
.required-asterisk {
    color: #dc3545; /* Red for required fields */
    font-weight: bold;
}


/* Services section */
.bg-servicesstyle2-section {
    padding: 40px 0;
    background-color: #f8f9fa; /* Matches other sections */
}

.bg-servicesstyle2-section .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.bg-servicesstyle2-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    position: relative;
    padding-bottom: 10px;
}


/* Services box */
.our-services-box {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.our-services-box:hover {
    transform: translateY(-5px);
}

.our-services-items {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Ensure rounded corners clip content */
}

/* Image container */
.image-container {
    width: 100%;
    height: 300px; /* Fixed height for uniformity */
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa; /* Fallback for broken images */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scale images to cover container */
    object-position: top; /* Center images */
    display: block;
    transition: transform 0.3s ease;
}

.image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.image-container img:hover {
    transform: scale(1.05); /* Zoom effect on hover */
}

/* Content */
.our-services-content {
    padding: 15px;
    text-align: center;
        min-height: 110px;
}

.our-services-content p {
    font-size: 14px;
    color: #737d8b; /* Matches site text color */
    margin: 0;
    line-height: 1.5;
}

.our-services-content a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.our-services-content a:hover {
    color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-control-next-icon, .carousel-control-prev-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 60%;
    background-size: 100% 100%;
    margin-top: 10px;
}
    .bg-servicesstyle2-section {
        padding: 30px 0;
    }

    .bg-servicesstyle2-section .section-header h2 {
        font-size: 1.8rem;
    }

    .image-container {
        height: 180px; /* Slightly smaller for tablets */
    }

    .our-services-content p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .bg-servicesstyle2-section {
        padding: 20px 0;
    }

    .bg-servicesstyle2-section .section-header h2 {
        font-size: 1.6rem;
    }

    .image-container {
        height: 160px; /* Smaller for mobile */
    }

    .our-services-content p {
        font-size: 12px;
    }

    .our-services-box {
        margin-bottom: 15px;
    }
}

.center-nic {
    text-align:center;
}