/* ============================================
   CUSTOM STYLES - HIGHEST PRIORITY
   ============================================

   This file loads last and will override any
   other styles defined in the theme.

   Add your custom CSS below:
   ============================================ */

/* ============================================
   CSS VARIABLES - DESIGN SYSTEM
   ============================================ */
:root {
  /* Primary Colors */
  --primary-color: #567e1d;
  --primary-hover: #0056b3;
  --secondary-color: #2c9edd;
  --accent-color: #28a745;

  /* Neutral Colors */
  --text-primary: #4d4d4f;
  --text-secondary: #666666;
  --text-light: #999999;
  --background-light: #fafafa;
  --background-white: #ffffff;
  --border-color: #dee2e6;

  /* Status Colors */
  --success-color: #28a745;
  --warning-color: #ffc107;
  --error-color: #dc3545;
  --info-color: #17a2b8;

  /* Font Sizes */
  --font-xs: 0.75rem;
  /* 12px */
  --font-sm: 0.875rem;
  /* 14px */
  --font-base: 1rem;
  /* 16px */
  --font-lg: 1.125rem;
  /* 18px */
  --font-xl: 1.25rem;
  /* 20px */
  --font-2xl: 1.5rem;
  /* 24px */
  --font-3xl: 1.875rem;
  /* 30px */
  --font-4xl: 2.25rem;
  /* 36px */
  --font-5xl: 3rem;
  /* 48px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  /* 4px */
  --space-sm: 0.5rem;
  /* 8px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   HEADER REDESIGN
   ============================================ */

/* Reset header styles */
.header {
  border-top: none;
  background: #fff;
  height: auto;
  padding: 0;
  box-shadow: 0 2px 4px #00000034;
}

/* Header Container - Flex Layout */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 96%;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  gap: 2rem;
}

/* Left Side: Logo + Navigation */
.header-right {
  display: flex;
  align-items: center;

  flex: 1;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-shrink: 0;
  margin-bottom: -81px;
  right: 22px;

  filter: drop-shadow(0px 1px 0px #00000034);
  border-radius: 30px;
}

.header-logo svg {
  width: 100%;
}

.header-logo img {
  width: 50%;
  height: auto;
  margin-top: -85px;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
}

/* Reset old navigation styles */
.header-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.header-nav > ul > li {
  display: inline-flex;
  position: relative;
  align-items: center;
}

.header-nav > ul > li > span > a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

/* Gentle dot separator between nav items */
.header-nav > ul > li::after {
  content: "•";
  color: #329edd;
  font-size: 1.2rem;
  margin: 0 0.25rem;
}

.header-nav > ul > li:last-child::after {
  content: none;
}

.header-nav > ul > li > span > a:hover,
.header-nav > ul > li.on > span > a,
.header-nav > ul > li > span > a.on {
  color: var(--web-primary-color);
}

/* Dropdown menus */
.header-nav > ul > li > ul {
  /* display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 450px;
  z-index: 9999;
  border-radius: 8px;
  margin-top: 0;
  padding-top: 0.5rem;
  column-count: 2; */
  display: none;
  text-align: right;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 9999;
  width: 520px;
  background: #fff;
  color: #000;
  padding: 1rem 1.25rem;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: subpixel-antialiased;
  margin-top: 0;
  border-radius: 10px;
  column-count: 2;
  column-gap: 2.5rem;
}

.header-nav > ul > li:hover > ul {
  display: block;
}

/* Bridge the gap between parent and submenu */
.header-nav > ul > li > ul::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

.header-nav > ul > li > ul > li {
  display: block;
  margin-bottom: 2rem;
}

.header-nav > ul > li > ul > li > span > a {
  /* display: block;
  padding: 0.75rem 1.5rem;
  color: #333;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease; */
  font-size: 1.1rem;
  display: block;
  width: 100%;
  color: var(--text);
  position: relative;
  text-decoration: none;
}

.header-nav > ul > li > ul > li > span > a:hover {
  /* background: rgba(86, 126, 29, 0.1); */
  color: var(--primary-color);
}
.header nav > ul > li > ul > li > span > a::after {
  content: "";
  display: block;
  position: relative;
  bottom: -1rem;
  width: 50px;
  height: 1px;
  background-color: #b5d35a;
  right: 0;
}
/* Right Side: Action Items */
.header-left {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  margin-bottom: -30px;
}

/* Action Items */
.header-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.action-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  color: #666;
}

