* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft JhengHei', sans-serif;
    background-color: #e8e3de;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Row 1: Banner for all devices */
.header-row-1 {
    background-color: #c2b6ad;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 180px;
    max-height: 180px;
    overflow: hidden;
}

.banner-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.banner-img {
    height: 100%;
    max-height: 180px;
    width: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Responsive banner for smaller screens */
@media (max-width: 1024px) {
    .header-row-1 {
        height: 140px;
        max-height: 140px;
    }
    
    .banner-img {
        max-height: 140px;
    }
}

@media (max-width: 768px) {
    .header-row-1 {
        height: 100px;
        max-height: 100px;
    }
    
    .banner-img {
        max-height: 100px;
    }
}

@media (max-width: 480px) {
    .header-row-1 {
        height: 80px;
        max-height: 80px;
    }
    
    .banner-img {
        max-height: 80px;
    }
}

/* Row 2: Tagline and Language */
.header-row-2 {
    background-color: #c2b6ad;
    padding: 12px 0;
}

.header-row-2 .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tagline {
    display: flex;
    align-items: center;
}

.tagline-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.tagline h2 {
    color: #5a4a3a;
    font-size: 1.3rem;
    font-weight: 500;
}

.language-selector select {
    background-color: #c2b6ad;
    color: #5a4a3a;
    border: 2px solid #a89580;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    border-color: #8a7560;
    background-color: #b0a599;
}

/* Row 3: Navigation */
.navigation {
    background-color: #c2b6ad;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    padding: 0;
    gap: 0;
    position: relative;
}

/* Logo on the left of nav */
.nav-logo-link {
    display: flex;
    align-items: center;
    padding: 0 8px;
    flex-shrink: 0;
    text-decoration: none;
    overflow: hidden;
    height: 70px;
    min-width: 280px;
}

.nav-logo-img {
    height: 90px;
    width: 280px;
    display: block;
    object-fit: contain;
    transform: scale(1.4);
    transform-origin: center center;
}

/* Language selector on the right of nav */
.nav-language-selector {
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex-shrink: 0;
}

.nav-language-selector select {
    background-color: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.nav-language-selector select option {
    background-color: #c2b6ad;
    color: #5a4a3a;
}

.nav-language-selector select:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.navigation .container {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 0;
    gap: 0;
    position: relative;
}

/* Hamburger Menu - Hidden on desktop */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Language row inside dropdown — hidden on desktop, shown only in mobile dropdown */
.nav-menu-lang {
    display: none;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.nav-btn {
    flex: 1;
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-btn:last-child {
    border-right: none;
}

.nav-btn:hover {
    background-color: #a89580;
    color: #fff;
}

.nav-btn.active {
    background-color: #8a7560;
    color: #fff;
    font-weight: 600;
}

/* Main Content */
#mainContent {
    min-height: 60vh;
    padding: 40px 0;
}

.page-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.page-content h2 {
    color: #5a4a3a;
    margin-bottom: 20px;
    font-size: 2rem;
}

.page-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Homepage Styles */
.intro-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #fafaf8;
    border-radius: 10px;
    border-left: 4px solid #c9b8a3;
}

.intro-section h2 {
    color: #5a4a3a;
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.intro-section h3 {
    color: #5a4a3a;
    font-size: 1.35rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 2;
    color: #555;
    margin-bottom: 20px;
    text-align: left;
}

.home-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 30px;
    margin-top: 40px;
}

.photo-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.helpers-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.more-helpers-container {
    text-align: center;
    margin-top: 30px;
}

.more-helpers-btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: #8a7560;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(138, 117, 96, 0.3);
}

.more-helpers-btn:hover {
    background-color: #5a4a3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 117, 96, 0.5);
}

/* Profile Card Styles */
.profile-card {
    border: 1.5px solid #db2777;
    border-radius: 18px;
    background: #fff;
    padding: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.profile-card.clickable {
    cursor: pointer;
}

.profile-card.clickable:active {
    transform: translateY(0);
}

.profile-header {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 4px;
    padding: 0 8px;
}

.profile-content {
    display: flex;
    gap: 8px;
    flex: 1;
    align-items: flex-start;
}
.profile-image {
    flex: 5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: #ddd;
    border-radius: 8px;
    color: #aaa;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
}

.profile-details {
    flex: 7;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 8px;
    align-self: flex-start;
    justify-content: flex-start;
}

.profile-details .info-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    gap: 4px;
    line-height: 1.2;
    margin-bottom: 1px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.info-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.duties-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 2px;
}

.duties-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.duty-icon {
    background: #ee8324;
    border-radius: 6px;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    padding: 2px;
}

.duty-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.duty-icon:hover {
    transform: scale(1.15);
}

/* Results Section Grid - Tailwind-like utilities */
.results-section {
    display: grid;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

/* Responsive grid classes */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* About Us Page Styles */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-section,
.social-section {
    background-color: #fafaf8;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #c9b8a3;
}

.contact-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-info-column h3 {
    margin-top: 0;
}

.contact-map-column {
    height: 100%;
    min-height: 400px;
}

.contact-map-column .map-container {
    height: 100%;
    margin-top: 0;
}

.contact-map-column .map-container iframe {
    height: 100%;
    min-height: 400px;
}

.contact-section h3,
.social-section h3 {
    color: #5a4a3a;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #c9b8a3;
    padding-bottom: 10px;
}

.contact-item {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-item strong {
    color: #5a4a3a;
    display: inline-block;
    min-width: 100px;
}

.contact-item a {
    color: #8a7560;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #c9b8a3;
    text-decoration: underline;
}

.map-container {
    margin-top: 25px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.whatsapp-link {
    font-weight: 600;
    color: #25D366 !important;
}

.whatsapp-link:hover {
    color: #128C7E !important;
}

.social-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-item {
    text-align: center;
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px;
}

.social-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.social-item h4 {
    color: #5a4a3a;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 15px 0;
    border: 3px solid #c9b8a3;
    border-radius: 8px;
    padding: 5px;
    background-color: #fff;
}

.social-link {
    display: inline-block;
    margin-top: 10px;
    color: #8a7560;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #c9b8a3;
    text-decoration: underline;
}

/* Helper Registration Page */
.helper-registration-content {
    max-width: 800px;
    margin: 0 auto;
}

.language-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.lang-toggle-btn {
    padding: 12px 30px;
    background-color: #c2b6ad;
    color: #fff;
    border: 2px solid #a89580;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle-btn:hover {
    background-color: #a89580;
    transform: translateY(-2px);
}

.lang-toggle-btn.active {
    background-color: #8a7560;
    border-color: #8a7560;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.helper-content {
    background-color: #fafaf8;
    padding: 40px;
    border-radius: 10px;
    border-left: 4px solid #c9b8a3;
}

.helper-content h3 {
    color: #5a4a3a;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.helper-content .subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.helper-content h4 {
    color: #5a4a3a;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.benefits-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8a7560;
    font-weight: bold;
    font-size: 1.2rem;
}

.cta-text {
    font-size: 1.2rem;
    color: #5a4a3a;
    font-weight: 500;
    margin: 30px 0 20px 0;
    text-align: center;
}

.register-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    margin: 20px auto;
    display: block;
    max-width: 300px;
}

.register-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* WhatsApp Floating Action Button */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-fab:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-fab:active {
    transform: scale(0.95);
}

.whatsapp-fab svg {
    width: 35px;
    height: 35px;
    color: #ffffff;
}

/* Helpers Layout with Sidebar */
.helpers-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* Filter Sidebar */
.filter-sidebar {
    flex: 0 0 280px;
    background-color: #fafaf8;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #c9b8a3;
}

.filter-sidebar h3 {
    color: #5a4a3a;
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #c9b8a3;
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    color: #5a4a3a;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #c9b8a3;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:hover {
    border-color: #a89580;
}

.filter-select:focus {
    outline: none;
    border-color: #8a7560;
}

/* ── Age Range Dual Slider ─────────────────────────────────── */
.age-slider-container {
    margin-top: 4px;
}

.age-slider-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #5a4a3a;
    margin-bottom: 12px;
    background-color: #f5f0eb;
    border: 2px solid #c9b8a3;
    border-radius: 8px;
    padding: 6px 12px;
}

.age-slider-dash {
    color: #a89580;
    font-weight: 400;
}

.age-slider-track-wrapper {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    /* CSS custom properties set by JS for the filled track */
    --pct-min: 4.76%;   /* (20-18)/(60-18)*100 */
    --pct-max: 100%;
}

/* Shared track background with filled range */
.age-slider-track-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(
        to right,
        #ddd var(--pct-min),
        #8a7560 var(--pct-min),
        #8a7560 var(--pct-max),
        #ddd var(--pct-max)
    );
    pointer-events: none;
    z-index: 1;
}

.age-slider {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
}

.age-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8a7560;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    pointer-events: all;
    transition: background 0.2s, transform 0.1s;
}

