/*
 * Finas Landing Page Custom Styles
 * Author: Finas Team
 */

/* ==========================================
   Override Default Purple Color (#7539FF)
   Replace with Teal (#008B8B / #21A39E)
   ========================================== */
.badge.badge-primary {
    background: #008B8B !important;
}

.badge.badge-soft-primary {
    background: rgba(0, 139, 139, 0.15) !important;
    color: #008B8B !important;
}

.badge.badge-outline-primary {
    border-color: #008B8B !important;
    color: #008B8B !important;
}

.badge-label.badge-primary:before {
    border-right-color: #008B8B !important;
}

.border.border-primary,
.border-primary,
.border-top.border-primary,
.border-end.border-primary,
.border-bottom.border-primary,
.border-start.border-primary {
    border-color: #008B8B !important;
}

.btn-days-checkbox:hover {
    border-color: #008B8B !important;
}

.btn-check:checked+.btn-days-checkbox {
    background: #008B8B !important;
}

.fc .fc-button-primary:active,
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled).fc-button-active:hover,
.fc .fc-button-primary.fc-custombtn-button,
.fc-state-disabled {
    background-color: #008B8B !important;
    border-color: #008B8B !important;
}

.dropdown-menu.dropdown-menu-primary {
    background-color: #008B8B !important;
}

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

.menu-close {
    font-size: 18px;
    color: #008B8B;
}

.nav-link:hover {
    color: #008B8B !important;
}

.module-card:hover {
    background: #008B8B;
    transition: 0.5s all;
    transform: translateY(-0.25em);
}

.module-card:hover .module-icon {
    background: #008B8B;
    transition: 0.5s all;
}

.module-card .module-icon {
    width: 55px;
    height: 51px;
    background: #008B8B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-bottom: 15px;
    position: relative;
    margin-top: 8px;
    transition: 0.5s all;
}

