/* ========================================
   MOBILE NAVIGATION REDESIGN
   Background: #527d19 (Gentle Green)
   ======================================== */

/* Mobile Navigation Container */
.mobile-navigation-container {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: 98;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-navigation .action-label {
  color: #fff;
}

.mobile-navigation-container.active {
  left: 0;
  pointer-events: all;
}

/* Overlay */
.mobile-navigation-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}

.mobile-navigation-container.active::before {
  opacity: 1;
}

/* Mobile Navigation Panel */
.mobile-navigation {
  position: absolute;
  top: 0;
  left: -500px;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background: #527d19;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 95px;
}
.mobile-navigation.open {
  left: 0;
  visibility: visible;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}
/* Smooth Scrollbar */
.mobile-navigation::-webkit-scrollbar {
  width: 6px;
}

.mobile-navigation::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-navigation::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.mobile-navigation::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Header Area - Hidden */
.mobile-navigation .head {
  display: none;
}

/* Mobile Search */
.mobile-navigation-search {
  padding: 20px 20px 10px 20px;
  background: transparent;
}

.mobile-navigation-search .content {
  position: relative;
  display: flex;
  align-items: center;
  background: #85a35d;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mobile-navigation-search input {
  flex: 1;
  border: none;
  padding: 6px 18px;
  font-size: 15px;
  background: transparent;
  color: #333;
  outline: none;
}

.mobile-navigation-search input::placeholder {
  color: #fff;
  font-weight: 300;
}

.mobile-navigation-search .submit {
  background: transparent;
  border: none;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 18px;
}

.mobile-navigation-search .submit:hover {
  color: #6a9e23;
  transform: scale(1.1);
}

.mobile-navigation-search .submit:active {
  transform: scale(0.98);
}

/* Navigation Menu */
.mobile-navigation nav {
  padding: 0;
}

.mobile-navigation nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-navigation nav > ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-navigation nav > ul > li:last-child {
  border-bottom: none;
}

/* Menu item wrapper */
.mobile-navigation nav li > span {
  display: block;
  position: relative;
}