.header-left a:hover {
  text-decoration: none !important;
}

.action-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-icon em {
  display: block;
}

.slick-dots {
  display: inline-flex;
  list-style-type: none;
  position: relative;
  z-index: 1;
  position: absolute;
  bottom: 1rem;
  left: 2.5rem;
  justify-content: flex-end;
  width: 100%;
  padding-inline: 0;
  gap: 0.5rem;
}

.slick-dots li button {
  position: relative;
  margin-inline: 1px;
  line-height: 0;
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  padding: 5px;
  margin: 0 0.15rem;
  cursor: pointer;
  color: transparent;
  border: 1px solid var(--prime2);
  outline: none;
  background: #2c9edd;
  font-size: 0;
  border-radius: 50%;
}
.slick-dots li.slick-active button {
  border: 1px solid #2c9edd;
  background-color: #fff;
}
.slick-dots li.slick-active button {
  background-color: var(--prime2);
}
/* Icon Circle Wrapper */
.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid #fff;
}

.icon-circle > img {
  width: 65%;
  height: 65%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Mobile Toggles - Hidden by default in DESKTOP */
.mobile-toggle-right,
.mobile-toggle-left {
  display: none;
}

main {
  padding-top: 40px !important;
  /* header height */
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1199px) {
  .header-container {
    padding: 1rem;
    gap: 1rem;
  }

  .header-right {
    gap: 1.5rem;
  }

  .header-nav > ul > li > span > a {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
  }

  .header-left {
    gap: 1rem;
  }

  .action-label {
    font-size: 0.75rem;
  }

  .action-icon {
    font-size: 1.25rem;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 991px) {
  /* Hide desktop navigation and action items */
  .header-nav {
    display: none;
  }
  .header-left .header-action-item:not(.golang) {
    display: none;
  }
  .header-action-item.golang {
    position: fixed;
    left: 0;
    top: 54px;
  }

  /* Mobile Header Layout - 3 Column Grid */
  .header-container {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    margin-bottom: -38px;
  }

  /* Mobile Logo - Centered */
  .header-right {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
    grid-column: 2;
    margin-bottom: -30px;
  }

  .header-logo {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 0;
    position: static;
    filter: drop-shadow(0px 1px 0px #00000034);
  }

  .header-logo svg {
    width: 100%;
    max-width: 230px;
  }

  .header-logo img {
    width: 50%;
    height: auto;
    margin-top: -54px;
  }

  /* Mobile Toggle Buttons - Circular */
  .mobile-toggle-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #7a4376;
    color: #fff;
    border: none;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    order: 1;
    grid-column: 1;
    box-shadow: var(--shadow-md);
    z-index: 5;
  }

  .mobile-toggle-right:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
  }

  .mobile-toggle-right em {
    font-size: 1.5rem;
  }

  .mobile-toggle-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;

    background: #add038;
    color: #fff;

    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    order: 3;
    grid-column: 3;
    z-index: 5;
    box-shadow: var(--shadow-md);
  }

  .mobile-toggle-left:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
  }

  .mobile-toggle-left em {
    font-size: 1.5rem;
  }
}

/* ============================================
   NEWS SECTION REDESIGN
   ============================================ */

/* News container */
.news {
  background: var(--primary-color) !important;
  padding: var(--space-sm);
  color: var(--background-white) !important;
  position: relative;
}

