/*
 Theme Name: Kadence Child Theme
 Template: kadence
 Version: 1.0
*/
/* Custom language switcher */

.custom-language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lang-btn {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
}

.lang-btn:hover {
    background-color: #f8f9fa;
    color: #007cba;
    border-color: #e0e0e0;
}

.lang-btn.active {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

/* Optional: Add flags or special styling for each language */
.lang-btn[data-lang="en"]::before {
    content: "🇺🇸 ";
}

.lang-btn[data-lang="cn"]::before {
    content: "🇨🇳 ";
}

.lang-btn[data-lang="hk"]::before {
    content: "🇭🇰 ";
}

/* Positioning in header */
.custom-language-switcher {
    margin-left: auto; /* Pushes it to the right */
}
.custom-language-switcher {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

/* Make sure it displays properly in middle row */
.header-middle-row .custom-language-switcher {
    display: flex !important;
    align-items: center;
    order: 2; /* Adjust order within the middle row */
    margin-left: 30px; /* Space between logo and switcher */
}
/* For Contact page in En */
.consultation-options {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-intro {
    text-align: center;
    margin-bottom: 50px;
}

.section-intro h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.section-intro p {
    font-size: 1.2em;
    color: #7f8c8d;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.option-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e8e8e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.option-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.option-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.option-desc {
    margin-bottom: 15px;
    line-height: 1.5;
}

.option-details {
    margin-bottom: 25px;
    color: #7f8c8d;
    font-size: 0.95em;
}

.option-action {
    margin-top: 20px;
}

.action-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
}

.phone-btn {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.phone-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border-color: #25D366;
    margin-top: 15px;
}

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

.booking-btn {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.booking-btn:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.qr-code {
    margin: 15px 0;
}

.qr-code img {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.qr-code p {
    font-size: 0.9em;
    margin-top: 8px;
    color: #7f8c8d;
}

.wechat-id {
    margin-top: 10px;
    font-size: 0.9em;
}

.booking-note {
    margin-top: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
}

.consultation-benefits {
    text-align: center;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
}

.consultation-benefits h3 {
    margin-bottom: 25px;
    color: #2c3e50;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.benefit {
    padding: 10px 0;
}

.cta-text {
    font-size: 1.1em;
    color: #2c3e50;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .section-intro h2 {
        font-size: 2em;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
}
/* For 2 Chinese Contact Pages*/
/* Contact Page Styles - FIXED QR CODE CENTERING */
.consultation-options {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-intro {
    text-align: center;
    margin-bottom: 50px;
}

.section-intro h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.section-intro p {
    font-size: 1.2em;
    color: #7f8c8d;
}

/* 2×2 Grid Layout */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.option-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e8e8e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all content horizontally */
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.option-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.option-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #2c3e50;
    width: 100%; /* Ensure full width for proper centering */
}

.option-desc {
    margin-bottom: 15px;
    line-height: 1.5;
    width: 100%; /* Ensure full width for proper centering */
}

.option-details {
    margin-bottom: 25px;
    color: #7f8c8d;
    font-size: 0.95em;
    width: 100%; /* Ensure full width for proper centering */
}

.option-action {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    width: 100%; /* Take full width */
}

.action-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    text-align: center;
}

.phone-btn {
    background: #3498db;
    color: white;
    border-color: #3498db;
    width: auto; /* Let button size naturally */
}

.phone-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border-color: #25D366;
    margin-top: 15px;
    width: auto; /* Let button size naturally */
}

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

.booking-btn {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    width: auto; /* Let button size naturally */
}

.booking-btn:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* QR Code Styles - PERFECTLY CENTERED */
.qr-code {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    width: 100%;
}

.qr-code img {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
    display: block;
    margin: 0 auto; /* Center the image */
}

.qr-code p {
    font-size: 0.9em;
    margin-top: 8px;
    color: #7f8c8d;
    text-align: center;
    width: 100%;
}

.wechat-id {
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
    width: 100%;
}

.booking-note {
    margin-top: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    width: 100%;
}

.consultation-benefits {
    text-align: center;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
}

.consultation-benefits h3 {
    margin-bottom: 25px;
    color: #2c3e50;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.benefit {
    padding: 10px 0;
}

.cta-text {
    font-size: 1.1em;
    color: #2c3e50;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .section-intro h2 {
        font-size: 2em;
    }
    
    .option-action {
        margin-top: 20px;
    }
}
/* About Page Team Styles - FIXED HEADSHOT VERSION */
/* Contact Page Consultation Options - FIXED QR CODE ALIGNMENT */
/* About Page Team Styles - FIXED HEADSHOT VERSION */
.team-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.section-header p {
    font-size: 1.2em;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.consultant-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.consultant-photo {
    flex: 0 0 180px;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    padding: 20px;
    background: #f8f9fa; /* Light background if image doesn't fill space */
}

.consultant-photo img {
    width: 100%;
    height: auto; /* Let height adjust naturally */
    max-width: 140px; /* Control maximum size */
    border-radius: 8px; /* Optional: rounded corners */
    object-fit: contain; /* Show entire image without cropping */
}

.consultant-info {
    flex: 1;
    padding: 30px;
}

.consultant-info h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #2c3e50;
}

.consultant-title {
    font-size: 1.1em;
    color: #3498db;
    margin-bottom: 8px;
    font-weight: 600;
}

.consultant-license {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #7f8c8d;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid #e8e8e8;
}

.consultant-specialties {
    margin-bottom: 15px;
}

.specialty-tag {
    display: inline-block;
    background: #e8f4fd;
    color: #2980b9;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #d6eaf8;
}

.consultant-bio {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.consultant-details p {
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #666;
}

.consultant-details strong {
    color: #2c3e50;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .consultant-card {
        flex-direction: column;
        text-align: center;
    }
    
    .consultant-photo {
        flex: 0 0 auto;
        padding: 30px 20px 0 20px;
        background: none;
    }
    
    .consultant-photo img {
        max-width: 200px; /* Larger on mobile */
    }
    
    .consultant-info {
        padding: 25px 20px;
    }
    
    .section-header h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .consultant-info {
        padding: 20px 15px;
    }
    
    .consultant-photo img {
        max-width: 180px;
    }
}

/* Remove ALL page titles sitewide */
.entry-header,
.page-header,
.wp-block-post-title,
h1.entry-title,
.page-title,
.post-title,
.single-post-header,
.entry-title {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
}

/* Ensure no empty space remains */
.page .entry-header,
.single .entry-header,
.archive .page-header {
    display: none !important;
}

/* Specific to Kadence theme */
.entry-header-inner,
.page-header-inner {
    display: none !important;
}
/* Footer Styling */
.site-footer {
    background: #2c3e50 !important;
    color: white !important;
}

.footer-widgets .widget-title {
    color: #3498db !important;
}

.footer-bottom {
    background: #1a252f !important;
    border-top: 1px solid #34495e !important;
}

/* Fix Kadence logo size */
.site-branding img,
.kadence-site-branding img,
.site-header .custom-logo,
.kadence-header-logo .custom-logo {
    max-height: 60px !important;
    height: auto !important;
    width: auto;
}

/* Tablet */
@media (max-width: 1024px) {
    .kb-post-card { flex: 0 0 calc(50% - 20px); }
}

/* Mobile */
@media (max-width: 768px) {
    .kb-post-card { flex: 0 0 100%; }
}
