/********** Template CSS **********/
:root {
    --primary: #2878EB;
    --secondary: #5BA3F5;
    --light: #ECF4FF;
    --dark: #120F2D;
}

[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
    border-radius: 30px;
}

.btn-primary,
.btn-secondary,
.btn-primary:hover,
.btn-secondary:hover {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 15, 45, .5);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.carousel-indicators {
    align-items: flex-end;
}

.carousel-indicators [data-bs-target] {
    width: 5px;
    height: 25px;
}

.carousel-indicators .active {
    height: 45px;
}

.hero-header {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}

.service-item div {
    z-index: 1;
}

.service-item div::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 2px 2px 0 0;
    transition: .5s;
    z-index: -1;
}

.service-item div:hover::after {
    width: 100%;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}

/* Circular Service Items */
.service-circle-item {
    padding: 20px;
    transition: all 0.3s ease;
}

.service-circle-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.service-circle-icon i {
    font-size: 80px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-circle-item h4 {
    color: var(--primary);
    font-weight: 600;
    margin-top: 20px;
    font-size: 1.4rem;
}

.service-circle-item:hover .service-circle-icon {
    background: var(--primary);
    border-color: var(--secondary);
    transform: scale(1.05);
}

.service-circle-item:hover .service-circle-icon i {
    color: white;
}

.service-circle-item:hover h4 {
    color: var(--secondary);
}

@media (max-width: 768px) {
    .service-circle-icon {
        width: 150px;
        height: 150px;
    }

    .service-circle-icon i {
        font-size: 60px;
    }

    .service-circle-item h4 {
        font-size: 1.2rem;
    }
}

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.service-modal-content {
    background-color: #fefefe;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease;
    text-align: right;
    direction: rtl;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.service-modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.service-modal-close:hover,
.service-modal-close:focus {
    color: var(--primary);
}

#serviceModalTitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

#serviceModalDescription {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .service-modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    #serviceModalTitle {
        font-size: 1.5rem;
    }

    #serviceModalDescription {
        font-size: 1rem;
    }
}

.bg-offer {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-2.jpg) top right no-repeat;
    background-size: cover;
}

.testimonial-carousel .owl-dots {
    height: 45px;
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 5px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.blog-date {
    position: absolute;
    width: 90px;
    height: 65px;
    top: 75px;
    left: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--secondary);
}

.blog-date::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: -25px;
    left: 0;
    border: 13px solid;
    border-color: transparent #D34351 #D34351 transparent;
    z-index: -1;
}

/* Accessibility Button */
.accessibility-button {
    position: fixed;
    left: 20px;
    bottom: 120px;
    z-index: 999;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.accessibility-button:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.accessibility-button i {
    font-size: 24px;
}

@media (max-width: 768px) {
    .accessibility-button {
        width: 50px;
        height: 50px;
        bottom: 100px;
        left: 15px;
    }

    .accessibility-button i {
        font-size: 20px;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    left: 20px;
    bottom: 190px;
    z-index: 999;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: scale(1.1);
    color: white;
}

.whatsapp-button i {
    font-size: 28px;
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 160px;
        left: 15px;
    }

    .whatsapp-button i {
        font-size: 24px;
    }
}

/* Accessibility Menu */
.accessibility-menu {
    position: fixed;
    left: 20px;
    bottom: 190px;
    width: 280px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 998;
    display: none;
    max-height: 500px;
    overflow-y: auto;
}

.accessibility-menu.active {
    display: block;
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.accessibility-menu-header {
    padding: 15px 20px;
    background: var(--primary);
    color: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-menu-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-btn:hover {
    opacity: 0.8;
}

.accessibility-menu-content {
    padding: 10px;
}

.accessibility-option {
    width: 100%;
    padding: 12px 15px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accessibility-option:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
}

.accessibility-option i {
    font-size: 18px;
}

.accessibility-menu hr {
    margin: 10px 0;
    border-color: #dee2e6;
}

/* Accessibility States */
body.high-contrast {
    filter: contrast(1.5);
}

body.readable-font * {
    font-family: Arial, sans-serif !important;
}

body.no-animations * {
    animation: none !important;
    transition: none !important;
}

body.highlight-links a {
    background-color: yellow !important;
    color: black !important;
    padding: 2px 4px;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .accessibility-menu {
        left: 10px;
        bottom: 160px;
        width: 250px;
    }
}

/* Override Bootstrap secondary button to use our blue theme */
.btn-secondary {
    background-color: #5BA3F5 !important;
    border-color: #5BA3F5 !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #2878EB !important;
    border-color: #2878EB !important;
}

/* Override nav-contact background */
.nav-contact.bg-secondary {
    background-color: #5BA3F5 !important;
}

/* Override any bg-secondary usage */
.bg-secondary {
    background-color: #5BA3F5 !important;
}

/* Override border-secondary */
.border-secondary {
    border-color: #5BA3F5 !important;
}

/* Grey button for contact */
.btn-grey {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #FFFFFF !important;
}

.btn-grey:hover,
.btn-grey:focus,
.btn-grey:active {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
    color: #FFFFFF !important;
}
