/*
Theme Name:   Hello Elementor Child
Template:     hello-elementor
Version:      1.0.5
Description:  Child theme for code-cube.io
*/

/* Custom CSS goes below this line */

/* Button variants: add the class in the Button widget → Advanced → CSS Classes */
:root {
  --cc-ink: #0F0E3A;
  --cc-primary: #2E2DB6;
  --cc-secondary: #16127F;
  --cc-lime-hover-dark: #DDFF6A;
  --cc-border-input: #D9D9E8;
  --cc-outline-dark: #6865AC;
}

/* Primary on dark bands */
body .btn-primary-dark .elementor-button { padding: 15px 28px; }
body .btn-primary-dark .elementor-button:hover,
body .btn-primary-dark .elementor-button:focus { background-color: var(--cc-lime-hover-dark); }

/* Primary large (final CTA) */
body .btn-primary-lg .elementor-button { font-size: 17px; padding: 17px 30px; }
body .btn-primary-lg .elementor-button:hover,
body .btn-primary-lg .elementor-button:focus { background-color: var(--cc-lime-hover-dark); }

/* Primary small (header) */
body .btn-primary-sm .elementor-button { font-size: 15px; font-weight: 600; padding: 11px 20px; }

/* Secondary (outline) */
body .btn-secondary .elementor-button {
  background-color: #FFFFFF; color: var(--cc-ink); font-weight: 600;
  padding: 16px 26px; border: 1px solid var(--cc-border-input);
}
body .btn-secondary .elementor-button:hover,
body .btn-secondary .elementor-button:focus {
  background-color: #FFFFFF; color: var(--cc-primary); border-color: var(--cc-primary);
}

/* Secondary on dark bands */
body .btn-secondary-dark .elementor-button {
  background-color: transparent; color: #FFFFFF; font-weight: 600;
  padding: 15px 26px; border: 1px solid var(--cc-outline-dark);
}
body .btn-secondary-dark .elementor-button:hover,
body .btn-secondary-dark .elementor-button:focus {
  background-color: transparent; color: #FFFFFF; border-color: #FFFFFF;
}

/* Text link with arrow (type the → in the button text) */
body .btn-text .elementor-button {
  background: none; color: var(--cc-primary); font-size: 15px;
  padding: 0; border: 0; border-radius: 0;
}
body .btn-text .elementor-button:hover,
body .btn-text .elementor-button:focus { background: none; color: var(--cc-secondary); }

/* Subscribe (indigo) */
body .btn-subscribe .elementor-button {
  background-color: var(--cc-primary); color: #FFFFFF;
  font-size: 14px; font-weight: 600; padding: 10px 18px;
}
body .btn-subscribe .elementor-button:hover,
body .btn-subscribe .elementor-button:focus { background-color: var(--cc-secondary); }

/* Menu items only for the mobile menu */
@media (min-width: 1025px) {
  .cc-mobile-only { display: none !important; }
}

/* Mobile/tablet menu: full-width dropdown under the header */
@media (max-width: 1024px) {
  /* anchor the panel to the header instead of the hamburger */
  body .elementor-widget-jet-mega-menu,
  body .elementor-widget-jet-mega-menu .elementor-widget-container,
  body .jet-mega-menu--layout-dropdown {
    position: static;
  }

  /* hide the panel while the menu is closed */
  body .jet-mega-menu--layout-dropdown:not(.jet-mega-menu--dropdown-open) .jet-mega-menu-container {
    display: none;
  }

  /* the panel itself, only when open */
  body .jet-mega-menu--dropdown-open .jet-mega-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    background: #FFFFFF;
    border-top: 1px solid #E6E6F0;
    border-bottom: 1px solid #E6E6F0;
    box-shadow: 0 16px 40px rgba(22, 18, 127, 0.08);
    padding: 8px 20px 24px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    z-index: 999;
  }

  /* items: full width, with a divider */
  body .jet-mega-menu--layout-dropdown .jet-mega-menu-list { width: 100%; }
  body .jet-mega-menu--layout-dropdown .jet-mega-menu-item {
    width: 100%;
    border-bottom: 1px solid #EEEEF5;
  }
  body .jet-mega-menu--layout-dropdown .jet-mega-menu-item__link {
    padding: 14px 0;
    font-size: 16px;
    color: #2A2950;
  }

  /* "plan your demo" as a lime button at the bottom */
  body .jet-mega-menu--layout-dropdown .cc-menu-cta {
    border-bottom: 0;
    margin-top: 16px;
  }
  body .jet-mega-menu--layout-dropdown .cc-menu-cta .jet-mega-menu-item__link {
    justify-content: center;
    background: #CBF34B;
    color: #0F0E3A;
    border-radius: 100px;
    padding: 14px 24px;
    font-weight: 700;
  }
}

/* Dropdown panels and cards (header) */
body .cc-mega-panel {
  background: #FFFFFF;
  border: 1px solid #E6E6F0;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(22, 18, 127, 0.06);
  padding: 24px;
}
body .cc-menu-card { padding: 12px; border-radius: 12px; transition: background 0.15s; }
body .cc-menu-card:hover { background: #F6F6FB; }

@media (max-width: 1024px) {
  body .cc-mega-panel { border: 0; border-radius: 0; box-shadow: none; padding: 0 0 8px; }
  body .cc-menu-card { padding: 10px 0 10px 12px; }
  body .cc-menu-card-text { display: none; }
}