/*
Theme Name:         EntrepreneurX Child
Theme URI:          https://demo.themovation.com/entrepreneur
Author:             BeijingTickets
Author URI:         beijingtickets.cn
Description:        EntrepreneurX 子主题
Version:            1.0.0
Template:           entrepreneurx
Text Domain:        entrepreneurx-child
Domain Path:        /languages/
*/

/* 强制所有标题元素使用衬线字体并加粗（移动端兼容） */
h1, h2, h3, h4, h5, h6,
[class*="title"], 
[class*="heading"],
[class*="headline"] {
    font-family: Georgia, Times, "Times New Roman", serif, "PingFang SC", "Microsoft YaHei", sans-serif !important;
    font-weight: 700 !important;
    
    /* 关键：模拟加粗（移动端生效） */
    -webkit-text-stroke: 0.5px currentColor;  /* 描边模拟粗度 */
}

/* ===== 修复 Elementor Testimonial 头像为圆形 ===== */

/* 1. 强制头像图片本身为圆形 */
.elementor-testimonial__image img,
.elementor-testimonial-image img {
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    display: inline-block !important;
}

/* 2. 如果头像外层有容器，确保容器不干扰 */
.elementor-testimonial__image,
.elementor-testimonial-image {
    border-radius: 50% !important;
    overflow: hidden !important;
    width: 80px !important;
    height: 80px !important;
    display: inline-block !important;
    line-height: 0 !important;
}

/* 3. 防止主题或插件覆盖样式 */
.elementor-testimonial__image img[src*="gravatar"],
.elementor-testimonial-image img[src*="gravatar"],
.elementor-testimonial__image img[class*="avatar"],
.elementor-testimonial-image img[class*="avatar"] {
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* =========================================
   子主题样式继承父主题，以下为自定义样式
   ========================================= */

/* 示例：修改网站标题颜色 */
.site-title a {
    color: #333;
}

/* 示例：修改按钮颜色 */
.btn-primary {
    background-color: #ff6600;
    border-color: #ff6600;
}

/* ===== 表单内嵌样式（强制生效） ===== */
.cf7-two-column {
    display: flex !important;
    gap: 20px !important;
    margin-bottom: 16px !important;
}

.cf7-col {
    flex: 1 !important;
    min-width: 0 !important;
}

.cf7-col label,
.cf7-full-width label {
    display: block !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #333 !important;
    margin-bottom: 5px !important;
}

.cf7-col input,
.cf7-col input[type="text"],
.cf7-col input[type="tel"],
.cf7-full-width textarea,
.wpcf7-form input,
.wpcf7-form textarea {
    width: 100% !important;
    padding: 11px 15px !important;
    border: 1.5px solid #dcdcdc !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.cf7-col input:focus,
.cf7-col input[type="text"]:focus,
.cf7-col input[type="tel"]:focus,
.cf7-full-width textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: #c0392b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08) !important;
}

.cf7-full-width {
    margin-bottom: 16px !important;
}

.cf7-full-width textarea,
.wpcf7-form textarea {
    height: 130px !important;
    resize: vertical !important;
    font-family: inherit !important;
}

.cf7-submit-wrapper {
    text-align: center !important;
    margin-top: 8px !important;
}

.cf7-submit-wrapper input[type="submit"],
.wpcf7-form input[type="submit"] {
    background: #c0392b !important;
    color: #fff !important;
    border: none !important;
    padding: 13px 52px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.25s !important;
    width: auto !important;
    min-width: 160px !important;
}

.cf7-submit-wrapper input[type="submit"]:hover,
.wpcf7-form input[type="submit"]:hover {
    background: #a93226 !important;
}

@media (max-width: 600px) {
    .cf7-two-column {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .cf7-submit-wrapper input[type="submit"],
    .wpcf7-form input[type="submit"] {
        width: 100% !important;
        padding: 14px 20px !important;
        min-width: unset !important;
    }
}