/*
Theme Name: Huizi Dairy
Theme URI: https://www.sxyhz.cn
Author: Your Name
Author URI: https://your-site.com
Description: Huizi Dairy WordPress Theme - Full screen scroll style, all content in English
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: huizi
*/

/* ============================================
   WordPress Base Overrides
   ============================================ */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress Menu Current Item */
#nav ul li.current-menu-item > a h3,
#nav ul li.current_page_item > a h3 {
    color: #c9a96e;
}

/* Mobile Menu Current Item */
#m_nav .m_nav_list li.current-menu-item > a h3,
#m_nav .m_nav_list li.current_page_item > a h3 {
    color: #c9a96e;
}

/* Post Images Responsive */
.wp-post-image {
    max-width: 100%;
    height: auto;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.pagination .current {
    background: #c9a96e;
    color: #fff;
    border-color: #c9a96e;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #333;
}

.breadcrumb a:hover {
    color: #c9a96e;
}

/* News List */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    margin-bottom: 30px;
}

/* Page Container */
.page-container {
    padding-top: 100px;
    min-height: 100vh;
}

.page-title {
    text-align: center;
    padding: 60px 0 40px;
}

.page-title h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

/* Admin Bar Fix */
.admin-bar #header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #header {
        top: 46px;
    }
}

/* Search Dialog */
.search-dialog-box form.search {
    margin: 0;
    padding: 0;
}

.search-dialog-box .search-input input[type="text"] {
    outline: none;
}

/* Footer Links */
.foot_link dd .box a {
    display: inline-block;
    margin-right: 15px;
    color: #999;
}

.foot_link dd .box a:hover {
    color: #c9a96e;
}

/* Logo Size */
#logo img {
    max-height: 50px;
    width: auto;
}

#m_logo img {
    max-height: 40px;
    width: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .page-container {
        padding-top: 60px;
    }
}

/* ============================================
   Header Fixes - Match Original Style
   ============================================ */

/* Force header visible */
#header {
    opacity: 1 !important;
    background: transparent !important;
}

/* Flex layout for nav */
#nav {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

#nav > ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

#nav > ul > li {
    flex-shrink: 0;
    position: relative;
}

/* Top menu box - compact right side */
.top_menu_box {
    display: flex !important;
    margin-left: auto;
    gap: 15px;
    flex-shrink: 0;
    width: auto !important;
    min-width: unset !important;
    align-items: center;
}

.top_menu {
    flex-shrink: 0;
    position: relative;
}

/* Icon buttons */
.top_menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.top_menu a:hover {
    background: rgba(0,0,0,0.8);
}

.top_menu a i {
    font-size: 18px;
    display: inline-block;
}

/* Phone dropdown */
.btn_phone .sub {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    display: none;
}

.btn_phone:hover .sub {
    display: block;
}

/* Search dialog */
.search-dialog-box {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.search-dialog-box.active {
    display: block;
}

.search-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.search-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
}

/* Mobile menu */
#m_nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    z-index: 9998;
    overflow-y: auto;
}

#m_nav.act {
    display: block;
}

.nav_mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
}

#m_nav.act + .nav_mask {
    display: block;
}

/* Menu handler */
.menu-handler {
    cursor: pointer;
    padding: 10px;
}

.menu-handler .box {
    width: 24px;
    height: 18px;
    position: relative;
}

.menu-handler .burger {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    position: absolute;
    transition: all 0.3s;
}

.burger-1 { top: 0; }
.burger-2 { top: 8px; }
.burger-3 { top: 16px; }

.menu-handler.active .burger-1 {
    transform: rotate(45deg);
    top: 8px;
}

.menu-handler.active .burger-2 {
    opacity: 0;
}

.menu-handler.active .burger-3 {
    transform: rotate(-45deg);
    top: 8px;
}

/* ============================================
   Video Popup - Match Original Style
   ============================================ */

.vwrap {
    display: none;
    z-index: 1040000;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

.vwrap .videobtg {
    z-index: 900;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #000;
    opacity: 0.8;
    filter: alpha(opacity=80);
    overflow: hidden;
}

.vwrap .videobox {
    z-index: 1200;
    width: 1000px;
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: -500px;
    object-fit: cover;
    transform: translateY(-50%);
}

.vwrap .videobox #videobox {
    width: 100%;
    display: inline-block;
    background: #000;
}

.vwrap .videobox #videobox .img_hezi {
    padding-bottom: 60% !important;
}

.vwrap .videobox #videobox video {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#videobox_wrapper {
    height: 100% !important;
}

.vwrap .close {
    z-index: 999;
    width: 31px;
    height: 31px;
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: -42px;
    text-align: center;
}

.vwrap .close i {
    display: block;
    width: 31px;
    height: 31px;
    -webkit-transition: 400ms;
    transition: 400ms;
}

.vwrap .close i svg {
    transition: .6s;
}

.vwrap .close:hover i svg {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

@media(max-width: 992px) {
    .vwrap .videobox {
        width: 94%;
        left: 3%;
        margin-left: 0;
    }
    .vwrap .close {
        right: 0;
        top: -35px;
    }
}

/* ============================================
   Section Base Styles
   ============================================ */
.s_about,
.s_culture,
.s_categories,
.s_news {
    background: #ffffff;
    position: relative;
}

.s_about .s_tit,
.s_culture .s_tit,
.s_categories .s_tit,
.s_news .s_tit {
    text-align: center;
    padding: 60px 0 40px;
}

.s_about .s_tit h5,
.s_culture .s_tit h5,
.s_categories .s_tit h5,
.s_news .s_tit h5 {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.s_about .s_tit p,
.s_culture .s_tit p,
.s_categories .s_tit p,
.s_news .s_tit p {
    font-size: 18px;
    color: #666;
}

.s_about,
.s_culture,
.s_categories,
.s_news {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s_about .m,
.s_culture .m,
.s_categories .m,
.s_news .m {
    width: 100%;
    text-align: center;
}
