:root {
  --default-font: "Open Sans",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Jost",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #000000; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #37517e; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #000000; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #000000cf;  /* The default color of the main navmenu links */
  --nav-hover-color:#e02323;/* Applied to main navmenu links when they are hovered over or active */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f5f6f8;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #e02323;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #4668a2;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
  
}
.navmen a {
  padding: 10px;
}


a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color:  #eaeaea;
  --heading-color: #000000;
  color: var(--default-color);
  background-color: var(--background-color);

  transition: all 0.5s;
  z-index: 997;
  height: auto; /* Adjusted for better responsiveness */
  display: flex; /* Use flexbox for layout */
  justify-content: space-between; /* Space between logo and menu */
  align-items: center; /* Center items vertically */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}


.header .logo {
 display: flex;
  flex-direction: column; /* stack image above h1 */
  align-items: flex-start; /* align everything to the left */
  width: 100%;
  line-height: 1;
  margin-bottom: 10px; /* control spacing before menu starts */
}

.header .logo img {
  width: 100%;       /* Or set max-width */
  max-width: 120px;  /* Limits the image to a reasonable size */
  height: auto;      /* Maintain aspect ratio */
  margin-bottom: 5px; /* Add small gap below image if needed */
}


.header .logo h1 {
display: none;
}
@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


.img-align{
  align-items: flex-start;
}
/*--------------------------------------------------------------

# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation 
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 15px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }



  

  .navmenu .dd-box-shadow {
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }
}*/




/* Vertical Left Sidebar */
/* Sidebar Layout */
.header.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 65vh;
  background-color: #fff;
  border-right: 1px solid #ddd;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1000;
}

/* Logo aligned at top */
.header.sidebar .logo {
  margin-bottom: 0px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Vertical Menu */
.navmenu {
  width: 100%;

}

.navmenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction:column;
  width:100%;
}

.navmen ul {
  list-style: none;
  padding: 0px;
  margin: 0px;
  display: flex;
  flex-direction:row;
  width:100%;
}
.navmenu li {
  width: 100%;
}

.navmenu a {
  display: block;
  width: 100%;
  padding: 12px 10px;
  color: var(--nav-color);
  font-size: 15px;
  font-family: var(--nav-font);
  text-decoration: none;
  transition: 0.3s;
  border-radius: 4px;
}

.navmenu a:hover,
.navmenu .active {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--nav-hover-color);
}

/* Shift main content right */
body.index-page {
  margin-left: 240px;
}



/*Slide show*/
.image-slider {
  position: auto;
  overflow: hidden; /* Hide overflowing images */

}

.mySlides {
  display: none; /* Hide all slides by default */
  width: 100%; /* Make image take the full width */
  height: auto; /* Maintain aspect ratio */

}

.indicator {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.indicator.active {
  background-color: #717171;
}



/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  --background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  position: relative;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 14px;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 88px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  text-transform: uppercase;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 60%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 99vh;
  position: relative;
  padding: 120px 0 60px 0;
  display: flex;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
}

.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin: 5px 0 30px 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 28px 12px 28px;
  border-radius: 25px;
  transition: 0.5s;
}


.hero .btn-get-started:hover {
  color: var(--contrast-color);
  background: silver;
}

/* Improve layout responsiveness for small to medium screens */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    gap: 10px;
  }

  .header .logo {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .header .logo img {
    max-width: 100px;
    height: auto;
  }

  .navmenu ul {
    flex-direction: column;
    gap: 8px;
    padding: 0;
  }

  .navmenu a {
    padding: 10px;
    font-size: 16px;
  }

  body.index-page {
    margin-left: 0; /* Removes sidebar shift on mobile */
  }

  .header.sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    padding: 15px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px 40px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 18px;
    line-height: 1.4;
  }

  .hero .btn-get-started {
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 20px;
  }

  .section-title h2 {
    font-size: 24px;
    padding-bottom: 16px;
  }
}

/* Extreme small screens (phones under 360px wide) */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero .btn-get-started {
    font-size: 16px;
    padding: 8px 16px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  .navmenu a {
    font-size: 14px;
  }
}
