/* Reset and Base Styles */
:root{
    --brand-color:#3071BD;
    --brand-color-darker:#103969;
    --brand-color-light-bg:#E4F0FE
}
ul#menu-main-menu {
    gap: 16px !important;
}
header .et_builder_inner_content {
    z-index: 3;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f7;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3071bd;
}

/* Main Wrapper */
.main-wrapper {
    display: flex;
    margin: 40px auto;
    gap: 40px;
    max-width: 1920px;
    width: 90%;
}

/* Sidebar - Sticky */
.sidebar {
    width: 248px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    /* overflow-y: auto; */
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 2; /* position:sticky creates a stacking context; explicit z-index
                   ensures it paints above .main-content so tooltips are never
                   buried behind images or other positioned card elements */
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c2c2c2;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Search Container */
.search-container {
    position: relative;
}

.search-box {
    background: white;
    border: 1px solid #c2c2c2;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: text;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #3071bd;
    box-shadow: 0 2px 8px rgba(48, 113, 189, 0.1);
}

.search-box:hover {
    border-color: #3071bd;
    box-shadow: 0 2px 8px rgba(48, 113, 189, 0.1);
}

.search-icon {
    width: 24px;
    height: 24px;
}

/* Input sits directly inside .search-box — no border, transparent background */
.search-box .search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    outline: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.search-box .search-input::placeholder {
    color: #807878;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #c2c2c2;
    border-radius: 12px;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    width: 100%;
    max-width: 380px;
}

.search-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-input:focus {
    outline: none;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-item {
    padding: 10px 16px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
        position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}
.search-result-item.search-suggestion-item::before {
    content: '';
    background: url(https://genieegroup.com/wp-content/themes/divi-child/img/trend-up.svg);
    width: 20px;
    height: 20px;
    background-size: contain;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}
.search-result-item:hover {
    background: var(--brand-color-light-bg);
    color: var(--brand-color);
}

/* ── Search panels (history / suggestions / ajax) ── */
.search-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

/* Ensure the HTML `hidden` attribute is respected even when display is set */
.search-panel[hidden] {
    display: none !important;
}
 
.search-panel + .search-panel {
    margin-top: 16px;
    padding-top: 16px;
    /* border-top: 1px solid #f0f0f0; */
}
 
.search-panel-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    color: #7B7B7B;
    text-transform: uppercase;
    margin-bottom: 4px;
        padding-left: 16px;
}
 
.search-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
 
.search-history-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
        display: flex;
    gap: 16px;
    align-items: center;
}
 span.search-history-label::before {
    content: '';
    background: url(https://genieegroup.com/wp-content/themes/divi-child/img/clock.svg);
    width: 20px;
    height: 20px;
    background-size: cover;
    display: inline-block;
}
.search-history-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 32px;
    color: #aaa;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
 
.search-history-remove:hover {
    color: #333;
}
 
.search-no-results {
    color: #999;
    cursor: default;
    background: none;
}
 
.search-no-results:hover {
    background: none;
    color: #999;
}


/* Categories */
.categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Accordion Item */
.accordion-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    
}
.accordion-item:not(.active) svg path {
    fill: black;
}
/* .accordion-item:not(.active) .accordion-content {
    display: none;
} */
.accordion-item.active .accordion-header {
    background-color: #3071bd;
    color: white;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    user-select: none;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-item.active .accordion-header:hover {
    background-color: #2861a3;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* Closed (non-active): DOWN ↓ SVG at 0deg = ↓ */
.accordion-item .arrow-icon {
    transform: rotate(0deg);
}
/* Open (non-active): DOWN ↓ SVG flipped = ↑ */
.accordion-item.open .arrow-icon {
    transform: rotate(180deg);
}
/* Active + open content: UP ↑ SVG at 0deg = ↑ */
.accordion-item.active .arrow-icon {
    transform: rotate(0deg);
}
/* Active + collapsed (user clicked to close): UP ↑ SVG flipped = ↓ */
.accordion-item.active.open .arrow-icon {
    transform: rotate(180deg);
}

.accordion-header span {
    font-size: 16px;
    font-weight: 500;
    color: #535353;
    text-transform: uppercase;
}

.accordion-item.active .accordion-header span {
    color: white;
}

.accordion-content {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                padding 0.3s ease;
    opacity: 0;
}

.accordion-content.show {
    opacity: 1;
}
.sidebar-item {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;

}
.sidebar-item > a {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 16px 10px;
    border-radius: 8px;
    overflow: hidden;
    align-items: center;
    gap: 8px;
    
}
.sidebar-item span {
    color: #474747;
    font-size: 16px;
    font-weight: 500;
}

.sidebar-item:hover > a {
    background-color: var(--brand-color-light-bg);
}
.sidebar-item:hover span {
    color: var(--brand-color-darker);
}

.sidebar-item.current > a {
    /* background-color: var(--brand-color-light-bg); */
    color: var(--brand-color-darker);
}
.sidebar-item.current > a::after {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--brand-color);
    border-radius: 16px;
    display: inline-block;
 
}

.sidebar-item.current span {
    color: var(--brand-color-darker);
    font-weight: 600;
}

/* Tooltip */
.tooltip {
        position: absolute;
    left: 110%;
    top: 40px;
    transform: translateY(-40px);
    background: var(--brand-color-darker);
    /* border: 1px solid #e0e0e0; */
    border-radius: 0;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
    min-width: 200px;
    max-width: 350px;
    color: white;
    padding: 24px;
    width: 320px;
}
.tooltip *{
    color:white
}
.tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 32px;
    transform: translateY(-50%);
    border: 12px solid transparent;
    border-right-color: var(--brand-color-darker);
}

.sidebar-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
    left: calc(100% + 10px);
}
.tooltip h4 {
   font-size:20px;
   line-height: 26px;
   font-weight: 700;
}
.tooltip p {
    color: white;
    font-size: 16px;
    line-height: 25px;
    margin-bottom: 8px;
}
.tooltip .cta {
    display: flex;
    justify-content: flex-end;
}
.tooltip .detail-btn {
    background:var(--brand-color-light-bg);
    color: var(--brand-color-darker);
    border: none;
    padding: 8px 10px;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease;
    margin-top:20px;
    display: flex;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

.detail-btn:hover {
    background: white;
    
}

/* Accordion Tooltip */
.accordion-tooltip {
    position: absolute;
    left: calc(100% + 10px);
    top: 0;
    background: #103969;
    color: white;
    font-size: 13px;
    line-height: 1.5;
    padding: 24px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    width: 320px;
}

.accordion-item:hover .accordion-tooltip {
    opacity: 1;
    visibility: visible;
}

.accordion-tooltip::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 100%;
    border: 6px solid transparent;
    border-right-color: #103969;
}

