/*
 * TRUSKEYS — SHARED PAGE COMPONENTS
 * Enfold Child Theme / css/09-components.css
 *
 * Scope:
 * - Tabs
 * - Text block spacing utility
 * - Column hover treatment
 * - Custom Contact / About buttons
 * - Gallery layout
 * - Contact form submit button
 * - Portfolio grid
 * - Socket copyright alignment
 * - Why Truskeys CTA row
 * - Featured Products image/layout rules
 *
 * Hero, Header, Mega Menu, TranslatePress and Burger Menu
 * are managed in their own dedicated files.
 */

/* =========================================================
   01. TABS, TEXT, BUTTONS, GALLERY, FORMS, PORTFOLIO, SOCKET
   ========================================================= */

/*----------------------------------------
// CSS - Tabs pill shape
//--------------------------------------*/
      /* Tab Title方框形状、背景颜色定义 */  
    .av-tab-section-tab-title-container a {
        border-radius: 50px;
        padding: 0px!important;
        margin-top: 0px;
       margin-bottom: 20px;
        overflow: hidden;
        border: 3px solid white;
        width: 180px;
        height: 50px;
    }
  /* Tab Title方框间距定义 */ 
   #top .av-section-tab-title {
        margin-right: 30px!important;   
        margin-left: 30px!important;           

}
    .av-pill-tabs .av-outer-tab-title {
        padding: 0px 0px!important;
        margin: 0px!important;
    }
 /* Tab Title 框内文字定义 */  
       .av-inner-tab-title {
        color: #FFFFFF;        
         line-height: 1em;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0.02em;
        font-family: Helvetica, sans-serif;
        text-transform: none;
        width: 180px!important;
        padding: 0px 0 8px 0!important;
     }

@media only screen and (max-width: 767px) {
    
    /* 1. 增加药丸内部的呼吸间隙 */
    .av-tab-section-tab-title-container a {
        width: auto !important; 
        min-width: 70px !important;    
        height: 35px !important;        /* 稍微加高，增加上下间隙 */
        padding: 0 20px !important;     /* 将左右间隙从 12px 增加到 18px */
        margin-bottom: 12px !important;
        display: flex !important;       
        align-items: center !important; 
        justify-content: center !important; 
        border-width: 2px !important;
    }

    /* 2. 这里的代码保持不变 */
    #top .av-section-tab-title {
        margin-right: 4px !important;   
        margin-left: 4px !important;
        padding: 0 !important;
        float: none !important;
        display: inline-block !important;
    }

    /* 3. 这里的代码保持不变 */
    .av-inner-tab-title {
        width: auto !important;         
        font-size: 11px !important;     
        color: #FFFFFF !important;
        line-height: 1 !important;      
        padding: 0 !important;          
        margin: 0 !important;
        text-align: center !important;
        white-space: nowrap !important; 
    }

    /* 4. 这里的代码保持不变 */
    .av-tab-section-tab-title-container {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: nowrap !important; /* 确保绝对不换行 */
    }
}

/* CSS - Active tab font slyle */
.av-active-tab-title {
background: #1B264F !important;
}

/* css text block margin增加文字边距*/
.css-text-1 {
margin: 15px 15px 30px 15px; 
}
 /*----------------------------------------
// Column Hover
//--------------------------------------*/
.ccs-column-1:hover {
opacity: 1;
transition: all .5s ease;
color:white!important;
background: #008cd1!important;
}
.ccs-column-1{
transition: all .5s ease;
}

/* Button title font 自定义Contact按钮文字效果 */
.my-custom-button-1  a.avia-button .avia_iconbox_title {
     font-size:32px;
     font-weight: 600;
     color: #192f58;
 }
/* Buttont 自定义About页按钮文字效果 */
.my-custom-button-2 a.avia-button {
     border-radius: 0px!important;
     padding: 15px 15px 15px 15px!important;
}
/* Button hover 鼠标悬停效果 */
.my-custom-button-2 a.avia-button:hover {
     border: none !important;
     background: #008cd1!important;
}
/* Button title font 悬停文字效果 */
.my-custom-button-2  a.avia-button.avia-icon_select-no.avia-size-large:hover {
     font-size:15px;
     color: white!important;
 }

/*----------------------------------------
// CSS - Gallery style -1
//---------gallery缩略图放左边---------------*/

.av-gallery-style-1.avia-gallery {
display: flex;
flex-direction: row-reverse;
}
.av-gallery-style-1 .avia-gallery-big {
flex-basis: 100%;
}
.av-gallery-style-1 .avia-gallery-thumb {
display: flex;
flex-wrap: wrap;
flex-basis: 20.2%;
align-self: flex-start;
}
.av-gallery-style-1 .avia-gallery-thumb a {
flex-basis: 100%;
width: 100%;
}
/*移除gallery缩略图边框*/
#top div .avia-gallery .avia-gallery-big {
   border-style: none;
   padding-left: 0px;
   padding-bottom: 0px;
}
#top #wrap_all .avia-gallery .avia-gallery-thumb a img {
   border-style: none;
   padding-top: 0px;
   padding-left: 0px;
}

