:root {
  --bg-nav-menu-color: #F5F5F5;
  --bg-nav-menu-hover-color: #E5E7EB;
  --bg-switcher-color: var(--main-color);
  --bg-style-switcher-color: #F5F5F5;
  --bg-color: #F5F5F5;
  --bg-white-color: #F5F5F5;
  --text-black-color: #0B1215;
  --text-white-color: #F5F5F5;
  --text-popup-color: #0B1215;
  --text-nav-color: #F5F5F5;
  --text-nav-menu-color: #0B1215;
  --text-slider-color: #F5F5F5;
  --style-switcher-text-color: #1C1917;
  --overlay-bg-color: rgba(0, 0, 0, 0.4);
  --th-color: #d2d2d2;
  --tr-light-color: #F6F6F6;
  --tr-dark-color: #ffffff;
  --table-border-color: #A6A6A6;
  --th-text-color: #F5F5F5;
  --td-text-color: #222222;
  --link-color: #2563EB;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: sans-serif;
}

body.dark {
  --bg-color: #0B1215;
  --bg-nav-menu-color: #1A252B;
  --bg-nav-menu-hover-color: #2A3942;
  --bg-style-switcher-color: #E2E8F0;
  --text-black-color: #F5F5F5;
  --text-nav-menu-color: #F5F5F5;
  --scroll-arrow-color: #e9e9e9;
  --th-color: #adadad;
  --tr-light-color: #d8d8d8;
  --tr-dark-color: #e3e3e3;
  --table-border-color: #7d7d7d;
  --td-text-color: #1a1a1a;
  --link-color: #60A5FA;
}

body {
	direction: ltr;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-black-color);
  overflow-x: hidden; /* Prevent horizontal scroll */
  overflow-y: auto;   /* Allow vertical scrolling */
}

/* Light Mode Themes */
body.theme-1 {
  --main-color: #0F766E;
  --bg-nav-color: #0F766E;
  --bg-switcher-color: #0F766E;
  --bg-nav-hover-color: #0F766E;
}

body.theme-2 {
  --main-color: #0891B2;
  --bg-nav-color: #0891B2;
  --bg-switcher-color: #0891B2;
  --bg-nav-hover-color: #0891B2;
}

body.theme-3 {
  --main-color: #2563EB; /* Red */
  --bg-nav-color: #2563EB;
  --bg-switcher-color: #2563EB;
  --bg-nav-hover-color: #2563EB;
}

body.theme-4 {
  --main-color: #8C6A12;
  --bg-nav-color: #8C6A12;
  --bg-switcher-color: #8C6A12;
  --bg-nav-hover-color: #8C6A12;

}

body.theme-5 {
  --main-color: #C84B68; /* Pink */
  --bg-nav-color: #C84B68;
  --bg-switcher-color: #C84B68;
  --bg-nav-hover-color: #C84B68;
}

