html,
body {
    overflow-x: hidden;
    width: 100%;
    color: #333333 !important;
}

.wys ul li::before {
    opacity: 0;
}

/* Dropdown styles */
.menu-dropdown .submenu {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out;
    padding-left: 20px;
}

.menu-dropdown.active .submenu {
    max-height: 500px;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    cursor: pointer;
}

.dropdown-arrow {
    position: relative;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.menu-dropdown.active .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-nav-list a {
    padding: 5px;
    display: block;
    text-decoration: none;
    color: inherit;
}

.submenu li {
    border-bottom: none;
}

.submenu a {
    padding: 12px 25px;
    font-size: 0.9em;
    display: block;
}

.logo-burger-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Mobile Navigation */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 80px 20px 20px;
}

.mobile-navigation.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list > li {
    margin-bottom: 15px;
}

.mobile-nav-list a {
    display: block;
    padding: 5px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.submenu {
    display: none;
    padding-left: 20px;
    list-style: none;
}

.submenu.active {
    display: block;
}

.submenu a {
    font-size: 0.9em;
    padding: 8px 12px;
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    margin-left: auto;
}

.mobile-close {
    display: none;
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.close-icon {
    position: relative;
    width: 25px;
    height: 25px;
}

.close-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #333;
    top: 50%;
    left: 0;
}

.close-line:first-child {
    transform: rotate(45deg);
}

.close-line:last-child {
    transform: rotate(-45deg);
}

/* Show/hide buttons */

.mobile-navigation.active ~ .mobile-close {
    display: block;
}

.mobile-navigation.active ~ .logo-burger-container .mobile-menu-toggle {
    display: none;
}

@media (max-width: 1100px) {
    .mobile-menu-toggle {
        display: block;
    }
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo-burger-container {
        width: auto;
        flex-grow: 1;
    }
    
    .wrap.flex-center {
        flex-wrap: wrap;
    }
}

@media (min-width: 1101px) {
    .mobile-navigation,
    .mobile-close {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .desktop-nav {
        display: block !important;
    }
}

/* Burger Icon Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 1000;
    position: relative;
}

.hamburger {
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
}

.hamburger-box {
    width: 25px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2.5px;
    left: -8px;
    background: #EB6530;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Active State */
.mobile-menu-toggle.active .hamburger-inner {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-inner::before {
    transform: rotate(-45deg) translate(-6px, -6px);
}

.mobile-menu-toggle.active .hamburger-inner::after {
    opacity: 0;
}

/* Responsive Handling - Updated breakpoints */
@media (max-width: 1100px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .desktop-nav {
        display: none !important;
    }
}

@media (min-width: 1101px) {
    .mobile-navigation {
        display: none;
    }
}

@media (max-width: 1100px) {
    .burger {
        display: block !important;
    }

    .mobile_menu_container {
        display: block !important;
    }
}

.promo-container {
    margin: auto;
}

.promo-link {
    text-decoration: none !important;
    display: block;
}

.promo-link:hover {
    text-decoration: none !important;
}

.promo-text {
    font-size: 15px;
    color: #ffffff;
    padding: 5px;
    margin: 0;
    text-decoration: none;
    display: block !important;
}

.promo-code {
    font-weight: bold;
    color: #ffffff;
}

.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .promo-text {
        font-size: 14px;
        padding: 3px;
    }
}


/* ─────────────────────────────────────────────────────────────
       1) NAVBAR LAYOUT
       ───────────────────────────────────────────────────────────── */
    a {
        text-decoration: none !important;
    }
    
    .navbar {
      background-color: #ffffff;
      position: relative;
      z-index: 100;
      backdrop-filter: blur(10px);
    }
    .nav-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 80px;
    }

    /* 1.2 Navigation Links */
    .nav-links {
      display: flex;
      gap: 40px;
      align-items: center;
    }
    .nav-links > li {
      position: relative;
    }
    .nav-links > li > a {
      font-size: 14px;
      font-weight: 500;
      color: #425466;
      padding: 12px 0;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: color 200ms ease;
      text-decoration: none !important;
    }
    .nav-links > li > a:hover {
      color: #0a2540;
    }
    
    /* Caret styling and animation */
    .caret-icon {
      font-size: 9px;
      transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), color 300ms ease;
      color: #8792a2;
      transform-origin: center;
    }
    
    .nav-links > li:hover .caret-icon,
    .nav-links > li:focus-within .caret-icon {
      /* Flip vertically rather than rotating */
      transform: scaleY(-1);
      color: #425466;
    }

    /* 1.3 Right-side Buttons */
    .nav-actions {
      display: flex;
      gap: 20px;
      align-items: center;
    }
    .sign-in {
      font-size: 16px;
      font-weight: 500;
      color: #425466;
      padding: 10px 16px;
      border-radius: 6px;
      transition: all 200ms ease;
    }
    .sign-in:hover {
      background-color: #f6f9fc;
      color: #0a2540;
    }
    .contact-sales {
      font-size: 14px;
      font-weight: 500;
      background: linear-gradient(135deg, #f38b45 0%, #f36e45 100%);
      color: #ffffff;
      padding: 12px 20px;
      border-radius: 30px;
      transition: all 500ms ease-in-out;
      text-decoration: none !important;
    }
    .contact-sales:hover {
      background: linear-gradient(135deg, #f36e45 0%, #f38b45 50%);
      transform: translateY(-1px);
    }

    /* ─────────────────────────────────────────────────────────────
       2) PRODUCTS MEGA DROPDOWN STYLES
       ───────────────────────────────────────────────────────────── */
    .mega-menu {
      position: absolute;
      top: 133%;
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      opacity: 0;
      visibility: hidden;
      transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 200;
    }
    
    /* Show on hover/focus */
    .nav-links > li.products-item:hover > .mega-menu,
    .nav-links > li.products-item:focus-within > .mega-menu {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }

    /* Mega menu container */
    .mega-container {
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 20px 48px rgba(0, 0, 0, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.1);
      padding: 32px;
      display: grid;
      grid-template-columns: 1fr auto;
      border: 1px solid rgba(0, 0, 0, 0.05);
      width: 600px;
    }

    /* Main content area with stacked sections */
    .main-sections {
      display: flex;
      flex-direction: column;
      gap: 48px;
    }

    /* ─────────────────────────────────────────────────────────────
       2.1 SECTION HEADINGS
       ───────────────────────────────────────────────────────────── */
    .mega-container h4 {
      font-size: 12px;
      font-weight: 600;
      color: #8792a2;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 0.8px;
    }

    /* ─────────────────────────────────────────────────────────────
       2.3 MONEY MANAGEMENT SECTION (2-column grid)
       ───────────────────────────────────────────────────────────── */
    .money-management .mm-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }
    .mm-item {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 12px;
      border-radius: 8px;
      transition: background-color 200ms ease;
      cursor: pointer;
    }
    .mm-item:hover {
      background-color: #f6f9fc;
    }
    .mm-item i {
      font-size: 18px;
      color: #f36e45;
      width: 24px;
      text-align: center;
      margin-top: 2px;
    }
    .mm-item .mm-title {
      font-size: 15px;
      font-weight: 600;
      color: #0a2540;
      margin-bottom: 4px;
    }
    .mm-item .mm-subtitle {
      font-size: 13px;
      color: #425466;
      line-height: 1.4;
    }
    
    /* ─────────────────────────────────────────────────────────────
       3) RESPONSIVE BEHAVIOR
       ───────────────────────────────────────────────────────────── */
    @media (max-width: 1100px) {
      .nav-container {
        padding: 0 24px;
      }
      .nav-links {
        gap: 32px;
        display: none;
      }
      .mega-menu {
        display: none;
      }
    }

    @media (max-width: 768px) {
      .nav-container {
        height: 72px;
        padding: 0 20px;
      }
      .nav-links {
        display: none;
      }
      .nav-actions {
        gap: 12px;
      }
      .contact-sales {
        padding: 10px 16px;
        font-size: 15px;
      }
    }
    
    /* ─────────────────────────────────────────────────────────────
       4) Chat-box
       ───────────────────────────────────────────────────────────── */
    
   /* main container */
    #custom-chat-box {
      position: fixed;
      bottom: calc(100px + env(safe-area-inset-bottom));
      right: calc(30px + env(safe-area-inset-right));
    
      width: 280px;
      padding: 25px;
      background: #fff;
    
      border-radius: 20px;
      box-shadow: 0 12px 35px rgba(0,0,0,0.15);
      z-index: 999999;
    
      text-align: center;
      font-family: Poppins, sans-serif;
    
      /* Safari-safe animation */
      transform: translateX(350px);
      transition: transform 0.45s ease;
      will-change: transform;
    }
    
    /* visible state */
    #custom-chat-box.show {
      transform: translateX(0);
    }
    
    /* top row */
    .chat-top-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      margin-bottom: 15px;
    }
    
    /* header */
    .chat-header {
      font-weight: 600;
      font-size: 20px;
      display: flex;
      align-items: center;
    }
    
    /* online dot */
    .online-dot {
      width: 10px;
      height: 10px;
      background: #2ecc71;
      border-radius: 50%;
      margin-right: 6px;
    }
    
    /* close button */
    .chat-close-btn {
      font-size: 20px;
      font-weight: 600;
      cursor: pointer;
      color: #555;
      transition: color 0.2s;
    }
    
    .chat-close-btn:hover {
      color: #000;
    }
    
    /* agent photo */
    :root {
      --avatar-size: 90px;
    }
    
    .agent-photo-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 8px;
    }
    
    .agent-photo {
      width: var(--avatar-size);
      height: var(--avatar-size);
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border-radius: 50%;
      display: block;
      margin: 0 auto;
      max-width: 100%;
    }
    
    .agent-photo-wrap img {
      max-width: var(--avatar-size);
      max-height: var(--avatar-size);
      object-fit: cover;
      border-radius: 50%;
    }
    
    @media (max-width: 420px) {
      :root { --avatar-size: 72px; }
    }

    /* CTA button */
    .chat-btn {
      background: #f36e45;
      color: #fff;
      padding: 12px 0;
      width: 80%;
      border-radius: 30px;
      border: none;
      cursor: pointer;
      font-weight: 600;
      margin-top: 10px;
      transition: background 0.2s;
      font-family: Poppins, sans-serif;
    }
    
    .chat-btn:hover {
      background: #ff8966;
    }
    
   /* ─────────────────────────────────────────────────────────────
       4) Top Promotion
       ───────────────────────────────────────────────────────────── */ 

    .top {
        position: relative;
        overflow: hidden;
    }
    
    
    .top::after {
        content: "";
        position: absolute;
        top: 0;
        left: -150%;
        width: 80%;
        height: 100%;
    
        background: linear-gradient(
            120deg,
            transparent 0%,
            rgba(255,255,255,0.2) 50%,
            transparent 100%
        );
    
        filter: blur(25px);  
        animation: shine-reveal 4s infinite linear;
        pointer-events: none;
    }
    
    @keyframes shine-reveal {
        0%   { transform: translateX(0); }
        100% { transform: translateX(320%); }
    }


