body,
html {
    margin: 0;
    padding: 0;
}

p {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

a {
    color: #be2210;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.flex-item {
    box-sizing: border-box;
    flex: 1;
}

.top-bar {
    padding: 10px 0 0 0;
    background-color: #000;
}

.top-bar i {
    color: #e23320;
    padding-right: 10px;
    font-size: 16px;
}

.top-bar li {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #fff;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar a:hover {
    color: #e23320;
}

.socials {
    text-align: end;
    align-items: end;
}

.socials i {
    background-color: #e23320;
    padding: 10px;
    border-radius: 50px;
    color: #fff;
    margin-right: 10px;
    font-size: 12px;
}

.socials i:hover {
    background-color: #be2210;
}

.nav-link:hover {
    text-decoration: none;
}

.dropdown-menu a:hover {
    text-decoration: none;
}

.dropdown-item:active {
    background: #f8f9fa !important;
    color: #be2210 !important;
}

.menu-bar {
    background: #fff;
    padding: 5px 0 0 0;
}

.menu-bar img {
    width: 300px;
    height: auto;
}

.menu-bar h5 {
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 0.5;
    margin-top: 15px;
}

.menu-bar i {
    font-size: 40px;
    margin-top: 15px;
    color: #e23320;
    position: relative;
}

.menu-bar li {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 400;
}

.menu-bar a {
    color: #757575;
    margin-right: 15px;
}

.menu-bar a:hover {
    color: #e23320;
}

.menu-bar h5 {
    padding-top: 20px;
}

.dropdown-menu {
    border: 1px solid #e23320;
}

.main-banner {
    background-image: url("/images/accountant-in-keighley.jpg");
    background-position: center center;
    background-size: cover;
    padding: 150px 0;
    position: relative;
}

.main-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* This creates a semi-transparent black overlay */
}

.main-banner h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    color: #e23320;
    position: relative;
    z-index: 2;
}

.main-banner h1 {
    color: #fff;
    font-size: 4.5rem;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    z-index: 2;
}

.main-banner p {
    color: #d9d9d9;
    font-family: 'Roboto', sans-serif;
    z-index: 2;
    position: relative;
    width: 50%;
}

.main-button {
    background-color: #e23320;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    padding: 10px 20px;
    border: none;
    margin-top: 15px;
}

.main-button:hover {
    background-color: #7a170c;
}

.main-button a {
    position: relative;
    z-index: 2;
}

.main-button i {
    margin-left: 10px;
    transform: rotate(-45deg);
}

.selling-points {
    margin-top: -100px;
    z-index: 10;
}

.first-box,
.second-box {
    margin: 0 15px;
}

.first-box {
    background: #7a170c;
    padding: 3em;
    border-radius: 10px;
    z-index: 10;
    position: relative;
}

.first-box i {
    color: #fff;
    font-size: 40px;
    display: inline-flex;
}

.first-box span {
    flex-grow: 1;
}

.first-box h4 {
    color: #fff;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
}

.first-box p {
    color: #fff;
    display: inline-block;
    font-family: 'Roboto', sans-serif;
}

.second-box {
    background: #e23320;
    padding: 3em;
    border-radius: 10px;
    z-index: 10;
    position: relative;
}

.second-box i {
    color: #fff;
    font-size: 40px;
    display: inline-flex;
}

.second-box span {
    flex-grow: 1;
}

.second-box h4 {
    color: #fff;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
}

.second-box p {
    color: #fff;
    display: inline-block;
    font-family: 'Roboto', sans-serif;
}

.about {
    margin-top: 100px;
    margin-bottom: 50px;
}

.about img {
    border-radius: 10px;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    color: #e23320;
}

.about h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3rem;
    color: #7a170c;
    font-weight: 700;
    margin-top: 15px;
}

.numbers {
    padding: 100px 0;
    background-image: url("/images/accountax-numbers.jpg");
    background-size: cover;
    background-position: center center;
    position: relative;
}

.numbers::before {
    content: "";
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.numbers h2 {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3rem;
    position: relative;
    font-weight: 600;
}

.numbers p {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    position: relative;
    line-height: 30px;
}

.numbers span {
    position: relative;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 30px;
}

.numbers .flex-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.services h4 {
    color: #be2210;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.services h2 {
    color: #000;
    font-size: 3rem;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
}

.services p {
    color: #757575;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    width: 50%;
    margin: auto;
}

.services .card {
    padding: 20px;
    border: 1px solid #be2210;
    border-radius: 20px;
    transition: 0.5s ease-in-out;
}

.services .card:hover {
    background-color: #be2210;
    transition: 0.5s ease-in-out;
}

.services .card:hover i {
    color: #fff;
    transition: 0.5s ease-in-out;
}

.services .card:hover .card-title {
    color: #fff;
    transition: 0.5s ease-in-out;
}

.services .card:hover p {
    color: #fff;
    transition: 0.5s ease-in-out;
}

.services .card:hover a {
    color: #fff;
    transition: 0.5s ease-in-out;
}

.services i {
    color: #be2210;
    font-size: 45px;
}

.services .card-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 50px;
    margin-top: 20px;
}