/* Dark Mode Themes */
body.dark.theme-1 { --main-color: #118278; }
body.dark.theme-2 { --main-color: #099BC0; }
body.dark.theme-3 { --main-color: #2F6EF0; }
body.dark.theme-4 { --main-color: #987214; }
body.dark.theme-5 { --main-color: #CF5671; }

/*------------------------------ Header section design CSS ---------------------------- */

nav {
	display: flex;
	flex-direction: row-reverse; /* RTL: nav links on the right */
	justify-content: space-between;
	align-items: center;
	position: relative;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: clamp(1.25rem, 0.9722rem + 1.1111vw, 1.875rem);
  padding-right: clamp(1.25rem, 0.9722rem + 1.1111vw, 1.875rem);
  background: var(--bg-nav-color);
  /*font-size: clamp(0.85rem, -0.1579rem + 2.4772vw, 1.7rem); */
  font-size: clamp(0.875rem, 0.1667rem + 1.5111vw, 1.3rem);
  /*color: var(--text-nav-color);*/
}

.right-section {
	display: flex;
	align-items: center;
  /*gap: clamp(0.6rem, -0.4672rem + 2.623vw, 1.5rem);*/
  gap: clamp(0.6rem, -0.7044rem + 3.2058vw, 1.7rem);
}
 
.left-section {
	display: flex;
	align-items: center;
  /*gap: clamp(1.4rem, -1.0902rem + 6.1202vw, 3.5rem);*/
  gap: .5rem;
}

.logo img {
  width: 55px;
  height: auto;
  object-fit: cover; /* Ensures the image covers the container without distortion */
  display: block;
}

.mobile-logo, .menu-close {
  display: none;
}

/*.logo a {
  font-size: 22px;
  font-weight: bold;
  color: #A5EB5B;
  text-decoration: none;
  font-family: Arial, sans-serif;
}*/

/*.logo a:hover {
  opacity: 0.8;
}*/

.nav-links {
	display: flex;
  gap: clamp(0.8rem, -0.623rem + 3.4973vw, 2rem);
}

.nav-links a:link,
.nav-links a:visited {
  position: relative;
  color: var(--text-nav-color);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.5s ease; /* Smooth transition */
}

.nav-links a span {
  color: inherit;
}

/* Create the line */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0; /* Use right instead of left for RTL */
  width: 0;
  height: 2px;
  background-color: var(--text-nav-color);
  transition: width 0.3s ease;
}

/* Desktop hover ONLY */
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after {
    width: 100%;
  }
  .nav-links span:hover {
    background: var(--bg-nav-hover-color);
  }
}

  @media (hover: none), (pointer: coarse) {
  .nav-links a:hover {
    background-color: transparent;
  }
  .nav-links a:hover::after {
    width: 0;
  }
  .nav-links a.active {
    background-color: var(--bg-nav-menu-hover-color) !important;
  }
}

.nav-links a.active::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  justify-content: center;
}

.switch {
  position: relative;
  width: clamp(3.125rem, 2.4342rem + 3.1579vw, 5rem);
  height: clamp(1.75rem, 1.4737rem + 1.2632vw, 2.5rem);
  background: var(--bg-white-color);
  border-radius: 20px;
  border: 1px solid var(--bg-switcher-color);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.slider {
  position: absolute;
  top: clamp(0.1375rem, 0.1145rem + 0.1053vw, 0.2rem);
  left: clamp(0.2rem, 0.1355rem + 0.2947vw, 0.375rem);
  width: clamp(1.375rem, 1.1447rem + 1.0526vw, 2rem);
  height: clamp(1.375rem, 1.1447rem + 1.0526vw, 2rem);
  background-color: var(--bg-switcher-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-slider-color);
  font-weight: bold;
  font-size: clamp(0.75rem, 0.6579rem + 0.4211vw, 1rem);
  transition: transform 0.3s ease;
  transform: translateX(clamp(1.25rem, 0.9046rem + 1.5789vw, 2.1875rem)); /* START on the right */
}

.switch.animate .slider {
  transform: translateX(0); /* SLIDE to the left */
}

/* Menu icon section*/
.menu-icon {
	display: none;
	font-size: clamp(1.5rem, 1.1786rem + 1.7143vw, 1.875rem);
  color: var(--bg-white-color);
	cursor: pointer;
}

/*------------------------------ Switcher Design ---------------------------- */
.style-switcher-wrapper {
  position: relative;
  display: inline-block;
}

.style-switcher-toggler span {
  height: clamp(1.875rem, 1.5972rem + 1.1111vw, 2.5rem);
  width: clamp(1.875rem, 1.5972rem + 1.1111vw, 2.5rem);
  border-radius: 50%;
  background: var(--bg-white-color);
  color: var(--bg-switcher-color);
  border: 1px solid var(--bg-switcher-color);
  font-size: clamp(1rem, 0.9444rem + 0.2222vw, 1.125rem);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Day/night toggle */
.day-night span {
  height: clamp(1.875rem, 1.5972rem + 1.1111vw, 2.5rem);
  width: clamp(1.875rem, 1.5972rem + 1.1111vw, 2.5rem);
  border-radius: 50%;
  background: var(--bg-white-color);
  color: var(--bg-switcher-color);
  border: 1px solid var(--bg-switcher-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: clamp(1rem, 0.9444rem + 0.2222vw, 1.125rem);
}

.style-switcher {
  position: fixed;
  right: 0;
  top: 5.9rem;
  padding: clamp(0.625rem, 0.4861rem + 0.5556vw, 0.9375rem);
  width: clamp(9.375rem, 7.9861rem + 5.5556vw, 12.5rem);
  border: 1px solid var(--bg-switcher-color);
  background: var(--bg-style-switcher-color);
  z-index: 101;
  border-radius: 5px;
  transition: all 0.3s ease;
  transform: translateX(100%);
}

.style-switcher.open {
  transform: translateX(-30px);
}

.style-switcher h4 {
  margin: 0 0 10px;
  color: var(--style-switcher-text-color);
  font-size: clamp(0.875rem, 0.8194rem + 0.2222vw, 1rem);
  font-weight: 600;
}

.style-switcher .colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.style-switcher .colors span {
  display: inline-block;
  height: clamp(1.25rem, 0.9722rem + 1.1111vw, 1.875rem);
  width: clamp(1.25rem, 0.9722rem + 1.1111vw, 1.875rem);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s ease;
}

.style-switcher .colors span:hover {
  transform: scale(1.09);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
}

.style-switcher .color-1 { background: #0F766E; }
.style-switcher .color-2 { background: #0891B2; }
.style-switcher .color-3 { background: #2563EB; }
.style-switcher .color-4 { background: #8C6A12; }
.style-switcher .color-5 { background: #C84B68; }

section {
  padding: 4rem 2.2% 5rem;
}

table th:first-child,
table td:first-child {
  text-align: center;
}

table th:nth-child(2),
table td:nth-child(2) {
  text-align: justify;
}

table {
	width: 100%;
  align-items: center;
  margin: 0 auto;
	border-collapse: collapse;
  margin-top: 10px;
  border: none;
}

td {
  padding-top: clamp(0.3125rem, -0.125rem + 1.0769vw, 0.75rem);
  padding-bottom: clamp(0.3125rem, -0.125rem + 1.0769vw, 0.75rem);
  padding-right: 10px;
  padding-left: 10px;
	text-align: justify;
  font-size: clamp(0.875rem, 0.8194rem + 0.2222vw, 1rem);
  line-height: 1.5rem;
  color: var(--td-text-color);
}

th {
  padding-top: clamp(0.75rem, 0.5625rem + 0.4615vw, 0.9375rem);
  padding-bottom: clamp(0.75rem, 0.5625rem + 0.4615vw, 0.9375rem);
  padding-right: 10px;
  padding-left: 10px;
	text-align: left;
  font-size: clamp(1rem, 0.5rem + 1.2308vw, 1.5rem);
	font-weight: 700;
	background-color: var(--main-color);
	color: var(--th-text-color);
}

tr:nth-of-type(even) {
	background-color: var(--tr-light-color);
}

tr:nth-of-type(odd) {
	background-color: var(--tr-dark-color);
}

tr {
	border-bottom: 1px solid var(--table-border-color);
  border-top: 1px solid var(--table-border-color);
}

a:link {
	color: var(--link-color);
	text-decoration: none;
}

a:visited {
	color: var(--link-color);
	text-decoration: none;
}

ul {
  padding-top: 15px;
  padding-bottom: 5px;
  padding-left: clamp(1.875rem, 1.5972rem + 1.1111vw, 2.5rem);
  padding-right: 10px;
	list-style-type: disc;
}

li {
  padding-top: 0;
  padding-bottom: 10px;
  padding-left: clamp(0.5rem, 0.3889rem + 0.4444vw, 0.75rem);
  padding-right: 0px;
  text-align: justify;
}

ul li::marker {
	font-size: clamp(1.3rem, 1.2111rem + 0.3556vw, 1.5rem);
}

.container1 {
	margin: 0 auto 20px auto;
  padding: 20px 20px;
}

.container1 h1 {
  /*padding-bottom: clamp(0.75rem, 0.3889rem + 1.4444vw, 1.5625rem);*/
  padding-bottom: 1.4rem;
	font-weight: bold;
	line-height: 2rem;
	color: var(--main-color);
	/*font-size: clamp(1.3rem, 0.8556rem + 1.7778vw, 2.3rem);*/
  font-size: clamp(2rem, 0.5rem + 3.6923vw, 3.5rem);
}

.container1 h2 {
	font-weight: 500;
	color: var(--text-black-color);     
	line-height: 1.65em;
	font-size: clamp(1rem, 0.7778rem + 0.8889vw, 1.5rem);
}

.container1 a {
	font-size: clamp(0.9rem, 0.7222rem + 0.7111vw, 1.3rem);
  text-decoration: underline;
}

.container2 {
	margin: 50px auto 0 auto;
}

.container2 h2 {
	padding: 0 0 5px 10px;
	font-weight: bold;
	color: var(--main-color);
	font-size: clamp(1.3rem, 0.8556rem + 1.7778vw, 2.3rem);  
  border-bottom: 0.3rem solid var(--main-color);
}

.sub-title {
	margin: 0;
	padding: 25px 10px 0 10px;
	text-align: left;
	font-size: clamp(1rem, 0.2rem + 1.9692vw, 1.8rem);
}

/*------------------------------ Footer section design CSS ---------------------------- */
.footer1 {
  position: relative; 
  direction: ltr;
  width: 100%;
  padding: 1rem 2%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  margin-top: auto; /* Pushes footer to the bottom of content */
}

/* Footer text */
.footer-text {
  font-size: clamp(0.8rem, 0.7234rem + 0.3404vw, 1rem);
  color: var( --text-black-color);
}

/* Scroll-to-top button inside footer */
.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .8rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-color);
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 .8rem var(--main-color);
  border-radius: .5rem;
  transition: .5s ease;
  animation: scalePulse 1.5s infinite;
  position: relative;
  overflow: hidden; /* Ensure the pseudo-element stays within bounds */
  z-index: 1; 
}

/* Pseudo-element behind the icon */
.footer-iconTop a::before {
  content: '';
  position: absolute;
  top: 100%;  /* Start from below the button */
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--main-color); 
  transition: top 0.4s ease;
  z-index: -1; /* Keep it behind the icon */
}

/* Hover state for button */
.footer-iconTop a:hover {
  animation-play-state: paused;
  box-shadow: none;
  color: var(--text-white-color);
}

/* Hover effect on the pseudo-element */
.footer-iconTop a:hover::before {
  top: 0; /* Slide the pseudo-element from bottom to top */
}

.footer-iconTop a i {
  font-size: 1.5rem;
  font-weight: 600;
  z-index: 2;
}

/* Responsive menu for small screens */
@media (max-width: 650px) {
  section {
    padding: 2.5rem 2.2% 2rem;
  }
  .container2 {
	    margin: 25px auto 0 auto;
  }
  .menu-icon {
    display: flex;
  }
  .menu-header {
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
    align-items: center;
    background: var(--bg-nav-color);
    width: 100%;
    padding: .71rem 1.25rem;
    box-sizing: border-box;
    margin-bottom: 3rem;
    border-bottom: 0.1px solid gray;
  }
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
  }
  /* visible state */
  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
    /*backdrop-filter: blur(1px);*/
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    /* Keeps menu attached to viewport */
    position: fixed;
    /* Change this if you want it below a navbar */
    top: 0;
    left: 0;
    width: 65vw;
    max-width: 320px;
    height: 100vh;   /* fallback */
    height: 100dvh;  /* preferred */
    background: var(--bg-nav-menu-color);
    text-align: left;
    padding: 0;
    gap: 1.5rem;
    /*border-top: 1px solid rgba(255, 255, 255, 0.1);*/
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* Allow scrolling if menu is taller than viewport */
    overflow-y: auto;
    /* Hidden off-screen by default */
    transform: translateX(-100%);
    /* Optimize animation */
    will-change: transform;
    transition: transform 0.4s ease;
  }
  .nav-links.show {
    transform: translateX(0%);
  }
  .menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--bg-white-color);
    line-height: 1;
    transition: transform .25s, opacity .25s;
  }
  .menu-close:hover {
    opacity: 0.8;
    transform: scale(1.1);
  }
  .mobile-logo {
    display: inline-block;
    width: 55px;
    height: auto;
    object-fit: cover;
  }
  .right-section {
    gap: clamp(1rem, 0.52rem + 1.92vw, 1.3rem);
  }
  .nav-links a {
    display: block;          /* Full row width */
    width: 100%;
    padding: .71rem 1.25rem;
    font-size: clamp(1.375rem, 1.0341rem + 1.4545vw, 1.625rem);
    font-weight: 600;
    position: relative;
    color: var(--text-nav-menu-color) !important;
    text-decoration: none;
    border-bottom: 1px solid #334155; /* optional row separator */
  }
  .nav-links a:hover {
    background: var(--bg-nav-menu-hover-color);
  }
  .nav-links span:hover {
    background: none;
  }
  .nav-links a::after {
    display: none; /* disable desktop underline */
  }
  .nav-links a span {
    position: relative;
    display: inline-block; /* Underline matches text only */
    color: inherit;
  }
  /*.nav-links a span::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-nav-color);
    transition: width 0.3s ease;
  }*/
  /*.nav-links a.active span::after,
  .nav-links a:hover span::after {
    width: 100%;
  }*/
  /*.nav-links a.active {
    background-color: var(--bg-nav-menu-hover-color) !important;
  }*/
  .style-switcher.open {
    transform: translateX(-20px);
  }
}

@media (max-width: 556px) {
  .footer1 {
    flex-direction: column-reverse;
  }
  .footer1 p {
    text-align: center;
    margin-top: 1rem;
  }
}

  /* For very small screens: 0px to 450px => full width */
  @media (max-width: 450px) {
  .nav-links {
    max-width: none;
    }
  }
