/* ================================================================
   INSUFFLE THEME - GUTENBERG BLOCKS COMPREHENSIVE CSS
   Version: 2.1
   Design: Premium Dark Mode with Accent Colors + Critical Fixes
   ================================================================ */

/* =================================================================
   1. CSS VARIABLES - DESIGN TOKENS
   ================================================================= */
:root {
    --insuffle-dark: #02040a;
    --insuffle-dark-alt: #050a14;
    --insuffle-dark-card: #0c1629;
    --insuffle-primary: #1f3a8b;
    --insuffle-primary-light: #3b5998;
    --insuffle-accent: #ffde59;
    --insuffle-white: #ffffff;
    --insuffle-gray-100: #f8fafc;
    --insuffle-gray-200: #e2e8f0;
    --insuffle-gray-300: #cbd5e1;
    --insuffle-gray-400: #94a3b8;
    --insuffle-gray-500: #64748b;
    --insuffle-gray-600: #475569;
    --insuffle-text-light: #d1d5db;
    --insuffle-text-muted: #9ca3af;
    --insuffle-radius: 1rem;
    --insuffle-radius-lg: 1.5rem;
    --insuffle-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --insuffle-shadow-glow: 0 0 40px rgba(31, 58, 139, 0.3);
    --insuffle-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================================================
   2. COLOR PRESETS - BACKGROUND
   ================================================================= */
.has-accent-background-color {
    background-color: var(--insuffle-primary) !important;
}

.has-subtle-background-background-color {
    background-color: var(--insuffle-dark) !important;
}

.has-background-background-color {
    background-color: var(--insuffle-white) !important;
}

.has-brand-dark-background-color {
    background-color: var(--insuffle-dark) !important;
}

.has-brand-primary-background-color {
    background-color: var(--insuffle-primary) !important;
}

.has-brand-accent-background-color {
    background-color: var(--insuffle-accent) !important;
}

.has-white-background-color {
    background-color: var(--insuffle-white) !important;
}

/* =================================================================
   3. COLOR PRESETS - TEXT
   ================================================================= */
.has-accent-color {
    color: var(--insuffle-primary) !important;
}

.has-subtle-background-color {
    color: var(--insuffle-dark) !important;
}

.has-central-palette-1-color {
    color: var(--insuffle-dark) !important;
}

.has-brand-dark-color {
    color: var(--insuffle-dark) !important;
}

.has-brand-primary-color {
    color: var(--insuffle-primary) !important;
}

.has-brand-accent-color {
    color: var(--insuffle-accent) !important;
}

.has-white-color {
    color: var(--insuffle-white) !important;
}

/* =================================================================
   4. TYPOGRAPHY - HEADINGS
   ================================================================= */
.wp-block-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1.wp-block-heading {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
}

h2.wp-block-heading {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3.wp-block-heading {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
}

h4.wp-block-heading {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
}

/* Dynamic heading colors based on context */
.has-accent-background-color .wp-block-heading,
.has-brand-primary-background-color .wp-block-heading,
.has-subtle-background-background-color .wp-block-heading,
.has-brand-dark-background-color .wp-block-heading {
    color: var(--insuffle-white) !important;
}

.has-background-background-color .wp-block-heading,
.has-white-background-color .wp-block-heading,
.has-brand-accent-background-color .wp-block-heading {
    color: var(--insuffle-dark) !important;
}

/* =================================================================
   5. PARAGRAPHS
   ================================================================= */
.wp-block-paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 300;
}

.has-accent-background-color p,
.has-brand-primary-background-color p,
.has-subtle-background-background-color p,
.has-brand-dark-background-color p {
    color: var(--insuffle-text-light) !important;
}

.has-background-background-color p,
.has-white-background-color p,
.has-brand-accent-background-color p {
    color: var(--insuffle-gray-600) !important;
}

/* =================================================================
   6. COVER BLOCK - HERO SECTIONS
   ================================================================= */
.wp-block-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 6rem 2rem;
    overflow: hidden;
}

.wp-block-cover.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.wp-block-cover__background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wp-block-cover__image-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.wp-block-cover__image-background.has-parallax {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .wp-block-cover__image-background.has-parallax {
        background-attachment: scroll;
    }
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.wp-block-cover .wp-block-heading {
    color: var(--insuffle-white) !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* =================================================================
   7. COLUMNS BLOCK
   ================================================================= */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.wp-block-columns.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.wp-block-columns.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0 4rem;
}

.wp-block-column {
    flex: 1;
    min-width: 280px;
}

@media (max-width: 782px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-direction: column;
    }

    .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: 100% !important;
    }
}

