/* index.php page */
:root {
    --primary-blue: #0f172a;
    --accent-amber: #f59e0b;
    --soft-gray: #f8fafc;
    --text-main: #1e293b;
}

body {
    background-color: var(--soft-gray);
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.hero-bg {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 100px 0 80px;
    margin-bottom: -50px;
    border-bottom-right-radius: 50px;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.25), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 50%),
                radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.08), transparent 55%);
    pointer-events: none;
}

.hero-title {
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    max-width: 520px;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.12s;
}

.hero-cta,
.hero-note {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.18s;
}

.text-accent {
    color: var(--accent-amber) !important;
}

.hero-cta {
    background: linear-gradient(135deg, var(--accent-amber) 0%, #fbbf24 100%);
    border: none;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
}

.hero-secondary {
    border-color: rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.92);
}

.hero-cta:hover,
.hero-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.hero-extras {
    max-width: 420px;
}

.hero-illustration {
    position: relative;
    height: 320px;
}

.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.28;
}

.hero-card {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(12px);
}

.hero-card-header {
    display: flex;
    justify-content: flex-end;
}

.hero-card-body {
    padding-top: 12px;
}

.hero-card-body .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.search-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 30px;
    position: relative;
    z-index: 10;
}

.btn-success {
    background-color: var(--accent-amber) !important;
    border: none !important;
    color: #000 !important;
    font-weight: bold;
}

.thead-dark th {
    background-color: var(--primary-blue) !important;
    color: white;
    border: none;
}

/* Table Professionalism */
#providers {
    border-collapse: separate;
    border-spacing: 0 10px; /* Adds space between rows */
    background: transparent;
}

#providers thead th {
    background-color: var(--primary-blue);
    color: #ffffff !important; /* Ensure text is pure white */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 15px;
    border: none;
}

#providers tbody tr {
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#providers tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #fff;
}

#providers td {
    padding: 20px 15px;
    vertical-align: middle;
    color: var(--text-main);
    font-size: 0.95rem;
    border: none;
}

/* Badge Styling for Professions */
.badge-info {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    font-weight: 700;
}

/* TABLE CONTAINER & HEADERS */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#providers {
    margin-bottom: 0;
}

#providers thead th {
    background-color: #0f172a !important; /* Deep Midnight Blue */
    color: #ffffff !important;           /* FORCE text to be pure white */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    padding: 20px;
    border: none;
}

/* TABLE BODY & ROWS */
#providers tbody tr {
    transition: background 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

#providers tbody tr:hover {
    background-color: #f8fafc; /* Very subtle blue-gray hover */
}

#providers td {
    padding: 18px 20px;
    vertical-align: middle;
    color: #334155; /* Slate gray for professional reading */
    font-size: 0.95rem;
}

/* COLUMN SPECIFICS */
.expert-name {
    font-weight: 700;
    color: #0f172a;
}

.expert-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;                    /* Modern square-rounded look */
    border: 2px solid #e2e8f0;
}

/* --- TABLE HEADER VISIBILITY --- */
table#providers thead th {
    background-color: #0f172a !important; /* Midnight Blue */
    color: #ffffff !important;           /* Force Pure White Text */
    padding: 18px !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.2px !important;
    border: none !important;
}

/* --- TABLE BODY TEXT --- */
table#providers tbody td {
    color: #1e293b !important;           /* Dark Slate Gray (Very Readable) */
    background-color: #ffffff !important; /* Solid White */
    padding: 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* --- HOVER EFFECT --- */
table#providers tbody tr:hover td {
    background-color: #f8fafc !important; 
    cursor: pointer;
}

/* --- EMPTY STATE TEXT --- */
.empty-state-text {
    color: #475569 !important;
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- PROVIDERS GRID (CARD LAYOUT) --- */
.providers-container {
    max-height: 620px;
    overflow-y: auto;
    padding-right: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(8px);
}

.providers-container::-webkit-scrollbar {
    width: 10px;
}

.providers-container::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    padding: 1rem 0.5rem 1.5rem;
}

.provider-placeholder {
    padding: 2.5rem 1.75rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.86);
    width: 100%;
    text-align: center;
}

.provider-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.65s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.provider-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.provider-top {
    align-items: flex-start;
}