.news .content {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  position: relative;
}

.news * {
  color: var(--background-white) !important;
}

.breaking-news-ticker .bn-news ul li a::after {
  content: "•";
  margin: 0 20px;
  font-size: 1.2em;
  display: inline;
  vertical-align: middle;
}

.breaking-news-ticker .bn-news ul li:last-child a::after {
  content: "";
}

/* News heading */
.news h2 {
  background: var(--primary-color);
  color: var(--background-white);
  font-size: var(--font-xl);
  font-weight: var(--font-bold);
  border-radius: 0 !important;
  padding-left: 1rem;
  display: flex;
  align-items: center;
  position: relative;
}

.news h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(-1 * var(--space-sm));
  bottom: calc(-1 * var(--space-sm));
  width: 1px;
  background-color: #fff;
}

.news h2 a {
  color: inherit;
  transition: opacity 0.3s ease;
}

.news a:hover {
  text-decoration: underline !important;
}

/* News links */
.news a {
  color: var(--background-white);
  transition: opacity 0.3s ease;
}

.news a:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* News date */
.news .date {
  font-weight: var(--font-bold);
  color: var(--background-white) !important;
}

/* News ticker content */
.news .bn-news,
.news .bn-news ul,
.news .bn-news li,
.news .bn-news a,
.news .bn-news span,
.news .bn-news time,
.news .name {
  color: var(--background-white) !important;
  font-size: 1rem;
  font-weight: 200;
}

.news .sr-only {
  color: var(--background-white) !important;
}