/* Column Card Styles */
.tw-cols-card .wp-block-column {
    background: var(--insuffle-white);
    border-radius: var(--insuffle-radius);
    padding: 2rem;
    box-shadow: var(--insuffle-shadow);
    transition: var(--insuffle-transition);
}

.tw-cols-card .wp-block-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

.tw-cols-card-hard-shadow .wp-block-column {
    box-shadow: 8px 8px 0 var(--insuffle-dark);
    border: 2px solid var(--insuffle-dark);
}

.tw-cols-card-shadow .wp-block-column {
    box-shadow: var(--insuffle-shadow);
}

/* =================================================================
   8. GROUP BLOCK
   ================================================================= */
.wp-block-group {
    padding: 2rem;
}

.wp-block-group.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 4rem 2rem;
}

.wp-block-group.has-background {
    padding: 3rem;
    border-radius: var(--insuffle-radius);
}

.wp-block-group.alignfull.has-background {
    border-radius: 0;
}

/* =================================================================
   9. MEDIA & TEXT BLOCK
   ================================================================= */
.wp-block-media-text {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
    gap: 0;
    overflow: hidden;
    border-radius: var(--insuffle-radius-lg);
}

.wp-block-media-text.alignwide {
    max-width: 1400px;
    margin: 3rem auto;
}

.wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 50% 50%;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
    order: 2;
}

.wp-block-media-text__content {
    padding: 3rem;
}

.wp-block-media-text__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-media-text.is-image-fill .wp-block-media-text__media {
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.wp-block-media-text.is-style-tw-shadow {
    box-shadow: var(--insuffle-shadow);
}

.wp-block-media-text.is-style-tw-hard-shadow {
    box-shadow: 12px 12px 0 var(--insuffle-dark);
    border: 3px solid var(--insuffle-dark);
}

.wp-block-media-text.is-style-tw-overlap {
    position: relative;
}

.wp-block-media-text.is-style-tw-overlap .wp-block-media-text__media {
    border-radius: var(--insuffle-radius-lg);
    box-shadow: var(--insuffle-shadow);
}

@media (max-width: 600px) {
    .wp-block-media-text.is-stacked-on-mobile {
        grid-template-columns: 1fr;
    }

    .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
        order: 0 !important;
    }

    .wp-block-media-text__content {
        padding: 2rem;
    }
}

/* =================================================================
   10. BUTTONS BLOCK
   ================================================================= */
.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.wp-block-button {
    margin: 0;
}

.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: var(--insuffle-transition);
    box-shadow: var(--insuffle-shadow-glow);
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(31, 58, 139, 0.5);
}

.wp-block-button.is-style-fill .wp-block-button__link {
    background-color: var(--insuffle-primary);
    color: var(--insuffle-white);
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background-color: var(--insuffle-accent);
    color: var(--insuffle-dark);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid currentColor;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--insuffle-white);
    color: var(--insuffle-dark);
}

/* =================================================================
   11. LISTS
   ================================================================= */
.wp-block-list {
    padding-left: 0;
    list-style: none;
}

.wp-block-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.wp-block-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--insuffle-accent);
    font-weight: bold;
}

.is-style-tw-arrow li::before {
    content: "→";
    color: var(--insuffle-accent);
}

.is-style-tw-check li::before {
    content: "✓";
    color: var(--insuffle-accent);
}

/* =================================================================
   12. QUOTES & PULLQUOTES
   ================================================================= */
.wp-block-quote {
    border-left: 4px solid var(--insuffle-accent);
    background: #000000;
    padding: 2rem 2.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--insuffle-radius) var(--insuffle-radius) 0;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.7;
    color: #ffffff;
}

.wp-block-quote p {
    color: #ffffff;
}

.wp-block-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 700;
    color: var(--insuffle-accent);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wp-block-pullquote {
    text-align: center;
    padding: 3rem;
    border-top: 4px solid var(--insuffle-accent);
    border-bottom: 4px solid var(--insuffle-accent);
    margin: 3rem 0;
}

.wp-block-pullquote blockquote {
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.5;
}

/* =================================================================
   13. IMAGES & GALLERIES
   ================================================================= */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    border-radius: var(--insuffle-radius);
    box-shadow: var(--insuffle-shadow);
}

.wp-block-image.alignfull img {
    border-radius: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.wp-block-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--insuffle-text-muted);
    margin-top: 1rem;
}

.wp-block-gallery {
    display: grid;
    gap: 1rem;
}

.wp-block-gallery .wp-block-image img {
    height: 100%;
    object-fit: cover;
}

