/*
Theme Name: Universal Child
Theme URI: https://example.com/
Description: Neve тақырыбына арналған child theme
Author: Сіз
Template: neve
Version: 1.0
*/

::selection {
		background: #FFCF2C;
		color: black;
}

/*top контайнері*/
/*top head*/
.header-top-inner .row {
    display: block !important;
}

@media (max-width: 959px) {
			.header-top-inner .row {
				display: grid;
			}
		.desktop-left {
			width: auto;
			}
}
.top-mak {
	display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}
.top-mak00 {
	display: flex;
    align-items: center;
	gap: 20px;
}
.date00 {
	font-size: 12px;
    font-weight: bold;
}

.top-mak00-1 {
	display: flex;
    align-items: center;
	gap: 10px;
}

/*text-headling00*/
.text-headling00 {
	border-bottom: 2px solid var(--nv-primary-accent);
}


/* Secondary menu dropdown enable */
.secondary-menu-wrapper,
.secondary-menu-wrapper * {
    list-style: none;
    margin: 0;
    padding: 0;
}

.secondary-menu-wrapper ul {
	display: flex;
    flex-wrap: wrap;
    margin-right: calc(var(--spacing) / 2 * -1);
    margin-left: calc(var(--spacing) / 2 * -1);
	text-transform: uppercase;
}

.secondary-menu-wrapper > li {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.secondary-menu-wrapper li a {
    text-decoration: none;
    padding: 5px 10px;
    display: block;
	font-size: 12px;
	font-weight: bold;
}

/* 🔹 Активті бет көк түсте болу үшін */
        .secondary-menu-wrapper .current-menu-item > a,
        .secondary-menu-wrapper .current-menu-parent > a,
		.secondary-menu-wrapper .current-menu-parent > a span {
            color: var(--nv-c-1);
        }

/* Submenu style */
.secondary-menu-wrapper .sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
}

.secondary-menu-wrapper .menu-item-has-children:hover > .sub-menu {
        display: block;
    }
.secondary-menu-wrapper .sub-menu li {
    display: block;
    width: 100%;
}

.secondary-menu-wrapper .sub-menu li a {
    padding: 8px 14px;
    white-space: nowrap;
	color: var(--nv-text-color);
}
.secondary-menu-wrapper li a:hover,
.secondary-menu-wrapper .sub-menu li a:hover {
	color: var(--nv-c-1);
}
.secondary-menu-wrapper .menu-item-has-children > a {
    position: relative;
    padding-right: 22px; /* svg үшін орын */
}

/* SVG стрелка */
.secondary-menu-wrapper .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background-size: 8px 8px;
    background-repeat: no-repeat;

    /* SVG — data URI форматында */
    background-image: url("data:image/svg+xml,%3Csvg fill='%23ffffff' aria-label='Dropdown' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z'/%3E%3C/svg%3E");
    opacity: 0.7;
}

/* Тек touchscreen құрылғыларда hover толық өшеді */
@media (hover: none) and (pointer: coarse) {
    .secondary-menu-wrapper .menu-item-has-children:hover > .sub-menu {
        display: none !important;
    }
}

@media (max-width: 959px) {
	.secondary-menu-wrapper ul {
		display: block;
	}
	.secondary-menu-wrapper .current-menu-item > a, .secondary-menu-wrapper .current-menu-parent > a, .secondary-menu-wrapper .current-menu-parent > a span {
		color: var(--nv-primary-accent);
	}
	.secondary-menu-wrapper li a {
		color: var(--nv-text-color);
	}
	.secondary-menu-wrapper li a:hover,
	.secondary-menu-wrapper .sub-menu li a:hover {
	color: var(--nv-primary-accent);
	}
	.secondary-menu-wrapper .sub-menu {
		display: none;
		padding-left: 10px;
		position: relative;
        background: none;
        box-shadow: none;
	}
	.secondary-menu-wrapper .submenu-open > .sub-menu {
    	display: block;
	}
	.secondary-menu-wrapper .menu-item-has-children > a {
		position: relative;
		padding-right: 24px; /* стрелкаға орын */
	}
	.secondary-menu-wrapper .menu-item-has-children > a::after {
		content: "";
		position: absolute;
		right: 4px;
		top: 50%;
		width: 20px;
        height: 20px;
		transform: translateY(-50%);
		background-size: 14px 14px;
		background-repeat: no-repeat;
		background-image: url("data:image/svg+xml,%3Csvg fill='%23000000' aria-label='Dropdown' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z'/%3E%3C/svg%3E");
    	opacity: 1;
		pointer-events: auto;
		cursor: pointer;
		background-position: center;
	}
	.secondary-menu-wrapper .menu-item-has-children.submenu-open > a::after {
        transform: translateY(-50%) rotate(180deg);
        opacity: 1;
    }
}


/*mobile*/
.mobile-burger {
    display: none;
    font-size: 20px;
    background: none;
    border: none;
    color: #000;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 9999;
}
.mobile-burger:hover {
	background: none;
	color: #000;
}