/* News ticker controls - Complete Redesign */
.bn-controls {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.bn-controls button {
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

.bn-controls button:hover {
  opacity: 0.7;
}

/* Hide the old pseudo-element system completely */
.bn-action,
.bn-action::before,
.bn-action::after {
  display: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Use FontAwesome icons instead */
.bn-controls button::before {
  font-family: "FontAwesome";
  content: "\f04c";
  /* pause icon */
  color: #fff;
  font-size: 1.2rem;
  display: block;
}

/* When paused, show play icon */
.bn-controls button.paused::before {
  content: "\f04b";
  /* play icon */
}

/* News toggle button */
.news-toggle {
  background: var(--primary-color);
  border: 2px solid var(--background-white);
  transition: all 0.3s ease;
}

.news-toggle:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* ============================================
   QUICK ACTIONS SECTION
   ============================================ */

.quick-actions {
  padding: var(--space-2xl) 0;

  width: 88vw;
  margin: 0 auto;
}

.quick-actions h2 {
  text-align: right;
  font-size: var(--font-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-xl);
}

.quick-actions h2 .primary-text {
  color: var(--primary-color);
  font-size: var(--font-4xl);
}

.quick-actions h2 .secondary-text {
  color: var(--secondary-color);
  font-size: var(--font-4xl);
}

.quick-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.quick-action-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  transition: all 0.3s ease;
}

.quick-action-icon img {
  width: 100%;
  height: inherit;
  object-fit: contain;
}

.quick-action-icon em {
  font-size: 2.5rem;
  color: var(--background-white);
}

.quick-action-text {
  font-size: var(--font-lg);
  font-weight: var(--font-medium);
}

/* Responsive - Tablet */
@media (max-width: 991px) {
  .quick-actions-grid {
    gap: var(--space-md);
  }
  .footer-right {
    width: 100% !important;
  }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
  .quick-actions {
    width: 85vw;
    padding: var(--space-xl) 0;
  }

  .cover {
    min-height: 300px !important;
  }

  .quick-actions h2 {
    font-size: var(--font-xl);
    margin-bottom: var(--space-lg);
  }

  .quick-actions h2 .primary-text,
  .quick-actions h2 .secondary-text {
    font-size: var(--font-3xl);
  }

  .quick-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .quick-action-item {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: right;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 2px solid var(--border-color);
    background: var(--background-white);
    transition: all 0.3s ease;
  }

  .quick-action-item:first-child {
    border-top: 2px solid var(--border-color);
  }

  .quick-action-item:hover {
    background: var(--background-light);
    padding-right: var(--space-xl);
  }

  .quick-action-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .quick-action-icon img {
    max-width: 80%;
    max-height: 80%;
  }

  .quick-action-icon em {
    font-size: 1.5rem;
  }

  .quick-action-text {
    flex: 1;
    text-align: right;
    font-size: var(--font-2xl);
    font-weight: var(--font-medium);
  }

  .icon-circle {
    border: 3px solid #fff;
  }

  .icon-circle img {
    width: 75%;
    height: 75%;
  }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-section {
  padding: var(--space-2xl) 0;
  width: 85vw;
  margin: 0 auto;
  margin-top: 230px;
}

.projects-section h2 {
  text-align: right;
  font-size: var(--font-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2xl);
}

.projects-section h2 .primary-text {
  color: var(--primary-color);
  font-size: calc(1.4vw + 16px);
}

.projects-section h2 .secondary-text {
  color: var(--secondary-color);
  font-size: var(--font-4xl);
}

.projects-container {
  /* display: flex; */
  gap: var(--space-xl);
  align-items: stretch;
  border-radius: var(--radius-lg);

  max-height: 800px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Project Image Side - 55% */
.project-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  top: -360px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 450px;
  background-image: url("../content/images/elementLogo.svg?v=1");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  pointer-events: none;
}

.project-image img {
  /* width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 10; */
  width: 100%;
  height: 100%;
  max-height: 800px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
}

/* Project List Side - 45% */
.project-list {
  flex: 0 0 45%;
  width: 100%;
  /* height: 100%; */
  display: flex;
  flex-direction: column;
}

/* Let's get this party started */
.project-list::-webkit-scrollbar {
  width: 15px;
}

/* Track */
::-webkit-scrollbar-track {
  -webkit-border-radius: 10px;
  background-color: #d5ecf8;
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  background: #2c9edd;
}

.project-list ul {
  list-style: none;
  padding: 0 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-height: 800px;
  overflow-x: clip;
  overflow-y: auto;
}

.project-list li {
  padding: 0;
  margin: 0;
}

/* Individual Project Item */
.project-item {
  padding: var(--space-xl);
  background: var(--background-light);
  border-radius: 0;
  border-right: 15px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.project-item:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateX(-5px);
}

/* Project Title */
.project-title {
  font-size: calc(1.4vw + 16px);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.4;
}

/* Project Status */
.project-status {
  display: inline-block;

  border-radius: var(--radius-full);
  font-size: var(--font-base);
  font-weight: var(--font-medium);
  text-align: center;
}

.project-info {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-base);
  font-weight: var(--font-medium);
}
.project-info > div {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
/* Project Link */
.project-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  font-size: calc(0.24vw + 16px);
}

.project-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Status Colors */
.status-active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-planning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.status-completed {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
  .project-image {
    min-height: 300px;
  }

  .project-list {
    padding: var(--space-lg);
  }
  .projects-section {
    padding: var(--space-xl) 0;
    width: 85vw;
    margin-top: 80px;
  }

  .projects-section h2 {
    margin-bottom: var(--space-lg);
  }

  .projects-section h2 .primary-text,
  .projects-section h2 .secondary-text {
    font-size: var(--font-3xl);
  }

  .projects-container {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: var(--space-lg);
  }
  .project-list {
    flex: 1 0 100%;
    width: auto;
  }

  .project-image {
    flex: none;
    width: 100%;
    min-height: 250px;
    height: 300px;
    order: 1;
  }

  .project-image::before {
    width: 240px;
    height: 150px;
    top: -168px;
    left: 0;
    transform: none;
  }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
  .qna-decoration-circle {
    width: 170px !important;
    height: 170px !important;
    right: -18px !important;
    bottom: -139px !important;
  }

  .qna-list {
    margin-top: 50px !important;
  }

  .project-list {
    flex: none;
    width: 100%;
    padding: 0;
    padding-right: 0;
    order: 2;
    overflow-y: visible;
    max-height: 300px;
  }

  .project-list ul {
    gap: var(--space-md);
    padding: 0;
  }

  .project-item {
    padding: var(--space-md);
    border-right-width: 8px;
  }

  .project-title {
    font-size: var(--font-lg);
  }

  .project-status {
    font-size: var(--font-xs);
    padding: calc(var(--space-xs) * 0.75) var(--space-sm);
  }

  .project-info {
    gap: var(--space-sm);
  }
}

/* ============================================
   Q&A SECTION
   ============================================ */

.qna-section {
  padding: var(--space-2xl) 0;
  width: 85vw;
  margin: 0 auto;
}

.qna-section h2 {
  text-align: right;
  font-size: var(--font-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2xl);
}

.qna-section h2 .primary-text {
  color: var(--primary-color);
  font-size: var(--font-4xl);
}

.qna-section h2 .secondary-text {
  color: var(--secondary-color);
  font-size: var(--font-4xl);
}

.qna-container {
  position: relative;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: var(--space-2xl);
  align-items: start;
  min-height: 100%;
}

/* Image Side - 40% */
.qna-image1 {
  position: relative;
  border: 1px solid #4d4d4f80;
  border-radius: 25px;
  padding: 12px;
  height: 100%;
}
.slick-ads .wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: auto;
  border-radius: 20px;
  background-size: cover;
  background-position: center;

  padding: 2rem;
  .inner {
    margin-top: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
  }
}
.wrapper .gradient {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 20px;
  inset: 0;
  margin: auto;
  background: linear-gradient(
    0deg,
    rgba(1, 12, 20, 0.7) 5%,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0) 50%,
    rgb(1 12 20 / 8%) 80%
  );
}
.wrapper .qna-overlay-separator {
  display: block;
}
.wrapper .qna-overlay-subtext {
  display: block;
  width: 100%;
}
.slick-ads div {
  height: 100%;
}
.qna-image1 .big-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  filter: brightness(80%);
}

