:root {
    --primary: #0d6efd;
    --primary-agecosco: #0d6efd;
    --secondary: #6c757d;
    --light: #F2F8FE;
    --dark: #111111;
    --cta-red: #d40000;
    --font-family-sans: 'Open Sans', 'Roboto', sans-serif;
    --font-family-serif: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-serif);
    font-weight: 700;
    color: var(--dark);
}

body {
    font-family: var(--font-family-sans);
    color: #555555;
    line-height: 1.6;
}

/*** Topbar ***/
.top-bar {
    height: 50px;
    background: var(--dark) !important;
    display: flex;
    align-items: center;
}

/*** Banner Stats Card Component ***/
.banner-stats-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 380px;
  min-height: 110px;
  padding: 24px 28px;
  background: rgba(15, 23, 30, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  margin-left: auto; /* Push to right in hero columns */
}

.banner-stats-card__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.banner-stats-card__value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-stats-card__label {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.banner-stats-card__divider {
  width: 1px;
  height: 64px;
  margin: 0 24px;
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 576px) {
  .banner-stats-card {
    padding: 16px 20px;
    max-width: 320px;
  }
  .banner-stats-card__value {
    font-size: 26px;
  }
  .banner-stats-card__label {
    font-size: 13px;
  }
  .banner-stats-card__divider {
    height: 48px;
    margin: 0 16px;
  }
}



.top-bar small {
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 400;
}

.top-bar .btn-sm-square {
    width: 30px;
    height: 30px;
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

.top-bar a {
    color: #ffffff !important;
}

.top-bar a:hover {
    color: var(--primary) !important;
}

/* Improved color consistency for service pages */
.service-item {
    color: #333333 !important;
}

.service-item h3,
.service-item h4,
.service-item h5 {
    color: #333333 !important;
}

.service-item p {
    color: #555555 !important;
}

/* Banner text consistency */
.banner {
    color: #333333 !important;
}

.banner h1,
.banner h2,
.banner h3,
.banner h4,
.banner h5,
.banner h6 {
    color: #333333 !important;
}

.banner p,
.banner li {
    color: #555555 !important;
}

/* Section content improvements */
.section-content {
    color: #333333 !important;
}

.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4,
.section-content h5,
.section-content h6 {
    color: #0d6efd !important;
}

.section-content p,
.section-content li {
    color: #555555 !important;
}

/* Card and content blocks */
.card,
.benefit-card,
.contact-card {
    color: #333333 !important;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: #0d6efd !important;
}

.card p,
.card li {
    color: #555555 !important;
}

/* Navigation improvements */
.navbar-nav .nav-link {
    color: #333333 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: #0d6efd !important;
}

/* Gallery and grid styles consistency */
.risk-gallery,
.survey-gallery,
.tally-gallery,
.gallery-section {
    background-color: #f8f9fa !important;
    color: #333333 !important;
}

.risk-gallery-grid,
.survey-gallery-grid,
.tally-gallery .gallery-grid {
    color: #333333 !important;
}

.risk-gallery-grid img,
.survey-gallery-grid img,
.tally-gallery img {
    border: 1px solid #dee2e6;
}

/* Service cards consistency */
.service-intro,
.related-services-card,
.service-card {
    color: #333333 !important;
}

.service-link {
    color: #333333 !important;
}

.service-link:hover {
    color: #0d6efd !important;
}

/* Text color fixes */
.text-dark {
    color: #333333 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Hero banner consistency */
.banner.hero {
    color: #333333 !important;
}

.banner.hero h1,
.banner.hero h2,
.banner.hero h3,
.banner.hero h4,
.banner.hero h5,
.banner.hero h6 {
    color: #333333 !important;
}

/* Section titles consistency */
.section-title {
    color: #0d6efd !important;
    border-left-color: #0d6efd !important;
}

/* List items consistency */
ul li {
    color: #333333 !important;
}

/* Breadcrumb improvements */
.breadcrumb .breadcrumb-item a {
    color: #0d6efd !important;
}

.breadcrumb .breadcrumb-item.active {
    color: #6c757d !important;
}

/* About Us section text should be black */
.about-text {
    color: #000000 !important;
}

.about-text p,
.about-text h2,
.about-text .h2 {
    color: #000000 !important;
}

.text-primary {
    color: var(--primary-agecosco) !important;
}

.bg-primary {
    background-color: var(--primary-agecosco) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    border-radius: 5px;
    padding: 10px 25px;
}

.btn-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 5px;
    padding: 10px 25px;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

.btn-cta {
    background-color: var(--cta-red) !important;
    border-color: var(--cta-red) !important;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #b30000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 0, 0, 0.3);
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* Skip to Content Link for Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-agecosco);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 6px;
    color: white;
}

.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;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: 0 !important;
    transition: .5s;
    background: #ffffff;
}

.navbar .navbar-brand {
    height: 75px;
}

.navbar .img-logo {
    position: absolute;
    display: block;
    min-width: 200px;
    max-height: 80px;
}

.navbar .img-logo-wrapper {
    position: relative;
    width: 100%;
    height: 80px;
}

@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease;
    }
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.show {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* Language Selector Styles */
.dropdown-item[data-lang] {
    position: relative;
    padding-left: 2.5rem;
    transition: all 0.3s ease;
}

.dropdown-item[data-lang]:hover {
    background-color: rgba(13, 110, 253, 0.1);
    padding-left: 2.75rem;
}

.dropdown-item[data-lang].active .fa-check,
.dropdown-item[data-lang][aria-current="true"] .fa-check {
    opacity: 1 !important;
}

.dropdown-item[data-lang] .fa-check {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

.dropdown-item[data-lang].active {
    font-weight: 600;
    background-color: rgba(13, 110, 253, 0.05);
}

/* Language transition animation */
[data-lang-transition] {
    transition: opacity 0.2s ease-in-out;
}

[data-lang-transition].fade-out {
    opacity: 0.5;
}

/* Globe icon animation */
.nav-link .fa-globe {
    transition: transform 0.3s ease;
}

.nav-link:hover .fa-globe {
    transform: rotate(15deg) scale(1.1);
}

.navbar .btn:hover {
    color: #FFFFFF !important;
    background: var(--primary) !important;
}


/*** Header ***/
.header-carousel {
    position: relative;
    min-height: 600px;
    background-color: #161616;
}

.header-carousel .carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(22, 22, 22, .7);
}

.header-carousel .owl-carousel-item {
    position: relative;
    min-height: 600px;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-carousel .owl-stage-outer,
.header-carousel .owl-stage {
    min-height: 600px;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Ensure only actual carousel items create dots */
.header-carousel .owl-item {
    min-height: 600px;
}

/* Fix for carousel item visibility */
.header-carousel .owl-item.active {
    display: block;
}

.page-header {
    background: linear-gradient(rgba(22, 22, 22, .7), rgba(22, 22, 22, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-item {
    border-color: rgba(0, 0, 0, .03) !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover,
.service-item:focus {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    border-color: var(--primary-agecosco) !important;
}

.service-item:focus {
    outline: 2px solid var(--primary-agecosco);
    outline-offset: 2px;
}

.service-item .btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    color: #FFFFFF;
    background: var(--primary-agecosco);
    border-radius: 38px;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
    text-decoration: none;
}

.service-item:hover .btn,
.service-item:focus .btn {
    width: 140px;
}

.service-item .btn:hover,
.service-item .btn:focus {
    background: var(--primary);
    color: #FFFFFF;
    text-decoration: none;
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.portfolio-inner img {
    transition: .5s;
}

.portfolio-inner:hover img {
    transform: scale(1.1);
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.portfolio-inner:hover .portfolio-text {
    bottom: 0;
    opacity: 1;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 22, 22, .7);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    opacity: 0;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    border-radius: 60px;
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

/* Custom Styling */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    border-left: 4px solid #e85d04;
    padding-left: 10px;
    margin-bottom: 20px;
}

.text-content p {
    font-size: 1rem;
    color: #555;
}

.image-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 6px;
}

.text-section {
    padding-left: 30px;
}

/* Testimonial carousel controls */
.testimonial-controls {
    margin-bottom: 2rem;
}

.testimonial-controls .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-controls .btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Enhanced testimonial items */
.testimonial-item {
    padding: 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-item blockquote {
    position: relative;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-item blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    position: absolute;
    top: -1rem;
    left: -1rem;
    opacity: 0.3;
}

.testimonial-item footer h3 {
    color: var(--dark);
    font-weight: 600;
}

/* Responsive testimonial controls */
@media (max-width: 576px) {
    .testimonial-controls .btn {
        width: 35px;
        height: 35px;
        margin: 0 0.25rem;
    }

    .testimonial-item {
        padding: 1.5rem;
    }
}

/* Enhanced Footer Styles */
footer.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

footer.footer address {
    font-style: normal;
}

footer.footer a {
    transition: color 0.3s ease, transform 0.3s ease;
}

footer.footer a:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

footer.footer .btn-outline-secondary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.1);
}

footer.footer .btn-link {
    color: var(--secondary);
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: all 0.3s ease;
}

footer.footer .btn-link:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* Newsletter form styles */
.newsletter-form .form-control {
    border-radius: 25px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.newsletter-form .btn-primary {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.newsletter-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer responsive improvements */
@media (max-width: 768px) {
    footer.footer .btn-square {
        width: 35px;
        height: 35px;
        margin: 0 0.25rem 0.5rem 0;
    }

    footer.footer .newsletter-form .btn-primary {
        position: static !important;
        width: 100%;
        margin-top: 0.5rem;
    }

    footer.footer .newsletter-form .form-control {
        padding-right: 1rem !important;
    }
}

/* Contact Form Enhancements */
.contact-form .form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 1rem 0.75rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

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

.contact-form .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.contact-form .form-floating>label {
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form .form-floating>.form-control:focus~label,
.contact-form .form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--primary);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.contact-form .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.contact-form .form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.contact-form .form-check {
    padding-left: 1.5rem;
}

.contact-form .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.contact-form .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.contact-form .form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form .form-check-label {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
}

.contact-form .form-check-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-form .form-check-label a:hover {
    text-decoration: underline;
}

.contact-form .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contact-form .submit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.contact-form .alert {
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.contact-form .alert-success {
    background-color: #d4edda;
    color: #155724;
}

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

.contact-form .alert i {
    font-size: 1.2rem;
}

/* Character Counter Styling */
#message-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

#message-counter.text-warning {
    color: #856404 !important;
}

#message-counter.text-danger {
    color: #721c24 !important;
}

/* Form Animation Effects */
.contact-form .form-floating {
    animation: fadeInUp 0.6s ease-out;
}

.contact-form .form-floating:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-form .form-floating:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-form .form-floating:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-form .form-floating:nth-child(4) {
    animation-delay: 0.4s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-form .form-floating {
        margin-bottom: 1.5rem;
    }

    .contact-form .btn {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .contact-form .form-control {
        font-size: 1rem;
        padding: 1.2rem 1rem;
    }
}

/* Contact Information Section Styles */
.contact-info-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto;
}

.contact-details a {
    color: var(--primary);
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--dark);
    text-decoration: underline !important;
}

.contact-services .service-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-services .service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    border-color: var(--primary);
    background: rgba(0, 123, 255, 0.15) !important;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
}

.emergency-contact {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        border-color: rgba(220, 53, 69, 0.25);
    }

    50% {
        border-color: rgba(220, 53, 69, 0.5);
    }

    100% {
        border-color: rgba(220, 53, 69, 0.25);
    }
}

.emergency-contact .btn {
    animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Responsive Contact Information */
@media (max-width: 768px) {
    .contact-info-item {
        margin-bottom: 1.5rem;
    }

    .contact-services .service-item {
        margin-bottom: 1rem;
    }

    .emergency-contact .col-md-4 {
        text-align: center !important;
    }

    .emergency-contact .btn {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon i {
        font-size: 1.5rem !important;
    }

    .service-icon {
        width: 35px;
        height: 35px;
    }

    .service-icon i {
        font-size: 1rem !important;
    }
}

/* Google Maps Enhancement Styles */
.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-loading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 10;
}

.map-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.map-error {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 15;
}

.map-fallback-info address {
    font-style: normal;
    line-height: 1.6;
}

.map-iframe {
    transition: opacity 0.3s ease;
    z-index: 5;
}

.map-controls {
    z-index: 20;
}

.map-controls .btn {
    width: 40px;
    height: 40px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map-controls .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.map-controls .btn:last-child {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.map-info {
    z-index: 20;
    max-width: 250px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Map Responsive Design */
@media (max-width: 992px) {
    .map-container {
        min-height: 300px !important;
        margin-top: 2rem;
    }

    .map-controls {
        position: static !important;
        margin: 1rem 0 0 0 !important;
        display: flex;
        justify-content: center;
    }

    .map-controls .btn-group-vertical {
        flex-direction: row;
    }

    .map-controls .btn:first-child {
        border-radius: 0.375rem 0 0 0.375rem;
    }

    .map-controls .btn:last-child {
        border-radius: 0 0.375rem 0.375rem 0;
    }

    .map-info {
        position: static !important;
        margin: 1rem 0 0 0 !important;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .map-container {
        min-height: 250px !important;
    }

    .map-controls .btn {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    .map-info {
        padding: 0.75rem !important;
    }

    .map-info .h6 {
        font-size: 0.9rem;
    }

    .map-info .small {
        font-size: 0.8rem;
    }
}

/* Map Animation Effects */
.map-container:hover .map-iframe {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.map-loading {
    animation: fadeIn 0.5s ease-in-out;
}

.map-error {
    animation: slideInUp 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Map Accessibility Enhancements */
.map-iframe:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.map-controls .btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .map-controls .btn {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }

    .map-info {
        border: 2px solid #000;
        background: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .map-container:hover .map-iframe {
        transform: none;
    }

    .map-controls .btn:hover {
        transform: none;
    }

    .map-loading,
    .map-error {
        animation: none;
    }
}

/* ===== BATCH 2 ENHANCEMENTS ===== */

/* Enhanced Team Navigation Styles */
.team-nav {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.team-nav-title {
    color: #1a3e6c;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.team-nav-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.team-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-nav-item {
    flex: 1;
    min-width: 200px;
}

.team-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
    color: #007bff;
}

.team-nav-link i {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.team-nav-link:hover i {
    transform: scale(1.1);
}

.team-nav-content h4 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.team-nav-content small {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Enhanced Team Grid Styles */
.team-grid {
    margin-top: 3rem;
}

.team-member-card,
.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.team-member-card:hover,
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-image-container,
.team-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-image-container img,
.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.team-social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member-card:hover .team-social-overlay,
.team-card:hover .team-social-overlay {
    opacity: 1;
}

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

.team-social-links .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.team-social-links .btn:hover {
    background: white;
    color: #007bff;
    transform: scale(1.1);
}

.team-member-info,
.team-info {
    padding: 2rem;
    text-align: center;
}

.team-member-info h3,
.team-info h3 {
    color: #1a3e6c;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.team-member-info .position,
.team-info p {
    color: #007bff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.team-member-info .bio {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Branch Cards Styles */
.branch-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.branch-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.branch-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #0056b3;
}

.branch-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.branch-content {
    padding: 2rem;
}

.branch-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.branch-contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.branch-contact-item i {
    color: #007bff;
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.branch-contact-item a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
}

.branch-contact-item a:hover {
    color: #007bff;
}

/* Portfolio Filter Styles */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    text-align: center;
    color: white;
}

.portfolio-overlay-content h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.portfolio-overlay-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Accreditations Carousel Styles */
.accreditations-carousel {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
}

.accreditation-item {
    text-align: center;
    padding: 2rem;
}

.accreditation-item img {
    max-height: 120px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.accreditation-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.accreditation-item h4 {
    color: #1a3e6c;
    font-weight: 700;
    margin-bottom: 1rem;
}

.accreditation-item p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Enhanced Footer Styles */
.enhanced-footer {
    background: linear-gradient(135deg, #1a3e6c 0%, #0d2142 100%);
    position: relative;
}

.enhanced-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
}

.footer-section h3 {
    position: relative;
    padding-bottom: 1rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #007bff;
}

.footer-links li a {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.footer-links li a:hover {
    color: #007bff !important;
    transform: translateX(5px);
}

.footer-links li a i {
    transition: transform 0.3s ease;
}

.footer-links li a:hover i {
    transform: scale(1.1);
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.social-media-nav .btn {
    transition: all 0.3s ease;
}

.social-media-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Service Link Styles */
.service-link {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.service-link:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
    color: #007bff !important;
}

.current-service {
    background: rgba(0, 123, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

/* Carousel Enhancements */
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background: transparent;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: #007bff;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 123, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #007bff;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 6px;
    color: white;
}

/* Focus Indicators */
*:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .team-nav-list {
        flex-direction: column;
    }

    .team-nav-item {
        min-width: 100%;
    }

    .team-image-container,
    .team-image-wrapper {
        height: 250px;
    }

    .team-member-info,
    .team-info {
        padding: 1.5rem;
    }

    .branch-content {
        padding: 1.5rem;
    }

    .portfolio-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .accreditations-carousel {
        padding: 2rem 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== BATCH 3 ENHANCEMENTS - START ===== */

/* General Conditions Page Enhancements */
.general-conditions-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.general-conditions-section .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.general-conditions-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.general-conditions-section .card-header {
    background: linear-gradient(135deg, var(--primary-agecosco) 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.general-conditions-section .card-body {
    padding: 2rem;
    background: white;
}

/* Download Section Enhancements */
.download-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 2rem 0;
    border: 2px solid rgba(13, 110, 253, 0.1);
}

.download-btn {
    background: linear-gradient(135deg, var(--primary-agecosco) 0%, #0056b3 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, var(--primary-agecosco) 100%);
}

.download-btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* PDF Viewer Enhancements */
.pdf-viewer-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem 0;
}

.pdf-viewer-header {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-viewer-controls {
    display: flex;
    gap: 10px;
}

.pdf-viewer-controls .btn {
    padding: 5px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
}

.pdf-fallback {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
}

.pdf-fallback i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Health & Safety Page Enhancements */
.hse-section {
    padding: 3rem 0;
}

.hse-hero {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4rem 0;
    border-radius: 20px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hse-hero::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hse-stats {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.hse-stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: transform 0.3s ease;
}

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

.hse-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-agecosco);
    display: block;
    margin-bottom: 0.5rem;
}

.hse-stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loss Prevention Page Enhancements */
.loss-prevention-section {
    padding: 3rem 0;
}

.risk-assessment-card {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: none;
    border-radius: 15px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.2);
    transition: transform 0.3s ease;
}

.risk-assessment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.risk-level-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-level-low {
    background: #d4edda;
    color: #155724;
}

.risk-level-medium {
    background: #fff3cd;
    color: #856404;
}

.risk-level-high {
    background: #f8d7da;
    color: #721c24;
}

/* P&I Claims Handling Page Enhancements */
.pi-claims-section {
    padding: 3rem 0;
}

.claims-process-timeline {
    position: relative;
    padding: 2rem 0;
}

.claims-process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-agecosco), #0056b3);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 45%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    background: var(--primary-agecosco);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd)::before {
    right: -32px;
}

.timeline-item:nth-child(even)::before {
    left: -32px;
}

.timeline-step {
    font-size: 0.875rem;
    color: var(--primary-agecosco);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Enhanced Newsletter Forms for Batch 3 */
.newsletter-form .form-control {
    transition: all 0.3s ease;
    border-radius: 25px;
}

.newsletter-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    border-color: var(--primary-agecosco);
}

.newsletter-form .btn {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.newsletter-form .invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.newsletter-form .text-success {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Enhanced Carousel Accessibility for Batch 3 */
.carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    transition: transform 0.5s ease;
}

.carousel:hover .carousel-item.active img {
    transform: scale(1.05);
}

/* Enhanced Team Cards for Batch 3 */
.team-item {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.team-item .team-social {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    transition: all 0.3s ease;
}

.team-item:hover .team-social {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9) 0%, rgba(13, 110, 253, 0.95) 100%);
}

.team-social .btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-social .btn:hover {
    transform: translateY(-2px) scale(1.1);
    border-color: white;
    background: white !important;
    color: var(--primary-agecosco) !important;
}

/* Enhanced Focus Indicators for Batch 3 */
.btn:focus,
.form-control:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--primary-agecosco);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Skip Link Enhancement */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-agecosco);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
    color: white;
    text-decoration: none;
}

/* Enhanced Responsive Design for Batch 3 */
@media (max-width: 768px) {
    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-item::before {
        left: -8px !important;
        right: auto !important;
    }

    .claims-process-timeline::before {
        left: 0;
        transform: none;
    }

    .hse-hero {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .download-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .pdf-viewer-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .pdf-viewer-controls {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hse-stat-number {
        font-size: 2rem;
    }

    .general-conditions-section .card-body {
        padding: 1.5rem;
    }

    .download-section {
        padding: 1rem;
    }

    .risk-assessment-card {
        padding: 1.5rem;
    }
}

/* Print Styles for Batch 3 */
@media print {

    .navbar,
    .footer,
    .back-to-top,
    .carousel-control-prev,
    .carousel-control-next,
    .team-social,
    .newsletter-form {
        display: none !important;
    }

    .container,
    .container-fluid {
        width: 100% !important;
        max-width: none !important;
    }

    .card,
    .team-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }

    .text-primary {
        color: #000 !important;
    }

    .bg-primary {
        background: #f8f9fa !important;
        color: #000 !important;
    }
}

/* Dark Mode Support for Batch 3 */
@media (prefers-color-scheme: dark) {
    .general-conditions-section {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }

    .general-conditions-section .card-body {
        background: #3a3a3a;
        color: #f8f9fa;
    }

    .download-section {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: #f8f9fa;
    }

    .pdf-fallback {
        background: #3a3a3a;
        border-color: #495057;
        color: #f8f9fa;
    }

    .hse-stats {
        background: #3a3a3a;
        color: #f8f9fa;
    }

    .hse-stat-item {
        background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
        color: #f8f9fa;
    }

    .risk-assessment-card {
        background: linear-gradient(135deg, #3a3a3a 0%, #495057 100%);
        color: #f8f9fa;
    }

    .timeline-item {
        background: #3a3a3a;
        color: #f8f9fa;
    }

    .team-item {
        background: #3a3a3a;
        color: #f8f9fa;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .carousel-item img {
        transform: none !important;
    }

    .team-item:hover,
    .card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* ===== BATCH 3 ENHANCEMENTS - END ===== */

/* ===== BATCH 4 ENHANCEMENTS - START ===== */

/* Quality Policy Page Styles */
.quality-overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.quality-principles .principle-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.quality-principles .principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-agecosco);
}

.quality-principles .principle-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-agecosco) 0%, #0056b3 100%);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.quality-commitment .commitment-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-agecosco);
}

.quality-commitment .commitment-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Risk Management Page Styles */
.risk-overview {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.risk-assessment .assessment-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-agecosco);
}

.risk-assessment .assessment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.risk-mitigation .mitigation-step {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 5px solid var(--primary-agecosco);
}

.risk-mitigation .step-number {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--primary-agecosco);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Survey Services Page Styles */
.survey-overview {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.survey-types .survey-type {
    margin-bottom: 4rem;
}

.survey-type .survey-content {
    padding: 2rem 0;
}

.survey-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.survey-features li:hover {
    background-color: #f8f9fa;
    padding-left: 1rem;
    border-radius: 5px;
}

.survey-benefits .benefit-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.survey-benefits .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-agecosco);
}

.survey-benefits .benefit-icon {
    transition: all 0.3s ease;
}

.survey-benefits .benefit-card:hover .benefit-icon i {
    transform: scale(1.1);
    color: var(--primary-agecosco);
}

/* Tally Inspection Page Styles */
.tally-overview {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
}

.service-approach .approach-features li,
.service-approach .service-features li,
.service-approach .service-benefits li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.service-approach .approach-features li:hover,
.service-approach .service-features li:hover,
.service-approach .service-benefits li:hover {
    background-color: #f8f9fa;
    padding-left: 1rem;
    border-radius: 5px;
}

.contact-info .contact-card {
    background: linear-gradient(135deg, var(--primary-agecosco) 0%, #0056b3 100%);
    transition: all 0.3s ease;
}

.contact-info .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Common Batch 4 Carousel Enhancements */
.carousel.slide {
    border-radius: 15px;
    overflow: hidden;
}

.carousel-inner {
    border-radius: 15px;
}

.carousel-item img {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-item img {
    transform: scale(1.02);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced Banner Sections */
.banner {
    background: linear-gradient(135deg, #e6d5bf 0%, #d4c4a8 100%);
    position: relative;
    overflow: hidden;
}

.banner::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.banner .service-list li {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-radius: 5px;
}

.banner .service-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

/* Enhanced Newsletter Forms */
.newsletter-form {
    position: relative;
}

.newsletter-form .form-control {
    transition: all 0.3s ease;
    border-radius: 25px;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-agecosco);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

.newsletter-form .btn {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-form .invalid-feedback {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.newsletter-form .form-control.is-invalid {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Enhanced Skip Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-agecosco);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 5px 5px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.skip-link:focus {
    top: 0;
    color: white;
    text-decoration: none;
}

/* Enhanced Footer Styles for Batch 4 */
footer .list-unstyled li {
    transition: all 0.3s ease;
}

footer .list-unstyled li:hover {
    transform: translateX(5px);
}

footer .btn-link {
    transition: all 0.3s ease;
    border-radius: 5px;
    padding: 0.5rem;
}

footer .btn-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

footer .btn-square {
    transition: all 0.3s ease;
}

footer .btn-square:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Enhancements for Batch 4 */
@media (max-width: 768px) {

    .quality-principles .principle-card,
    .risk-assessment .assessment-card,
    .survey-benefits .benefit-card {
        margin-bottom: 2rem;
    }

    .banner h2 {
        font-size: 2rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .contact-info .contact-card {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .quality-principles .principle-icon {
        width: 60px;
        height: 60px;
    }

    .risk-mitigation .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .banner {
        padding: 40px 0;
    }

    .newsletter-form .btn {
        position: static !important;
        width: 100%;
        margin-top: 1rem;
    }
}

/* Print Styles for Batch 4 */
@media print {

    .banner,
    .carousel,
    .newsletter-form,
    footer {
        display: none;
    }

    .quality-principles .principle-card,
    .risk-assessment .assessment-card,
    .survey-benefits .benefit-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Dark Mode Support for Batch 4 */
@media (prefers-color-scheme: dark) {

    .quality-overview,
    .risk-overview,
    .survey-overview,
    .tally-overview {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    }

    .quality-principles .principle-card,
    .risk-assessment .assessment-card,
    .survey-benefits .benefit-card {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .banner {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
}

/* Accessibility Enhancements for Batch 4 */
@media (prefers-reduced-motion: reduce) {

    .quality-principles .principle-card,
    .risk-assessment .assessment-card,
    .survey-benefits .benefit-card,
    .carousel-item img,
    .newsletter-form .form-control,
    .newsletter-form .btn,
    .skip-link,
    footer .btn-square {
        transition: none;
        animation: none;
    }

    .carousel:hover .carousel-item img {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .quality-principles .principle-card,
    .risk-assessment .assessment-card,
    .survey-benefits .benefit-card {
        border: 2px solid #000;
    }

    .banner {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* ===== BATCH 4 ENHANCEMENTS - END ===== */