/* MOBILE MENU PANEL (NOT FIXED) */
.mobile-menu-panel {
    background: #ebebeb;
    color: #333333;
    padding: 20px;
    width: 100%;
    display: none;
    position: absolute;
    z-index: 999;
    top: 50px;
	box-shadow: 0px 10px 20px #1f1f1f6e;
}

.mobile-menu-panel.open {
    display: block !important;
}

.mm-item {
    margin-bottom: 20px;
}

/* MOBILE MODE */
@media (max-width: 959px) {
    .top-mak {
        display: none !important;
    }

    .mobile-burger {
        display: block !important;
    }
}


/* Search Icon */
.header-search {
    position: relative;
    display: inline-block;
}
#search-toggle {
	display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer !important;
}
#search-toggle img {
		font-size: 16px;
		cursor: pointer;
		width: 15px;
}
.search-box {
    position: absolute;
    top: 100%; /* кнопканың астынан шығады */
    right: 0;
    width: 500px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 9999;
}
.search-box.hidden {
    display: none;
}
.search-box input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-results-item {
		border-bottom: 1px solid #e1e1e1;
    padding: 10px 0;
}
.search-results-item a {
		padding: 0 5px;
		display: flex;
}
.search-results-item a img {
		width: 100px;
		height: 100px;
		max-width: none;
}
.search-results-item .info {
		font-size: 15px;
    	line-height: 1.4;
		padding: 0 10px;
	    color: var(--nv-text-color);
}
.search-results-item .info .title {
		margin-bottom: 5px;
}
.search-results-item .info .date {
		font-size: 12px;
		padding: 2px 8px;
		border-radius: 6px;
		position: absolute;
		transition: 0.3s;
}
.search-results-item a:hover .date {
		background: #3a5997;
		color: white;
}
.search-results-item h4 {
		margin-bottom: 0px;
	    color: var(--nv-text-color);
}
.search-results-item a:hover {
		color: var(--nv-secondary-accent);
		transition: 0.3s;
}
@media (max-width: 959px) {
    .search-box {
        left: 0 !important;
		min-width: 330px !important;
		width: auto !important;
    }
	#search-toggle {
		background: var(--nv-primary-accent);
		padding: 5.5px 4px;
		border-radius: 2px;
		color: white;
		font-size: 15px;
	}
	button.uic-user-icon {
		padding: 1px 5px !important;
	}
	.uic-user-icon {
		background: var(--nv-primary-accent) !important;
		padding: 3.5px 5px !important;
    	border-radius: 2px !important;
	}
	.uic-user-icon:hover {
		color: white;
	}
	.uic-dropdown {
		left: 1px;
	}
}



/*conent*/
@media (max-width: 781px) {
	.post-flex00 {
		flex-direction: column-reverse;
	}
}



/*category post*/
.blog01 {
	width: 100%;
}
@media (min-width: 960px) {
    .neve-main>.news-archive .col {
		max-width: 100% !important;
    }
}
.news-grid-attes {
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 20px;
}
.news-it00 a {
    border: 1px solid #dadada;
    width: 100%;
    display: block;
    padding: 15px;
    border-radius: 15px;
    height: 100%;
	transition: all 0.3s;
}
.post-img00 {
    height: 300px;
    border-radius: 10px;
    margin-bottom: 10px;
    background-image: url(/wp-content/themes/universal-child/assets/no-img.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.post-img00 img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}
.news-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--nv-text-color);
}
.news-date {
    color: gray;
    font-size: 14px;
}
.news-grid-attes a:hover .news-title {
	color: var(--nv-primary-accent);
}

/*paganation*/
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-links span, .nav-links a {
    background: #ebebeb;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 10px;
    margin: 0 5px;
}
.pagination {
	margin: 30px 0;
}






/*single post*/
.nv-single-breadcrumbs {
	margin-bottom: 20px !important;
}
.nv-single-breadcrumbs a,
.nv-single-breadcrumbs span {
	font-size: 13px;
    color: gray;
}
.nv-meta-categories a {
	background: var(--nv-secondary-accent);
    padding: 2px 5px;
    border-radius: 4px;
    color: white !important;
    font-size: 12px;
	text-transform: lowercase;
}
.nv-meta-categories a:hover {
	color: white !important;
}

.cus-meta00 {
	display: flex;
    justify-content: space-between;
}
.cus-meta00 .date,
.cus-meta00 .post-views-block {
	font-size: 12px;
    color: #4a4a4a;
}
.single-img img {
	width: 100%;
    height: 400px;
    object-fit: cover;
	object-position: center; /* JS бұны өзгерте береді */
    transition: object-position 0.4s ease;
}

.load-static {
	display: none;
}



/*video format*/
.post-video-wrapper {
    max-width: 100%;
    margin: 20px auto 30px;
}

.post-video-wrapper iframe,
.post-video-wrapper video {
    width: 100%;
    min-height: 500px;
    border-radius: 12px;
}





