/*
 Theme Name:   Divi Child Theme
 Theme URI:    https://websiteadelaide.com/
 Description:  Divi Child Theme
 Author:       Website Adelaide
 Author URI:   https://websiteadelaide.com/
 Version:      3.1
 Template:     Divi
*/

/* =======================================================
   1. HEADER / NAVIGATION
   ======================================================= */
/* --- Divi Custom Header Alignment --- */

/* Secondary (top) menu */
#top-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* Main menu below the secondary */
#main-header {
  position: fixed;
  top: 72px; /* matches inline style top:72px */
  width: 100%;
  z-index: 999;
  transition: top 0.3s ease;
}

/* Make sure page content starts below both headers */
#page-container {
  padding-top: 167px; /* 72 + 95 = total header height */
}

/* If logged in as admin (adds WP admin bar) */
.admin-bar #main-header {
  top: calc(72px + 32px);
}
.admin-bar #page-container {
  padding-top: calc(167px + 32px);
}



/* Secondary nav text colour */
#et-secondary-nav .menu-item a {
  color: #000 !important;
}

/* Logo size */
img#logo {
  max-width: 40%;
}

/* Dropdown menu styling */
ul.sub-menu {
  border-radius: 10px !important;
  width: 300px !important;
}

ul.sub-menu li,
ul.sub-menu li a {
  width: 100% !important;
}

.nav li li {
  padding: 0;
  min-width: 100% !important;
}

.nav li li a {
  min-width: 100% !important;
}

/* Dropdown positioning */
#top-menu li ul.sub-menu {
  z-index: 9999 !important;
  position: absolute;
}

.drop-menu ul {
  right: 0 !important;
}

/* Dropdown item styling */
#top-menu li li a {
  padding: 10px !important;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 5px !important;
}

#top-menu li li a:hover {
  color: #dd533b !important;
  background: #edeaea;
  opacity: 1 !important;
}

/* Dropdown arrow */
ul.nav > li > ul.sub-menu:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent #cf2028 transparent;
  position: absolute;
  top: -10px;
  left: 30px;
}

/* Second-level dropdown positioning */
.nav li li ul {
  left: 300px;
}

.nav li.et-reverse-direction-nav li ul {
  left: auto;
  right: 300px;
}

/* Call-to-action menu item */
.menu_cta {
  background-image: linear-gradient(180deg, #f7ac00 0%, #dd533b 67%);
  background-color: #f7ac00;
  border-radius: 50px;
  color: #fff !important;
  padding: 5px !important;
}

.menu_cta a {
  color: #fff !important;
  padding: 10px !important;
  font-size: 14px !important;
}

.et-fixed-header #top-menu .menu_cta a {
  color: #fff !important;
}

/* Submenu link text adjustments */
ul#top-menu.nav li ul li a {
  font-size: 15px;
  line-height: 1.3;
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 10px;
}

/* =======================================================
   2. LAYOUT / STRUCTURE
   ======================================================= */

/* Centering helper */
.centering {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Remove vertical divider if sidebar present */
#main-content .container:before {
  width: 0 !important;
}

/* Hide snippet box */
#snippet-box {
  display: none !important;
}

/* =======================================================
   3. LIST STYLING
   ======================================================= */

.punktlista ul li {
  padding-left: 10px;
  list-style: none;
  margin-bottom: 12px;
  margin-top: 10px;
}

.punktlista ul li::before {
  content: "\e052";
  color: #ccc;
  display: inline-block;
  margin-right: 14px;
  margin-left: -30px;
  padding-right: 2px;
  font-family: "ETmodules";
  font-size: 1em;
  vertical-align: middle;
}


/* =======================================================
   4. Accordion for schema
   ======================================================= */
/* Collapse all toggles on page load */
.et_pb_toggle .et_pb_toggle_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* When a toggle is opened by Divi JS */
.et_pb_toggle.et_pb_toggle_open .et_pb_toggle_content {
    max-height: 1000px; /* adjust if needed */
}


/* =======================================================
   END OF FILE
   ======================================================= */
.faq-trigger {
  cursor: pointer;
}

.faq-trigger .et_pb_main_blurb_image {
  transition: transform 0.3s ease;
}

.faq-trigger.is-open .et_pb_main_blurb_image {
  transform: rotate(180deg);
}
.faq-content {
   max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

.faq-content.is-open {
  max-height: 5000px;
  padding-top: 20px;  /* whatever your spacing should be */
  padding-bottom: 20px;
}