.age-slider::-webkit-slider-thumb:hover {
    background: #5a4a3a;
    transform: scale(1.15);
}

.age-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8a7560;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    pointer-events: all;
}

/* ── Chip / Badge Filter Group ─────────────────────────────── */
.filter-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid #c9b8a3;
    background-color: #fff;
    color: #5a4a3a;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    white-space: nowrap;
    line-height: 1.4;
}

.filter-chip:hover {
    border-color: #8a7560;
    background-color: #f5f0eb;
}

.filter-chip.active {
    border-color: #5a4a3a;
    background-color: #5a4a3a;
    color: #fff;
    font-weight: 600;
}

/* ── Filter Actions Row (Search + Reset) ───────────────────── */
.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.apply-filters-btn {
    flex: 2;
    padding: 12px;
    background-color: #5a4a3a;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-filters-btn:hover {
    background-color: #3d3028;
}

.filter-actions .reset-btn {
    flex: 1;
    margin-top: 0;
}

.reset-btn {
    width: 100%;
    padding: 12px;
    background-color: #8a7560;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.reset-btn:hover {
    background-color: #c9b8a3;
}

/* Helpers Grid */
.helpers-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-content: start;
}

.helper-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.helper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.helper-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.helper-info {
    padding: 20px;
}

.helper-info h3 {
    color: #5a4a3a;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.helper-info p {
    margin: 8px 0;
    color: #666;
    font-size: 0.95rem;
}