* {
      box-sizing: border-box;
      font-family: poppins;
    }

    body {
      margin: 0;
      background: #ffffff;
      color: #333;
    }

    .hero {
      text-align: center;
      padding: 4rem 1rem 2rem;
    }

    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 0.5rem;
    }

    .hero p {
      color: #94a3b8;
      font-size: 1.1rem;
    }

    .templates {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
      gap: 2rem;
      padding: 2rem;
      max-width: 1440px;
      margin: auto;
      margin-bottom: 60px;
    }

    .template-card {
      background: #ffffff;
      border-radius: 18px;
      overflow: hidden;
      text-decoration: none;
      color: white;
      border: 1px solid #ddd;
      transition: transform 0.3s ease;
    }

    .template-card:hover {
      transform: translateY(-3px);
    }

    /* PREVIEW WINDOW */
    .preview {
      height: 220px;
      overflow: hidden;
      position: relative;
    }

    /* FULL PAGE IMAGE */
    .preview img {
      width: 100%;
      height: auto;
      display: block;
      transform: translateY(0);
      transition: transform 6s ease;
    }

    /* TOP → BOTTOM SCROLL EFFECT */
    .template-card:hover .preview img {
      transform: translateY(calc(-100% + 220px));
    }

    /* FADE SHADOW */
    .preview::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 40px;
      background: linear-gradient(to bottom, transparent, #fff);
    }

    .template-info {
      padding: 1rem 1.25rem 1.25rem;
    }

    .template-info h3 {
      margin: 0 0 0.25rem;
      font-size: 1.1rem;
      color: #333;
    }

    .template-info p {
      margin: 0;
      color: #333;
      font-size: 0.95rem;
    }
    
     /* CUSTOM QUOTE CARD */
    .quote-card {
      display: flex;
      align-items: center;
      justify-content: center;
      background: #ffeae6;
      text-align: center;
      border: 3px solid #ffd1c8;
      min-height: 320px;
    }

    .quote-card .content {
      padding: 20px;
    }

    .quote-card h3 {
      font-size: 40px;
      margin: 10px auto;
      font-weight: 700;
      color: #333;
      line-height: 50px;
    }

    .quote-card p {
      color: #333;
      margin: 10px auto;
    }
    
    .btn {
      background: linear-gradient(180deg, #FE4A68 0%, #FC9C45 100%);
      border-radius: 30px;
      border: none;
      min-width: 175px;
      color: #ffffff;
      cursor: pointer;
      display: inline-block;
      font-size: 15px;
      font-weight: normal;
      line-height: 1;
      outline: 0;
      padding: 10px 20px;
      position: relative;
      text-align: center;
      text-decoration: none !important;
      text-transform: capitalize;
      appearance: none;
      transition: all 0.4s ease;
    }


    @media (max-width: 600px) {
      .preview {
        height: 180px;
      }

      .template-card:hover .preview img {
        transform: none;
      }
    }