.read-more i {
    font-size: 16px;
    margin-left: 10px;
}

.card a {
    color: #000;
    text-decoration: none;
    transition: transform 0.3s ease;
    position: relative;
    color: #be2210;
}

.card a:hover {
    transform: translateY(-20px) !important;
}

.card p {
    width: 100%;
    margin: 0;
    margin-bottom: 20px;
}

.services .flex-container {
    display: flex;
    column-gap: 20px;
}

.card-focus {
    background-color: #be2210;
}

.card-focus i {
    color: #fff;
}

.card-focus .card-title {
    color: #fff;
}

.card-focus p {
    color: #fff;
}

.card-focus a {
    color: #fff;
}

.card-focus:hover {
    background-color: #fff !important;
}

.card-focus:hover i {
    color: #be2210 !important;
}

.card-focus:hover .card-title {
    color: #000 !important;
}

.card-focus:hover p {
    color: #757575 !important;
}

.card-focus:hover a {
    color: #be2210 !important;
}

.partners {
    background-color: #be2210;
    padding: 50px 0;
}

.partners h4 {
    color: #fff;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.partners h2 {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 48px;
}

.partners p {
    color: #d9d9d9;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.partners img {
    width: 70%;
    height: auto;
    margin: auto;
}

.partners .flex-container {
    column-gap: 50px;
}

.choose h4 {
    color: #be2210;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.choose h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 70px;
}

.choose img {
    border-radius: 10px;
}

.experience {
    position: relative;
    padding-left: 6em;
}

.experience-box {
    background-color: #be2210;
    color: #fff;
    padding: 20px 50px;
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 200px;
    z-index: 10;
}

.experience-box p {
    font-size: 48px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    margin-bottom: 0px;
}

.experience-box span {
    font-size: 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 0px;
}

.choose .flex-container {
    column-gap: 20px;
}

.choose .card {
    border: 1px solid #be2210;
    border-radius: 10px;
    padding: 25px;
    position: relative;
}

.choose .card:before {
    content: "\f10e";
    color: #be2210;
    position: absolute;
    bottom: 40px;
    right: 50px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 50px;
}

.choose .card p {
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    color: #757575;
}