/* Banner */
.banner {
    background: linear-gradient(208.892deg, #1a68c3 30.19%, #144f95 65.378%, #092342 118.72%);
    border-radius: 24px;
    min-height: 524px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.banner .banner-bg {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateY(60px);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.7s ease;
    transition-delay: 0s;
}
.banner .banner-title {
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease;
    transition-delay: 0.15s;
}
.banner .banner-btn {
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.45s ease,
                background 0.25s ease, box-shadow 0.25s ease;
    transition-delay: 0.27s;
}
.banner.is-visible .banner-bg {
    transform: translateY(0);
    opacity: 1;
}
.banner.is-visible .banner-title {
    transform: translateY(0);
    opacity: 1;
}
.banner.is-visible .banner-btn {
    transform: translateY(0);
    opacity: 1;
}
.banner-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 2;
    position: relative;
    width: 100%;
    padding: 0 24px 24px 24px;
    background: linear-gradient(180deg, rgba(26, 104, 195, 0.00) 0%, #0C325D 81.27%);
    height:70%
}

.banner-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.banner-btn {
    background: #e4f0fe;
    color: #1a68c3;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.banner-btn:hover {
    background: white;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* overflow intentionally omitted — any overflow value other than visible
       creates a scroll container and breaks position:sticky on .content-right */
}
.card.ad-format-content{
    background:white;
    border-radius: 24px;
    padding:40px
}
.ad-format-content .title-section .col-left {
    display: flex;
    flex-direction: column;
    gap: 36px;
    flex:1
}
/* Breadcrumb */
.breadcrumb {
    background: #ededed;
    padding: 8px 16px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.breadcrumb a {
    color: #787878;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}
.breadcrumb span[aria-current="page"] {
    color: #787878;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease;
    opacity: 0.6;
}
/* nav.breadcrumb a:not(:first-child) {
    pointer-events: none; 
    cursor: default;
} */
.breadcrumb a:hover {
    color: #3071bd;
}

.breadcrumb .chevron {
    color: #787878;
    font-size: 16px;
}
 
/* Title Section */
.title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
/* nav.breadcrumb span:last-child, .breadcrumb .chevron:last-child {
    display: none;
} */
.title-content {
    display: flex;
    flex-direction: column;
    gap: 29px;
    max-width: 525px;
}

.main-title {
    font-size: 40px;
    font-weight: 700;
    color: #000;
    padding:0;
    margin:0
}

.description {
    font-size: 16px;
    line-height: 26px;
    color: #000;
}

.tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    background: #d7e9ff;
    color: #02499d;
    padding: 5px 12px;
    border-radius: 48px;
    font-size: 16px;
    font-weight: 500;
     position: relative;
}
.tag:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}
.tag:hover:after {
  width: 120%;
  background-color: rgba(255, 255, 255, 0);

  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
.help-icon {
    width: 40px;
    height: 40px;
    background: #1957a0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.help-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(25, 87, 160, 0.3);
}

.help-icon:active {
    background: #103969;
    transform: scale(0.95);
    box-shadow: none;
}

.help-icon svg {
    width: 24px;
    height: 24px;
}

.help-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #103969;
    color: white;
    font-size: 13px;
    line-height: 1.5;
    padding: 24px 16px;
    white-space: wrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    width:320px
}

.help-icon:hover .help-tooltip,
.help-icon.is-open .help-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.help-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 12px;
    border: 6px solid transparent;
    border-bottom-color: #103969;
}

.help-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 13px;
    border: 5px solid transparent;
    border-top-color: #fff;
    z-index: 1;
}

