/*!
Theme Name: maw
Theme URI: http://underscores.me/
Author: featherwebs
Author URI: https://featherwebs.com.np/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: maw
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

maw is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* HOME SWIPER */
.home-swiper-pagination {
    text-align: left !important;
}

.home-swiper-progress-bar {
    position: relative;
    width: 100%;
    display: block;
    z-index: 1;
    height: 3px;
}

.home-swiper-progress-bar .slide_progress-bar {
    position: absolute;
    height: 3px;
    background: #7a7a7a;
    width: auto;
    clear: both;
    opacity: 0;
    bottom: 0px;
    left: 0;
    right: 0;
}

.home-swiper-progress-bar .slide_progress-bar:after {
    position: absolute;
    top: 0;
    left: 0;
    background: #F0F2F0;
    height: 100%;
    width: 0;
    content: "";
    transition: 0.1s width linear;
}

.home-swiper-progress-bar.active .slide_progress-bar {
    opacity: 1;
}

.home-swiper-progress-bar.animate .slide_progress-bar:after {
    transition: width linear;
    transition-delay: unset;
    width: 100%;
    /* Remove fixed duration - will be set dynamically via JavaScript */
    /* transition-duration: 30s; */
}

/* swiper csr ans skills */
.swiper-pagination-progressbar {
	background: gray !important;
}

.swiper-pagination-progressbar-fill {
	background: #fff !important;
}

.swiper-slide-visible {
	/* padding: 6px 18px !important; */
	cursor: pointer !important;
}

.swiper-slide-thumb-active {
	background: #0058EC !important;
	border-radius: 10px !important;
	color: white !important;
	width: fit-content !important;
}

.swiper-pagination {
	text-align: left !important;
}

.swiper-progress-bar {
	position: relative;
	width: 100%;
	display: block;
	z-index: 1;
	height: 3px;

	.slide_progress-bar {
		position: absolute;
		height: 3px;
		background: #7a7a7a;
		width: auto;
		clear: both;
		opacity: 0;
		bottom: 0px;
		left: 0;
		right: 0;

		&:after {
			position: absolute;
			top: 0;
			left: 0;
			background: #F0F2F0;
			height: 100%;
			width: 0;
			content: "";
			transition: 0.1s width linear;
		}
	}

	&.active {
		.slide_progress-bar {
			opacity: 1;
		}
	}

	&.animate {
		.slide_progress-bar {
			&:after {
				transition: width linear;
				transition-delay: unset;
				width: 100%;
				transition-duration: 4s;
			}
		}
	}
}

/* brands */
#brandPopup.active {
	opacity: 1;
	pointer-events: auto;
}

#brandPopup.active>div {
	transform: scale(1);
}

.scroll-locked {
	overflow: hidden;
	/* padding-right: 17px; */
}

.about-text {
	color: #DEE2E6
		/* Tailwind's text-gray-500 */
}

.word {
	display: inline-block;
	color: #DEE2E6
		/* Tailwind gray-500 */
}

.progress-line {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0%;
	height: 2px;
	background: #000;
	transition: width 0.1s linear;
}

/* megamenu */
body.mega-open .menu-items--js {
	color: black !important;
}

.wpcf7-not-valid-tip {
	font-size: 10px !important;
}


body.scroll-locked {
	overflow: hidden;
	position: fixed;
	width: 100%;
}

.scroll-locked {
	overflow: hidden;
}

.job-card {
	display: none;
}

/* Enhanced popup scrolling styles */
.popup-overlay {
	overscroll-behavior: contain;
}

.scrollable-content {
	overflow-y: auto !important;
	overflow-x: hidden !important;
	-webkit-overflow-scrolling: touch !important;
	overscroll-behavior: contain;
	/* Ensure the scrollable area is focusable for keyboard/mouse events */
	outline: none;
	/* Improve scrollbar visibility if needed */
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* Webkit scrollbar styling for better visibility */
.scrollable-content::-webkit-scrollbar {
	width: 8px;
}

.scrollable-content::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.3);
	border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.5);
}

/* Ensure popup content doesn't interfere with scrolling */
.popup-overlay.active {
	overflow: hidden;
}

.popup-overlay .scrollable-content {
	/* Force hardware acceleration for smoother scrolling */
	transform: translateZ(0);
	will-change: scroll-position;
}

/* Mobile touch scrolling improvements */
@media (max-width: 768px) {
	.scrollable-content {
		-webkit-overflow-scrolling: touch;
		/* Prevent bounce scrolling from interfering */
		overscroll-behavior-y: contain;
	}
}