/* Base wrapper */
.aa_qsitemap-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #222;
    line-height: 1.6;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

/* Links */
.aa_qsitemap-wrapper a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}
.aa_qsitemap-wrapper a:hover,
.aa_qsitemap-wrapper a:focus {
    color: #005177;
    text-decoration: underline;
    outline: none;
}
.entry-content .aa_qsitemap-wrapper a {
    border-bottom: none;
}

/* --- Modernized Default Style --- */
.aa_qsitemap-wrapper.style-default {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    max-width: 720px;
    margin: 0 auto;
    user-select: text;
}
.aa_qsitemap-wrapper.style-default ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}
.aa_qsitemap-wrapper.style-default ul li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.8em;
    font-weight: 500;
    color: #222;
    transition: color 0.3s ease;
}
.aa_qsitemap-wrapper.style-default ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 6px;
    height: 6px;
    background: #0073aa;
    border-radius: 50%;
    box-shadow: 0 0 5px rgb(0 115 170 / 0.5);
    transition: background-color 0.3s ease;
}
.aa_qsitemap-wrapper.style-default ul li:hover {
    color: #005177;
}
.aa_qsitemap-wrapper.style-default ul li:hover::before {
    background: #005177;
    box-shadow: 0 0 8px rgb(0 81 119 / 0.8);
}
.aa_qsitemap-wrapper.style-default a {
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}
.aa_qsitemap-wrapper.style-default a:hover,
.aa_qsitemap-wrapper.style-default a:focus {
    color: #00405a;
    text-decoration: underline;
    outline: none;
}
.aa_qsitemap-wrapper.style-default h2{
    font-size: 1.8rem;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-weight: 700;
    color: #00405a;
    border-bottom: 2px solid #e0f0fa;
    padding-bottom: 0.3em;
}


.aa_qsitemap-wrapper.style-default h3 {
  margin-top: 0;
  font-size: 1.7rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #23282d; /* WordPress dark gray */
  padding-bottom: 0.4em;
  margin-bottom: 1em;
  position: relative;
  letter-spacing: 0.02em;
}

/* simple modern underline */
.aa_qsitemap-wrapper.style-default h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px; /* underline length */
  background-color: #0073aa; /* WordPress blue */
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* on hover, underline expands */
.aa_qsitemap-wrapper.style-default h3:hover::after {
  width: 100%;
  cursor: pointer;
}





