﻿
/* ==== KEPT FROM FIRST CSS (NON-CONFLICTING) ==== */
/* Dropdown positioning for navigation */
.group:hover .group-hover\:block {
    display: block;
}

/* Custom scrollbar styling for better aesthetics */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.scroll-hidden::-webkit-scrollbar {
    display: none; /* Hide scrollbar for elements with this class */
}

.scroll-hidden {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Custom styles for Swiper navigation and pagination */
.swiper-button-next::after,
.swiper-button-prev::after {
    content: '';
}

.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.75);
    padding: 8px;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s ease-in-out;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background-color: rgba(255, 255, 255, 1);
    }

.swiper-button-prev {
    left: 16px;
}

.swiper-button-next {
    right: 16px;
}

.swiper-pagination-bullet {
    background: #cbd5e0;
    opacity: 1;
    margin: 0 4px !important;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    transition: width 0.3s;
}

.swiper-pagination-bullet-active {
    background: #1a202c;
    width: 16px;
}

/* Styles from original code that might be in a separate CSS file */
.banner-bg {
    /* Add any specific banner background styles here if needed */
}

.finding-care-easier-list h4, .peace-of-mind-section h4 {
    font-weight: 600;
}

.finding-care-easier-list p {
    color: #4a5568;
}

/* ==== HOME PAGE CSS (PRIORITY) ==== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.bg-white {
    background-color: #fff;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.overflow-x-auto {
    overflow-x: auto;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.border {
    border-width: 1px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.flex {
    display: flex;
}

.justify-around {
    justify-content: space-around;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.min-w-\[70px\] {
    min-width: 70px;
}

.cursor-pointer {
    cursor: pointer;
}

.p-2 {
    padding: 0.5rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.w-14 {
    width: 3.5rem;
}

.h-14 {
    height: 3.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.justify-center {
    justify-content: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.object-cover {
    object-fit: cover;
}

.text-gray-800 {
    color: #1f2937;
}

.text-sm {
    font-size: 0.875rem;
}

.font-medium {
    font-weight: 500;
}

.transition-colors {
    transition-property: color, background-color, border-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.bg-yellow-100 {
    background-color: #fef9c3;
}

.bg-indigo-100 {
    background-color: #e0e7ff;
}

.bg-cyan-100 {
    background-color: #cffafe;
}

.bg-orange-100 {
    background-color: #ffedd5;
}

/* --- Navigation Hover Effects --- */
.nav-item:hover {
    background-color: #eff6ff;
}

    .nav-item:hover .nav-icon-container {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    .nav-item:hover .text-child {
        color: #1d4ed8;
    }

    .nav-item:hover .text-senior {
        color: #15803d;
    }

    .nav-item:hover .text-pet {
        color: #7e22ce;
    }

    .nav-item:hover .text-maid {
        color: #a16207;
    }

    .nav-item:hover .text-housekeeping {
        color: #3730a3;
    }

    .nav-item:hover .text-adult {
        color: #0e7490;
    }

    .nav-item:hover .text-tutoring {
        color: #c2410c;
    }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    height: 38pc;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.swiper {
    width: 100%;
    height: 38rem;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.hero-text {
    font-size: 1.125rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.user-path-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.user-path-btn {
    background-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, color 0.3s;
    border: none;
    cursor: pointer;
}

    .user-path-btn:hover {
        background-color: rgba(255, 255, 255, 0.7);
        color: #1f2937;
    }

    .user-path-btn.active-path {
        background-color: #ea5159;
        color: #fff;
    }

/* --- Search Form --- */
.search-form-container {
    width: 100%;
    max-width: 48rem;
    padding: 0 1rem;
}

.search-form {
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.form-group {
    width: 100%;
    position: relative;
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .form-control:focus {
        outline: none;
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
        background: #fff;
    }

.suggestion-box {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: 100%;
    background: white;
    border: 2px solid #4a90e2;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: auto;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    background: #fff;
    color: #2c3e50;
    border-bottom: 1px solid #f1f3f5;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

    .suggestion-item:last-child {
        border-bottom: none;
    }

    .suggestion-item:hover {
        background-color: #f0f7ff;
        color: #4a90e2;
        padding-left: 22px;
    }

    .suggestion-item::before {
        content: '📍';
        margin-right: 10px;
        font-size: 14px;
    }

.loading-indicator, .no-results, .api-error {
    padding: 14px 18px;
    color: #7f8c8d;
    font-style: italic;
    display: flex;
    align-items: center;
}

    .loading-indicator::before {
        content: '⏳';
        margin-right: 10px;
    }

    .no-results::before {
        content: '🔍';
        margin-right: 10px;
    }

    .api-error::before {
        content: '⚠️';
        margin-right: 10px;
    }

.api-error {
    color: #e74c3c;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-button {
    width: 100%;
    background: linear-gradient(90deg, #4a90e2, #5e60ce);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(74, 144, 226, 0.2);
}

    .search-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 12px rgba(74, 144, 226, 0.3);
    }

    .search-button:active {
        transform: translateY(0);
    }

/* --- Common Section Styles --- */
.features-section, .caregivers-section, .corporate-section-alt {
    background-color: #fff;
    padding: 1.5rem 1rem;
    margin-top: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #4b5563;
}

.grid-container {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
}

.feature-item {
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    width: 4rem;
    border-radius: 9999px;
    background-color: #dbeafe;
    color: #2563eb;
    margin: 0 auto;
}

    .icon-box svg {
        width: 2rem;
        height: 2rem;
    }

.item-title {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: bold;
    color: #1f2937;
}

.item-description {
    margin-top: 0.5rem;
    color: #4b5563;
    font-size: 0.875rem;
}

/* --- Caregivers Section --- */
.caregiver-card {
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.caregiver-img {
    width: 6rem;
    height: 6rem;
    border-radius: 9999px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.rating {
    margin-top: 0.5rem;
    color: #facc15;
}

/* --- Corporate Section --- */
.corporate-container-alt {
    max-width: 1280px;
    margin: 0 auto;
}

.corporate-header-alt {
    text-align: center;
    margin-bottom: 2rem;
}

.corporate-title-alt {
    font-size: 1.875rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.corporate-subtitle-alt {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 42rem;
    margin: 0 auto;
}

.corporate-grid-alt {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.corporate-step-alt {
    text-align: center;
}

.corporate-icon-wrapper-alt {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.corporate-icon-inner-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    width: 4rem;
    border-radius: 0.75rem;
    background-color: #dbeafe;
    color: #2563eb;
}

.corporate-icon-alt {
    height: 2rem;
    width: 2rem;
}

.corporate-step-title-alt {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.corporate-step-description-alt {
    color: #4b5563;
}

.corporate-cta-wrapper-alt {
    text-align: center;
}

.corporate-button-alt {
    display: inline-block;
    background-color: #ea5159;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
    text-decoration: none;
}

    .corporate-button-alt:hover {
        background-color: #dc2626;
    }

/* --- Modal --- */
.modal-overlay_home {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal_home {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-content_home h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.buttons-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#find-care {
    background: linear-gradient(90deg, #4a90e2, #5e60ce);
    color: white;
}

#find-job {
    background: #f0f7ff;
    color: #4a90e2;
    border: 2px solid #4a90e2;
}

/* --- Media Queries --- */
@media (min-width: 768px) {
    .hero-text {
        font-size: 1.25rem;
    }

    .width127 {
        width: 124%;
    }

    .search-form {
        flex-direction: row;
    }

    .search-button {
        width: auto;
    }

    .grid-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .corporate-grid-alt {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .justify-around {
        justify-content: center;
    }

    .nav-ul {
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-text {
        font-size: 1.5rem;
    }

    .search-form-container {
        max-width: 40rem;
    }

    .grid-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:px-2 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .form-control {
        padding: 12px 15px;
    }

    .suggestion-item {
        padding: 12px 15px;
    }

    .sm\:px-2 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}