/* =================================================================
   14. SEPARATOR
   ================================================================= */
.wp-block-separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--insuffle-primary), var(--insuffle-accent), var(--insuffle-primary), transparent);
    margin: 4rem auto;
    max-width: 400px;
}

.wp-block-separator.is-style-wide {
    max-width: 100%;
}

.wp-block-separator.is-style-dots {
    background: none;
    text-align: center;
}

.wp-block-separator.is-style-dots::before {
    content: "• • •";
    color: var(--insuffle-accent);
    font-size: 1.5rem;
    letter-spacing: 1rem;
}

/* =================================================================
   15. SPACER
   ================================================================= */
.wp-block-spacer {
    width: 100%;
}

/* =================================================================
   16. TABLE
   ================================================================= */
.wp-block-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--insuffle-dark-card);
    border-radius: var(--insuffle-radius);
    overflow: hidden;
}

.wp-block-table th {
    background: var(--insuffle-primary);
    color: var(--insuffle-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    text-align: left;
}

.wp-block-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--insuffle-text-light);
}

.wp-block-table tr:last-child td {
    border-bottom: none;
}

.wp-block-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* =================================================================
   17. CODE & PREFORMATTED
   ================================================================= */
.wp-block-code {
    background: var(--insuffle-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--insuffle-radius);
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.wp-block-code code {
    color: var(--insuffle-accent);
    background: none;
    padding: 0;
}

.wp-block-preformatted {
    background: var(--insuffle-dark-card);
    padding: 2rem;
    border-radius: var(--insuffle-radius);
    font-family: 'JetBrains Mono', monospace;
    overflow-x: auto;
    color: var(--insuffle-text-light);
}

/* =================================================================
   18. EMBED & VIDEO
   ================================================================= */
.wp-block-embed {
    margin: 3rem 0;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--insuffle-radius-lg);
    box-shadow: var(--insuffle-shadow);
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wp-block-video video {
    width: 100%;
    border-radius: var(--insuffle-radius-lg);
    box-shadow: var(--insuffle-shadow);
}

/* =================================================================
   19. MARKS & HIGHLIGHTS
   ================================================================= */
mark,
.has-inline-color {
    padding: 0.1em 0.4em;
    border-radius: 0.25rem;
}

mark {
    background-color: var(--insuffle-accent) !important;
    color: var(--insuffle-dark) !important;
}

/* =================================================================
   20. SHAPES & DECORATIONS (Tailwind-Starter patterns)
   ================================================================= */
.tw-top-shape-triangle::before,
.tw-bottom-shape-triangle::after,
.tw-bottom-shape-organic::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    background-size: 100% 100%;
    z-index: 1;
}

.tw-top-shape-triangle::before {
    top: -1px;
    background: linear-gradient(to bottom right, var(--insuffle-dark) 49%, transparent 51%);
}

.tw-bottom-shape-triangle::after {
    bottom: -1px;
    background: linear-gradient(to top left, var(--insuffle-dark) 49%, transparent 51%);
}

.tw-bottom-shape-organic::after {
    bottom: -1px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2302040a' d='M0,50 C360,100 720,0 1080,50 C1260,75 1350,100 1440,100 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: cover;
}

/* =================================================================
   21. ALIGNMENTS
   ================================================================= */
.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    position: static !important;
}

.aligncenter {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* =================================================================
   22. PROSE OVERRIDE - DON'T BREAK GUTENBERG BLOCKS
   ================================================================= */
.prose .wp-block-cover,
.prose .wp-block-group,
.prose .wp-block-columns,
.prose .wp-block-media-text,
.prose .wp-block-buttons,
.prose .wp-block-embed,
.prose .wp-block-gallery {
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
}

.prose .alignfull,
.prose .wp-block-cover.alignfull,
.prose .wp-block-group.alignfull,
.prose .wp-block-image.alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    position: static !important;
}

.prose .alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* =================================================================
   23. ANIMATIONS & INTERACTIONS
   ================================================================= */
.wp-block-column,
.wp-block-media-text,
.wp-block-image,
.wp-block-button {
    transition: var(--insuffle-transition);
}

/* Hover states for interactive elements */
.wp-block-media-text:hover {
    transform: translateY(-4px);
}

.tw-cols-card .wp-block-column:hover {
    transform: translateY(-8px) scale(1.02);
}

/* =================================================================
   24. DARK/LIGHT CONTEXT AWARENESS
   ================================================================= */
/* When inside white/light backgrounds */
.has-background-background-color,
.has-white-background-color {
    color: var(--insuffle-dark);
}