/* Tabs style */
.aa_qsitemap-wrapper.style-tabs .tab-content {
    display: none;
}
.aa_qsitemap-wrapper.style-tabs .tab-content.active {
    display: block;
}
.aa_qsitemap-wrapper.style-tabs .tab-nav {
    margin-bottom: 1.5em;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.aa_qsitemap-wrapper.style-tabs .tab-nav::-webkit-scrollbar {
    display: none;
}
.aa_qsitemap-wrapper.style-tabs .tab-nav button {
    background: #0073aa;
    border: none;
    padding: 0.75em 1.5em;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    flex: 0 0 auto;
    font-size: 1rem;
    min-width: 80px;
    text-align: center;
}
.aa_qsitemap-wrapper.style-tabs .tab-nav button:hover,
.aa_qsitemap-wrapper.style-tabs .tab-nav button:focus {
    background: #005177;
    outline: none;
    box-shadow: 0 0 10px rgb(0 81 119 / 0.7);
}
.aa_qsitemap-wrapper.style-tabs .tab-nav button.active {
    background: #00405a;
    box-shadow: 0 0 12px rgb(0 64 90 / 0.9);
}

/* Accordion style */
.aa_qsitemap-wrapper.style-accordion .sitemap-block h2,
.aa_qsitemap-wrapper.style-accordion .sitemap-block h3 {
    background: #0073aa;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    user-select: none;
    position: relative;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgb(0 115 170 / 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.aa_qsitemap-wrapper.style-accordion .sitemap-block h2:hover,
.aa_qsitemap-wrapper.style-accordion .sitemap-block h3:hover,
.aa_qsitemap-wrapper.style-accordion .sitemap-block h2:focus,
.aa_qsitemap-wrapper.style-accordion .sitemap-block h3:focus {
    background: #005177;
    outline: none;
    box-shadow: 0 0 16px rgb(0 81 119 / 0.8);
}
.aa_qsitemap-wrapper.style-accordion .sitemap-block h2::after,
.aa_qsitemap-wrapper.style-accordion .sitemap-block h3::after {
    content: "";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
}
.aa_qsitemap-wrapper.style-accordion .sitemap-block h2.open::after,
.aa_qsitemap-wrapper.style-accordion .sitemap-block h3.open::after {
    transform: translateY(-50%) rotate(180deg);
}
.aa_qsitemap-wrapper.style-accordion ul {
    background: #f5faff;
    margin: 0 0 1.5em 0;
    padding: 1.2rem 2rem;
    border-radius: 0 0 10px 10px;
    box-shadow: inset 0 0 10px rgb(0 115 170 / 0.1);
    list-style: disc inside;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.aa_qsitemap-wrapper.style-accordion ul.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}
.aa_qsitemap-wrapper.style-accordion ul li {
    margin-bottom: 0.7em;
    font-size: 1rem;
}


.aa_qsitemap-wrapper.style-tabs h2{
    margin-top: 0;
    font-size: 2rem;
    padding-bottom: 0.3em;
    margin-bottom: 0.8em;
    color: #00405a;
}


.aa_qsitemap-wrapper.style-tabs h3 {
  margin-top: 0;
  font-size: 1.7rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #23282d; /* WordPress dark gray */
  padding-bottom: 0.4em;
  margin-bottom: 1em;
  position: relative;
  letter-spacing: 0.02em;
  
  display: inline-block;  /* added to shrink width to text */
}

/* simple modern underline */
.aa_qsitemap-wrapper.style-tabs h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px; /* initial underline length */
  background-color: #0073aa; /* WordPress blue */
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* on hover, underline expands to heading text width */
.aa_qsitemap-wrapper.style-tabs h3:hover::after {
  width: 100%;  /* now limited to heading text width */
  cursor: pointer;
}




/* Grid style */
.aa_qsitemap-wrapper.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.aa_qsitemap-wrapper.style-grid .sitemap-block h2{
    margin-top: 0;
    font-size: 1.8rem;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 0.3em;
    margin-bottom: 0.8em;
    color: #00405a;
}

.aa_qsitemap-wrapper.style-grid .sitemap-block h3 {
  margin-top: 0;
  font-size: 1.7rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #23282d; /* WordPress dark gray */
  padding-bottom: 0.4em;
  margin-bottom: 1em;
  position: relative;
  letter-spacing: 0.02em;
}

/* simple modern underline */
.aa_qsitemap-wrapper.style-grid .sitemap-block h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px; /* underline length */
  background-color: #0073aa; /* WordPress blue */
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* on hover, underline expands */
.aa_qsitemap-wrapper.style-grid .sitemap-block h3:hover::after {
  width: 100%;
  cursor: pointer;
}



/* Modern Timeline style */
.aa_qsitemap-wrapper.style-timeline {
    position: relative;
    padding-left: 2rem;    
    margin: 2rem 0;
}
.aa_qsitemap-wrapper.style-timeline .sitemap-block {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
    border-left: 2px dashed rgba(0, 115, 170, 0.2);
}
.aa_qsitemap-wrapper.style-timeline .sitemap-block::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 8px;
    width: 18px;
    height: 18px;
    background: #0073aa;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.15);
    transition: transform 0.3s ease;
    z-index: 2;
}
.aa_qsitemap-wrapper.style-timeline .sitemap-block:hover::before {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(0, 115, 170, 0.25);
}
.aa_qsitemap-wrapper.style-timeline .sitemap-block h2,
.aa_qsitemap-wrapper.style-timeline .sitemap-block h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #00405a;
    padding-bottom: 0.3rem;
    margin-bottom: 0.8rem;
    position: relative;
    border-bottom: 2px solid #e0f0fa;
    background: linear-gradient(90deg, #e0f7ff 0%, transparent 100%);
    padding-left: 0.5rem;
}
.aa_qsitemap-wrapper.style-timeline .sitemap-block ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}
.aa_qsitemap-wrapper.style-timeline .sitemap-block ul li {
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.aa_qsitemap-wrapper.style-timeline .sitemap-block ul li:hover {
    color: #005177;
}
.aa_qsitemap-wrapper.style-timeline a {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.aa_qsitemap-wrapper.style-timeline a:hover,
.aa_qsitemap-wrapper.style-timeline a:focus {
    color: #00405a;
    text-decoration: underline;
    outline: none;
}

/* General list styles */
.aa_qsitemap-wrapper ul {
    margin-left: 1em;
    padding-left: 0;
}
.aa_qsitemap-wrapper ul li {
    margin-bottom: 0.5em;
    font-size: 1.5rem;
}

/* Responsive typography */
@media (max-width: 768px) {
    .aa_qsitemap-wrapper.style-accordion .sitemap-block h2,
    .aa_qsitemap-wrapper.style-accordion .sitemap-block h3 {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }

    .aa_qsitemap-wrapper.style-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }

    .aa_qsitemap-wrapper.style-tabs .tab-nav button {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        min-width: 70px;
    }

    .aa_qsitemap-wrapper.style-timeline {
        padding-left: 1.5rem;
    }

    .aa_qsitemap-wrapper.style-timeline .sitemap-block {
        padding-left: 1rem;
    }

    .aa_qsitemap-wrapper.style-timeline .sitemap-block h2,
    .aa_qsitemap-wrapper.style-timeline .sitemap-block h3 {
        font-size: 1.2rem;
    }

    .aa_qsitemap-wrapper.style-timeline .sitemap-block ul {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .aa_qsitemap-wrapper.style-grid {
        grid-template-columns: 1fr;
    }

    .aa_qsitemap-wrapper.style-tabs .tab-nav {
        justify-content: flex-start;
        gap: 8px;
    }

    .aa_qsitemap-wrapper.style-tabs .tab-nav button {
        font-size: 0.85rem;
        padding: 0.55rem 0.9rem;
        min-width: 65px;
    }

    .aa_qsitemap-wrapper.style-default {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }

    .aa_qsitemap-wrapper.style-default ul li {
        font-size: 0.95rem;
        margin-bottom: 0.6em;
    }
}