/* Content Section */
.content-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.content-left {
    flex: 1;
}

.content-right {
    width: 264px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: var(--sticky-header-h, 100px);
    align-self: flex-start;
}

/* Info Cards */
.info-card {
    background: #f5f5f7;
    padding: 24px 16px;
    border-radius: 14px;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.6px;
    color: #000;
    margin-bottom: 24px;
}

.card-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
    
}

.info-card.work-with .card-item {
    align-items: center;
}
.info-card.specs .card-item {
    align-items: flex-start;
}
.info-card .card-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
    align-items: center;
}
.icon-circle {
    width: 40px;
    height: 40px;
    background: #3071bd;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-circle.white {
    background: white;
}

.icon-circle svg {
    width: 24px;
    height: 24px;
}

.partner-icon {
    width: 23px;
    height: 23px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dimensions ,
.available-on,
.brand {
    cursor: default;
}

.dimensions:hover .partner-icon, .available-on:hover .partner-icon, .brand:hover .partner-icon {
    transform: scale(1.15);
}
.card-text {
    flex: 1;
}
.card-label {
    font-size: 13px;
    font-weight: 500;
    color: #838383;
    letter-spacing: 2.6px;
    display: block;
    margin-bottom: 8px;
}
.card-value {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0;
}
.more-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
        margin: 0;
    padding: 0;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.check-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.list-item p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}
.similar-section {
    margin-top: 40px;
    border-radius: 24px;
    background: #FFF;
    display: flex;
    padding: 32px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    position: relative; /* ensure ::after is positioned inside */
}
.similar-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    border-radius: 0 24px 24px 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}
 .similar-section.is-end::after {
    opacity: 0;
}
 
.similar-slider {
    width: 100%;
}

.similar-slider .splide__track {
    overflow: hidden;
}

.similar-slider .splide__list {
    display: flex;
}

.similar-slider .splide__slide {
    box-sizing: border-box;
    height: auto;
}

/* ── Slider arrows ─────────────────────────────────────── */
.similar-slider .splide__arrow {
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}
.similar-slider .splide__arrow--prev svg{
    transform: rotate(180deg);
}
.similar-section:hover .splide__arrow:not([disabled]) {
    opacity: 1;
}

.similar-section:hover .splide__arrow:not([disabled]):hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.similar-slider .splide__arrow--prev {
    left: -18px;
}

.similar-slider .splide__arrow--next {
    right: -18px;
}