.view-details-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #8a7560;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.view-details-btn:hover {
    background-color: #c9b8a3;
}

/* Helper Detail Page */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #8a7560;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.helper-detail {
    background-color: #fafaf8;
    border-radius: 10px;
    overflow: hidden;
}

.helper-detail-header {
    display: flex;
    gap: 30px;
    padding: 30px;
    background-color: #fff;
    border-bottom: 2px solid #c9b8a3;
}

.helper-detail-photo {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.helper-detail-basic h2 {
    color: #5a4a3a;
    font-size: 2rem;
    margin-bottom: 10px;
}

.helper-id {
    color: #888;
    font-size: 1rem;
}

.helper-detail-info {
    padding: 30px;
}

.info-section {
    margin-bottom: 30px;
}

.info-section h3 {
    color: #5a4a3a;
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #c9b8a3;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
}

.info-item strong {
    color: #5a4a3a;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #c9b8a3;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
}

.contact-action {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-btn,
.whatsapp-btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-btn {
    background-color: #8a7560;
    color: #fff;
}

.contact-btn:hover {
    background-color: #c9b8a3;
}

.whatsapp-btn {
    background-color: #25D366;
    color: #fff;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .helpers-layout {
        flex-direction: column;
    }
    
    .filter-sidebar {
        flex: 1;
        margin-bottom: 20px;
    }
    
    .helpers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .home-layout {
        grid-template-columns: 150px 1fr 150px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-two-column {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-map-column {
        min-height: 300px;
    }
    
    .contact-map-column .map-container iframe {
        min-height: 300px;
    }
    
    .home-layout {
        grid-template-columns: 1fr;
    }
    
    .photo-column {
        display: none;
    }
    
    .home-helper-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .home-helper-photo {
        width: 150px;
        height: 180px;
    }
    
    .helpers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-sidebar {
        padding: 20px;
    }
    
    .filter-group {
        margin-bottom: 15px;
    }
    
    .helper-card {
        max-width: 100%;
    }
    
    .helper-photo {
        height: 300px;
    }
    /* Hide banner on mobile, show mobile header */
    .banner-desktop {
        display: none;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .header-row-1 .container,
    .header-row-2 .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    /* Mobile Navigation - Dropdown Menu */
    .navigation .container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        min-height: 60px;
    }

    .nav-container {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 8px;
        align-items: center;
    }

    .nav-logo-link {
        padding: 4px 0;
        order: 1;
        height: 56px;
        min-width: unset;
        overflow: visible;
    }

    .nav-logo-img {
        height: 110px;
        width: auto;
        transform: none;
    }

    .hamburger-menu {
        display: flex;
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-bottom: 0;
        order: 2;
        margin-left: auto;
    }

    /* Hide language selector from top bar on mobile — it moves into the dropdown */
    .nav-language-selector {
        display: none;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        margin-top: 8px;
        background-color: #a89580;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-btn {
        flex: none;
        width: 100%;
        text-align: left;
        padding: 18px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Language row inside mobile dropdown */
    .nav-menu-lang {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-menu-lang select {
        width: 100%;
        background-color: rgba(255, 255, 255, 0.15);
        color: #fff;
        border: 1.5px solid rgba(255, 255, 255, 0.5);
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 0.95rem;
        cursor: pointer;
        outline: none;
    }

    .nav-menu-lang select option {
        background-color: #a89580;
        color: #fff;
    }

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

    .logo h1 {
        font-size: 1.5rem;
    }

    .tagline h2 {
        font-size: 1.1rem;
    }

    .page-content {
        padding: 20px;
    }
}

/* ========================================
   HELPER DETAIL PAGE STYLES
   ======================================== */

.helper-detail-app-container {
    min-height: 60vh;
    padding: 20px 0;
}

.loading-container,
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8a7560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    color: #666;
    font-size: 1.1rem;
}

.error-icon {
    width: 80px;
    height: 80px;
    color: #d32f2f;
    margin-bottom: 20px;
}

.error-icon svg {
    width: 100%;
    height: 100%;
}

.error-title {
    color: #5a4a3a;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.error-message {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
}

.retry-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #8a7560;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background-color: #c9b8a3;
}

.back-link-btn {
    display: inline-block;
    margin-top: 20px;
    color: #8a7560;
    text-decoration: none;
    font-weight: 500;
}

.back-link-btn:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.helper-detail-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.desktop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.helper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.helper-ref-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5a4a3a;
}

.info-card,
.duty-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -20px -20px 15px -20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #c9b8a3 0%, #b0a090 100%);
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #a89580;
}

.card-header-icon {
    color: #fff;
    display: flex;
    align-items: center;
}

.card-header-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.card-row:last-child {
    border-bottom: none;
}

.card-row-label {
    font-weight: 500;
    color: #5a4a3a;
    flex: 0 0 40%;
}

.card-row-value {
    color: #666;
    flex: 1;
    text-align: right;
}

.duties-icons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.duty-icon-item {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.duty-icon-item:hover {
    transform: scale(1.15);
}

.duty-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.duty-icon-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 5px;
    z-index: 10;
}

.duty-icon-item:hover .duty-icon-tooltip,
.duty-icon-item:focus .duty-icon-tooltip {
    opacity: 1;
}

.video-section {
    margin: 20px 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.photo-gallery {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-main-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.gallery-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-nav:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.7);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-nav-prev {
    left: 10px;
}

.gallery-nav-next {
    right: 10px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    border-color: #8a7560;
}

.gallery-thumbnail.active {
    border-color: #8a7560;
    box-shadow: 0 0 0 2px rgba(138, 117, 96, 0.2);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot:hover {
    background-color: #bbb;
}

.gallery-dot.active {
    background-color: #8a7560;
    width: 12px;
    height: 12px;
}

.photo-gallery.single-image .gallery-nav,
.photo-gallery.single-image .gallery-thumbnails,
.photo-gallery.single-image .gallery-dots {
    display: none;
}

.disclaimer-card {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.disclaimer-text {
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.experience-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #8a7560;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.experience-country {
    font-weight: 600;
    color: #5a4a3a;
    font-size: 1.05rem;
}

.experience-duration {
    color: #666;
    font-size: 0.95rem;
}

.experience-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.experience-detail-row {
    color: #666;
    font-size: 0.95rem;
}

.reference-available {
    color: #28a745;
    font-weight: 500;
}

.no-experience-text {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.loading-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #666;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #8a7560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.site-footer {
    background-color: #c2b6ad;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-content {
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-labour-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-labour-link:hover {
    color: #e8e3de;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .desktop-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .photos-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .desktop-layout {
        grid-template-columns: 1fr;
    }
    
    .helper-detail-main-container {
        padding: 0 15px;
    }
    
    .info-card,
    .duty-card {
        padding: 15px;
    }

    .info-card .card-header,
    .duty-card .card-header {
        margin: -15px -15px 15px -15px;
        padding: 10px 15px;
    }
    
    .card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .card-row-label,
    .card-row-value {
        flex: 1;
        text-align: left;
    }
    
    .gallery-main-image {
        max-height: 400px;
    }
    
    .gallery-dots {
        display: flex;
    }
    
    .gallery-thumbnails {
        display: none;
    }
}

/* ========================================
   ENHANCED EXPERIENCE CARD STYLES
   ======================================== */

.experience-card-enhanced {
    background-color: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.experience-card-enhanced:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.exp-card-header {
    background-color: rgba(201, 184, 163, 0.15);
    padding: 16px;
    border-bottom: 1px solid rgba(201, 184, 163, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.exp-location-icon {
    color: #8a7560;
    flex-shrink: 0;
}

.exp-location-text {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exp-period-badge {
    padding: 4px 12px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.exp-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exp-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

.exp-info-badge.badge-green {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.exp-info-badge.badge-orange {
    background-color: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
    color: #FF9800;
}

.exp-info-badge.badge-blue {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
    color: #2196F3;
}

.exp-info-badge .badge-icon {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.exp-info-badge .badge-text {
    line-height: 1;
}

.exp-reason-text {
    font-size: 13px;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

.exp-family-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-icon {
    color: #999;
    flex-shrink: 0;
}

.exp-family-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.exp-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0;
}

.exp-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.exp-duties-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.exp-duty-icon {
    width: 30px;
    height: 40px;
    object-fit: contain;
}

.exp-kid-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.kid-age-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 12px;
    font-weight: 500;
}

.kid-age-badge.kid-badge-yes {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.2);
    color: #2E7D32;
}

.kid-age-badge.kid-badge-no {
    background-color: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.2);
    color: #E65100;
}

.kid-badge-icon {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.kid-badge-label {
    line-height: 1;
}

@media (max-width: 768px) {
    .exp-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exp-header-left {
        width: 100%;
    }
    
    .exp-period-badge {
        align-self: flex-start;
    }
    
    .exp-badges-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exp-kid-badges {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Footer QR Button Container ───────────────────────────── */
/* Hidden by default; shown only on helper-detail page via body class */
.footer-qr-btn-container {
  display: none;
  justify-content: center;
  margin-top: 0.75rem;
}

body.helper-detail-page .footer-qr-btn-container {
  display: flex;
}

/* ── QR Trigger Button ─────────────────────────────────────── */
.qr-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ── QR Modal Overlay ──────────────────────────────────────── */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.qr-modal.hidden {
  display: none;
}

/* ── QR Modal Card ─────────────────────────────────────────── */
.qr-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

/* ── QR Modal Header ───────────────────────────────────────── */
.qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.qr-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.qr-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.qr-close-btn:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

/* ── QR Modal Body ─────────────────────────────────────────── */
.qr-modal-body {
  padding: 2rem;
  text-align: center;
}

/* ── Agency Notice Banner ──────────────────────────────────── */
.agency-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── QR Canvas Container ───────────────────────────────────── */
.qr-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* qrcodejs renders a canvas or img inside the container */
#qr-code-container canvas,
#qr-code-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── QR Ref Text below QR ──────────────────────────────────── */
.qr-ref-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  font-family: 'Courier New', monospace;
}

/* ── QR Modal Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
  .qr-modal-content {
    max-width: 95%;
  }
}

/* ========================================
   LANGUAGE PROFICIENCY BAR
   ======================================== */

.lang-proficiency-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.lang-proficiency-row:last-child {
  border-bottom: none;
}

.lang-proficiency-label {
  font-weight: 500;
  color: #5a4a3a;
  flex: 0 0 56px;
  font-size: 0.9rem;
}

.lang-proficiency-bar {
  display: flex;
  flex: 1;
  gap: 3px;
}

.lang-level-seg {
  flex: 1;
  padding: 5px 4px;
  border-radius: 4px;
  border: 1.5px solid #ddd;
  background-color: #f5f5f5;
  text-align: center;
  cursor: default;
  transition: all 0.2s ease;
  overflow: hidden;
}

.lang-level-seg-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Filled segments (up to and including active level) */
.lang-level-seg.filled {
  border-color: transparent;
}

.lang-level-seg.filled .lang-level-seg-label {
  color: #fff;
}

/* Per-level colours for filled state */
.lang-level-seg--basic.filled    { background-color: #90caf9; border-color: #64b5f6; }
.lang-level-seg--fair.filled     { background-color: #a5d6a7; border-color: #81c784; }
.lang-level-seg--average.filled  { background-color: #fff176; border-color: #fdd835; }
.lang-level-seg--average.filled .lang-level-seg-label { color: #5a4a3a; }
.lang-level-seg--good.filled     { background-color: #ffb74d; border-color: #ffa726; }
.lang-level-seg--excellent.filled { background-color: #ef5350; border-color: #e53935; }

/* Active (current level) gets a stronger ring */
.lang-level-seg.active {
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
  transform: scaleY(1.08);
  z-index: 1;
}

/* ===== Index Page: Photo Gallery Row ===== */
.home-photos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.home-photos-row a {
  flex: 1 1 calc(16.666% - 8px);
  min-width: 100px;
  max-width: 200px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-photos-row a:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.home-photos-row .side-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .home-photos-row a {
    flex: 1 1 calc(33.333% - 8px);
    max-width: none;
  }
  .home-photos-row .side-photo {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .home-photos-row a {
    flex: 1 1 calc(50% - 8px);
  }
  .home-photos-row .side-photo {
    height: 100px;
  }
}

/* ===== Client Reviews Band — same container style as page-content ===== */
.reviews-band {
  padding: 0 20px 40px;
}

.reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  background: #fff8f2;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== Site Map Band — same container style as page-content ===== */
.sitemap-band {
  padding: 0 20px 40px;
}

.sitemap-band .sitemap-section {
  max-width: 1200px;
  margin: 0 auto;
  background: #c2b6ad;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-top: none;
  padding: 40px;
  margin-top: 0;
}

.sitemap-band .sitemap-heading {
  color: #fff;
  border-bottom-color: #a89580;
}

.sitemap-band .sitemap-links li a {
  color: #fff;
}

.sitemap-band .sitemap-links li a:hover {
  color: #5a4a3a;
}

.sitemap-band .sitemap-social-link {
  color: #fff;
}

.sitemap-band .sitemap-social-link:hover {
  color: #5a4a3a;
}

/* ===== Client Reviews Section (legacy — kept for safety) ===== */
.reviews-section {
  margin-top: 48px;
  padding: 36px 0 24px;
  border-top: 2px solid #e8e3de;
}

.reviews-title {
  color: #5a4a3a;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.reviews-subtitle {
  color: #888;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.review-card {
  background: #fafaf8;
  border: 1.5px solid #e0d8d0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.review-card:hover {
  box-shadow: 0 6px 20px rgba(90, 74, 58, 0.12);
  transform: translateY(-2px);
}

.review-stars {
  color: #c9a84c;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-quote-icon {
  color: #c9b8a3;
  font-size: 2rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.review-text {
  color: #555;
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}

.reviews-cta {
  text-align: center;
  color: #8a7560;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Site Map Section ===== */
.sitemap-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 40px;
  padding: 32px 24px;
  background: #f5f0eb;
  border-radius: 14px;
  border-top: 3px solid #c9b8a3;
}

.sitemap-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sitemap-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

.sitemap-links-col,
.sitemap-social-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sitemap-heading {
  color: #5a4a3a;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  border-bottom: 2px solid #c9b8a3;
  padding-bottom: 6px;
}

.sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sitemap-links li a {
  color: #8a7560;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.sitemap-links li a:hover {
  color: #5a4a3a;
  text-decoration: underline;
}

.sitemap-social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 4px;
}

.sitemap-social-link {
  color: #8a7560;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
}

.sitemap-social-link:hover {
  color: #5a4a3a;
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .sitemap-section {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .sitemap-social-icons {
    justify-content: center;
  }

  .sitemap-links {
    align-items: center;
  }
}

/* ===== Pagination Bar ===== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0 8px;
  margin-top: 8px;
}

.pagination-btn {
  padding: 10px 24px;
  background-color: #8a7560;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #5a4a3a;
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  background-color: #c9b8a3;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-info {
  color: #5a4a3a;
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
}

/* ===== Index Page: Helper Cards Grid (4 per row, 2 rows) ===== */
.home-helpers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .home-helpers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .home-helpers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .home-helpers-grid {
    grid-template-columns: 1fr;
  }
}
