/* =============================================
   FNM CLINIC - Custom Professional Styles
   Complete Clinic Website Enhancements
   ============================================= */

/* ==================
   PRELOADER
   ================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.loader {
    position: relative;
    width: 60px;
    height: 60px;
}
.loader-outter {
    position: absolute;
    border: 4px solid transparent;
    border-top-color: #13691f;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: preloader-spin 1.2s linear infinite;
}
.loader-inner {
    position: absolute;
    border: 4px solid transparent;
    border-top-color: #27ae60;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    animation: preloader-spin 0.8s linear infinite reverse;
}
@keyframes preloader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================
   WHATSAPP FLOATING BUTTON
   ================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    text-decoration: none;
}
.whatsapp-float i {
    color: #fff;
    font-size: 30px;
}
.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    left: 70px;
    background: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==================
   EMERGENCY BANNER
   ================== */
.emergency-banner {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1000;
}
.emergency-banner i {
    margin-right: 8px;
    animation: emergency-blink 1.5s infinite;
}
.emergency-banner a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 5px;
}
.emergency-banner a:hover {
    color: #ffeaa7;
}
@keyframes emergency-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==================
   TESTIMONIALS
   ================== */
.testimonials-section {
    padding: 80px 0;
    background: #f8f9fa;
}
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.testimonial-card .quote-icon {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 50px;
    color: #13691f;
    opacity: 0.1;
}
.testimonial-card .stars {
    color: #f39c12;
    margin-bottom: 15px;
    font-size: 16px;
}
.testimonial-card p {
    font-style: italic;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}
.testimonial-card .patient-info {
    display: flex;
    align-items: center;
}
.testimonial-card .patient-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}
.testimonial-card .patient-info h5 {
    font-weight: 600;
    margin-bottom: 2px;
    color: #2C2D3F;
}
.testimonial-card .patient-info span {
    font-size: 13px;
    color: #999;
}

/* ==================
   FAQ SECTION
   ================== */
.faq-section {
    padding: 80px 0;
}
.faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.faq-item .faq-header {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    transition: all 0.3s ease;
}
.faq-item .faq-header h5 {
    margin: 0;
    font-weight: 600;
    color: #2C2D3F;
    font-size: 15px;
}
.faq-item .faq-header i {
    color: #13691f;
    font-size: 18px;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-header i {
    transform: rotate(180deg);
}
.faq-item .faq-header:hover {
    background: #f8f9fa;
}
.faq-item .faq-body {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active .faq-body {
    padding: 0 25px 20px;
    max-height: 300px;
}
.faq-item .faq-body p {
    margin: 0;
    color: #666;
    line-height: 1.8;
}

/* ==================
   TRUST BADGES
   ================== */
.trust-badges {
    padding: 50px 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.badge-item {
    text-align: center;
    padding: 20px;
}
.badge-item i {
    font-size: 40px;
    color: #13691f;
    margin-bottom: 15px;
    display: block;
}
.badge-item h6 {
    font-weight: 600;
    color: #2C2D3F;
    margin-bottom: 5px;
    font-size: 14px;
}
.badge-item p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* ==================
   HEALTH TIPS
   ================== */
.health-tips {
    padding: 80px 0;
    background: #f0faf0;
}
.tip-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    border-left: 4px solid #13691f;
}
.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.tip-card h5 {
    font-weight: 600;
    color: #13691f;
    margin-bottom: 10px;
}
.tip-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.7;
}

/* ==================
   MOBILE NAV ENHANCEMENTS
   ================== */
.slicknav_menu {
    display: none;
}
@media only screen and (max-width: 767px) {
    .slicknav_menu {
        display: block !important;
        background: transparent;
        padding: 0;
        position: absolute;
        right: 15px;
        top: 0;
        z-index: 999;
    }
    .slicknav_btn {
        background: transparent;
        padding: 0;
        margin: 0;
        border: none;
    }
    .slicknav_menu .slicknav_icon-bar {
        background-color: #13691f;
        width: 25px;
        height: 3px;
        border-radius: 2px;
    }
    .slicknav_nav {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        margin-top: 10px;
        padding: 10px 0;
        border: 1px solid #eee;
    }
    .slicknav_nav li a {
        color: #2C2D3F !important;
        font-size: 14px;
        padding: 10px 20px !important;
        border-bottom: 1px solid #f5f5f5;
    }
    .slicknav_nav li:last-child a {
        border-bottom: none;
    }
    .slicknav_nav li a:hover,
    .slicknav_nav li.slicknav_active a {
        color: #13691f !important;
        background: #f0faf0 !important;
    }
    .header .main-menu {
        display: none !important;
    }
}

/* ==================
   MOBILE FORM ENHANCEMENTS
   ================== */
@media only screen and (max-width: 767px) {
    .form .form-group input,
    .form .form-group textarea,
    .form .form-group select {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        min-height: 48px;
        -webkit-appearance: none;
        border-radius: 6px;
    }
    .form .form-group textarea {
        min-height: 120px;
    }
    .form .btn,
    .form button[type="submit"] {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        min-height: 48px;
    }
}

/* ==================
   MOBILE CARD STYLES
   ================== */
@media only screen and (max-width: 767px) {
    .service-card,
    .doctor-card,
    .testimonial-card,
    .tip-card,
    .icon-box {
        margin-bottom: 20px;
    }
    .doctor-card img {
        height: 200px;
    }
    .contact-info-box {
        margin-bottom: 15px;
    }
}

/* ==================
   MOBILE SLIDER
   ================== */
@media only screen and (max-width: 767px) {
    .slider .single-slider {
        height: 450px;
    }
    .slider .single-slider .text {
        margin-top: 50px;
    }
    .slider .single-slider h1 {
        font-size: 22px;
        line-height: 30px;
    }
    .slider .single-slider p {
        font-size: 13px;
        margin-top: 15px;
    }
    .slider .single-slider .button .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }
    .slider .single-slider:before {
        background: rgba(255,255,255,0.7);
    }
}