.financial {
    background: linear-gradient(135deg, #00678C 0%, #008888 100%);
}

.features-section .card .line1::before {
    content: "";
    width: 0%;
    height: 2px;
    position: absolute;
    top: 0px;
    left: 0px;
    background: rgb(33 163 158);
    border-radius: 10px 10px 0px 0px;
}

.features-section .card .line1::after {
    content: "";
    width: 2.5px;
    height: 0%;
    position: absolute;
    top: 0px;
    left: 0px;
    background: rgb(33 163 158);
    border-radius: 10px 10px 0px 0px;
}

.features-section .card .line2:before {
    content: "";
    background: #008B8B;
    width: 0%;
    height: 2px;
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 10px 10px 0px 0px;
}

.features-section .card .line2:after {
    content: "";
    background: #008B8B;
    width: 2.5px;
    height: 0%;
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 10px 10px 0px 0px;
}

.btn-primary.btn-label {
    background: linear-gradient(135deg, #00678C 0%, #008888 100%);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid #80cbc4;
    transition: all 0.3s ease;
}

/* تعديل موضع أسهم الأسئلة الشائعة */
.faq-title a::before {
    right: auto !important;
    left: 0 !important;
}

.module-card {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
}

.module-content {
    flex: 1 !important;
    text-align: right !important;
    padding-right: 0 !important;
}

.module-content h6 {
    text-align: right !important;
    direction: rtl !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.module-content p {
    text-align: right !important;
    direction: rtl !important;
    margin: 0 !important;
    display: block !important;
}

.module-icon {
    flex-shrink: 0 !important;
    margin-right: 20px !important;
    /* مسافة بين الأيقونة والنص */
}

.feature-icon i {
    font-size: 22px;
    color: #008B8B;
}

.module-icon i {
    color: white;
}

.card:hover .feature-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 139, 139, 0.2);
}

.inner-tab-button li .nav-link span {
    text-align: justify;
}

.faq-set .faq-card h4 a::before {
    content: "\e912";
    font-family: "feather";
    font-weight: 700;
    position: absolute;
    left: 0 !important;
    top: 0;
}

.hover-text-white:hover {
    color: #fff !important;
}

.user-empowerment-sec {
    background: #003656;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.inner-page-features li {
    background: rgb(33 163 158);
    border-radius: 6px;
    padding: 8px 16px;
    color: var(--white);
    width: 100%;
}

.plan-section .nav-tabs .nav-link.active {
    background: rgb(33 163 158);
    color: var(--white);
}

.plan-section .nav-tabs .nav-link.active:hover {
    color: #fff !important;
}

.plan-section .pricing-item:hover {
    border-width: 3px;
    border-style: solid;
    border-color: rgb(128, 203, 196);
    border-image: initial;
}

.btn-subscription {
    background-color: rgb(33 163 158);
    border: 1px solid rgb(33 163 158);
    color: var(--white) !important;
}

.btn-subscription:hover {
    background: #00748a;
    border: 1px solid #00748a;
    color: var(--white) !important;
}

.nav-pills {
    --bs-nav-pills-border-radius: var(--bs-border-radius);
    --bs-nav-pills-link-active-color: #fff;
    --bs-nav-pills-link-active-bg: #003150;
}

.inner-tab-button li .nav-link {
    background: rgb(33 163 158);

}

.inner-tab-button li .nav-link:hover {
    background: #ffffffff;
    color: #003656 !important;
}

.inner-tab-button li .nav-link:hover span {
    color: #003656 !important;
}

.inner-tab-button li .nav-link.active {
    background: #006d91;
}

.tab-content inner-tab-items {
    background: rgba(0, 103, 140, 0.25) 0px 4px 15px;
    border-color: #006d91;
}

.inner-tab-items {
    border: 1px solid #006d91;
    padding: 30px 10px 30px 40px;
    border-radius: 25px;
    background-color: #003656;
    overflow: hidden;
}

.faq-set .faq-card h4 a:not(.collapsed) {
    color: rgb(33 163 158);
}

.user-empowerment-sec .section-heading .title-badge {
    background: rgb(33 163 158);
    border-color: #003656;
    color: var(--white);
}

.section-heading h2 span {
    color: rgb(33 163 158);
}

/* Footer Background */
footer {
    background: rgb(0 54 86) !important;
    color: #e8f4f8;
}

/* Footer Typography & Links */
.footer h4,
.footer h6,
.footer h5 {
    color: #ffffff !important;
    font-weight: 700;
}

.footer p,
.footer li {
    color: #daeef5 !important;
}

.footer a {
    color: #daeef5 !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer a:hover {
    color: #5dade2 !important;
    padding-right: 5px;
}

/* Footer Bottom - defined in overrides section */

/* Dashboard Showcase */
.dashboard-mockup {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    max-width: 1000px;
    margin: 0 auto;
}

/* Dashboard Image */
.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.dashboard-mockup:hover .dashboard-img {
    transform: scale(1.02);
}

/* Highlight Badge */
.dashboard-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background: linear-gradient(135deg, #008B8B, #00678C);
    color: #fff;
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(0, 139, 139, 0.3);
    z-index: 5;
}

/* Contact Widget Styles */
.contact-widget h6 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Contact & Social - defined in overrides section */
.contact-numbers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.whatsapp-icon {
    color: #25d366;
}

.contact-icon-centered:hover {
    transform: scale(1.15);
    filter: brightness(1.3);
}

.contact-number:hover {
    color: #5dade2;
}

.social-icons-container {
    margin-top: 20px;
}

/* Mobile Fix */
@media (max-width: 768px) {

    .banner-img-info {
        margin-top: 30px;
    }

    .dashboard-mockup {
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        max-width: 100%;
    }

    .dashboard-img {
        border-radius: 8px;
    }

    /* Hide badge on mobile */
    .dashboard-badge {
        display: none;
    }

    /* Contact Widget Mobile */
    .contact-icon-centered {
        font-size: 16px;
    }

    .contact-number {
        font-size: 14px;
    }

    .social-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .social-icons-container {
        gap: 10px !important;
    }
}


/* Footer Styling Overrides */
.footer-top {
    border-bottom: none !important;
    margin-bottom: 0px !important;
    /* Remove bottom spacing */
    padding-bottom: 10px !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 15px !important;
    /* Reduce top space */
    padding-top: 15px !important;
}

.contact-widget h6,
.footer h6,
.footer-content h4 {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Phone Icon Color */
.phone-icon,
.phone-icon i {
    color: #008B8B !important;
}

/* Social Icons */
.social-icon-btn {
    background: #ffffff !important;
    /* White Background */
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure color applies to the icon inside the button */
.instagram-btn,
.instagram-btn i {
    color: #e1306c !important;
}

.linkedin-btn,
.linkedin-btn i {
    color: #0077b5 !important;
}

/* X (Twitter) Styling */
.twitter-btn,
.twitter-btn i {
    color: #000000 !important;
}

/* X is black */
.twitter-btn:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Facebook Color Fix */
.facebook-btn,
.facebook-btn i {
    color: #1877f2 !important;
}

.facebook-btn:hover {
    background: #1877f2 !important;
    color: #ffffff !important;
}

/* Newsletter Layout Fix: Button Inside Input */
.email-form form {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 300px !important;
    /* Limit width */
}

.footer .form-control {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    height: 36px !important;
    min-height: 36px !important;
    font-size: 13px !important;
    padding: 0 10px !important;
    padding-left: 90px !important;
    /* Space for the button inside */
    width: 100% !important;
    border-radius: 6px !important;
    text-align: center !important;
    /* Center the text */
}

.footer .form-control:focus {
    background: transparent !important;
    border-color: #5dade2 !important;
}

.footer .btn-primary {
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    bottom: 2px !important;
    height: 32px !important;
    min-height: auto !important;
    font-size: 12px !important;
    padding: 0 15px !important;
    line-height: 32px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: fit-content !important;
    background: #21A39E !important;
    border: none !important;
    color: #fff !important;
}

/* Contact Design Option 2: Prominent Circular Icons - Compact */
.contact-group {
    background: transparent !important;
    border: none !important;
    padding: 5px 0 !important;
    /* Reduced padding */
    margin-bottom: 10px !important;
    /* Reduced margin */
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    /* Sligtly reduced gap */
}

.contact-icon-centered {
    width: 40px !important;
    /* Smaller icon circle */
    height: 40px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    /* Smaller font inside */
    transition: all 0.3s ease !important;
}

/* Phone Icon Specifics */
.contact-group:has(.phone-icon) .contact-icon-centered {
    color: #008B8B !important;
    /* Match Button Color */
}

.contact-group:has(.phone-icon):hover .contact-icon-centered {
    background: #008B8B !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(0, 139, 139, 0.4) !important;
    border-color: #008B8B !important;
}



/* WhatsApp Icon Specifics */
.contact-group:has(.whatsapp-icon) .contact-icon-centered {
    color: #25d366 !important;
}

.contact-group:has(.whatsapp-icon):hover .contact-icon-centered {
    background: #25d366 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4) !important;
    border-color: #25d366 !important;
}

.contact-number {
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}

/* Ensure mobile icons are sized correctly */
@media (max-width: 768px) {
    .contact-icon-centered {
        font-size: 18px !important;
    }

    .social-icon-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 15px !important;
    }
}

/* ==========================================
   Custom Mouse Cursor
   ========================================== */
.mouse-cursor {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    border-radius: 50%;
    transform: translateZ(0);
    visibility: hidden;
    z-index: 99999;
}

.cursor-inner {
    width: 6px;
    height: 6px;
    margin-left: -3px;
    margin-top: -3px;
    background-color: #008B8B;
}

.cursor-outer {
    width: 30px;
    height: 30px;
    margin-left: -15px;
    margin-top: -15px;
    border: 2px solid #008B8B;
    box-sizing: border-box;
    transition: all 0.08s ease-out;
}

.cursor-inner.cursor-hover,
.cursor-outer.cursor-hover {
    background-color: #008B8B;
    opacity: 0.5;
}

/* ==========================================
   Back to Top Button
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.back-to-top-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #008B8B, #00678C);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0, 139, 139, 0.4);
}

.back-to-top-icon.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-icon:hover {
    background: linear-gradient(135deg, #00678C, #003656);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 103, 140, 0.5);
    color: #fff;
}