.expert-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.provider-footer {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, var(--accent-amber) 0%, #fbbf24 100%);
    border: none;
    color: #0f172a;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}


/* --- PREMIUM HEADER STYLING --- */

/* Deep Navy Background */
.navbar {
    background-color: #011627 !important;
}

/* Spaced out Navigation Links */
.custom-nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    padding: 10px 20px !important;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.custom-nav-link:hover {
    color: #4cc9f0 !important; /* Soft Blue highlight */
}

/* User Avatar / Login Circle on far right */
.user-avatar-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.user-avatar-btn:hover {
    border-color: #4cc9f0;
    color: #4cc9f0 !important;
    background: rgba(76, 201, 240, 0.1);
}

/* Mobile Specific Tweaks */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #011627;
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
        text-align: center;
    }
    .user-avatar-btn {
        margin: 10px auto;
    }
}


/* --- UNIFIED HANDYFIX CARD STYLE (FROM REPORT) --- */
.handy-card {
    background: #ffffff;
    border-radius: 28px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    overflow: hidden;
    padding-bottom: 20px;
}

.handy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.avatar-frame {
    width: 120px;
    height: 120px;
    margin: 30px auto 15px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.initials-style {
    font-size: 2.5rem;
    font-weight: 700;
    color: #adb5bd;
}

.cat-pill {
    background-color: #e3f7fe;
    color: #4cc9f0;
    font-weight: 800;
    font-size: 0.65rem;
    padding: 6px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.btn-handy-book {
    background-color: #f1b418;
    color: #ffffff !important;
    border-radius: 50px;
    font-weight: 800;
    padding: 12px;
    margin: 10px 25px;
    text-transform: uppercase;
    border: none;
    display: block;
    text-decoration: none;
    transition: 0.3s;
}

.location-text {
    color: #141414 !important;
}



/* FORM CONTAINER */
#searchForm {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* LABELS */
#searchForm label {
    font-size: 12px;
    letter-spacing: 1px;
}

/* INPUT GROUP */
#searchForm .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ICON SIDE */
#searchForm .input-group-text {
    background: #f1f3f5 !important;
    border: none;
    font-size: 14px;
}

/* SELECT */
#searchForm .form-select {
    border-radius: 0;
    font-weight: 500;
}

/* SELECT FOCUS */
#searchForm .form-select:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

/* SEARCH BUTTON */
#search {
    background: linear-gradient(135deg, #011627, #023047);
    border-radius: 12px;
    transition: all 0.3s ease;
}

#search:hover {
    background: linear-gradient(135deg, #4cc9f0, #00b4d8);
    color: #011627;
    transform: translateY(-2px);
}

/* QUICK FIND PILLS */
.category-pill {
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #dee2e6;
}

.category-pill:hover {
    background: #011627 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* MOBILE IMPROVEMENT -index.php*/
@media (max-width: 768px) {
    #searchForm {
        padding: 15px;
    }

    #search {
        padding: 12px;
        font-size: 0.9rem;
    }

    .category-pill {
        font-size: 0.8rem;
    }
}

html {
    scroll-behavior: smooth;
}




/* Service page */
/* Master Card Design from Report */
.handy-card {
    background: #ffffff;
    border-radius: 28px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Aligned to left to match your screenshots */
    padding: 20px;
}

.handy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05) !important;
}

.avatar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #f8f9fa;
    overflow: hidden;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.initials-style {
    font-size: 1.8rem;
    font-weight: 700;
    color: #adb5bd;
}

.verified-badge {
    background: #011627;
    color: white;
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 700;
}

.info-item {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-book-report {
    background-color: #011627;
    color: #ffffff !important;
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 25px;
    border: none;
    float: right;
    margin-top: -10px;
}


body {
    margin: 0;
    padding: 0;
}

.container {
    max-width: 12000px; /* keeps content centered */
    max-height: 1000px;
}

footer {
    width: 1000vw;
    margin: 0;
}

/* footer */

/* welcome text */
.welcome-text {
    margin: 0 15px;          /* breathing space left & right */
    padding: 6px 12px;       /* inner spacing */
    border-radius: 8px;      /* soft edges */
    background: rgba(255,255,255,0.05); /* subtle background */
}


/* homepage */


    .service-card {
        transition: all 0.3s ease;
        border-radius: 15px;
        background: #ffffff;
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

    .service-icon-circle {
        width: 70px;
        height: 70px;
        background: #e0f7fa; /* Light cyan background for icons */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        transition: 0.3s;
    }

    .service-card:hover .service-icon-circle {
        background: #4cc9f0; /* Changes to your secondary blue on hover */
    }

    .service-card:hover .service-icon-circle i {
        color: #ffffff !important;
    }


   /*  experts */
   body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    
}

#resultsSection {
    flex-shrink: 0;
    
}


