html, body {
margin: 0;
padding: 35px 0 0 0;
width: 100%;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color:#1B1E2D;

}
header {
background-color: #090b12;
color: white;
box-shadow: -1px 2px 2px rgb(0 0 0 / 44%);
position:fixed;top:0;left:0;width:100%;z-index:1000;
}
header a{
color: #fff;
}
.header-container {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.3rem;
margin: 0 auto;
max-width: 98%;
}

.left-group {
display: flex;
align-items: center;
gap: 2rem;
}

.logo {
font-size: 1.5rem;
font-weight: bold;
color: white;
text-decoration: none;
}
.logo img{width:140px;
height:auto;margin-top:3px;}

.desktop-nav {
display: flex;
gap: 1.5rem;
}

.desktop-nav a {
color: white;
text-decoration: none;
font-weight: 600;
font-size: 1.1rem;
transition: color 0.3s;
}

.desktop-nav a:hover {
color: #ec8738;
}

.desktop-icons {
display: flex;
gap: 1rem;
}

.icon-btn {
background: none;
border: none;
color: white;
cursor: pointer;
font-size: 1.2rem;
padding: 0.3rem;
display: flex;
align-items: center;
justify-content: center;
}

.mobile-left,
.mobile-logo,
.mobile-right {
display: none;
}

.hidden {
display: none;
}

main {
color: #eceef8;
margin:5px 0 10px 0;
}
.main-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: flex-start;
padding: 5px 0 20px 0;
margin: 0 auto;
max-width: 98%;
}

.category-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 20px;
max-width: 96%;
margin: 10px auto;
padding: 10px;
}

.category-box {
display: flex;
align-items: center;
background-color: #151927;
border-radius: 35px 50px 50px 35px;
padding: 0px 0px 2px 0px;
color: white;
text-decoration: none;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-box:hover {
transform: scale(1.03);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

[dir="ltr"] .category-box img {
width: 90px;
height: auto;
object-fit: cover;
border-radius: 35px 0 0 35px;
margin-right: 15px;
}
[dir="rtl"] .category-box img {
width: 90px;
height: auto;
object-fit: cover;
border-radius: 0 35px 35px 0;
margin-left: 15px;
}

.category-box span {
font-size: 16px;
font-weight: 600;
word-break: break-word;
white-space: normal;
line-height: 1.2;
}

.main-about {
align-items: center;
justify-content: space-between;
margin: 0 auto;
background-color: #151927;
border-radius: 10px;
box-shadow: -1px 2px 2px rgb(0 0 0 / 44%);
max-width: 96%;
padding:1px 15px 1px 15px;
line-height:30px;
font-size:17px;
}
.main-about a{color: #fff;  text-decoration: none;}
.main-about h1{font-size:32px;line-height: 28px;}
.main-about h2{font-size:23px;line-height: 28px;}

.site-footer {
background-color: #090b12;
color: #fff;
text-align: center;
padding: 20px 20px 20px;
position: relative;
overflow: visible;
z-index:999999;
}

.footer-logo{
width: 225px;
margin-bottom: 30px;
display: block;
margin: 0 auto;
}

.language-selector {
position: relative;
display: inline-block;
margin-top: 15px;
}

.lang-btn {
background: none;
border: none;
cursor: pointer;
}
.lang-btn img {
width: 40px;
height: 40px;
border-radius: 50%;
border: 2px solid #000;
}
.lang-menu {
display: none;
position: absolute;
top: -388px;
left: 50%;
transform: translateX(-50%);
background: #090b12;
padding: 15px;
border-radius: 15px;
box-shadow: 0 10px 25px rgba(0,0,0,0.4);
width: 280px;
max-height: 365px;
overflow-y: auto;
z-index: 9999;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
}

.lang-menu::-webkit-scrollbar {
width: 0px;
height: 0px;
}

.lang-menu {
scrollbar-width: none;
-ms-overflow-style: none;
}

.lang-menu::-webkit-scrollbar-thumb {
background: transparent;
}

.lang-menu.show {
display: block;
}

.lang-title {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
color: #ccc;
font-size: 14px;
font-weight:bold;
}
.lang-close {
background: none;
border: none;
color: #ccc;
font-size: 18px;
cursor: pointer;
}

.lang-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}

.lang-grid a {
background: #090b12;
padding: 6px 10px;
border-radius: 8px;
display: flex;
align-items: center;
color: white;
font-size: 13px;
text-decoration: none;
gap: 6px;
transition: background 0.3s;
}
.lang-grid a:hover {
background: #151927;
}
.lang-grid img {
width: 25px;
height: 25px;
border-radius: 50%;
}

.footer-links {
margin-bottom: 16px;
}
.footer-links a {
margin:0px 0px 10px 10px;
color: #aaa;
text-decoration: none;
font-size: 16px;
}
.footer-links a:hover {
color: #fff;
}

.search-container {
position: relative;
display: inline-block;
}

[dir="ltr"] .search-input {
display: none;
position: absolute;
top: 100%;
right: 38px;
margin-top: -32px;
padding: 6px 10px;
font-size: 14px;
border: 0px solid #ccc;
border-radius: 6px;
background: #151927;
color:#fff;
width: 250px;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
z-index: 999;
}
[dir="rtl"] .search-input {
display: none;
position: absolute;
top: 100%;
left: 38px;
margin-top: -32px;
padding: 6px 10px;
font-size: 14px;
border: 0px solid #ccc;
border-radius: 6px;
background: #151927;
color:#fff;
width: 250px;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
z-index: 999;
}

.search-input.show {
display: block;
}
.popup-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
display: none;
}
.popup-content {
background-color: #ffffff;
border-radius: 12px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
padding: 24px;
max-width: 400px;
text-align: center;
border: 1px solid #e2e8f0;
animation: slideInUp 0.5s ease-out forwards;
}

@keyframes slideInUp {  
        from {  
            transform: translateY(100%);  
            opacity: 0;  
        }  
        to {  
            transform: translateY(0);  
            opacity: 1;  
        }  
    }

/* MOBILE STYLES */
@media (max-width: 768px) {
.desktop-logo,
.desktop-nav,
.desktop-icons,
.left-group {
display: none;
}
.popup-container {
bottom: 10px;
right: 10px;
left: 10px;
max-width: unset;
}
.popup-content {
max-width: unset;
width: 100%;
}	
html, body {
margin: 0;
padding: 27px 0 0 0;
width: 100%;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color:#1B1E2D;

}	
.header-container {
padding: 0.6rem;
}	
.main-about,.main-container {
width:100%
margin: 10px;
}

.mobile-left,
.mobile-right {
flex: 1;
display: flex;
align-items: center;
}

.mobile-left {
justify-content: flex-start;
}

.mobile-right {
justify-content: flex-end;
}

.mobile-logo {
display: block;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.hide-on-mobile {
    display: none !important;
  }
}