.has-background-background-color h1,
.has-background-background-color h2,
.has-background-background-color h3,
.has-background-background-color h4,
.has-white-background-color h1,
.has-white-background-color h2,
.has-white-background-color h3,
.has-white-background-color h4 {
    color: var(--insuffle-dark) !important;
}

.has-background-background-color p,
.has-background-background-color li,
.has-white-background-color p,
.has-white-background-color li {
    color: var(--insuffle-gray-600) !important;
}

/* When inside accent (yellow) backgrounds */
.has-brand-accent-background-color h1,
.has-brand-accent-background-color h2,
.has-brand-accent-background-color h3,
.has-brand-accent-background-color p {
    color: var(--insuffle-dark) !important;
}

/* =================================================================
   25. RESPONSIVE ADJUSTMENTS
   ================================================================= */
@media (max-width: 1024px) {
    .wp-block-group.alignfull {
        padding: 3rem 1.5rem;
    }

    .wp-block-columns.alignfull {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .wp-block-cover {
        min-height: 50vh;
        padding: 4rem 1rem;
    }

    h1.wp-block-heading {
        font-size: 2rem;
    }

    h2.wp-block-heading {
        font-size: 1.75rem;
    }

    h3.wp-block-heading {
        font-size: 1.5rem;
    }

    .wp-block-media-text__content {
        padding: 1.5rem;
    }

    .wp-block-quote {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    .wp-block-buttons {
        flex-direction: column;
    }
}

/* =================================================================
   26. CRITICAL MOBILE MENU FIXES
   ================================================================= */
#mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #02040a !important;
    z-index: 999999 !important;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#mobile-menu.open {
    transform: translateX(0) !important;
}

/* Staggered Animation for Menu Items */
#mobile-menu.open .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .reveal-item:nth-child(1) {
    transition-delay: 0.1s;
}

#mobile-menu.open .reveal-item:nth-child(2) {
    transition-delay: 0.2s;
}

#mobile-menu.open .reveal-item:nth-child(3) {
    transition-delay: 0.3s;
}

#mobile-menu.open .reveal-item:nth-child(4) {
    transition-delay: 0.4s;
}

#mobile-menu.open .reveal-item:nth-child(5) {
    transition-delay: 0.5s;
}

#mobile-menu.open .reveal-item:nth-child(6) {
    transition-delay: 0.6s;
}

@media (min-width: 1024px) {
    #mobile-menu {
        display: none !important;
    }
}

#mobile-menu .sub-menu {
    padding-left: 20px;
    margin-top: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu .sub-menu a {
    font-size: 1rem;
    color: #94a3b8;
}

#mobile-menu a {
    color: #ffffff;
}

/* =================================================================
   27. WHITE BLOG STYLE TEMPLATE OVERRIDES
   ================================================================= */
.page-template-page-white-blog-style body,
.page-template-page-white-blog-style main,
.page-template-page-white-blog-style .white-content-area {
    background-color: #ffffff !important;
    color: #374151 !important;
}

.page-template-page-white-blog-style h1,
.page-template-page-white-blog-style h2,
.page-template-page-white-blog-style h3,
.page-template-page-white-blog-style h4,
.page-template-page-white-blog-style h5,
.page-template-page-white-blog-style h6,
.page-template-page-white-blog-style .wp-block-heading {
    color: #02040a !important;
}

.page-template-page-white-blog-style p,
.page-template-page-white-blog-style li,
.page-template-page-white-blog-style span,
.page-template-page-white-blog-style div:not(.wp-block-button):not(.wp-block-buttons):not(.wp-block-cover__inner-container) {
    color: #374151 !important;
}

.page-template-page-white-blog-style strong,
.page-template-page-white-blog-style b {
    color: #02040a !important;
}

/* Fix Hero Title in White Template (keep it white) */
.page-template-page-white-blog-style .relative.bg-brand-dark h1,
.page-template-page-white-blog-style .relative.bg-brand-dark p {
    color: #ffffff !important;
}

/* Fix Cover Blocks in White Template */
.page-template-page-white-blog-style .wp-block-cover h1,
.page-template-page-white-blog-style .wp-block-cover h2,
.page-template-page-white-blog-style .wp-block-cover h3,
/* =================================================================
   28. UAGB FAQ BLOCK STYLES
   ================================================================= */
.uagb-faq__outer-wrap {
    border: none !important;
}

.uagb-faq-item {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1rem !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
}

.uagb-faq-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.uagb-faq-questions-button {
    padding: 1.5rem !important;
}

.uagb-question {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
}

