/* Dxivare Responsive Styles */

/* -----------------------------------------
    Tablet & Mobile Header Adjustments
   ----------------------------------------- */

@media (max-width: 992px) {
  /* Switch to a block layout for the main container */
  .has-vertical-header {
    display: block;
  }

  /* Convert vertical header to a horizontal bar */
  .dxivare-header-vertical {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--dxivare-background, #fff);
    border-bottom: 1px solid var(--dxivare-border, #eee);
  }

  /* Adjust logo container for horizontal layout */
  .dxivare-header-logo {
    width: auto;
    height: 60px; /* Adjust height for horizontal bar */
    margin: 0;
    justify-content: flex-start; /* Align logo to the left */
  }

  .dxivare-header-logo img,
  .dxivare-header-logo svg {
    position: static; /* Remove absolute positioning */
    width: 120px; /* Smaller logo for mobile */
    height: auto;
    transform: none;
    filter: none;
  }

  /* Convert nav to horizontal */
  .dxivare-header-nav {
    flex: 1;
    flex-direction: row;
    justify-content: flex-end;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    max-height: none;
  }

  .dxivare-header-nav ul {
    flex-direction: row;
    left: 0;
    gap: 15px; /* Reduce gap for horizontal items */
  }

  .dxivare-header-nav li {
    margin: 0;
  }

  .dxivare-header-nav a {
    letter-spacing: 1px;
    padding: 8px;
    opacity: 0.8;
  }

  /* Remove desktop hover effects */
  .dxivare-header-nav:hover a {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.8;
    transform: none;
  }

  .dxivare-header-nav a:hover {
    color: var(--dxivare-primary);
    font-weight: 600;
    opacity: 1;
    transform: scale(1.05);
  }

  /* Ensure main content takes full width */
  .dxivare-site-shell {
    width: 100%;
    margin-left: 0;
  }

  .dxivare-slide {
    flex-direction: column;
  }
  .dxivare-slide-title span.sunny {
    line-height: 0.7;
  }



  .dxivare-slide-indicators {
    bottom: 0%;
  }

  .dxivare-footer-widgets {
    flex-direction: column;
  }
}

/* -----------------------------------------
    Mobile Navigation Toggle (Hamburger)
   ----------------------------------------- */

@media (max-width: 768px) {
  .dxivare-header-nav {
    display: none; /* Hide nav by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dxivare-background, #fff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
  }

  .dxivare-header-nav.is-active {
    display: flex; /* Show when active */
  }

  .dxivare-header-nav ul {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 5px;
  }

  .dxivare-header-nav li {
    width: 100%;
    text-align: center;
  }

  .dxivare-header-nav a {
    display: block;
    padding: 12px 20px;
    width: 100%;
  }

  /* Hamburger Menu Button */
  .dxivare-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
  }

  .dxivare-menu-toggle .toggle-bar {
    width: 24px;
    height: 2px;
    background-color: var(--dxivare-text);
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  .dxivare-menu-toggle.is-active .toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .dxivare-menu-toggle.is-active .toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .dxivare-menu-toggle.is-active .toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (min-width: 769px) {
  .dxivare-menu-toggle {
    display: none; /* Hide hamburger on larger screens */
  }
}