/* Menu links */
.mobile-navigation nav a {
  display: block;
  padding: 16px 24px;
  padding-left: 50px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-navigation nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-navigation nav a:hover,
.mobile-navigation nav a.active,
.mobile-navigation nav a.on {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.mobile-navigation nav a:hover::before,
.mobile-navigation nav a.active::before,
.mobile-navigation nav a.on::before {
  opacity: 1;
}

.mobile-navigation nav a:active {
  background: rgba(255, 255, 255, 0.18);
}

/* Toggle submenu button */
.mobile-navigation nav .toggle-sub-menu {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.mobile-navigation nav .toggle-sub-menu:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.mobile-navigation nav .toggle-sub-menu::after {
  content: "\f053";
  font-family: "FontAwesome";
  transition: transform 0.3s ease;
  display: inline-block;
}

.mobile-navigation nav .toggle-sub-menu.opened::after {
  content: "\f078";
}

.mobile-navigation nav .toggle-sub-menu.no-sub-menu::after {
  content: "\f111";
  font-size: 8px;
  opacity: 0.5;
}

.mobile-navigation nav .toggle-sub-menu.external-link::after {
  content: "\f08e";
}

/* Submenu Styles */
.mobile-navigation nav ul ul {
  max-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-navigation nav ul ul.open {
  max-height: 2000px;
}

.mobile-navigation nav ul ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-navigation nav ul ul li:last-child {
  border-bottom: none;
}

.mobile-navigation nav ul ul a {
  padding: 14px 24px 14px 70px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.mobile-navigation nav ul ul .toggle-sub-menu {
  left: 20px;
  width: 40px;
}

/* Third level submenu */
.mobile-navigation nav ul ul ul {
  background: rgba(0, 0, 0, 0.2);
}

.mobile-navigation nav ul ul ul a {
  padding-left: 90px;
  font-size: 14px;
}

.mobile-navigation nav ul ul ul .toggle-sub-menu {
  left: 40px;
}

/* Mobile Social Icons */
.mobile-social {
  padding: 30px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;

  margin-top: 20px;
}

.mobile-social .icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-social .icon-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.mobile-social .icon-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.mobile-social .icon-btn em {
  color: white;
  font-size: 20px;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .mobile-navigation {
    width: 90%;
  }

  .mobile-navigation nav a {
    font-size: 17px;
    padding: 14px 20px;
    font-weight: 300;
  }

  .mobile-social .icon-btn {
    width: 44px;
    height: 44px;
  }
}

/* Animation for menu items */
.mobile-navigation-container.active .mobile-navigation nav > ul > li {
  animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.mobile-navigation-container.active
  .mobile-navigation
  nav
  > ul
  > li:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-navigation-container.active
  .mobile-navigation
  nav
  > ul
  > li:nth-child(2) {
  animation-delay: 0.15s;
}

.mobile-navigation-container.active
  .mobile-navigation
  nav
  > ul
  > li:nth-child(3) {
  animation-delay: 0.2s;
}

.mobile-navigation-container.active
  .mobile-navigation
  nav
  > ul
  > li:nth-child(4) {
  animation-delay: 0.25s;
}

.mobile-navigation-container.active
  .mobile-navigation
  nav
  > ul
  > li:nth-child(5) {
  animation-delay: 0.3s;
}

.mobile-navigation-container.active
  .mobile-navigation
  nav
  > ul
  > li:nth-child(n + 6) {
  animation-delay: 0.35s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   PAGE TEMPLATE LAYOUT STYLES
   ======================================== */

/* Page Root Container */
.page-root {
  width: 100%;
}

.page-container {
  width: 100%;
}

/* Page Content Header */
.page-content-head {
  padding: 2rem 12rem;
  text-align: right;
  width: 100%;
  background: linear-gradient(to bottom right, #2b98d4, #517b1b);

  @media (max-width: 991px) {
    padding: 3.5rem 2rem 2rem;
  }
}

/* Breadcrumb Styling */
.page-content-head .breadcrumb,
.page-content-head nav,
.page-content-head ol,
.page-content-head ul {
  font-size: 1.1rem;
}

.page-content-head .breadcrumb a,
.page-content-head nav a {
  font-size: 1.1rem;
}

/* Page Title Styling */
.page-content-head .page-title {
  font-size: 2.5rem;
  margin-top: 1rem;
}

/* Page Wrapper */
.page-wrapper {
  max-width: 83vw;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: 85px;
  position: relative;

  @media (max-width: 991px) {
    max-width: 99%;
  }
}

.page-wrapper::before {
  content: "";
  position: absolute;
  top: -125px;
  right: -200px;
  width: 200px;
  height: 200px;
  background-image: url(../content/images/colorsCircle.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  opacity: 0.9;
  pointer-events: none;
}

/* Page Layout - Flexbox Container */
.page-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;

  @media (max-width: 991px) {
    display: block;
  }
}

/* Main Content Area */
.page-main-content {
  flex: 1;
  min-width: 0;

  @media (max-width: 991px) {
    overflow-x: clip;
  }
}

.page-content {
  margin-bottom: 2rem;
}

/* Mobile Navigation (shown on mobile only) */
.page-content-nav.mobile-nav {
  display: block;
  margin-bottom: 2rem;
}

/* Gallery Section */
.page-gallery-section {
  margin: 2rem 0;
}

.gallery-container {
  padding: 1.5rem;
}

.gallery-item {
  padding: 0.5rem;
}

/* Page Footer Section */
.page-footer-section {
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feedback-column,
.share-column {
  padding: 0;
}

/* Sidebar Wrapper */
.page-sidebar-wrapper {
  width: 400px;
  flex-shrink: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding-left: 2rem;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: #000;
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

/* Sidebar */
.page-sidebar {
  position: sticky;
  top: 20px;
  padding: 2rem;
}

.page-sidebar nav {
  position: relative;
}

.page-sidebar .pages-nav-title {
  color: var(--primary-color, #2b98d4);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.page-sidebar .pages-nav-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: #2c9edd;
}

.page-sidebar .pages-nav-title::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: -65px;
  width: 360px;
  height: 225px;
  background-image: url(../content/images/elementLogo.svg?v=1);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* opacity: 0.15; */
  z-index: -1;
  pointer-events: none;
}

.page-sidebar .pages-nav-title span {
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-layout {
    gap: 30px;
  }

  .page-sidebar-wrapper {
    width: 320px;
  }
}

@media (max-width: 768px) {
  .page-layout {
    flex-direction: column;
    gap: 20px;
  }

  .page-sidebar-wrapper {
    width: 100%;
  }

  .page-sidebar {
    position: static;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-wrapper {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-layout {
    gap: 15px;
  }

  .gallery-container {
    padding: 1rem;
  }
}

/* No Sidebar Layout */
.page-layout:not(.has-sidebar) {
  justify-content: center;
}

.page-layout:not(.has-sidebar) .page-main-content {
  max-width: 1200px;
}

/* ========================================
   CONTACT MAN REDESIGN
   New flex-based layout for contact cards
   ======================================== */

/* Contact Card Container */
.rich-content .contact-man {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.rich-content .contact-man:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Left Side - Contact Details (vertical stack) */
.rich-content .contact-man .contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.rich-content .contact-man .contact-details .contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #333;
}

.rich-content .contact-man .contact-details .contact-item .icon {
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
  color: #0372ac;
}

.rich-content .contact-man .contact-details .contact-item a {
  color: #0372ac;
  text-decoration: none;
  transition: color 0.3s ease;
}

.rich-content .contact-man .contact-details .contact-item a:hover {
  color: #005888;
  text-decoration: underline;
}

/* Right Side - Name, Role, Hours (RTL aligned) */
.rich-content .contact-man .contact-info {
  text-align: right;
  flex: 1;
}

.rich-content .contact-man .contact-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0372ac;
  margin-bottom: 0.5rem;
}

.rich-content .contact-man .contact-role {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.rich-content .contact-man .contact-info hr {
  border: none;
  border-top: 2px solid #0372ac;
  margin: 1rem 0;
}

.rich-content .contact-man .contact-hours {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.rich-content .contact-man .contact-hours .icon {
  font-size: 1.1rem;
  color: #0372ac;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .rich-content .contact-man {
    flex-direction: column;
    gap: 1.5rem;
  }

  .rich-content .contact-man .contact-info {
    text-align: center;
    order: -1; /* Move name/info to top on mobile */
  }

  .rich-content .contact-man .contact-details {
    order: 1;
  }

  .rich-content .contact-man .contact-hours {
    justify-content: center;
  }
  .slick-ads .wrapper {
    .inner {
      padding-top: 18rem;
    }
  }
}

@media (max-width: 480px) {
  .rich-content .contact-man {
    padding: 1rem;
  }

  .rich-content .contact-man .contact-name {
    font-size: 1.3rem;
  }

  .rich-content .contact-man .contact-details .contact-item {
    font-size: 0.9rem;
  }
}