.choose .card h6 {
    color: #000;
    font-weight: 600;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.choose .card h5 {
    color: #e23320;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.footer {
    background-color: #5e5d5d;
    padding-top: 100px;
    color: #fff;
}

.inner-footer {
    padding-bottom: 50px;
    border-bottom: 1px solid #fff;
}

.footer img {
    width: 300px;
    height: auto;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer i {
    color: #be2210;
}

.footer ul {
    padding-left: 0;
}

.footer ul i {
    margin-right: 15px;
}

.footer .socials li i {
    margin-right: 10px !important;
}

.footer li {
    list-style-type: none;
    line-height: 30px;
}

.footer .socials {
    text-align: start;
}

.socials i {
    color: #fff;
    margin-right: 10px;
}

.copyright {
    background-color: #5e5d5d;
    padding: 20px 0 10px 0;
    color: #fff;
}

.information i {
    color: #fff;
}

.information li {
    line-height: 50px;
}

.footer a:hover {
    color: #be2210;
}

.copyright span {
    margin: 0 15px;
}

.copyright a {
    color: #fff;
    text-decoration: underline;
}

.copyright a:hover {
    color: #7a170c;
}

.footer .flex-container {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.footer .flex-item {
    display: flex;
    flex-direction: column;
}

.self {
    background-image: url("/images/accountants-keighley.jpg");
    background-size: cover;
    background-position: center center;
    padding: 100px 0;
    position: relative;
    color: #fff;
}

.self::before {
    content: "";
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.self h1 {
    color: #f4f4f4;
    font-size: 50px;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
}

.self a {
    color: #fff;
    text-decoration: underline;
    position: relative;
}

.self a:hover {
    color: #e23320;
}

.self .breadcrumb {
    position: relative;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #fff;
}

.breadcrumb-item {
    font-size: 18px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.service-box {
    background-color: #be2210;
    padding: 48px 30px;
    color: #fff;
    border-radius: 10px;
}

.service-box ul {
    list-style-type: none;
    padding-left: 0px;
}

.service-box li {
    line-height: 30px;
    color: #fff;
}

.service-box i {
    margin-right: 15px;
}

.service-box h2 {
    color: #fff;
}

.service-box p {
    color: #fff;
}

.about-content img {
    border-radius: 10px;
}

.accountant-box {
    background-image: url("/images/accountant.jpg");
    background-position: center center;
    background-size: cover;
    padding: 30px;
    color: #fff;
    border-radius: 10px;
    margin-top: 40px;
    position: relative;
}

.accountant-box::before {
    content: "";
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}

.accountant-box h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 600;
    position: relative;
}

.section-content p,
ul {
    color: #757575;
    text-align: justify;
}

.section-content h2 {
    color: #7a170c;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 50px;
    font-weight: 600;
}

input {
    padding: 15px 20px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #006F93;
}

textarea {
    padding: 15px 20px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #006F93;
}

input[type="submit"] {
    border: none;
    background-color: #be2210;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

input[type="submit"]:hover {
    border: none;
    background-color: #7a170c;
    color: #fff;
}

.contacts h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    color: #be2210;
    font-weight: 500;
}

.contacts h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 48px;
    color: #000;
    font-weight: 600;
}

.contacts p {
    color: #757575;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

.contact-item {
    display: flex;
    /* Use Flexbox for layout */
    align-items: center;
    /* Vertically center the icon and text */
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 32px;
    /* Adjust the icon size */
    margin-right: 20px;
    /* Space between the icon and text */
    color: #be2210;
    /* Adjust the icon color if needed */
}

.contact-info {
    display: flex;
    flex-direction: column;
    /* Stack the text vertically */
    align-items: flex-start;
    /* Align text to the right of the icon */
}

.contact-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 600;
}

.contact-body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #757575;
}

.contact-link {
    display: block;
    /* Make the link a block element */
    text-decoration: none;
    /* Remove underline */
    color: inherit;
    /* Inherit color from parent */
}

.contact-link:hover {
    text-decoration: none;
    color: #be2210;
}

.animate__animated,
.animate__slideInRight,
.animate__slideInLeft {
    overflow: hidden;
}

.call-centered {
    margin-top: -20px;
}





@media (max-width: 768px) {

    .top-bar li {
        font-size: 14px;
        text-align: center;
    }

    .socials {
        text-align: center;
        align-items: center;
    }

    .menu-bar img {
        width: 100%;
    }

    .navbar .navbar-toggler {
        margin-left: auto;
    }

    .navbar-nav {
        text-align: center;
        padding-top: 15px;
        width: 100%;
    }

    .dropdown-menu {
        width: 100%;
    }

    .dropdown-menu li {
        width: 100%;
        font-size: 16px;
    }

    .call-centered {
        margin: auto;
    }

    .main-banner h1 {
        font-size: 40px;
    }

    .first-box {
        margin-bottom: 20px;
    }

    .about h3 {
        margin-top: 30px;
    }

    .numbers p {
        margin-top: 50px;
    }

    .services .card h5 {
        font-size: 20px;
    }

    .services .card {
        margin-bottom: 30px;
    }

    .partners h4 {
        margin-top: 50px;
    }

    .experience {
        padding-left: 20px;
    }

    .experience-box {
        width: 100%;
    }

    .card {
        margin-bottom: 20px;
    }

    .about-content img {
        display: none;
    }

    .service-box {
        display: none;
    }

    .section-content h2 {
        font-size: 30px;
    }

    .section-content p {
        text-align: start;
    }

    input {
        margin-bottom: 10px;
    }

    .contacts h4 {
        margin-top: 50px;
    }







}


@media (max-width:468px) {

    body,
    html {
        padding: 0;
        margin: 0;
    }

    body {
        overflow-x: hidden;
    }

    .top-bar {
        display: none;
    }

    .navbar-toggler {
        margin: auto;
        margin-top: 20px;
        border: 1px solid #be2210;
    }

    .navbar-nav {
        text-align: center;
        padding-top: 15px;
    }

    .dropdown-menu li {
        width: 100%;
        font-size: 16px;
    }

    .call-centered {
        margin: auto;
    }

    .main-banner h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .main-banner h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .main-banner p {
        width: 100%;
    }

    .second-box {
        margin-top: 20px;
    }

    .selling-points i {
        margin-bottom: 20px;
    }

    .about img {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .about h2 {
        font-size: 26px;
    }

    .numbers h2 {
        font-size: 40px;
        text-align: center;
    }

    .numbers p {
        margin-top: 50px;
    }

    .services h2 {
        font-size: 30px;
    }

    .services p {
        width: 100%;
    }

    .services .card {
        margin-top: 20px;
    }

    .partners img {
        width: 100%;
        margin-bottom: 20px;
    }

    .experience {
        padding-left: 0px;
    }

    .experience-box {
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }

    .card {
        margin-top: 20px;
    }

    .footer h3 {
        margin-top: 30px;
    }

    .footer .socials li i {
        margin-right: 15px !important;
    }

    .self h1 {
        font-size: 26px;
    }

    .breadcrumb-item {
        font-size: 12px;
    }

    .about-content img {
        display: none;
    }

    .service-box {
        display: none;
    }

    .section-content h2 {
        font-size: 26px;
    }

    .menu-bar img {
        width: 100%;
    }

    .footer img {
        width: 100%;
    }

    .copyright p {
        line-height: 34px;
    }

    .section-content p,
    ul,
    li {
        text-align: left;
    }

    input {
        margin-bottom: 20px;
    }

    input[type=submit] {
        margin-bottom: 50px;
    }






}