/*side bar on*/
.popular-post-item a {
	flex-direction: row;
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}
.popular-post-item a:hover .popular-name {
	color: var(--nv-primary-accent);
}
.pop-img00 {
	flex: 0 0 30%;
    width: 30%;
    display: block;
    order: 0;
}
.pop-img00 img {
	object-fit: cover;
}
.popular-text .popular-name {
	color: var(--nv-text-color);
    line-height: 1.2;
    font-size: 14px;
	font-weight: bold;
	
	display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popular-text .popular-meta {
	font-size: 12px;
    color: gray;
}

/*Бөлісу батырмалары*/
.share-buttons {
    margin-top: 25px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.share-title {
    font-weight: 600;
    margin-right: 10px;
}

.share-btn {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-btn.fb { background: #1877F2; }
.share-btn.tg { background: #0088cc; }
.share-btn.wa { background: #25D366; }

.share-btn:hover {
    opacity: 1;
    color: white;
}



/*ұқсас мақалалар*/
.related-box {
	margin-top: 20px;
}
.related-box h3 {
    margin-bottom: 10px;
    border-bottom: 2px solid var(--nv-primary-accent);
}
.related-box ul {
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.related-box ul li {
	border: 2px solid #e7e7e7;
    padding: 5px;
    border-radius: 5px;
}
.related-box ul li a img {
	width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}









/*comment*/
.single-comment {
	margin: 40px 0;
}


/*footer 1*/
.comitet-00 {
	color: #707070;
    font-size: 12px;
    text-align: justify;
    line-height: 1.3;
	margin-top: 20px;
}

.foot-con01 i,
.foot-con01 a:hover {
	color: var(--nv-primary-accent);
}

.social00 {
	display: flex;
    gap: 10px
}
.social00 li a {
	width: 30px;
    border: 1px solid var(--nv-primary-accent);
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    color: var(--nv-primary-accent);
	transition: all 0.3s;
}
.social00 li a:hover {
	background: var(--nv-primary-accent);
	color: white;
}


/*footer 4*/
.component-wrap div,
.hfg-slot .cr {
	display: none;
}
.footer-bottom-inner .nv-footer-content {
	border-top: 1px solid #dadada;
}






/*login registr*/
.um-box h2 {
	text-align: center;
}

/* ===== LOGIN FORM UI ===== */

#um-login-form {
  max-width: 420px;
  margin: 30px auto;
  padding: 30px 32px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Label */
#um-login-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

/* Inputs */
#um-login-form input[type="email"],
#um-login-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  transition: all 0.2s ease;
}

#um-login-form input:focus {
  border-color: #0f2a44;
  box-shadow: 0 0 0 3px rgba(15, 42, 68, 0.12);
  outline: none;
}

/* reCAPTCHA */
#um-login-form .g-recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

/* Button */
#um-login-form .um-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #0f2a44, #123b63);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

#um-login-form .um-btn:hover {
  background: linear-gradient(135deg, #123b63, #0f2a44);
  transform: translateY(-1px);
}

/* Register link */
#um-login-form p {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  color: #374151;
}

#um-login-form p a {
  color: #0f2a44;
  font-weight: 600;
  text-decoration: none;
}

#um-login-form p a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
  #um-login-form {
    margin: 40px 16px;
    padding: 24px;
  }
}


/* ===== REGISTER FORM UI ===== */

#um-register-form {
  max-width: 480px;
  margin: 30px auto;
  padding: 32px 34px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Label */
#um-register-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

/* Inputs */
#um-register-form input[type="text"],
#um-register-form input[type="email"],
#um-register-form input[type="tel"],
#um-register-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  transition: all 0.2s ease;
}

#um-register-form input:focus {
  border-color: #0f2a44;
  box-shadow: 0 0 0 3px rgba(15, 42, 68, 0.12);
  outline: none;
}

/* Password wrapper (eye icon) */
.um-pass-wrap {
  position: relative;
}

.um-pass-wrap input {
  padding-right: 44px;
}

.um-toggle-pass {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.6;
}

.um-toggle-pass:hover {
  opacity: 1;
}

/* Password rules */
#um-password-rules {
  margin: 6px 0 18px;
  font-size: 13px;
}

#um-password-rules p {
  margin: 4px 0;
  color: #6b7280;
}

#um-password-rules p.valid {
  color: #15803d;
}

/* reCAPTCHA */
#um-register-form .g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

/* Button */
#um-register-form .um-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #0f2a44, #123b63);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

#um-register-form .um-btn:hover {
  background: linear-gradient(135deg, #123b63, #0f2a44);
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 480px) {
  #um-register-form {
    margin: 40px 16px;
    padding: 24px;
  }
}




/* USER ICON */
.uic-user-menu {
  position: relative;
  display: inline-block;
}

.uic-user-icon {
  	background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #fff;
    padding: 0 5px;
}

/* DROPDOWN */
.uic-dropdown {
  position: absolute;
  right: 0;
  top: 130%;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  display: none;
  z-index: 9999;
}

.uic-dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--nv-text-color) !important;
  text-decoration: none;
  font-weight: 500;
	font-size: 14px;
}

.uic-dropdown a i {
  margin-right: 8px;
}

.uic-dropdown a:hover {
  background: #f3f4f6;
}

.uic-dropdown .uic-logout {
  color: #b91c1c;
}

/* OPEN STATE */
.uic-user-menu.open .uic-dropdown {
  display: block;
}







