.teqr-quick-read {
    margin: 20px 0;
    border-radius: 8px;
    font-family: inherit;
    position: relative;
    padding: 2px;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 50%, #8b5cf6 100%);
    background-size: 200% 100%;
    animation: teqr-gradient-shift 3s ease infinite;
    box-sizing: border-box;
}

@keyframes teqr-gradient-shift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.teqr-quick-read-inner {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.teqr-accordion-toggle {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.teqr-accordion-toggle:hover {
    background: #faf5ff;
}

.teqr-accordion-toggle:focus {
    outline: none;
}

.teqr-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 18px;
}

.teqr-icon svg {
    fill: #8b5cf6;
}

.teqr-icon i {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    animation: teqr-gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.teqr-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.teqr-title {
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    animation: teqr-gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.teqr-subtitle {
    font-size: 12px;
    color: #666666;
    font-family: inherit;
}

.teqr-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 12px;
    align-self: center;
}

.teqr-accordion-toggle[aria-expanded="true"] .teqr-chevron {
    transform: rotate(180deg);
}

.teqr-summary-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: grid-template-rows;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.teqr-summary-content[aria-hidden="false"] {
    grid-template-rows: 1fr;
}

.teqr-summary-wrapper {
    overflow: hidden;
}

.teqr-summary-inner {
    padding: 0 16px 16px 16px;
}

.teqr-disclaimer {
    display: none;
}

.teqr-bullet-list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.teqr-bullet-list li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    font-family: inherit;
    padding-left: 20px;
    position: relative;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-align: left;
}

.teqr-bullet-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    position: absolute;
    left: 0;
    top: 7px;
}

.teqr-bullet-list li::marker {
    content: none;
}

.teqr-bullet-list li:last-child {
    margin-bottom: 0;
}

.teqr-branding {
    font-size: 11px;
    color: #999999;
    margin: 14px 0 0 0;
    text-align: right;
    font-style: italic;
    font-family: inherit;
}

.teqr-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #8b5cf6;
    margin-left: 2px;
    animation: teqr-blink 0.7s infinite;
    vertical-align: text-bottom;
}

@keyframes teqr-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
    .teqr-quick-read {
        margin: 16px 0;
    }

    .teqr-accordion-toggle {
        padding: 12px 14px;
    }

    .teqr-title {
        font-size: 14px;
    }

    .teqr-summary-inner {
        padding: 0 14px 14px 14px;
    }

    .teqr-bullet-list li {
        font-size: 13px;
    }
}

/* Elementor, Rivax/Newsfy, and WordPress theme dark mode support */
/* Rivax theme uses html[scheme="dark"] attribute */
html[scheme="dark"] .teqr-quick-read-inner,
body.dark-mode .teqr-quick-read-inner,
body.darkmode .teqr-quick-read-inner,
body.dark .teqr-quick-read-inner,
body.rivax-dark .teqr-quick-read-inner,
html.dark-mode .teqr-quick-read-inner,
html.dark .teqr-quick-read-inner,
.dark-mode .teqr-quick-read-inner,
.darkmode .teqr-quick-read-inner,
.dark .teqr-quick-read-inner,
[data-theme="dark"] .teqr-quick-read-inner,
[data-dark-mode="true"] .teqr-quick-read-inner,
[data-color-scheme="dark"] .teqr-quick-read-inner {
    background: #1a1a2e;
}

html[scheme="dark"] .teqr-accordion-toggle,
body.dark-mode .teqr-accordion-toggle,
body.darkmode .teqr-accordion-toggle,
body.dark .teqr-accordion-toggle,
body.rivax-dark .teqr-accordion-toggle,
html.dark-mode .teqr-accordion-toggle,
html.dark .teqr-accordion-toggle,
.dark-mode .teqr-accordion-toggle,
.darkmode .teqr-accordion-toggle,
.dark .teqr-accordion-toggle,
[data-theme="dark"] .teqr-accordion-toggle,
[data-dark-mode="true"] .teqr-accordion-toggle,
[data-color-scheme="dark"] .teqr-accordion-toggle {
    background: #1a1a2e;
}

html[scheme="dark"] .teqr-accordion-toggle:hover,
body.dark-mode .teqr-accordion-toggle:hover,
body.darkmode .teqr-accordion-toggle:hover,
body.dark .teqr-accordion-toggle:hover,
body.rivax-dark .teqr-accordion-toggle:hover,
html.dark-mode .teqr-accordion-toggle:hover,
html.dark .teqr-accordion-toggle:hover,
.dark-mode .teqr-accordion-toggle:hover,
.darkmode .teqr-accordion-toggle:hover,
.dark .teqr-accordion-toggle:hover,
[data-theme="dark"] .teqr-accordion-toggle:hover,
[data-dark-mode="true"] .teqr-accordion-toggle:hover,
[data-color-scheme="dark"] .teqr-accordion-toggle:hover {
    background: #252547;
}

html[scheme="dark"] .teqr-subtitle,
body.dark-mode .teqr-subtitle,
body.darkmode .teqr-subtitle,
body.dark .teqr-subtitle,
body.rivax-dark .teqr-subtitle,
html.dark-mode .teqr-subtitle,
html.dark .teqr-subtitle,
.dark-mode .teqr-subtitle,
.darkmode .teqr-subtitle,
.dark .teqr-subtitle,
[data-theme="dark"] .teqr-subtitle,
[data-dark-mode="true"] .teqr-subtitle,
[data-color-scheme="dark"] .teqr-subtitle {
    color: #a0a0a0;
}

html[scheme="dark"] .teqr-chevron,
body.dark-mode .teqr-chevron,
body.darkmode .teqr-chevron,
body.dark .teqr-chevron,
body.rivax-dark .teqr-chevron,
html.dark-mode .teqr-chevron,
html.dark .teqr-chevron,
.dark-mode .teqr-chevron,
.darkmode .teqr-chevron,
.dark .teqr-chevron,
[data-theme="dark"] .teqr-chevron,
[data-dark-mode="true"] .teqr-chevron,
[data-color-scheme="dark"] .teqr-chevron {
    color: #e0e0e0;
}

html[scheme="dark"] .teqr-bullet-list li,
body.dark-mode .teqr-bullet-list li,
body.darkmode .teqr-bullet-list li,
body.dark .teqr-bullet-list li,
body.rivax-dark .teqr-bullet-list li,
html.dark-mode .teqr-bullet-list li,
html.dark .teqr-bullet-list li,
.dark-mode .teqr-bullet-list li,
.darkmode .teqr-bullet-list li,
.dark .teqr-bullet-list li,
[data-theme="dark"] .teqr-bullet-list li,
[data-dark-mode="true"] .teqr-bullet-list li,
[data-color-scheme="dark"] .teqr-bullet-list li {
    color: #e0e0e0;
}

html[scheme="dark"] .teqr-branding,
body.dark-mode .teqr-branding,
body.darkmode .teqr-branding,
body.dark .teqr-branding,
body.rivax-dark .teqr-branding,
html.dark-mode .teqr-branding,
html.dark .teqr-branding,
.dark-mode .teqr-branding,
.darkmode .teqr-branding,
.dark .teqr-branding,
[data-theme="dark"] .teqr-branding,
[data-dark-mode="true"] .teqr-branding,
[data-color-scheme="dark"] .teqr-branding {
    color: #777777;
}