/*更改contact form-submit边框及样式*/
input.button{
width:100%!important;
border:none!important;
color: #ffffff!important;
background: #008cd1!important;
}
input.button:hover {
background: #192f58!important;
}

/*----------------------------------------
// CSS - Portfolio Grid

/* add padding--增加右侧间距 */ 
.grid-entry .inner-entry {
    margin-right: 30px;
    margin-top: 30px;
}
  /* Remove portfolio arrow--去掉箭头 */
  .grid-image img {
    display:inline-block;
}
/* adjust portfolio excerpt  --调整字体*/
/* Excertp Font--字体/颜色*/ 
.grid-entry-excerpt.entry-content {
font-size: 14px;
color: #192f58;
font-style: normal;
}
/* adjust portfolio title  --调整字体*/
.grid-entry-title {
    opacity: 1;
    color: #008cd1 !important;
    background: transparent;
    font-weight: 700;
    font-size: 18px !important;
}
/* adjust portfolio hegiht --更改高度*/
.grid-content {
    min-height: 130px;
}
/* change portfolio Border --更改边框样式*/
.grid-entry .inner-entry { 
   border-radius:22px 22px 0px 0px!important;
box-shadow: 0px 0px 15px 0px #e2e2e2;
}  
/* add portfolio image radius --增加圆角*/
.grid-image img {
border-radius: 22px 22px 0px 0px!important;
}
.grid-image:hover .image-overlay {
border-radius: 22px 0px 0px 0px!important;
}

#socket .copyright {
    width: 100%!important;
    text-align: center!important;
}


/* =========================================================
   TABS — FRACTIONAL WIDTH 767px < width < 768px
   Reuses the established mobile tab appearance.
   ========================================================= */

@media screen and (767px < width < 768px) {

    /* ==== 766px baseline copied: Tabs mobile appearance (source line 1533) ==== */
    
    /* 1. 增加药丸内部的呼吸间隙 */
    .av-tab-section-tab-title-container a {
        width: auto !important; 
        min-width: 70px !important;    
        height: 35px !important;        /* 稍微加高，增加上下间隙 */
        padding: 0 20px !important;     /* 将左右间隙从 12px 增加到 18px */
        margin-bottom: 12px !important;
        display: flex !important;       
        align-items: center !important; 
        justify-content: center !important; 
        border-width: 2px !important;
    }

    /* 2. 这里的代码保持不变 */
    #top .av-section-tab-title {
        margin-right: 4px !important;   
        margin-left: 4px !important;
        padding: 0 !important;
        float: none !important;
        display: inline-block !important;
    }

    /* 3. 这里的代码保持不变 */
    .av-inner-tab-title {
        width: auto !important;         
        font-size: 11px !important;     
        color: #FFFFFF !important;
        line-height: 1 !important;      
        padding: 0 !important;          
        margin: 0 !important;
        text-align: center !important;
        white-space: nowrap !important; 
    }

    /* 4. 这里的代码保持不变 */
    .av-tab-section-tab-title-container {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: nowrap !important; /* 确保绝对不换行 */
    }
}


/* =========================================================
   02. WHY TRUSKEYS CTA ROW
   ========================================================= */

/* Why Truskeys CTA: equal-width, non-stretch responsive layout */
#top .tk-cap-actions{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:12px!important;width:100%!important;margin:12px auto 0!important;}
#top .tk-cap-actions .tk-cta,#top .tk-cap-actions .tk-cta-secondary{flex:0 1 200px!important;width:200px!important;min-width:0!important;max-width:calc(50% - 6px)!important;min-height:48px!important;padding:10px 18px!important;box-sizing:border-box!important;white-space:nowrap!important;}
@media(max-width:520px){#top .tk-cap-actions .tk-cta,#top .tk-cap-actions .tk-cta-secondary{flex:0 0 auto!important;width:min(210px,100%)!important;max-width:100%!important;}}

/* Why Truskeys CTA: override later secondary-button rules */
html body#top #wrap_all .tk-cap-actions a.tk-cta{flex:0 1 200px!important;width:200px!important;min-width:0!important;max-width:calc(50% - 6px)!important;}
@media(max-width:520px){html body#top #wrap_all .tk-cap-actions a.tk-cta{flex:0 0 auto!important;width:min(210px,100%)!important;max-width:100%!important;}}



/* ================= END SHARED COMPONENTS CSS ================= */