.similar-slider .splide__arrow[disabled] {
    opacity: 0 !important;
    pointer-events: none;
}

.similar-slider .splide__arrow svg {
    width: 14px;
    height: 14px;
    fill: #333;
}

.similar-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* .similar-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
} */

.similar-image {
    width: 100%;
    height: 200px;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
    overflow: hidden;
    position: relative;
    background: white;
}

/* ── Read-more drawer — slides up from bottom of .similar-image on hover ── */
.read-more {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--brand-color);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.similar-item:hover .read-more {
    transform: translateY(0);
}
.similar-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
 

.similar-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    padding: 12px 16px 4px;
}

.similar-category {
    font-size: 13px;
    color: #838383;
    padding: 0 16px 16px;
}

/* ─────────────────────────────────────────────────────────────────
 * BROWSE AD FORMATS — mobile master accordion
 * ───────────────────────────────────────────────────────────────── */
.browse-accordion__header {
    display: none;
}

/* ── Closed state (aria-driven, works on ALL breakpoints before JS runs).
   When the header declares aria-expanded="false", collapse the sibling
   categories panel immediately — no JS timing required.
   JS then sets inline max-height / is-open class to animate open/close. ── */
#browseAccordionHeader[aria-expanded="false"] ~ #browseAccordionBody {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .section-title {
        font-size: 20px;
    }
    .et_pb_menu__logo img {
        width: 100px !important;
    }
    .sidebar-item > a { 
        padding: 16px 8px 16px 40px;
    }
    .header-content {
        padding: 12px 0;
    }
    .logo {
        font-size: 20px;
    }
    .accordion-item.open .accordion-header{
        background-color: var(--brand-color);
    }
    .accordion-item.open .accordion-header span {
        color: white!important;
    }
    .browse-accordion__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        background: #f0f0f0;
        border-radius: 8px;
        cursor: pointer;
        user-select: none;
        transition: background 0.2s ease;
    }

    .browse-accordion__header:hover,
    .browse-accordion__header.active {
        background: #e4f0fe;
    }

    .browse-accordion__header span {
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }
    .browse-accordion__header .arrow-icon {
        transform: rotate(-180deg);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .browse-accordion__header.is-open .arrow-icon {
        transform: rotate(0deg);
    }
    .browse-accordion .categories {
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    padding-top 0.25s ease;
        padding-top: 0;
    }

    .browse-accordion .categories.is-open {
        opacity: 1;
        padding-top: 12px;
    }
    .gtranslate_wrapper > div {
        top: 45px !important;
    }
}

/* Desktop: once above 1024px, remove the aria-driven collapse entirely
   so categories are always visible regardless of aria-expanded value */