/* Image Overlay Text */
.qna-image-overlay {
  position: absolute;
  bottom: 24px;
  right: 24px;
  text-align: right;
  padding: var(--space-xl);
  background: rgba(0, 0, 0, 0.041);
  border-radius: var(--radius-lg);
  max-width: 80%;
}

.qna-overlay-header {
  font-size: var(--font-5xl);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.qna-overlay-separator {
  width: 80px;
  height: 4px;
  background: #ffda2c;
  margin: 0 0 var(--space-sm) auto;
  border-radius: 2px;
}

.qna-overlay-subtext {
  font-size: var(--font-lg);
  color: #ffffff;
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Q&A List Side - 60% */
.qna-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Individual Q&A Item */
.qna-item {
  background: var(--background-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-right: 60px;
}

.qna-item:hover {
  box-shadow: var(--shadow-md);
}

/* Question Button */
.qna-question {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  background: #d5ecf8;
  border: none;
  cursor: pointer;
  text-align: right;
  transition: all 0.3s ease;
  gap: 0;
  min-height: 60px;
}

.qna-question:hover {
  background: #c0e4f5;
}

.qna-question[aria-expanded="true"] {
  background: #c0e4f5;
}

.qna-question-text {
  font-size: calc(0.5vw + 16px);
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  align-items: center;
}
.qna-question[aria-expanded="true"] .qna-question-text {
  font-weight: 900;
  font-size: calc(0.75vw + 16px);
}
/* Toggle Icon */
.qna-toggle-icon {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 100%;
  background: #2c9edd;
  color: var(--background-white);
  transition: all 0.3s ease;
}

.qna-toggle-icon img {
  width: 40px;
  height: 40px;
  transition: opacity 0.3s ease;
  position: absolute;
}

.qna-toggle-icon .icon-closed {
  opacity: 1;
}

.qna-toggle-icon .icon-open {
  opacity: 0;
}

.qna-question[aria-expanded="true"] .qna-toggle-icon .icon-closed {
  opacity: 0;
}

.qna-question[aria-expanded="true"] .qna-toggle-icon .icon-open {
  opacity: 1;
}

/* Answer Content */
.qna-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: #c0e4f5;
  padding: 0 var(--space-lg);
}

.qna-question[aria-expanded="true"] + .qna-answer {
  min-height: 250px;
  padding: var(--space-lg);
}

.qna-answer p {
  margin: 0;
  color: var(--text-primary);
  font-size: calc(0.45vw + 16px);
  line-height: 1.8;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
  .qna-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .slick-ads .wrapper {
    padding: 15vw 2rem 2rem;
  }

  .qna-item {
    border-radius: 0;
  }

  .qna-image1 {
    position: relative;
    top: 0;
    order: -1;
    height: auto !important;
    width: 88vw !important;
    margin: 0 auto;
  }

  .qna-image1 img {
    min-height: 360px;
  }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
  main {
    padding-top: 0 !important;
  }

  .header {
    box-shadow: none !important;
  }

  .qna-section {
    padding: var(--space-xl) 0;
    width: 100vw;
  }

  .qna-question {
    padding: var(--space-md);
  }

  .qna-question-text {
    font-size: var(--font-base);
    padding: 0px;
  }

  .qna-section h2 {
    padding: 0 26px;
  }

  .qna-answer p {
    font-size: var(--font-sm);
  }

  .qna-image-overlay {
    bottom: 16px;
    right: 16px;
    padding: var(--space-md);
    max-width: 85%;
  }

  .qna-overlay-header {
    font-size: var(--font-xl);
  }

  .qna-overlay-separator {
    width: 40px;
    height: 2px;
  }

  .qna-overlay-subtext {
    font-size: var(--font-base);
  }
}

/* ============================================
   FOOTER REDESIGN
   ============================================ */

/* Footer Container */
.footer {
  background: #fff;
  border-top: 12px solid;
  border-image: linear-gradient(
      90deg,
      #2895c5,
      #94a448,
      #fab24a,
      #ba2e23,
      #fab24a,
      #94a448
    )
    1;

  margin-top: 250px;
}

.footer-container {
  display: flex;
  max-width: 85vw;
  margin: 0 auto;
  padding: 50px 0;
  align-items: flex-start;
}

/* Left Container: Logo and Social Icons */
.footer-left {
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  justify-content: center;
}

/* Footer Left Wrapper */
.footer-left-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-right: 50px;
}

/* Footer Logo */
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}

