/* ===================================
    Theme Name: Q Care Solutions (Customized)
    Author: Themes Industry (Edited by Gemini)
    Description: Custom styles for Q Care Solutions website.
   =================================== */

/* ===================================
    Table of Contents
   =================================== */
/*
01. Global & Preloader
02. Header & Navigation
03. Hero Section
04. About Section
05. Services Section
06. Jobs & Tabs Section
07. Job Application Modal
08. Vision & Testimonials (Mini Blog)
09. Contact & Footer
10. Responsive Media Queries
*/

/* ===================================
    01. Global & Preloader
   =================================== */
/* IMPORT GOOGLE FONT */
@import url('https://fonts.googleapis.com/css?family=Oswald:300,400,600,700,800|Roboto:400,500,700|Raleway:400&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #3d3d3d;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    text-decoration: none;
    color: #12b975;
}

.heading {
    font-size: 40px;
    font-family: 'Oswald', sans-serif;
    color: #3d3d3d;
    font-weight: 500;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.text {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #3d3d3d;
    line-height: 1.7;
}

.padding-top-half {
    padding-top: 60px;
}
.padding-bottom-half {
    padding-bottom: 60px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: #ffffff;
    z-index: 99999;
    overflow: hidden;
}
.center {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.loader {
    position: relative;
    display: grid;
    grid-template-columns: 33% 33% 33%;
    grid-gap: 2px;
    width: 100px;
    height: 100px;
}
.loader > div {
    position: relative;
    width: 100%;
    height: 100%;
    background: #12b975;
    transform: scale(0);
    transform-origin: center center;
    animation: loader 2s infinite linear;
}
.loader > div:nth-of-type(1), .loader > div:nth-of-type(5), .loader > div:nth-of-type(9) { animation-delay: 0.4s; }
.loader > div:nth-of-type(4), .loader > div:nth-of-type(8) { animation-delay: 0.2s; }
.loader > div:nth-of-type(2), .loader > div:nth-of-type(6) { animation-delay: 0.6s; }
.loader > div:nth-of-type(3) { animation-delay: 0.8s; }

@keyframes loader {
    0% { transform: scale(0); }
    40% { transform: scale(1); }
    80% { transform: scale(1); }
    100% { transform: scale(0); }
}

/* Scroll Top */
.scroll-top-arrow {
    font-size: 23px;
    line-height: 45px;
    color: #fff;
    background-color: #12b975;
    display: none;
    height: 45px;
    width: 45px;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    text-align: center;
    z-index: 80;
    border-radius: 50px;
    transition: all .3s ease-in-out;
}
.scroll-top-arrow:hover {
    background-color: #3d3d3d;
    color: #fff;
}

/* ===================================
    02. Header & Navigation
   =================================== */
header {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1030;
    width: 100%;
}
header .main-navigation {
    padding-top: 20px;
    transition: all 0.3s ease;
}
header .navbar-brand img {
    max-width: 80px;
    transition: all 0.3s ease;
}
header .navbar-nav .nav-link {
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 10px 15px;
    position: relative;
}
header .navbar-nav .nav-link:hover,
header .navbar-nav .nav-link.active {
    color: #fff;
}
header .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: #fff;
}

/* Header Appear (Sticky) */
/* Header Appear (Sticky) - FIXED */
.header-appear {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* This is the key fix */
    background-color: #12b975;
    animation: animationFade 0.7s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1030; /* Ensure it stays on top */
}
@keyframes animationFade {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Side Menu */
.sidemenu_btn {
    width: 30px;
    padding: 6px;
    margin-top: .4rem;
    cursor: pointer;
    display: none; /* Hidden on desktop */
}
.sidemenu_btn span {
    height: 2px;
    width: 100%;
    background: #FFFFFF;
    display: block;
    margin: 5px auto;
    transition: .5s ease;
}
.side-menu {
    width: 100%;
    height: 100%;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2032;
    transform: translateX(100%);
    transition: transform .5s ease;
    visibility: hidden;
}
.side-menu.side-menu-active {
    transform: translateX(0);
    visibility: visible;
}
.side-menu .bg-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(18, 185, 117, 0.95);
}
.side-menu .inner-wrapper {
    padding: 3rem;
    height: 100%;
    position: relative;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.side-menu .btn-close {
    height: 33px;
    width: 33px;
    position: absolute;
    top: 40px;
    right: 40px;
    cursor: pointer;
}
.side-menu .btn-close::before, .side-menu .btn-close::after {
    position: absolute;
    left: 16px;
    content: ' ';
    height: 24px;
    width: 2px;
    background: #fff;
}
.side-menu .btn-close:before { transform: rotate(45deg); }
.side-menu .btn-close:after { transform: rotate(-45deg); }

.side-nav .navbar-nav .nav-link {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    padding: 5px 0 !important;
    font-family: 'Oswald', sans-serif;
    text-align: center;
}

/* ===================================
    03. Hero Section
   =================================== */
.hero-section {
    position: relative;
    height: 100vh;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-section .heading {
    color: #fff;
    font-size: 52px;
    font-weight: 700;
}
.hero-section .text {
    color: #fff;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}
.hero-btn {
    background-color: #12b975;
    padding: 12px 35px;
    border-radius: 25px;
    color: #ffffff;
    transition: .5s ease;
    border: 2px solid #12b975;
    font-size: 16px;
    font-family: 'Roboto',sans-serif;
    text-transform: uppercase;
}
.hero-btn:hover {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

/* ===================================
    04. About Section
   =================================== */
.about-section {
    padding: 100px 0;
}
.about-card {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.about-card h3 {
    color: #3d3d3d;
    font-weight: 400;
    margin-top: -15px;
}
.about-card p {
    margin-bottom: 25px;
}
.view-services-btn {
    border: 2px solid #12b975;
    color: #12b975;
    font-weight: 500;
    padding: 12px 35px;
    background-color: transparent;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.view-services-btn:hover {
    background-color: #12b975;
    color: #fff;
}

/* ===================================
    05. Services Section
   =================================== */
.services {
    padding: 100px 0;
    background-color: #f9f9f9;
}
.services .heading-area .text {
    max-width: 600px;
    margin: 0 auto;
}
.about-media {
    margin-top: 30px;
}
.about-icon {
    font-size: 48px;
    color: #12b975;
    margin-bottom: 20px;
    display: inline-block;
}
.about-icon a {
    color: #12b975;
}
.small-heading {
    font-size: 22px;
    margin-bottom: 10px;
    color: #3d3d3d;
}
a.small-heading:hover {
    color: #12b975;
}
.ex-line {
    width: 50px;
    height: 2px;
    background: #12b975;
    margin: 0 auto 15px;
    display: block;
}
.small-text {
    font-size: 15px;
    color: #555;
}

/* ===================================
    06. Jobs & Tabs Section
   =================================== */
#jobs {
    padding: 100px 0;
}
.filtering {
    border-bottom: 2px solid #eee;
    margin-bottom: 30px !important;
}
.filtering .nav-link {
    cursor: pointer;
    background: transparent;
    color: #555;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px 5px 0 0;
    border: none;
    border-bottom: 3px solid transparent;
}
.filtering .nav-link.active {
    color: #12b975;
    border-bottom-color: #12b975;
}
.job-content .card {
    border: 1px solid #e9e9e9;
    background: #fff;
}
.job-content ul li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
}

.job-content ul li::before {
    content: '•'; /* Replaced the icon code with a bullet */
    color: #12b975;
    position: absolute;
    left: 0;
    
    /* Optional: Adjust font-size to make the bullet bigger or smaller */
    font-size: 1.2em; 
}
/* ===================================
    07. Job Application Modal
   =================================== */
#employ-facilities {
    padding: 80px 20px;
    text-align: center;
    background-color: #f9f9f9;
}
.facilities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.facility-btn {
    background-color: #12b975;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}
.facility-btn:hover {
    background-color: #0e8f5b;
    color: white;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}
.modal-content h2 {
    margin-bottom: 25px;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.modal form input[type="text"],
.modal form input[type="tel"],
.modal form input[type="email"],
.modal form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ===================================
    08. Vision & Testimonials
   =================================== */
.mini-blog-sec {
    padding: 100px 0;
}
.card-blog {
    border: 1px solid #e9e9e9;
    padding: 30px;
}
.mini-blog-title {
    font-size: 24px;
    color: #3d3d3d;
}
.user-detail {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.user-img img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
}
.user-name {
    font-weight: 500;
    margin: 0;
    display: inline-block;
}

/* ===================================
    09. Contact & Footer
   =================================== */
.contact-sec {
    padding: 100px 0;
}
.contact_img img {
    width: 100%;
    border-radius: 10px;
}
.contact-form {
    width: 100%;
}
.contact-form .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    margin-bottom: 20px;
    width: 100%;
}
.contact-form textarea.form-control {
    resize: none;
}
.contact_btn {
    background-color: #12b975;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.contact_btn:hover {
    background-color: #3d3d3d;
    color: #fff;
}

/* Footer */
footer.footer {
    background-color: #3d3d3d;
    color: #f1f1f1;
}
.our-loc a {
    color: #f1f1f1;
    font-size: 15px;
    display: block;
    margin: 10px 0;
}
.our-loc a i {
    color: #12b975;
    margin-right: 10px;
    font-size: 20px;
}
.our-loc a:hover {
    color: #fff;
}
.social-media {
    border-top: 1px solid #555;
}
.company-about {
    color: #ccc;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

/* ===================================
    10. Responsive Media Queries
   =================================== */
@media (max-width: 991px) {
    /* Show mobile toggle, hide desktop nav */
    .navbar-collapse {
        display: none !important;
    }
    .sidemenu_btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
        z-index: 1031;
    }
    .header-appear .sidemenu_btn {
        top: 18px;
    }

    /* Section Adjustments */
    .hero-section .heading { font-size: 40px; }
    .heading { font-size: 36px; }

    .about-section, .services, #jobs, .mini-blog-sec, .contact-sec {
        padding: 80px 0;
    }
    .contact_img {
        margin-bottom: 40px;
    }
    .footer .col-lg-3, .footer .col-lg-4 {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .hero-section .heading { font-size: 32px; }
    .hero-section .text { font-size: 16px; }
    .heading { font-size: 30px; }
    .filtering .nav-link { font-size: 16px; margin: 0 5px; padding: 10px; }

    .modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 90%;
    }
}
/* ===================================
    06. Jobs & Tabs Section (Updated)
   =================================== */
#jobs {
    padding: 100px 0;
}
.filtering {
    border-bottom: 2px solid #eee;
    margin-bottom: 30px !important;
}
.filtering .nav-link {
    cursor: pointer;
    background-color: transparent; /* Ensures no background color */
    color: #555;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px 5px 0 0;
    border: none;
    border-bottom: 3px solid transparent;
}
/* This part removes the blue background and just keeps the green underline */
.filtering .nav-link.active {
    background-color: transparent !important; /* Overrides default blue color */
    color: #12b975;
    border-bottom-color: #12b975;
}
.job-content .card {
    border: 1px solid #e9e9e9;
    background: #fff;
    box-shadow: none;
}
/* This part removes the tick marks */

/* This targets the main container inside the sticky header.
   Reduce the padding to make the bar shorter. */
.header-appear .main-navigation {
    padding-top: 5px;   /* Try values between 5px and 15px */
    padding-bottom: 5px;/* Try values between 5px and 15px */
    transition: all 0.3s ease;
}

/* This targets the logo inside the sticky header.
   Making it smaller also helps reduce the bar's height. */
.header-appear .navbar-brand img {
    max-width: 60px; /* Try values between 50px and 70px */
    transition: all 0.3s ease;
}

/* Footer Alignment Fix */
footer .our-loc > div {
    text-align: center; /* Center the text and icon on mobile */
    margin-bottom: 20px; /* Adds nice spacing when items are stacked */
}

/* On desktop screens (large), align text to the left */
@media (min-width: 992px) {
    footer .our-loc > div {
        text-align: left;
        margin-bottom: 0;
    }
}

/* --- For a DARK Footer --- */
/* --- Full-Width Footer Fix (Dark Theme) --- */
/* --- Definitive Full-Width Footer Fix --- */

/* This forces the main footer element to be edge-to-edge. */
footer.footer {
    /* Force full width and remove all side spacing */
    width: 100vw !important;
    max-width: 100vw !important; /* Override any other max-width setting */
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;

    /* Keep the vertical padding and background */
    padding-top: 60px;
    padding-bottom: 30px;
    background-color: #2c3e50;
    color: #ecf0f1;

    /* This technique helps prevent horizontal scrollbars */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* This ensures the content INSIDE the footer remains centered. */
footer.footer .container {
    width: 100%;
    max-width: 1140px; /* Standard desktop container width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px; /* Adds space on the sides for the content */
    padding-right: 15px;
}

/* Previous styles for the content remain the same */
.footer .our-loc {
    margin-bottom: 30px;
}
.footer .our-loc > div {
    margin-bottom: 20px;
}
.footer a {
    color: #ecf0f1;
    font-size: 15px;
    display: flex;
    align-items: center;
}
.footer a:hover {
    color: #ffffff;
}
.footer a i {
    color: #1abc9c;
    font-size: 20px;
    margin-right: 12px;
    width: 20px;
}
.footer .company-about {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}
.footer {
  background: #2c3e50; /* optional, for consistent color */
  padding: 40px 0;
  color: #fff;
}

.footer .our-loc a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  margin-bottom: 12px;
  word-break: break-word; /* prevents overflow */
}

.footer .our-loc i {
  font-size: 20px;
  margin-right: 10px;
  color: #00b894;
}

/* Mobile view adjustments */
@media (max-width: 767px) {
  .footer .our-loc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer .our-loc a {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    line-height: 1.4;
  }

  .footer .our-loc i {
    margin-right: 8px;
  }
}
