/* input(27,16): run-time error CSS1038: Expected hex color, found '#e1o81e' */
/* Reset and base styles */

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

a :hover :active {
  text-decoration: underline;
}

ul {
  list-style: none;
  padding-left: 0;
}

/* Variables for consistent styling */
:root {
  --primary-color: #002C65;
  --primary-hover: #9e8959;
  --text-color: #002C65;
  --text-light: #555;
  --border-color: #eee;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --menu-height: 60px;
  --transition-speed: 0.3s;
  --brand-red: #e1o81e;
}

/* Header and navigation styles */
/* header {
  top: 0;
  z-index: 1000;
} */

.main-menu-nav {
  width: 100%;
  margin: 0 auto;
}

/* L1 Navigation (Main Menu) */
.main-menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: var(--menu-height);
}

.menu-item {
  margin-right: 20px;
}

.l1-link {
  display: flex;
  align-items: center;
  padding: 20px 10px !important;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 18px;
  transition: color var(--transition-speed) ease;
  position: relative;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  /* Add transparent border initially */
  padding-bottom: 5px;
  /* Add some padding for the underline */
}

.l1-link:hover,
.menu-item.active>.l1-link {
  border-bottom: 3px solid var(--primary-hover);
  /* Solid blue underline on hover */
  text-decoration: none;
  /* Remove default text underline */
  background-color: #F7F7F7;
}

.l1-link>i {
  margin-left: 5px;
  font-size: 12px;
}

.l1-link:hover {
  color: var(--primary-hover);
}

.menu-item.active>.l1-link {
  color: var(--primary-hover);
}

/* Remove any existing underline styles */
.l1-link::after {
  display: none;
}

/* Mega dropdown styles (L2 Navigation) */
.mega-dropdown {
  position: absolute;
  left: 0;
  width: 100vw;
  background-color: #fff;
  box-shadow: 0 5px 15px var(--shadow-light);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 100;
  transform: none;
}

.has-dropdown.active .mega-dropdown {
  opacity: 1;
  visibility: visible;
}

.mega-menu-container {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px 20px;
  flex-wrap: wrap;
}

/* Category-based layout styles */
.categories-column {
  flex: 0 0 200px;
  padding-right: 20px;
  border-right: none;
  /* Remove the existing right border if present */
}

.category-item {
  margin-bottom: 0;
  padding: 16px 0px 16px 0px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  /* max-width: 200px; */
}

.category-item>a {
  line-height: 22px;
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  padding-right: 10px;
  width: 100%;
  /* Ensure the link takes full width */
}

/* Arrow icon styles */
.category-arrow {
  color: var(--primary-color);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-left: auto;
  /* Push arrow to the end */
}

/* Show arrow on hover */
.category-item:hover .category-arrow,
.category-item.active .category-arrow {
  opacity: 1;
  color: var(--primary-hover);
}

/* Hover and active states */
.category-item:hover a,
.category-item.active a {
  color: var(--primary-hover);
  text-decoration: none;
}

/* Remove border from last item */
.category-item:last-child {
  border-bottom: none;
}

.mega-menu-content {
  flex: 1;
  padding-left: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show mega-menu-content when category is hovered */
.category-item:hover~.mega-menu-content,
.mega-menu-content:hover {
  opacity: 1;
  visibility: visible;
}

.content-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

/* Show active content section */
.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Column layouts */
.product-columns,
.category-columns {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 20px;
}

/* Layout 1: Column-based layout */
[data-layout="layout1"] .mega-menu-container {
  flex-wrap: wrap;
}

/* Layout 2: Card-based layout */
[data-layout="layout2"] .mega-menu-container {
  justify-content: center;
  align-items: flex-start;
}

/* App content styles */
.app-content {
  padding: 20px;
  border-radius: 8px;
}

.app-section-title {
  margin-bottom: 15px;
  color: var(--primary-hover);
  font-size: 24px;
}

.app-section-description {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #555;
}

/* App list items */
.app-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px 0;
}

.app-list-item>a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.app-list-image {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.app-list-image img {
  max-height: 140px;
  max-width: 160px;
  height: auto;
  display: block;
}


.app-list-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
  margin-top: 10px;
}
.app-list-item a:hover .app-list-title {
  color: var(--primary-hover);
}
.app-list-item a :active .app-list-title{
  color: var(--primary-hover);
}
/* Responsive styles for app list */
@media (max-width: 991.98px) {
  .app-list-item {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}

@media (max-width: 767.98px) {
  .app-list-item {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 575.98px) {
  .app-items-list {
    gap: 20px;
  }

  .app-list-item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

/* Legacy app styles for backward compatibility */
.app-image {
  flex: 0 0 300px;
  margin-right: 30px;
}

.app-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.app-description {
  flex: 1;
}

.app-buttons {
  display: flex;
  margin-bottom: 25px;
}

.app-button {
  display: inline-block;
  padding: 10px 15px;
  margin-right: 15px;
  background-color: #0056b3;
  color: #fff;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.app-button:hover {
  background-color: #003d7a;
  color: #fff;
}

.app-features {
  font-weight: 600;
  margin-bottom: 10px;
}

.app-features-list {
  list-style: disc;
  padding-left: 20px;
}

.app-features-list>li {
  margin-bottom: 8px;
  color: #555;
}

.mega-menu-column {
  flex: 0 1 280px;
  padding: 0 15px;
  margin-bottom: 20px;
}

.mega-menu-column>h3 {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: bold;
  line-height: 22px;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-color);
}

.mega-menu-column>ul {
  margin-bottom: 20px;
}

.mega-menu-column>li {
  margin-bottom: 8px;
}

li>a {
  color: var(--text-color);
  padding: 0px !important;
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  text-decoration: none;
}

li>a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.l2-menu {
  margin-bottom: 20px;
}

.l2-item {
  margin-bottom: 8px;
  position: relative;
}

.l2-link {
  all: unset;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  display: flex;
  align-items: center;
  position: relative;
}

.colour-card .l2-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.l2-link:hover,
.l2-item.active>.l2-link {
  cursor: pointer;
}

.l2-link>i {
  margin-left: 5px;
  font-size: 12px;
}

/* View all link */
.view-all {
  margin-top: 20px;
}

.view-all>a {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
}

.view-all a i {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.view-all a:hover {
  text-decoration: underline;
}

/* Layout 2: Colours section styles */
.colours-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 20px 0;
  gap: 60px;
  width: 100%;
  margin-left: 20px;
}

.colour-card {
  flex: 0 0 auto;
  margin: 0;
  text-align: left;
  max-width: 180px;
}

.colour-card img {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.colour-card>span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* Feature callout styles */
.feature-callout {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.feature-callout img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

.feature-callout>h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #0056b3;
}

.feature-callout>p {
  font-size: 14px;
  color: #555;
}

/* Main content placeholder */
.content-placeholder {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.content-placeholder h1 {
  margin-bottom: 20px;
  color: #0056b3;
}

/* Responsive styles */
@media (max-width: 992px) {

  .mega-menu-container,
  .product-columns,
  .category-columns {
    flex-wrap: wrap;
  }

  .categories-column {
    flex: 0 0 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .category-item {
    display: inline-block;
    margin-right: 10px;
  }

  .mega-menu-content {
    padding-left: 0;
  }

  .mega-menu-column {
    flex: 0 0 50%;
    margin-bottom: 20px;
  }

  .colour-card {
    flex: 0 0 calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .main-menu {
    display: none; 
  }
}
