/* ============================
  Template Name: Applayer
  Author: uideck
  Description: Medical App landing HTML5 Template.
  Version: 1.0
=============================== */

/* --- 1. PRELOADER FIX (Keep this to prevent freezing) --- */
.preloader {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  z-index: -9999;
}

/*===========================
    01.COMMON css 
===========================*/
@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&family=Heebo:wght@300;400;500;600;700&display=swap");
html { scroll-behavior: smooth; }
body { font-family: "Heebo", sans-serif; font-weight: normal; font-style: normal; color: #60698D; overflow-x: hidden; }
* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus { outline: none; }
a:focus, input:focus, textarea:focus, button:focus, .btn:focus, .btn.focus, .btn:not(:disabled):not(.disabled).active, .btn:not(:disabled):not(.disabled):active { text-decoration: none; outline: none; box-shadow: none; }
a:hover { color: #487CFF; }
a { transition: all 0.3s ease-out 0s; }
a, a:focus, a:hover { text-decoration: none; }
i, span, a { display: inline-block; }
audio, canvas, iframe, img, svg, video { vertical-align: middle; }
h1, h2, h3, h4, h5, h6 { font-family: "Fira Sans", sans-serif; font-weight: 700; margin: 0px; color: #1D2A5D; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; }
h1 { font-size: 45px; }

@media (max-width: 767px) { h1 { font-size: 36px; } }
@media only screen and (min-width: 480px) and (max-width: 767px) { h1 { font-size: 40px; } }

.section-title span { font-size: 25px; font-weight: 600; color: #487CFF; margin-bottom: 20px; }
h2 { font-size: 36px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }
ul, ol { margin: 0px; padding: 0px; list-style-type: none; }
p { font-size: 18px; font-weight: 400; line-height: 27px; margin: 0px; }

/* Buttons */
.main-btn { display: inline-block; font-weight: 400; text-align: center; white-space: nowrap; vertical-align: middle; user-select: none; padding: 17px 37px; font-size: 18px; border-radius: 50px; color: #fff; cursor: pointer; z-index: 5; transition: all .4s ease-in-out; border: none; background: #487CFF; overflow: hidden; }
.main-btn:hover { color: #fff; }
.btn-hover { position: relative; overflow: hidden; }
.btn-hover::after { content: ''; position: absolute; width: 0%; height: 0%; border-radius: 50%; background: rgba(0, 0, 0, 0.05); top: 50%; left: 50%; padding: 50%; z-index: -1; transition: all 0.3s ease-out 0s; transform: translate3d(-50%, -50%, 0) scale(0); }
.btn-hover:hover::after { transform: translate3d(-50%, -50%, 0) scale(1.3); }

.scroll-top { width: 45px; height: 45px; background: #487CFF; display: flex; justify-content: center; align-items: center; font-size: 18px; color: #fff; border-radius: 5px; position: fixed; bottom: 30px; right: 30px; z-index: 9; cursor: pointer; transition: all 0.3s ease-out 0s; }
.scroll-top:hover { color: #fff; background: rgba(72, 124, 255, 0.8); }

/* Header & Navbar */
.navbar-area { position: absolute; top: 0; left: 0; width: 100%; z-index: 99; transition: all 0.3s ease-out 0s; }
.sticky { position: fixed; z-index: 99; background-color: #fff; box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.05); transition: all 0.3s ease-out 0s; }
.sticky .navbar { padding: 17px 0; }
.sticky .navbar .navbar-nav .nav-item a { color: #222; }
.sticky .navbar .navbar-nav .nav-item a::before { background: #487CFF; }
.sticky .navbar .navbar-toggler .toggler-icon { background: #1D2A5D; }
.navbar { padding: 0; border-radius: 5px; position: relative; transition: all 0.3s ease-out 0s; padding: 20px 0; }
.navbar-brand { padding: 0; }
.navbar-brand img { max-width: 180px; }
.navbar-toggler .toggler-icon { width: 30px; height: 2px; background-color: #fff; display: block; margin: 5px 0; position: relative; transition: all 0.3s ease-out 0s; }
.navbar-toggler.active .toggler-icon:nth-of-type(1) { transform: rotate(45deg); top: 7px; }
.navbar-toggler.active .toggler-icon:nth-of-type(2) { opacity: 0; }
.navbar-toggler.active .toggler-icon:nth-of-type(3) { transform: rotate(135deg); top: -7px; }
.navbar-nav .nav-item { position: relative; margin-left: 40px; }
.navbar-nav .nav-item a { font-size: 18px; font-weight: 400; color: #fff; transition: all 0.3s ease-out 0s; padding: 10px 0; position: relative; }
.navbar-nav .nav-item a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; position: absolute; bottom: 0; left: 50%; transition: all 0.3s ease-out 0s; z-index: -1; opacity: 0; }
.navbar-nav .nav-item a:hover::before, .navbar-nav .nav-item a.active::before { opacity: 1; }

/* Hero */
.hero-section { position: relative; z-index: 1; background-image: url("../img/hero-bg.svg"); background-repeat: no-repeat; background-size: cover; background-position: bottom left; padding: 150px 0; }
.hero-section .hero-content h1 { font-size: 60px; margin-bottom: 35px; color: #fff; }
.hero-section .hero-content p { margin-bottom: 40px; color: #fff; }
.hero-section .hero-content .main-btn { background: #fff; color: #487CFF; font-size: 20px; font-weight: 700; padding: 18px 52px; }
.hero-section .hero-img { position: relative; text-align: right; z-index: 4; }
.hero-section .hero-img img { max-width: 100%; }

/* Features */
.feature-section .single-feature { text-align: center; padding: 30px; }
.feature-section .single-feature:hover .icon::after { top: 8px; right: 8px; }
.feature-section .single-feature .icon { width: 75px; height: 75px; border-radius: 5px; background: #487CFF; color: #fff; position: relative; display: flex; justify-content: center; align-items: center; font-size: 40px; z-index: 1; margin: 0 auto 30px; }
.feature-section .single-feature .icon img { width: 40px; height: 40px; object-fit: contain; filter: brightness(0) invert(1); } /* Added for image icons */
.feature-section .single-feature .icon::after { content: ''; position: absolute; width: 100%; height: 100%; background: inherit; top: -8px; right: -8px; opacity: .2; border-radius: inherit; z-index: -1; transition: all 0.3s ease-out 0s; }
.feature-section .single-feature .icon.color-2 { background: #FFB260; }
.feature-section .single-feature .icon.color-3 { background: #FF92A5; }
.feature-section .single-feature .content h3 { font-weight: 600; margin-bottom: 25px; }

/* About & Footer */
.about-section { padding-top: 150px; }
.about-img img { width: 100%; }
.footer { padding-top: 350px; background-image: url("../img/footer-bg.svg"); background-repeat: no-repeat; background-size: cover; background-position: top right; }
.footer .widget-wrapper .footer-widget h3 { color: #fff; margin-bottom: 25px; font-weight: 600; }
.footer .widget-wrapper .footer-widget .links li a { color: #fff; font-size: 16px; line-height: 30px; }
.footer .copy-right-wrapper { border-top: 2px solid rgba(255, 255, 255, 0.17); padding: 25px 0; }
.footer .copy-right-wrapper .copy-right p { color: rgba(255, 255, 255, 0.66); font-size: 16px; }
.footer .copy-right-wrapper .socials ul li a { color: rgba(255, 255, 255, 0.66); font-size: 18px; margin-left: 20px; }

/* Utilities */
.pt-120 { padding-top: 120px; }
.pt-140 { padding-top: 140px; }
.pb-100 { padding-bottom: 100px; }

/* =========================================
   FOOTER ORGANIZATION & ICON FIX
   ========================================= */

/* 1. Make Social Icons Horizontal */
.footer .socials ul {
    display: flex;                /* Forces items side-by-side */
    justify-content: flex-end;    /* Aligns them to the right */
    gap: 20px;                    /* Space between icons */
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer .socials ul li {
    display: inline-block;        /* Ensures they don't break lines */
}

.footer .socials ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;              /* Icon size */
    transition: all 0.3s ease;
}

.footer .socials ul li a:hover {
    color: #fff;
    transform: translateY(-3px);  /* Slight lift effect on hover */
}

/* 2. Organized Widget Columns */
.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}

/* 3. Link Lists (Vertical & Clean) */
.footer-widget ul.links li {
    margin-bottom: 12px;
    display: block;
}

.footer-widget ul.links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-widget ul.links li a:hover {
    color: #fff;
    padding-left: 5px; /* Slide effect on hover */
}

/* 4. Mobile Responsiveness */
@media (max-width: 767px) {
    .footer .socials ul {
        justify-content: center; /* Center icons on mobile */
        margin-top: 15px;
    }
    .footer .copy-right p {
        text-align: center;
    }
}

/* ========================
   LOGO SIZE CONTROL
   ======================== */
.navbar-brand img {
    max-width: 120px; /* Adjust this number to make it bigger/smaller */
    height: auto;
    display: block;
}

/* Optional: Adjust for Mobile */
@media (max-width: 767px) {
    .navbar-brand img {
        max-width: 140px;
    }
}

/* =========================================
   MOBILE RESPONSIVE NAV FIX
   ========================================= */

@media only screen and (max-width: 991px) {
    /* Container for the menu on mobile */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff; /* Solid background for mobile */
        z-index: 999;
        box-shadow: 0px 15px 20px 0px rgba(0, 0, 0, 0.1);
        padding: 15px 20px;
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Fix nav items for vertical layout */
    .navbar-nav .nav-item {
        margin-left: 0;
        margin-bottom: 10px;
        border-bottom: 1px solid #f1f1f1;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-item a {
        display: block;
        padding: 10px 0;
        color: #1D2A5D !important; /* Ensure text is visible against white BG */
        font-weight: 500;
    }

    .navbar-nav .nav-item a::before {
        display: none; /* Hide the dot animation on mobile for better UI */
    }

    /* Hamburger Icon Animation Styling */
    .navbar-toggler .toggler-icon {
        width: 30px;
        height: 2px;
        background-color: #fff; /* White when on hero section */
        display: block;
        margin: 5px 0;
        position: relative;
        transition: all 0.3s ease-out 0s;
    }

    /* Change hamburger color when header is sticky */
    .sticky .navbar-toggler .toggler-icon {
        background-color: #1D2A5D;
    }

    /* Animate hamburger to "X" when active */
    .navbar-toggler.active .toggler-icon:nth-of-type(1) {
        transform: rotate(45deg);
        top: 7px;
    }
    .navbar-toggler.active .toggler-icon:nth-of-type(2) {
        opacity: 0;
    }
    .navbar-toggler.active .toggler-icon:nth-of-type(3) {
        transform: rotate(135deg);
        top: -7px;
    }
}