@media (min-width: 1025px) {
    #browseAccordionHeader[aria-expanded="false"] ~ #browseAccordionBody {
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
    }
}
/* Responsive Design */
@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    /* Tooltip: reposition below the item on mobile */
    .tooltip {
        left: 0;
        top: 100%;
        width: 100%;
        max-width: 100%;
        transform: translateY(-8px);
    }
    .sidebar-item:hover .tooltip {
        left: 0;
        transform: translateY(6px);
    }
    /* Arrow: point up instead of left */
    .tooltip::before {
        right: auto;
        left: 20px;
        top: 0;
        transform: translateY(-100%);
        border-right-color: transparent;
        border-bottom-color: var(--brand-color-darker);
    }

    /* Remove active-state styling from accordion items on mobile —
       the blue header/white text/rotated arrow only make sense on desktop */
    .accordion-item.active:not(.open) .accordion-header,
    .accordion-item.active:not(.open)  .accordion-header:hover {
        background-color: transparent;
        color: inherit;
    }
    .accordion-item.active .accordion-header span {
        color: #535353;
    }
    /* Mobile: same logic as desktop — UP ↑ SVG at 0deg = ↑ (open), at 180deg = ↓ (closed) */
    .accordion-item.active .arrow-icon {
        transform: rotate(0deg);
    }
    .accordion-item.active.open .arrow-icon {
        transform: rotate(180deg);
    }
    .accordion-item:not(.active) svg path,
    .accordion-item.active svg path {
        fill: black;
    }

    .content-section {
        flex-direction: column;
    }

    .content-right {
        width: 100%;
    }

    .image-row {
        flex-direction: column;
    }

    .main-image,
    .side-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .main-wrapper {
        margin: 24px auto;
                width: 100%;
    }
    .ad-format-content .title-section .col-left {
        gap: 24px;
    }
    .main-title {
        font-size: 34px;
        line-height: 42px;
    }

    .title-section {
        flex-direction: column;
        gap: 20px;
    }

    .similar-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    div#page-container {
        background: white;
    }
    .ad-format-content .title-section {
        position: relative;
    }
    .help-icon {
        position: absolute;
        right:0;
        top:0
    }
    .help-icon:hover .help-tooltip {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .help-icon.is-open .help-tooltip {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .content-left {
        width: 100%;
    }
    .card.ad-format-content{
        padding:0;
        border-radius: 0;
    }
    .ad-format-content nav.breadcrumb{
        display: none;
    }
    .single-ads-format h1.main-title {
        padding-right: 60px;
    }
   .ad-format-content .tag {
        padding: 4px 12px;
        font-size: 12px;
    }
    .similar-section{
        padding:52px 0;
        gap:24px;
        margin: 0;
    }
    .breadcrumb{
        border-radius: 0;
        padding: 16px 24px;
        width: 100%;
            background: #F4F4F5;
    }
    .breadcrumb .home-text{
       display: none
    }
   
    aside .banner {
        display: none;
    }
    .banner .banner-bg {
        right: 0;
        top: 32px;
        height: 80%;
        left:unset;
    }
    .banner {
        border-radius: 16px;
        min-height: unset;
        height: 240px !important;
    }
    .banner-title{
        width: 70%;
    }
    .banner-btn {
        width: 100%;
        font-size: 16px;
        text-align: center;
    }
    .banner-content {
        gap: 8px;
        justify-content: flex-end;
    }
    .breadcrumb .chevron {
        transform: rotate(180deg);
    }
    .sidebar{
        gap: 20px;
        padding: 0 20px;
    }
    .search-box,.browse-accordion__header{
        border-radius: 8px;
    }
    .main-content {
        overflow: visible;
                padding: 0 20px;

    }
}

@media(min-width:1024px){
    .banner-mobile, .breadcrumb-mobile{
        display: none;
    }
    .breadcrumb > a:first-child img{
        display: none;
    }
}
/* ─────────────────────────────────────────────────────────────────
 * IMAGE ROW — device images or featured image fallback
 * ───────────────────────────────────────────────────────────────── */

.content-left .image-row {
    display: flex;
    gap: 16px;
    width: 100%;
    padding: 60px 0;
}
/* Group wrapper: Desktop = flex row so two devices sit side by side */
.content-left .image-row__group {
    display: flex;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
}

.content-left .image-row__group:not(.active) {
    display: none;
}

.content-left .image-row--single-double .image-row__group,
.content-left .image-row--multi .image-row__group {
    flex-direction: row;
    align-items: flex-start;
}

.content-left .image-row--single-single .image-row__group,
.content-left .image-row--fallback .image-row__group {
    justify-content: center;
}

.content-left .image-row--single-single .image-row__item,
.content-left .image-row--fallback .image-row__item {
    flex: 0 1 auto;
    max-width: 100%;
}

.content-left .image-row__item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 330px;
}

.content-left .image-row--single-single .device-video-embed,
.content-left .image-row--fallback .device-video-embed {
    display: flex;
    justify-content: center;
}

.content-left .image-row--single-single .device-video-embed video {
    max-height: 400px;
}

.image-row.image-row--multi{
    padding:60px 0 32px!important
}
/* ─────────────────────────────────────────────────────────────────
 * TABS — shared pill-switcher styles
 * ───────────────────────────────────────────────────────────────── */

.device-tabs {
    display: flex;
    gap: 8px;
    background: #F1F1F1;
    padding: 8px;
    border-radius: 30px;
    width: max-content;
    position: relative;
}

.tab-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    height: calc(100% - 16px);
    background: white;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.device-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border-radius: 999px;
    background: transparent;
    color: #1C1B1F;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.device-tab.active {
    color: var(--brand-color);
    font-weight: 600;
}

/* Desktop: dimension tabs visible, flat (mobile) tabs hidden */
.tabs-dim {
    display: flex;
    margin: 0 auto;
}