/* LOGO RESPONSIVE FIX */
.navbar-brand img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

/* MOBILE ADJUSTMENT */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 42px;
    }
}
/* visible logo */
.navbar-brand img {
    padding: 2px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

@media (max-width: 576px) {
    .navbar-brand span {
        font-size: 14px;
        font-weight: 700;
    }
}


/* navbar  */
.navbar {
    padding: 10px 15px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

/* ================= MOBILE RESPONSIVENESS FIX ================= */

img {
    max-width: 100%;
    height: auto;
}

/* HERO SECTION */
@media (max-width: 768px) {
    .hero-bg {
        padding: 70px 15px 90px 15px;
        text-align: center;
    }

    .hero-title {
        font-size: 32px !important;
    }

    .lead {
        font-size: 15px;
    }
}

/* SEARCH CARD */
@media (max-width: 768px) {
    .search-card {
        padding: 20px !important;
        margin-top: -30px !important;
    }

    .search-card h5 {
        font-size: 14px;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group-text {
        width: 100%;
        justify-content: center;
    }

    select.form-select-lg {
        font-size: 14px;
    }
}

/* QUICK FIND BUTTONS */
@media (max-width: 768px) {
    .category-pill {
        font-size: 12px;
        padding: 6px 10px !important;
    }
}

/* SERVICE CARDS */
@media (max-width: 768px) {
    .service-card img {
        height: 160px !important;
    }

    .service-title {
        font-size: 16px;
    }

    .service-text {
        font-size: 12px;
    }
}

/* TESTIMONIALS */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
}

/* RESULTS SECTION */
@media (max-width: 768px) {
    #provider_results .card {
        margin-bottom: 15px;
    }

    #resultsSection h3 {
        font-size: 20px;
    }
}

/* LOGO FIX (IMPORTANT IF IN HEADER) */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
    }
}


@media (max-width: 768px) {
    .row.g-3 > .col-md-5,
    .row.g-3 > .col-md-2 {
        width: 100%;
    }

    .row.g-3 {
        gap: 10px;
    }

    button#search {
        width: 100%;
    }
}


/* images */


/* ================= STOP IMAGE SHAKING ================= */

.service-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    transform: translateZ(0); /* forces GPU rendering */
    backface-visibility: hidden;
    will-change: transform;
}

/* prevent layout shift on hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* smoother hover (no jitter) */
.service-card:hover {
    transform: translateY(-8px);
}
.service-card img {
    aspect-ratio: 4 / 3;
}

/* ================= STABLE SERVICE CARD ================= */

.service-card {
    position: relative;
    overflow: hidden;   /* IMPORTANT: locks image inside card */
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* FIX IMAGE STABILITY */
.service-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transform: none !important; /* prevents micro movement */
}

/* SMOOTH HOVER WITHOUT JUMP */
.service-card:hover {
    transform: translateY(-8px);
}

/* PREVENT TEXT SHIFT */
.service-card .card-body {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .service-card:hover {
        transform: none !important; /* disables hover jump on mobile */
    }
}


/* ================= FIX BUTTON OVERFLOW ================= */
/* ================= FIX CARD COLLAPSE & OVERFLOW ================= */

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;              /* force full height */
    overflow: hidden;          /* stop content leaking */
}

/* FIX IMAGE */
.service-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    flex-shrink: 0;            /* prevents shrinking */
}

/* FIX BODY */
.service-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 15px;
}

/* TEXT SPACING */
.service-text {
    flex-grow: 1;   /* pushes button down */
    color:black;
}

/* FIX BUTTON POSITION */
.service-btn {
    margin-top: 10px;
    width: 100%;
}

/* VERY IMPORTANT: REMOVE HOVER LAYOUT SHIFT */
.service-card:hover {
    transform: none !important;
}



//admin_view_provider









/* Force Job Titles to be Bold and Navy */
.job-title {
    color: #011627 !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    display: block;
}

/* Darken the Meta Information (Date/Price) */
.job-meta {
    color: #475569 !important; /* Darker Slate Grey */
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

/* Highlight Price in Brand Green */
.price-tag {
    color: #2ecc71 !important;
    font-weight: 700 !important;
}