/* ==================
   MOBILE HEADER
   ================== */
@media only screen and (max-width: 767px) {
    .header .topbar {
        display: none;
    }
    .header .header-inner {
        padding: 10px 0;
    }
    .header .logo img {
        max-height: 45px;
    }
    .header .get-quote {
        display: none;
    }
    .header .logo {
        margin-top: 10px;
    }
}

/* ==================
   MOBILE SECTIONS
   ================== */
@media only screen and (max-width: 767px) {
    .schedule .single-schedule {
        margin: 10px 0;
    }
    .schedule {
        padding: 40px 0;
        height: auto;
    }
    .schedule .schedule-inner {
        transform: none;
    }
    .fun-facts .single-fun {
        padding-top: 50px;
        margin: 20px 0;
    }
    .fun-facts .single-fun i {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto 15px;
        display: block;
    }
    .fun-facts .single-fun .content {
        padding-left: 0;
    }
    .call-action .content {
        padding: 50px 15px;
    }
    .call-action .content h2 {
        font-size: 22px;
        line-height: 32px;
    }
    .newsletter .subscribe-text {
        text-align: center;
        margin-bottom: 20px;
    }
    .newsletter .subscribe-form {
        text-align: center;
    }
    .newsletter .common-input {
        width: 100%;
    }
    .newsletter .btn {
        width: 100%;
        margin-top: 10px;
    }
    .clients .single-clients img {
        max-height: 50px;
    }
    .Feautes .single-features {
        padding: 0 10px;
    }
    .Feautes .single-features::before {
        display: none;
    }
    .Feautes .single-features .signle-icon i {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto 15px;
        display: block;
    }
    .Feautes .single-features h3 {
        padding-top: 15px;
        font-size: 18px;
    }
    .portfolio .single-pf .btn {
        opacity: 1;
        visibility: visible;
        position: relative;
        left: auto;
        top: auto;
        margin: 10px auto;
        display: block;
    }
}

/* ==================
   MOBILE FOOTER
   ================== */
@media only screen and (max-width: 767px) {
    .footer .footer-top {
        padding: 40px 0;
    }
    .footer .single-footer {
        margin: 20px 0;
        text-align: center;
    }
    .footer .single-footer .social {
        justify-content: center;
        display: flex;
    }
    .footer .single-footer.f-link ul li {
        display: inline-block;
        margin: 5px 10px;
    }
    .footer .copyright {
        text-align: center;
        padding: 20px 0;
    }
    .footer .copyright p {
        font-size: 13px;
    }
}

/* ==================
   MOBILE CONTACT PAGE
   ================== */
@media only screen and (max-width: 767px) {
    .contact-us .contact-us-form {
        padding: 20px;
    }
    .contact-us .contact-us-form h2 {
        font-size: 22px;
    }
    #myMap {
        height: 250px;
    }
}

/* ==================
   MOBILE BREADCRUMBS
   ================== */
@media only screen and (max-width: 767px) {
    .breadcrumbs {
        padding: 50px 0;
    }
    .breadcrumbs h2 {
        font-size: 26px;
    }
}

/* ==================
   MOBILE ABOUT PAGE
   ================== */
@media only screen and (max-width: 767px) {
    .icon-box {
        padding: 20px;
        margin-bottom: 15px;
    }
    .counter-box {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    .counter-box h2 {
        font-size: 28px;
    }
    .page-banner {
        padding: 60px 0;
    }
    .page-banner h1 {
        font-size: 24px;
    }
}

/* ==================
   MOBILE SERVICES PAGE
   ================== */
@media only screen and (max-width: 767px) {
    .service-card {
        padding: 20px;
    }
    .service-card i {
        font-size: 32px;
    }
    .service-detail {
        padding-left: 12px;
    }
}

/* ==================
   MOBILE DOCTORS PAGE
   ================== */
@media only screen and (max-width: 767px) {
    .doctor-card {
        margin-bottom: 20px;
    }
    .doctor-card .doctor-info {
        padding: 15px;
    }
    .doctor-card .doctor-info h4 {
        font-size: 16px;
    }
}

/* ==================
   MOBILE APPOINTMENT PAGE
   ================== */
@media only screen and (max-width: 767px) {
    .appointment .appointment-image {
        margin-top: 20px;
    }
    .appointment .appointment-image img {
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
}

/* ==================
   SMOOTH SCROLL
   ================== */
html {
    scroll-behavior: smooth;
}

/* ==================
   SCROLL TO TOP
   ================== */
#scrollUp {
    background: #13691f;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(19, 105, 31, 0.3);
    transition: all 0.3s ease;
}
#scrollUp:hover {
    background: #0d4d14;
    transform: translateY(-3px);
}

/* ==================
   SELECTION COLOR
   ================== */
::selection {
    background: #13691f;
    color: #fff;
}

/* ==================
   FOCUS STYLES (ACCESSIBILITY)
   ================== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #13691f;
    outline-offset: 2px;
}

/* ==================
   PRINT STYLES
   ================== */
@media print {
    .header, .footer, .whatsapp-float, .emergency-banner, .preloader,
    .newsletter, .call-action, .clients, #scrollUp {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
    a {
        text-decoration: underline;
    }
}

/* ==================
   IMAGE LOADING STATE
   ================== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
    opacity: 1;
}