.tabs-flat {
    display: none;
}

@media (max-width: 768px) {
    /* Flip tab bar visibility */
    .tabs-dim {
        display: none;
    }

    .tabs-flat {
        display: flex;
        margin: 0 auto;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tabs-flat::-webkit-scrollbar {
        display: none;
    }

    /* On mobile: one item visible at a time, controlled by JS + .active */
    .content-left .image-row__group {
        flex-direction: column;
        align-items: center;
    }

    .content-left .image-row__item {
        display: none;
        width: 100%;
    }

    .content-left .image-row__item.active {
        display: flex;
        justify-content: center;
    }

    .content-left .image-row {
        align-items: center;
        justify-content: center;
        padding: 40px 0;
    }

    .content-left .image-row__item img {
        max-height: none;
    }

    .ad-format-content .tags {
        display: none;
    }

    .content-left {
        margin-top: 40px;
    }
}


/* ─────────────────────────────────────────────────────────────────
 * WYSIWYG CONTENT — "Why Use This Format?" section
 * ───────────────────────────────────────────────────────────────── */

.wysiwyg-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Reset browser default list styles */
.wysiwyg-content ul,
.wysiwyg-content ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Each list item gets the same layout as .list-item in the prototype */
.wysiwyg-content ul li,
.wysiwyg-content ol li {
        padding-left: 40px;
    position: relative;
        font-size: 16px;
    line-height: 28px;
}

/* Blue check icon injected via ::before using an inline SVG data-URI */
.wysiwyg-content ul li::before,
.wysiwyg-content ol li::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 1px; /* optical alignment with first line of text */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z' fill='%233071BD'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
     position: absolute;
    left: 0;
}

/* Nested lists: slightly smaller, indented */
.wysiwyg-content ul ul,
.wysiwyg-content ol ol,
.wysiwyg-content ul ol,
.wysiwyg-content ol ul {
    margin-top: 8px;
    padding-left: 16px;
}

/* ─────────────────────────────────────────────────────────────────
 * CATEGORY ARCHIVE — taxonomy-ads-category.php
 * ───────────────────────────────────────────────────────────────── */

.category-archive-wrapper {
    width: 100%;
}

.category-archive-header {
    margin-bottom: 40px;
}
body.tax-ads-category .breadcrumb {
    margin-bottom: 24px;
}
.category-archive-title {
    font-size: 40px;
    font-weight: 700;
    color: #000;
    margin: 8px 0 0 0;
    padding: 0;
}

.category-archive-desc {
    font-size: 16px;
    color: #535353;
    line-height: 1.6;
    margin: 0;
}

.category-archive-empty {
    font-size: 16px;
    color: #838383;
}

/* Grid: same card as .similar-item but in a responsive grid */
.category-formats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .category-formats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-archive-title {
        font-size: 28px;
        padding:0 20px;
    }

    .category-formats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding:0 20px;
    }
    .category-archive-wrapper {
        margin-top: 0;
        padding: 0;
    }
    .search-dropdown {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .category-formats-grid {
        grid-template-columns: 1fr;
    }
    .main-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    .banner {
        height: 200px !important;
    }
    .banner-title {
        font-size: 18px;
    }
    .search-dropdown {
        max-width: 100%;
    }
}
/* /media query for ipad landscape */
@media (max-width: 1024px) and (min-width: 769px) {
    .et_pb_menu__menu{
        display: none!important;
    }
    .et_pb_menu .et_mobile_nav_menu {
        float: none;
        margin: 0 6px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    aside .banner {
        display: none;
    }
    .search-dropdown {
        max-width: 100%;
    }
}
/* ipad pro portrait (1024px) specific adjustments */
@media (max-width: 1024px) and (orientation: portrait) {
        .browse-accordion__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        background: #f0f0f0;
        border-radius: 8px;
        cursor: pointer;
        user-select: none;
        transition: background 0.2s ease;
    }
    .content-left .image-row__item img {
        max-height: 500px;
    }
}
/* iPad Pro & Air landscape (1025px – 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
    .et_pb_menu--with-logo .et_pb_menu__menu>nav>ul>li>a {
        font-size: 13px;
        letter-spacing: 0.25px;
    }
    ul#menu-main-menu {
        gap: 8px !important;
    }
}