/* ============================================
   Custom CSS for Moogle Stage Lighting Theme
   Additional styles matching original site
   ============================================ */

/* Ensure logo displays correctly */
.site-logo img,
.hc_box .logo img {
    max-height: 0.5rem;
    width: auto;
}

/* Make sure mobile logo is sized correctly */
.hm_b .logo img {
    max-height: 30px;
    width: auto;
}

/* Header scroll state */
.head_pc.scrolled {
    background-color: #040000 !important;
}

/* Mobile navigation show state */
.md-mob_sideNav.show {
    right: 0;
    opacity: 1;
}

/* Search overlay show state */
.md-search_form.show {
    display: block;
}

/* Video hover effects */
.video-item {
    transition: all 0.3s ease;
}

.video-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* News card animations */
.news-item {
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Category badge styling */
.category {
    pointer-events: none;
}

/* Button hover states */
.btn:hover,
.load-more a:hover {
    background-color: #9fca39 !important;
    border-color: #9fca39 !important;
    color: #fff !important;
}

/* WhatsApp button pulse animation */
.md-sideNav .side_i:first-child .icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(159, 202, 57, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(159, 202, 57, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(159, 202, 57, 0);
    }
}

/* Back to top button */
#goTop {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#goTop.show {
    opacity: 1;
    visibility: visible;
}

/* Fix for WordPress admin bar */
body.admin-bar .head_pc {
    top: 32px;
}

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

/* Custom scrollbar for mobile nav */
.md-mob_sideNav .ul1::-webkit-scrollbar {
    width: 10px;
}

.md-mob_sideNav .ul1::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #535353;
}

.md-mob_sideNav .ul1::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #ededed;
}

/* Dropdown menu styling for WordPress */
.main-navigation .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
    margin-left: 8px;
    vertical-align: middle;
}

/* Search form overlay styling */
.md-search_form {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.md-search_form form {
    width: 100%;
    position: absolute;
    top: 20%;
    z-index: 402;
}

.md-search_form .inp {
    width: 10rem;
    border-radius: 1rem;
    max-width: 75%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.md-search_form input {
    width: 100%;
    height: 0.5rem;
    min-height: 40px;
    border: none;
    outline: none;
    padding: 0 0.5rem 0 0.2rem;
    font-size: 0.16rem;
}

.md-search_form .btn {
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.4rem;
    min-width: 30px;
    height: 0.4rem;
    min-height: 30px;
    border-radius: 50%;
    background-color: #9fca39;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    cursor: pointer;
    border: none;
    outline: none;
}

.md-search_form .mask {
    position: fixed;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Widget styling */
.widget {
    margin-bottom: 0.3rem;
}

.widget-title {
    font-size: 0.18rem;
    color: #595757;
    margin-bottom: 0.15rem;
    padding-bottom: 0.1rem;
    border-bottom: 2px solid #9fca39;
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    height: 0.35rem;
    min-height: 35px;
    padding: 0 0.12rem;
    border: 1px solid #c4c4c4;
    border-radius: 5px;
    background-color: #fff;
    font-size: 0.14rem;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #9fca39;
    outline: none;
}

textarea {
    height: 1.12rem;
    padding: 0.12rem;
    resize: vertical;
}

/* Button styling */
button,
input[type="submit"] {
    background-image: linear-gradient(to bottom, #3fa9ff, #1890ff);
    color: #fff;
    padding: 0 0.4rem;
    border-radius: 0.05rem;
    height: 0.4rem;
    min-height: 40px;
    border: none;
    cursor: pointer;
    font-size: 0.16rem;
    transition: all 0.3s;
}

button:hover,
input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 144, 255, 0.3);
}

/* Image alignment in content */
.alignleft {
    float: left;
    margin-right: 0.2rem;
    margin-bottom: 0.1rem;
}

.alignright {
    float: right;
    margin-left: 0.2rem;
    margin-bottom: 0.1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 0.2rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .md-sideNav {
        display: none !important;
    }
    
    .home .ho_i {
        width: 100%;
        height: 50vh;
    }
    
    .video-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .news-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .video-list {
        grid-template-columns: 1fr;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .foot_1 .ft1_code {
        flex-direction: column;
        text-align: center;
    }
    
    .foot_1 .co_ri {
        margin-left: 0;
        margin-top: 0.3rem;
        text-align: center;
    }
}