.uagb-faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem !important;
    color: #cbd5e1 !important;
    font-weight: 300 !important;
    line-height: 1.6 !important;
}

.uagb-icon svg {
    fill: #ffde59 !important;
    width: 20px !important;
    height: 20px !important;
}

.uagb-icon-active svg {
    fill: #ffde59 !important;
    width: 20px !important;
    height: 20px !important;
}

/* Specific Color Overrides for User Content */
.has-subtle-background-color {
    color: #02040a !important;
}

.has-accent-background-color {
    background-color: #ffde59 !important;
}

.has-subtle-background-background-color {
    background-color: #02040a !important;
}

.has-accent-color {
    color: #ffde59 !important;
}

.has-white-color {
    color: #ffffff !important;
}

/* Fix for Group Blocks with Backgrounds */
.wp-block-group.has-background {
    padding: 3rem !important;
}

/* Center aligned paragraphs with background */
p.has-background {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    display: inline-block;
}

/* Wide text class from user content */
.tw-text-wide {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix Buttons in White Template */
.page-template-page-white-blog-style .wp-block-button__link {
    color: #ffffff !important;
}

/* Custom Gallery Style: Rounded */
.is-style-tw-img-rounded img {
    border-radius: 1rem !important;
}

/* =================================================================
   29. FULL WIDTH CONTENT OVERRIDES (Fixes Layout Shift)
   ================================================================= */
.is-full-width-content .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.is-full-width-content .alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Constrain standard blocks inside full-width template */
.is-full-width-content>*:not(.alignwide):not(.alignfull) {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* =================================================================
   30. CONTENT-BLOCK DARK THEME TEXT OVERRIDE (CRITICAL)
   Forces LIGHT text in dark background atelier templates
   ================================================================= */
.content-block,
.content-block *,
.content-block p,
.content-block h1,
.content-block h2,
.content-block h3,
.content-block h4,
.content-block h5,
.content-block h6,
.content-block li,
.content-block span,
.content-block strong,
.content-block em,
.content-block div,
.content-block .wp-block-heading,
.content-block .has-text-color,
.content-block .has-secondary-color,
.content-block [class*="has-"][class*="-color"] {
    color: #e5e7eb !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.content-block h1,
.content-block h2,
.content-block h3,
.content-block h4,
.content-block h5,
.content-block h6,
.content-block .wp-block-heading {
    color: #ffffff !important;
}

.content-block a {
    color: #ffde59 !important;
}

.content-block a:hover {
    color: #ffffff !important;
}

/* =================================================================
   31. ENTRY-CONTENT LIGHT BACKGROUND OVERRIDES
   Forces dark text when inside white/light background containers
   ================================================================= */
.bg-white .entry-content,
.entry-content.text-gray-800,
.site-main .bg-white .entry-content {
    color: #1f2937 !important;
    /* gray-800 */
}

.bg-white .entry-content p,
.bg-white .entry-content li,
.bg-white .entry-content span,
.bg-white .entry-content div:not([class*="bg-"]) {
    color: #374151 !important;
    /* gray-700 */
}

.bg-white .entry-content h1,
.bg-white .entry-content h2,
.bg-white .entry-content h3,
.bg-white .entry-content h4,
.bg-white .entry-content h5,
.bg-white .entry-content h6,
.bg-white .entry-content .wp-block-heading {
    color: #111827 !important;
    /* gray-900 */
}

.bg-white .entry-content a {
    color: #1f3a8b !important;
    /* brand-primary */
}

.bg-white .entry-content a:hover {
    color: #3b5998 !important;
    /* brand-primary-light */
}

.bg-white .entry-content ul,
.bg-white .entry-content ol {
    color: #374151 !important;
}

.bg-white .entry-content strong,
.bg-white .entry-content b {
    color: #111827 !important;
}

/* =================================================================
   32. OVERRIDE UGLY YELLOW BACKGROUNDS IN ATELIERS
   ================================================================= */
.content-block .has-brand-accent-background-color,
.content-block .has-accent-background-color,
.content-block [class*="has-yellow-background"],
.content-block [class*="has-amber-background"],
.content-block [style*="background-color:#ffde59"],
.content-block [style*="background-color: #ffde59"] {
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    padding: 2rem !important;
    /* Ensure spacing */
}

.content-block .has-brand-accent-background-color *,
.content-block .has-accent-background-color *,
.content-block [class*="has-yellow-background"] *,
.content-block [class*="has-amber-background"] *,
.content-block [style*="background-color:#ffde59"] *,
.content-block [style*="background-color: #ffde59"] * {
    color: #ffffff !important;
}