.footer-logo img {
  max-width: 200px;
  height: auto;
  width: auto;
}

/* Footer Social Icons */
.footer-social-icons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-icon-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-icon-item:hover {
  transform: scale(1.1);
  text-decoration: none;
}

.footer-icon-item .icon-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2.6px solid #fff;
  box-shadow: var(--shadow-sm);
}

.footer-icon-item .icon-circle em {
  color: #fff;
  font-size: 1.25rem;
}

/* Right Container: Links Grid */
.footer-right {
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  flex-direction: column;
}

.footer-right ul {
  margin-top: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.footer-right ul li {
  flex: 0 0 33.333%;
  box-sizing: border-box;
  padding: 10px;
  text-align: right;
}

.footer-right a {
  color: #4d4d50 !important;
  font-size: var(--font-lg);
  font-weight: 500;
}

/* Footer Links Flex - 3 Columns */
.footer-links-grid {
  display: flex !important;
  flex-direction: row !important;
  gap: var(--space-xl);
  width: 100%;
  justify-content: space-between;
}

/* Individual Footer Column */
.footer-column {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 33.333%;
  min-width: 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-column h3 {
  font-size: var(--font-xl);
  font-weight: var(--font-bold);
  color: var(--primary-color);
}

.footer-column li {
  padding: 0;
  margin: 0;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-right: var(--space-md);
  font-weight: 500;
  font-size: 17px;
}

.footer-column a::before {
  content: "◄";
  position: absolute;
  right: 0;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.footer-column a:hover {
  color: var(--primary-color);
  padding-right: var(--space-lg);
  text-decoration: none;
}

.footer-column a:hover::before {
  opacity: 1;
}

/* Footer Default (when no sections) */
.footer-default {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-base);
}

.footer-default a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-default a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Footer Copyright Strip */
.footer-copyright {
  background: linear-gradient(to bottom right, #476d15, #517c18);
  width: 100%;
  padding: var(--space-sm) 0;
}

.footer-copyright-content {
  max-width: 85vw;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright-left,
.copyright-right {
  color: #fff;
  font-size: var(--font-base);
  font-weight: 200;
}

.copyright-right a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-weight: 200;
}

.copyright-right a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ============================================
   FOOTER RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 991px) {
  .footer-container {
    flex-direction: column;
    gap: var(--space-2xl);
    padding: 0 1rem;
  }

  .footer-left {
    flex: 1;
    width: 100%;
    align-items: center;
  }

  .footer-social-icons {
    justify-content: center;
  }

  .footer-links-grid {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

/* ============================================
   FOOTER RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 991px) {
  .footer-copyright {
    margin-top: 3rem;
  }
}
@media (max-width: 576px) {
  .footer {
    margin-top: 100px;
  }

  .footer-container {
    gap: 85px;
  }

  .footer-copyright-content {
    flex-direction: column !important;
  }

  .footer-left-wrapper {
    margin: 0 !important;
  }

  .footer-right ul li {
    flex: 0 0 50%;
  }

  .footer-logo svg {
    max-width: 150px;
  }

  .footer-logo img {
    margin-top: -40px;
  }

  .footer-links-grid {
    flex-direction: column;
    gap: var(--space-md);
  }

  .footer-column h3 {
    font-size: var(--font-lg);
  }

  .footer-column a {
    font-size: var(--font-sm);
  }
}

/* ============================================
   Q&A DECORATION CIRCLE
   ============================================ */

.qna-decoration-circle {
  position: absolute;
  bottom: -180px;

  right: -263px;
  width: 600px;
  height: auto;
  z-index: -8;
  opacity: 0.9;
}

.contact-card {
  background: white;
  border-radius: 28px;
  padding: 25px;
  box-shadow: 1px 1px 6px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
  overflow: visible;
  max-width: 800px;
  transition: all 0.3s ease;
  position: relative;
}

/* Zigzag Pattern - Odd items to the right */
.contact-card:nth-child(odd) {
  margin-left: auto;
  margin-right: 0;
}

/* Zigzag Pattern - Even items to the left */
.contact-card:nth-child(even) {
  margin-left: 0;
  margin-right: auto;
}

/* Decorative Circle for even items (2nd, 4th, 6th, etc.) */
.contact-card:nth-child(even)::before {
  content: "";
  position: absolute;
  width: 52vh;
  height: 52vh;
  background-image: url("../content/images/colorsCircle.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  top: -50px;
  left: -100px;
  z-index: -1;
  opacity: 0.8;
}

/* Position decoration on the right for 4th, 8th, 12th, etc. */
.contact-card:nth-child(4n)::before {
  left: auto;
  right: -100px;
}

/* TOP SECTION */
.card-top {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  gap: 30px;
}

/* RIGHT SIDE - Person Info */
.person-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: right;
  /* For RTL Hebrew */
}

.person-name {
  font-size: 32px;
  font-weight: 900;
  color: #616161;
  line-height: 0.8;
  margin-bottom: 5px;
}

.person-job {
  font-size: 16px;
  font-weight: 300;
  color: #666;
}

/* LEFT SIDE - Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  font-size: 17px;
}

.phones-line {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.phone-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #444;
}

.phone-item .phone-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("../content/images/fa-phone.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
}

.phone-item .mobile-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("../content/images/fa-mobile.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
}

.email-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.email-line .mail-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("../content/images/fa-at.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
}

.email-line a {
  color: #444 !important;
  text-decoration: none;
}

.email-line a:hover {
  text-decoration: underline;
}

/* DIVIDER */
.card-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 0 20px;
}

/* BOTTOM SECTION */
.card-bottom {
  padding: 20px;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-bottom .clock-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("../content/images/fa-clock.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
}

@media (min-width: 992px) and (max-width: 1599px) {
  .header-right {
    align-items: flex-end;
  }
  .header-logo {
    position: absolute;
    bottom: 59px;
    width: 240px;
    right: 22px;
  }
  .header-logo img {
    width: 60%;
    margin-top: -79px;
  }
  .header nav ul {
    padding-right: 12rem;
  }
  .header-nav > ul > li > span > a {
    font-size: 1.1rem;
    padding: 0.5rem;
  }
}
@media (min-width: 992px) and (max-width: 1299px) {
  .header-nav > ul > li > span > a {
    font-size: 1rem;
    padding: 0.2rem;
  }
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .card-top {
    flex-direction: column;
    gap: 20px;
  }

  .person-info {
    text-align: left;
  }

  .person-name {
    font-size: 24px;
  }

  .phones-line {
    flex-direction: column;
    gap: 8px;
  }
}

/* RTL Support for Hebrew */
[dir="rtl"] .contact-card {
  direction: rtl;
}

[dir="rtl"] .person-info {
  text-align: right;
}

[dir="rtl"] .contact-info {
  text-align: right;
}

/* ============================================
   SEARCH MENU ITEM - Icon Only Display
   ============================================ */

/* Target the search menu item */
.header-nav li[data-id="40"] > span > a {
  font-size: 0;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide the arrow icon */
.header-nav li[data-id="40"] > span > a .arrow {
  display: none;
}

/* Add search icon using ::before */
.header-nav li[data-id="40"] > span > a::before {
  content: "\f002";
  font-family: "FontAwesome";
  font-size: 1.1rem;
  color: #333;
  display: inline-block;
}

/* Hover effect for search icon */
.header-nav li[data-id="40"] > span > a:hover::before,
.header-nav li[data-id="40"].on > span > a::before,
.header-nav li[data-id="40"] > span > a.on::before {
  color: var(--web-primary-color);
}

.sub-pages-nav.clearfix em.arrow {
  display: none !important;
}

ul.sub-pages-nav > li {
  border-right: 3px solid red !important;
  padding-right: 10px;
  margin-right: 8px;
  display: none !important;
}

.sub-pages-nav li {
  border-right: 5px solid;
  background-color: #f0fafd;
}

/* Gentle color cycle */
/* Gentle repeating color cycle */
.sub-pages-nav li:nth-child(7n + 1) {
  border-right-color: #2c9edd;
}

/* blue */
.sub-pages-nav li:nth-child(7n + 2) {
  border-right-color: #add038;
}

/* lime green */
.sub-pages-nav li:nth-child(7n + 3) {
  border-right-color: #ffda2c;
}

/* yellow */
.sub-pages-nav li:nth-child(7n + 4) {
  border-right-color: #faa61a;
}

/* orange */
.sub-pages-nav li:nth-child(7n + 5) {
  border-right-color: #e81920;
}

/* red */
.sub-pages-nav li:nth-child(7n + 6) {
  border-right-color: #7a4376;
}

/* purple */
.sub-pages-nav li:nth-child(7n + 7) {
  border-right-color: #0e5aa8;
}

/* dark blue */
