﻿/* Global Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body, html {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	width: 100%;
}

a {
	text-decoration: none;
}

/* Navbar Styling */
.nav {
	width: 100%;
	height: 250px;
	background-image: url('/Content/images/nav/Default.png');
	background-size: 100% 100%;
	background-position: center bottom;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 20px 20px 0;
	position: relative;
}

.sub-nav {
	width: 100%;
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 222px;
}

.nav-icon-img {
	width: 120px;
}

.nav-left {
	display: flex;
	align-items: center;
}

.right-nav {
	display: flex;
	align-items: center;
	gap: 20px;
	z-index: 9;
}

.right-nav-pages a {
	text-decoration: none;
	color: white;
	font-size: 16px;
}

.right-nav-button {
	background-color: transparent;
	border: 2px solid white;
	padding: 6px 20px;
	border-radius: 30px;
	color: white;
	cursor: pointer;
}
/* RTL Support */
html[dir="rtl"] body {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .right-nav {
	margin-left: 0;
	margin-right: auto;
}

html[dir="rtl"] .nav-left {
	margin-right: 0;
	margin-left: auto;
}

html[dir="rtl"] .footer-contents {
	direction: rtl;
}

html[dir="rtl"] .mobile-menu {
	text-align: right;
}

/* Font families */
html[lang="ar"] body {
	font-family: 'Tajawal', sans-serif;
}

html[lang="en"] body {
	font-family: 'Montserrat', sans-serif;
}
/* Footer Styles */
.footer-container {
	background: #175BA7;
	width: 100%;
	height: 500px;
	padding: 20px 0;
	text-align: center;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Footer Logo */
.footor-logo {
	width: 150px;
	height: auto;
	margin: 0 auto;
	display: block;
}

/* Home Section */
.footer-home-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}

.image-container {
	position: relative;
	display: inline-block;
	width: 170px;
	height: 60px;
	overflow: hidden;
}

.image-text {
	position: absolute;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #005AA9;
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	padding: 5px 10px;
	border-radius: 5px;
}

/* Social Media Links */
.media-links {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 20px;
	gap: 30px;
	margin-bottom: 0rem;
}

	.media-links p {
		color: #FFFFFF;
		font-family: 'Montserrat', sans-serif;
		font-size: 18px;
		font-weight: 200;
		margin-top: 5px;
	}

.socialmedia {
	width: 35px;
	height: auto;
}

/* Footer Links */
.footer-contents {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 20px;
}

	.footer-contents p {
		font-family: 'Montserrat', sans-serif;
		font-size: 12px;
		font-weight: 200;
		color: #FFFFFF;
		padding: 0 10px;
		margin: 5px 0;
	}

/* Copyright */
.footer-limitlesssolutions {
	margin-top: 20px;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #FFFFFF;
}

.footer-contents a {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

/* Container Fixes */
.container-fluid {
	padding: 0 !important;
	margin: 0 !important;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

main {
	padding: 0;
	margin: 0;
	width: 100%;
}

/* Hamburger Menu Styles */
.hamburger-btn {
	display: none;
	background: transparent;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	z-index: 1000;
	position: absolute;
	top: 20px;
	left: 88%;
	transform: translateX(-50%);
}

/* UPDATED: Mobile Menu Styling */
.mobile-menu-wrapper {
	display: none;
	width: 100%;
	background-color: #175BA7;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.5s ease-in-out;
}

.mobile-menu {
	width: 100%;
	background-color: #175BA7;
	display: flex;
	flex-direction: column;
	padding: 0;
}

.mobile-menu-wrapper.active {
	max-height: 500px; /* Adjust this value as needed */
	display: block;
}

.mobile-menu a {
	color: white;
	text-decoration: none;
	padding: 15px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	display: block;
	width: 100%;
	text-align: center;
}

.mobile-menu .right-nav-button {
	margin: 20px auto;
	display: block;
}

/* Content wrapper to push down */
.content-wrapper {
	transition: margin-top 0.5s ease-in-out;
}

/* Mid-range specific styles (579px to 768px) */
@media screen and (min-width: 579px) and (max-width: 768px) {
	.nav {
		height: 200px;
		background-size: cover;
		background-position: center;
		align-items: flex-start;
		padding-top: 60px; /* Make room for the hamburger button */
	}

	.sub-nav {
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0;
		/*        margin-top: 15px;*/
		margin-top: -65px;
	}

	.right-nav {
		display: none;
	}

	.hamburger-btn {
		display: block;
	}

	.mobile-menu-wrapper {
		display: block;
		max-height: 0;
	}
	/* Footer responsive styles */
	.footor-logo {
		width: 120px;
	}

	.image-text {
		font-size: 14px;
	}

	.media-links p {
		font-size: 16px;
	}

	.socialmedia {
		width: 30px;
	}

	.footer-contents {
		flex-direction: column;
		text-align: center;
	}

		.footer-contents p {
			display: inline-block;
			margin: 5px;
		}
}

/* Small mobile styles (below 579px) */
@media screen and (max-width: 578px) {
	.nav {
		height: 120px; /* Slightly increased to accommodate top hamburger */
		min-height: 60px;
		padding: 10px 15px;
		align-items: center;
		background-size: cover;
		background-position: center top;
		padding-top: 50px; /* Make room for the hamburger button */
	}

	.nav-icon-img {
		width: 80px;
		/*margin-right: 322px;*/
		margin-right: 276px;
		margin-top: -88px;
	}

	.sub-nav {
		gap: 0;
		justify-content: center;
	}

	.right-nav {
		display: none;
	}

	.hamburger-btn {
		display: block;
	}

	.mobile-menu-wrapper {
		display: block;
		max-height: 0;
	}
	/* Footer mobile styles */
	.footor-logo {
		width: 100px;
	}

	.image-text {
		font-size: 12px;
		padding: 3px 7px;
	}

	.media-links p {
		font-size: 14px;
	}

	.socialmedia {
		width: 25px;
	}

	.footer-contents p {
		font-size: 10px;
	}
}

/* Large screen styles (above 768px) */
@media screen and (min-width: 769px) {
	.nav {
		height: 250px;
		background-size: 100% 100%;
	}

	.right-nav {
		display: flex;
		flex-direction: row;
	}

	.hamburger-btn {
		display: none;
	}

	.mobile-menu-wrapper {
		display: none;
	}
}

/* RTL Styles - ONLY for header and footer */
.rtl-header .nav-left {
	order: 2;
}

.rtl-header .right-nav {
	order: 1;
	flex-direction: row-reverse;
}

.rtl-header .sub-nav {
	flex-direction: row-reverse;
}

.rtl-header .hamburger-btn {
	left: 50%;
	transform: translateX(-50%);
}

.rtl-footer .footer-container {
	text-align: center;
}

.rtl-footer .media-links {
	flex-direction: row-reverse;
}

.rtl-footer .footer-contents {
	flex-direction: row-reverse;
}

/* RTL Footer Specific Fixes */
.rtl-footer .footer-contents {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}

	.rtl-footer .footer-contents p {
		display: inline-block;
		margin: 0 5px;
	}

/* RTL font family adjustment */
.rtl-header, .rtl-footer {
	font-family: 'Tajawal', sans-serif;
}
