/* ========================================
   EDITOR CONTENT LINKS STYLING
   Colors are NOT set here — they come exclusively from theme.json and
   Site Editor (Styles > Colors > Elements) so user customizations apply.
   Only non-color decorative/accessibility properties are set below.
   ======================================== */

/* Content link hover in editor: show underline */
.editor-styles-wrapper .wp-block-post-content a:hover,
.editor-styles-wrapper .entry-content a:hover,
.editor-styles-wrapper .post-content a:hover,
.editor-styles-wrapper .page-content a:hover,
.editor-styles-wrapper article a:hover,
.editor-styles-wrapper .comment-content a:hover,
.editor-styles-wrapper .comment-text a:hover,
.editor-styles-wrapper .wp-block-post-excerpt a:hover,
.editor-styles-wrapper .post-excerpt a:hover,
.editor-styles-wrapper .excerpt a:hover,
.editor-styles-wrapper .widget a:hover,
.editor-styles-wrapper .widget-content a:hover,
.editor-styles-wrapper .wp-block-text a:hover,
.editor-styles-wrapper .textwidget a:hover,
.editor-styles-wrapper .wp-block-paragraph a:hover,
.editor-styles-wrapper .wp-block-list a:hover,
.editor-styles-wrapper .wp-block-quote a:hover,
.editor-styles-wrapper .wp-block-pullquote a:hover,
.editor-styles-wrapper .wp-block-verse a:hover,
.editor-styles-wrapper .wp-block-preformatted a:hover,
.editor-styles-wrapper .content a:hover,
.editor-styles-wrapper main a:hover,
.editor-styles-wrapper .site-content a:hover {
    text-decoration: underline;
    text-underline-offset: 0.125em;
    text-decoration-thickness: 1px;
}

/* Content link keyboard focus indicator in editor */
.editor-styles-wrapper .wp-block-post-content a:focus-visible,
.editor-styles-wrapper .entry-content a:focus-visible,
.editor-styles-wrapper .post-content a:focus-visible,
.editor-styles-wrapper .page-content a:focus-visible,
.editor-styles-wrapper article a:focus-visible,
.editor-styles-wrapper .comment-content a:focus-visible,
.editor-styles-wrapper .comment-text a:focus-visible,
.editor-styles-wrapper .wp-block-post-excerpt a:focus-visible,
.editor-styles-wrapper .post-excerpt a:focus-visible,
.editor-styles-wrapper .excerpt a:focus-visible,
.editor-styles-wrapper .widget a:focus-visible,
.editor-styles-wrapper .widget-content a:focus-visible,
.editor-styles-wrapper .wp-block-text a:focus-visible,
.editor-styles-wrapper .wp-block-list a:focus-visible,
.editor-styles-wrapper .wp-block-quote a:focus-visible,
.editor-styles-wrapper .wp-block-pullquote a:focus-visible,
.editor-styles-wrapper .wp-block-verse a:focus-visible,
.editor-styles-wrapper .wp-block-preformatted a:focus-visible,
.editor-styles-wrapper .content a:focus-visible,
.editor-styles-wrapper main a:focus-visible,
.editor-styles-wrapper .site-content a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    text-decoration: none;
}

/* EXCLUDE specific elements from underline styling in editor */
.editor-styles-wrapper .wp-block-button a,
.editor-styles-wrapper .wp-block-buttons a,
.editor-styles-wrapper .button,
.editor-styles-wrapper .btn,
.editor-styles-wrapper .wp-block-image a,
.editor-styles-wrapper .wp-block-gallery a,
.editor-styles-wrapper .wp-block-media-text a,
.editor-styles-wrapper .wp-block-cover a,
.editor-styles-wrapper .wp-block-navigation a,
.editor-styles-wrapper .navigation a,
.editor-styles-wrapper .nav a,
.editor-styles-wrapper .menu a,
.editor-styles-wrapper .navbar a,
.editor-styles-wrapper .site-title a,
.editor-styles-wrapper .site-header a,
.editor-styles-wrapper .header a,
.editor-styles-wrapper .logo a,
.editor-styles-wrapper .wp-block-social-links a,
.editor-styles-wrapper .social-links a,
.editor-styles-wrapper .wp-block-post-title a,
.editor-styles-wrapper .wp-block-post-author a,
.editor-styles-wrapper .wp-block-post-date a,
.editor-styles-wrapper .wp-block-post-terms a,
.editor-styles-wrapper .post-meta a,
.editor-styles-wrapper .entry-meta a,
.editor-styles-wrapper .wp-block-latest-posts a,
.editor-styles-wrapper .wp-block-archives a,
.editor-styles-wrapper .wp-block-categories a,
.editor-styles-wrapper .wp-block-tag-cloud a,
.editor-styles-wrapper .card a,
.editor-styles-wrapper .wp-block-query-pagination a,
.editor-styles-wrapper .pagination a,
.editor-styles-wrapper .page-numbers,
.editor-styles-wrapper .site-footer .wp-block-navigation a,
.editor-styles-wrapper .footer-navigation a {
    text-decoration: none !important;
}

/* ========================================
   TESTIMONIAL CARDS IN EDITOR
   ======================================== */

/* Testimonial Reviewer Info Layout in Editor */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="justifyContent"] {
    align-items: center;
}

/* Testimonial Card Styles in Editor - ENHANCED WITH FRONTEND MATCHING */
.editor-styles-wrapper .super-agency-testimonial-card {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 16px;
    background: var(--wp--preset--color--background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: auto !important;
    height: auto !important;
    width: 100%;
    max-width: none;
    margin: 16px 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    overflow: visible !important;
    padding: var(--wp--preset--spacing--x-large) !important;
    position: relative;
}

.editor-styles-wrapper .super-agency-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--wp--preset--color--primary);
    z-index: 10;
}

/* Ensure testimonial content distributes properly in editor - ENHANCED */
.editor-styles-wrapper .super-agency-testimonial-card > div,
.editor-styles-wrapper .super-agency-testimonial-card > .wp-block-group {
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 480px !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: visible !important;
    gap: var(--wp--preset--spacing--medium) !important;
}

/* Make the quote text flexible in editor - ENHANCED */
.editor-styles-wrapper .super-agency-testimonial-card p:first-child,
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-paragraph:first-child {
    flex-grow: 1;
    margin-bottom: var(--wp--preset--spacing--large) !important;
    overflow: visible !important;
    line-height: 1.6 !important;
    padding: 0 !important;
    display: block !important;
    -webkit-line-clamp: none !important;
    -webkit-box-orient: unset !important;
}

/* Keep client info at bottom in editor - ENHANCED WITH VISIBILITY */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group:last-child {
    margin-top: auto !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
    padding: var(--wp--preset--spacing--medium) 0 0 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    overflow: visible !important;
    min-height: 80px !important;
    background: rgba(248, 250, 252, 0.5) !important;
    border-radius: 8px !important;
    margin-top: var(--wp--preset--spacing--medium) !important;
    border: 1px dashed #e2e8f0 !important;
    }

/* TESTIMONIAL REVIEWER DETAILS - ENHANCED VISIBILITY IN EDITOR */

/* Target the exact testimonial structure from patterns - ENHANCED */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="gap:16px"],
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="flexWrap"],
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="justifyContent"],
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group:last-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 16px !important; /* Increased padding for better visibility */
    overflow: visible !important;
    min-height: 80px !important; /* Increased height */
    width: 100% !important;
    background: rgba(248, 250, 252, 0.8) !important; /* More prominent background */
    border: 1px dashed #cbd5e1 !important; /* Visible border for editing */
    border-radius: 8px !important;
    box-shadow: none !important;
    position: relative !important;
}

/* Add editor label for better UX */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group:last-child::before {
    content: "📝 Reviewer Info (Click to edit)" !important;
    position: absolute !important;
    top: -20px !important;
    left: 0 !important;
    font-size: 12px !important;
    color: #64748b !important;
    background: white !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 500 !important;
    z-index: 10 !important;
}

/* Target testimonial images with thumbnail size - ENHANCED VISIBILITY */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-image.size-thumbnail,
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-image.is-style-rounded {
    width: 70px !important;
    height: 70px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    border-radius: 50px !important;
    overflow: hidden !important;
    border: 2px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

.editor-styles-wrapper .super-agency-testimonial-card .wp-block-image.size-thumbnail img,
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-image.is-style-rounded img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50px !important;
    object-fit: cover !important;
    display: block !important;
}

.editor-styles-wrapper .super-agency-testimonial-card .wp-block-image.size-thumbnail figure,
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-image.is-style-rounded figure {
    margin: 0 !important;
    padding: 0 !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50px !important;
    overflow: hidden !important;
}

/* Target the reviewer text container - ENHANCED VISIBILITY */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="blockGap:2px"],
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="gap:2px"],
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group:last-child .wp-block-group {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    min-width: 0 !important;
    overflow: visible !important;
    min-height: 60px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Target reviewer text with specific font-weights from pattern - ENHANCED */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-paragraph.has-heading-color,
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-paragraph.has-muted-color,
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-paragraph[style*="font-weight:700"],
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-paragraph[style*="font-weight:500"],
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group:last-child p {
    margin: 0 !important;
    padding: 4px 8px !important;
    line-height: 1.5 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    min-height: 24px !important;
    position: relative !important;
    z-index: 2 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
}

/* Hover state for reviewer text in editor */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group:last-child p:hover {
    border-color: var(--wp--preset--color--primary) !important;
    background: white !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1) !important;
}

/* Fix reviewer info layout in editor - ENHANCED */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="justifyContent"] {
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
}

/* Ensure reviewer text container doesn't overflow in editor - ENHANCED */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="justifyContent"] .wp-block-group {
    flex: 1;
    min-width: 0;
    overflow: visible !important;
    padding: 8px 4px !important;
    gap: 6px !important;
    min-height: 50px !important;
}

/* Ensure reviewer text doesn't break out in editor - ENHANCED */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="justifyContent"] .wp-block-paragraph {
    margin: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 4px 0 !important; /* Match frontend padding */
    line-height: 1.5 !important; /* Match frontend line-height */
    overflow: visible !important;
    min-height: 20px !important; /* Match frontend min-height */
    position: relative;
    z-index: 2; /* Match frontend z-index */
}

/* TESTIMONIAL REVIEWER DETAILS - EXACT PATTERN TARGETING */

/* Target the exact testimonial structure from patterns */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="gap:16px"],
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="flexWrap"],
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="justifyContent"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 8px 0 0 0 !important;
    overflow: visible !important;
    min-height: 70px !important;
    width: 100% !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Target testimonial images with thumbnail size */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-image.size-thumbnail,
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-image.is-style-rounded {
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    border-radius: 50px !important;
    overflow: hidden !important;
}

.editor-styles-wrapper .super-agency-testimonial-card .wp-block-image.size-thumbnail img,
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-image.is-style-rounded img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Target reviewer text with specific font-weights from pattern */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-paragraph.has-heading-color,
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-paragraph.has-muted-color,
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-paragraph[style*="font-weight:700"],
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-paragraph[style*="font-weight:500"] {
    margin: 0 !important;
    padding: 4px 0 !important;
    line-height: 1.5 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    min-height: 20px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Target the reviewer text container */
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="blockGap:2px"],
.editor-styles-wrapper .super-agency-testimonial-card .wp-block-group[style*="gap:2px"] {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 8px 4px !important;
    min-width: 0 !important;
    overflow: visible !important;
    min-height: 50px !important;
}

/* ========================================
   SERVICE CARDS IN EDITOR - ENHANCED FOR BLOCK EDITOR SUPPORT (Updated for Editor Colors)
   ======================================== */

/* Service card general styling in editor - Enhanced for block editor gradients - UPDATED: Allow editor colors */
.editor-styles-wrapper .super-agency-service-card {
    transition: all 0.4s ease !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    min-height: 400px !important;
    text-align: center !important;
    padding: var(--wp--preset--spacing--x-large) !important;
    /* Remove forced color - let WordPress handle it */
}

/* Service card hover effects in editor */
.editor-styles-wrapper .super-agency-service-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

/* Service icon styling in editor - FIXED: Complete solution for icon clipping - UPDATED: Remove forced backgrounds */
.editor-styles-wrapper .super-agency-service-icon {
    width: 100px !important;
    height: 100px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto var(--wp--preset--spacing--large) auto !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s ease !important;
    flex-shrink: 0 !important;
    padding: 24px !important;
    overflow: visible !important;
    position: relative !important;
}

.editor-styles-wrapper .super-agency-service-card:hover .super-agency-service-icon {
    transform: scale(1.05) rotate(3deg) !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Service icon images in editor - COMPLETE FIX: Prevent any clipping */
.editor-styles-wrapper .super-agency-service-icon img {
    filter: brightness(0) invert(1) !important;
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 2 !important;
    border-radius: 0 !important;
}

/* Additional fix: Ensure the image figure doesn't clip in editor */
.editor-styles-wrapper .super-agency-service-icon figure {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fix for any WordPress image wrapper that might cause clipping in editor */
.editor-styles-wrapper .super-agency-service-icon .wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Service text content styling in editor - UPDATED: Remove forced colors */
.editor-styles-wrapper .super-agency-service-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 2 !important;
    margin: var(--wp--preset--spacing--large) 0 var(--wp--preset--spacing--small) 0 !important;
    flex-shrink: 0 !important;
}

.editor-styles-wrapper .super-agency-service-description {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 2 !important;
    line-height: 1.6 !important;
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 var(--wp--preset--spacing--small) !important;
}

/* Glassmorphism overlay effect in editor */
.editor-styles-wrapper .super-agency-service-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none !important;
    border-radius: 24px !important;
}

.editor-styles-wrapper .super-agency-service-card:hover::before {
    opacity: 1 !important;
}

/* Floating decoration in editor */
.editor-styles-wrapper .super-agency-service-card::after {
    content: '' !important;
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 100px !important;
    height: 100px !important;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transition: all 0.4s ease !important;
    pointer-events: none !important;
}

.editor-styles-wrapper .super-agency-service-card:hover::after {
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

/* ========================================
   BACKWARD COMPATIBILITY - Service Card Gradients in Editor
   ======================================== */

/* Fallback gradients for existing users in editor - BACKWARD COMPATIBILITY */
.editor-styles-wrapper .super-agency-service-card.has-service-card-1-gradient-gradient-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.editor-styles-wrapper .super-agency-service-card.has-service-card-2-gradient-gradient-background {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
}

.editor-styles-wrapper .super-agency-service-card.has-service-card-3-gradient-gradient-background {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white !important;
}

/* Ensure text is white on gradient backgrounds in editor - BACKWARD COMPATIBILITY */
.editor-styles-wrapper .super-agency-service-card.has-service-card-1-gradient-gradient-background .super-agency-service-title,
.editor-styles-wrapper .super-agency-service-card.has-service-card-1-gradient-gradient-background .super-agency-service-description,
.editor-styles-wrapper .super-agency-service-card.has-service-card-2-gradient-gradient-background .super-agency-service-title,
.editor-styles-wrapper .super-agency-service-card.has-service-card-2-gradient-gradient-background .super-agency-service-description,
.editor-styles-wrapper .super-agency-service-card.has-service-card-3-gradient-gradient-background .super-agency-service-title,
.editor-styles-wrapper .super-agency-service-card.has-service-card-3-gradient-gradient-background .super-agency-service-description {
    color: white !important;
}

/* ========================================
   TEAM SECTION IN EDITOR
   ======================================== */

/* Team section styling in editor - matches frontend */
.editor-styles-wrapper .super-agency-team-section .wp-block-column {
    background: var(--wp--preset--color--background) !important;
    border-radius: 16px !important;
    padding: var(--wp--preset--spacing--x-large) var(--wp--preset--spacing--large) !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: var(--wp--preset--spacing--large) !important;
}

.editor-styles-wrapper .super-agency-team-section .wp-block-column:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Team member images in editor */
.editor-styles-wrapper .super-agency-team-section .wp-block-image img[style*="border-radius:100px"] {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.editor-styles-wrapper .super-agency-team-section .wp-block-image:has(img[style*="border-radius:100px"]) {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto var(--wp--preset--spacing--large) auto !important;
    transition: all 0.3s ease !important;
}

/* ========================================
   PORTFOLIO CARDS IN EDITOR
   ======================================== */

/* Portfolio card styling in editor */
.editor-styles-wrapper .super-agency-portfolio-card {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: var(--wp--preset--color--background);
    border: none;
    min-height: 420px;
    width: 100%;
    max-width: none;
}

.editor-styles-wrapper .super-agency-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Portfolio images in editor */
.editor-styles-wrapper .super-agency-portfolio-card .wp-block-post-featured-image,
.editor-styles-wrapper .super-agency-portfolio-card .wp-block-image {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    height: 200px;
    margin: 0 !important;
    padding: 0 !important;
}

.editor-styles-wrapper .super-agency-portfolio-card .wp-block-post-featured-image img,
.editor-styles-wrapper .super-agency-portfolio-card .wp-block-image img {
    border-radius: 16px 16px 0 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.editor-styles-wrapper .super-agency-portfolio-card .wp-block-post-featured-image figure,
.editor-styles-wrapper .super-agency-portfolio-card .wp-block-image figure {
    margin: 0 !important;
    padding: 0 !important;
    height: 200px;
    overflow: hidden;
}

/* ========================================
   GENERAL EDITOR STYLES
   ======================================== */

/* FAQ accordion in editor */
.editor-styles-wrapper .super-agency-faq-accordion details {
    transition: all 0.3s ease;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    background: var(--wp--preset--color--background);
    margin-bottom: 16px;
    overflow: hidden;
}

.editor-styles-wrapper .super-agency-faq-accordion details:hover {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.editor-styles-wrapper .super-agency-faq-accordion details summary {
    position: relative;
    padding: 24px;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--large);
    color: var(--wp--preset--color--heading);
    cursor: pointer;
    list-style: none;
    transition: all 0.3s ease;
}

.editor-styles-wrapper .super-agency-faq-accordion details summary:focus {
    outline: none;
}

.editor-styles-wrapper .super-agency-faq-accordion details summary:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: -2px;
    border-radius: 8px;
}

.editor-styles-wrapper .super-agency-faq-accordion details summary::-webkit-details-marker {
    display: none;
}

.editor-styles-wrapper .super-agency-faq-accordion details summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    color: var(--wp--preset--color--primary);
    transition: all 0.3s ease;
}

.editor-styles-wrapper .super-agency-faq-accordion details[open] summary::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}

.editor-styles-wrapper .super-agency-faq-accordion details[open] {
    border-color: var(--wp--preset--color--primary);
}

.editor-styles-wrapper .super-agency-faq-accordion details[open] summary {
    border-bottom: 1px solid var(--wp--preset--color--border);
}

/* ========================================
   PRICING CARDS IN EDITOR
   ======================================== */

/* Pricing card styling in editor */
.editor-styles-wrapper .super-agency-pricing-card {
    transition: all 0.3s ease;
    position: relative;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 16px;
    background: var(--wp--preset--color--background);
    padding: var(--wp--preset--spacing--x-large);
}

.editor-styles-wrapper .super-agency-pricing-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.editor-styles-wrapper .super-agency-pricing-featured {
    position: relative;
    overflow: visible;
    border: 2px solid var(--wp--preset--color--primary);
}

.editor-styles-wrapper .super-agency-pricing-features {
    list-style: none;
    padding-left: 0;
}

.editor-styles-wrapper .super-agency-pricing-features li {
    color: var(--wp--preset--color--body);
    font-weight: 500;
    padding-left: 0;
    margin-bottom: var(--wp--preset--spacing--small);
}

.editor-styles-wrapper .super-agency-pricing-features li::before {
    content: "";
    margin-right: 0;
}

/* Complete text shadow elimination for pricing cards in editor */
.editor-styles-wrapper .super-agency-pricing-card,
.editor-styles-wrapper .super-agency-pricing-card *,
.editor-styles-wrapper .super-agency-pricing-card .wp-block-paragraph,
.editor-styles-wrapper .super-agency-pricing-card .wp-block-heading,
.editor-styles-wrapper .super-agency-pricing-card h1, 
.editor-styles-wrapper .super-agency-pricing-card h2, 
.editor-styles-wrapper .super-agency-pricing-card h3,
.editor-styles-wrapper .super-agency-pricing-card h4, 
.editor-styles-wrapper .super-agency-pricing-card h5, 
.editor-styles-wrapper .super-agency-pricing-card h6,
.editor-styles-wrapper .super-agency-pricing-card p, 
.editor-styles-wrapper .super-agency-pricing-card span, 
.editor-styles-wrapper .super-agency-pricing-card div {
    text-shadow: none !important;
    -webkit-text-shadow: none !important;
    -moz-text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   BUTTON STYLES IN EDITOR
   ======================================== */

/* Button enhancements in editor */
.editor-styles-wrapper .wp-block-button__link {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.editor-styles-wrapper .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Header CTA button styling in editor */
.editor-styles-wrapper .super-agency-header-cta .wp-block-button__link {
    background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%) !important;
    color: white !important;
    padding: 14px 28px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.editor-styles-wrapper .super-agency-header-cta .wp-block-button__link::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s !important;
}

.editor-styles-wrapper .super-agency-header-cta .wp-block-button__link:hover::before {
    left: 100% !important;
}

/* ========================================
   FORM ELEMENTS IN EDITOR
   ======================================== */

/* Form elements in editor */
.editor-styles-wrapper input[type="text"],
.editor-styles-wrapper input[type="email"],
.editor-styles-wrapper input[type="url"],
.editor-styles-wrapper input[type="password"],
.editor-styles-wrapper input[type="search"],
.editor-styles-wrapper input[type="number"],
.editor-styles-wrapper input[type="tel"],
.editor-styles-wrapper textarea,
.editor-styles-wrapper select {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--wp--preset--font-family--inter);
    transition: all 0.3s ease;
}

.editor-styles-wrapper input[type="text"]:focus,
.editor-styles-wrapper input[type="email"]:focus,
.editor-styles-wrapper input[type="url"]:focus,
.editor-styles-wrapper input[type="password"]:focus,
.editor-styles-wrapper input[type="search"]:focus,
.editor-styles-wrapper input[type="number"]:focus,
.editor-styles-wrapper input[type="tel"]:focus,
.editor-styles-wrapper textarea:focus,
.editor-styles-wrapper select:focus {
    outline: none;
}

.editor-styles-wrapper input[type="text"]:focus-visible,
.editor-styles-wrapper input[type="email"]:focus-visible,
.editor-styles-wrapper input[type="url"]:focus-visible,
.editor-styles-wrapper input[type="password"]:focus-visible,
.editor-styles-wrapper input[type="search"]:focus-visible,
.editor-styles-wrapper input[type="number"]:focus-visible,
.editor-styles-wrapper input[type="tel"]:focus-visible,
.editor-styles-wrapper textarea:focus-visible,
.editor-styles-wrapper select:focus-visible {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 1px;
}

/* Search block styling in editor */
.editor-styles-wrapper .wp-block-search {
    border-radius: 8px;
}

.editor-styles-wrapper .wp-block-search__input {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--wp--preset--font-family--inter);
}

.editor-styles-wrapper .wp-block-search__button {
    background: var(--wp--preset--color--primary);
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.editor-styles-wrapper .wp-block-search__button:hover {
    background: var(--wp--preset--color--secondary);
}

/* ========================================
   GENERAL EDITOR TYPOGRAPHY AND LAYOUT
   ======================================== */

/* Base typography in editor */
.editor-styles-wrapper {
    font-family: var(--wp--preset--font-family--inter);
    line-height: 1.6;
}

.editor-styles-wrapper h1, 
.editor-styles-wrapper h2, 
.editor-styles-wrapper h3, 
.editor-styles-wrapper h4, 
.editor-styles-wrapper h5, 
.editor-styles-wrapper h6 {
    font-family: var(--wp--preset--font-family--inter);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--wp--preset--color--heading);
}

/* Link styles in editor — no color override; colors flow from theme.json / global styles */
.editor-styles-wrapper a {
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.editor-styles-wrapper a:hover {
    text-decoration: underline;
    text-underline-offset: 0.125em;
    text-decoration-thickness: 1px;
}

/* ========================================
   SOCIAL LINKS IN EDITOR
   ======================================== */

/* Social links in editor */
.editor-styles-wrapper .wp-block-social-links .wp-social-link {
    transition: all 0.3s ease;
}

.editor-styles-wrapper .wp-block-social-links .wp-social-link:hover {
    transform: translateY(-2px);
}

/* ========================================
   NAVIGATION IN EDITOR
   ======================================== */

/* Navigation in editor */
.editor-styles-wrapper .wp-block-navigation-item a {
    font-weight: 500;
    transition: all 0.3s ease;
}

.editor-styles-wrapper .wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--link-hover);
}

/* ========================================
   IMAGE STYLES IN EDITOR
   ======================================== */

/* General image enhancements in editor */
.editor-styles-wrapper .wp-block-image img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.editor-styles-wrapper .wp-block-image:hover img {
    transform: scale(1.02);
}

/* ========================================
   CARD STYLES IN EDITOR
   ======================================== */

/* Card hover effects in editor */
.editor-styles-wrapper .wp-block-group.is-style-super-agency-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    padding: var(--wp--preset--spacing--large);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.editor-styles-wrapper .wp-block-group.is-style-super-agency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ========================================
   RESPONSIVE EDITOR STYLES
   ======================================== */

/* Mobile responsive adjustments in editor */
@media (max-width: 768px) {
    .editor-styles-wrapper .wp-block-columns {
        flex-direction: column;
    }
    
    .editor-styles-wrapper .wp-block-column {
        flex-basis: 100% !important;
    }
    
    .editor-styles-wrapper h1, 
    .editor-styles-wrapper .has-huge-font-size {
        font-size: 2.5rem !important;
    }
    
    .editor-styles-wrapper h2, 
    .editor-styles-wrapper .has-xxxx-large-font-size {
        font-size: 2rem !important;
    }
    
    .editor-styles-wrapper .wp-block-group[style*="padding"] {
        padding-left: var(--wp--preset--spacing--medium) !important;
        padding-right: var(--wp--preset--spacing--medium) !important;
    }
    
    /* Services mobile adjustments in editor */
    .editor-styles-wrapper .super-agency-service-card {
        min-height: 350px !important;
        padding: var(--wp--preset--spacing--large) var(--wp--preset--spacing--medium) !important;
    }
    
    /* Testimonial mobile adjustments in editor */
    .editor-styles-wrapper .super-agency-testimonial-card {
        min-height: 400px !important;
        padding: var(--wp--preset--spacing--large) !important;
    }
    
    /* Team section mobile adjustments in editor */
    .editor-styles-wrapper .super-agency-team-section .wp-block-image img[style*="border-radius:100px"] {
        width: 120px !important;
        height: 120px !important;
    }
    
    .editor-styles-wrapper .super-agency-team-section .wp-block-image:has(img[style*="border-radius:100px"]) {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: var(--wp--preset--spacing--medium) !important;
    }
}

/* ========================================
   EDITOR SPECIFIC UTILITIES
   ======================================== */

/* Ensure all interactive elements are properly visible in editor */
.editor-styles-wrapper .super-agency-testimonial-card,
.editor-styles-wrapper .super-agency-portfolio-card,
.editor-styles-wrapper .super-agency-service-card,
.editor-styles-wrapper .super-agency-pricing-card {
    position: relative;
    z-index: 1;
}

/* Remove any conflicting transform styles that might interfere with editing */
.editor-styles-wrapper .super-agency-testimonial-card:hover,
.editor-styles-wrapper .super-agency-portfolio-card:hover,
.editor-styles-wrapper .super-agency-service-card:hover,
.editor-styles-wrapper .super-agency-pricing-card:hover {
    z-index: 2;
}

/* ========================================
   FOOTER IN EDITOR
   ======================================== */

/* Footer background */
.editor-styles-wrapper footer.wp-block-group {
    background-color: var(--wp--preset--color--heading) !important;
}

/* Prevent child blocks from overriding the footer background */
.editor-styles-wrapper footer .wp-block-group,
.editor-styles-wrapper footer .wp-block-navigation,
.editor-styles-wrapper footer .wp-block-columns,
.editor-styles-wrapper footer .wp-block-column {
    background-color: transparent !important;
}

/* Footer headings */
.editor-styles-wrapper footer h1,
.editor-styles-wrapper footer h2,
.editor-styles-wrapper footer h3,
.editor-styles-wrapper footer h4,
.editor-styles-wrapper footer h5,
.editor-styles-wrapper footer h6 {
    color: var(--wp--preset--color--background) !important;
}

/* Footer paragraphs */
.editor-styles-wrapper footer p {
    color: var(--wp--preset--color--background) !important;
}

/* Footer navigation link colors */
.editor-styles-wrapper footer .wp-block-navigation .wp-block-navigation-item__content,
.editor-styles-wrapper footer .wp-block-navigation a {
    color: var(--wp--preset--color--background) !important;
}

.editor-styles-wrapper footer .wp-block-navigation .wp-block-navigation-item__content:hover,
.editor-styles-wrapper footer .wp-block-navigation a:hover {
    color: var(--wp--preset--color--primary) !important;
    text-decoration: none !important;
}

/* Footer legal links */
.editor-styles-wrapper footer .footer-legal-links .wp-block-navigation-item__content,
.editor-styles-wrapper footer .footer-legal-links a {
    color: var(--wp--preset--color--background) !important;
    opacity: 0.8;
    font-size: var(--wp--preset--font-size--small);
}

/* Footer separator */
.editor-styles-wrapper footer .wp-block-separator {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Footer site title */
.editor-styles-wrapper footer .wp-block-site-title a,
.editor-styles-wrapper footer .wp-block-site-title {
    color: var(--wp--preset--color--background) !important;
}

/* ========================================
   BLOG ARCHIVE GRID IN EDITOR
   ======================================== */

.editor-styles-wrapper .wp-block-query .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wp--preset--spacing--large) !important;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .editor-styles-wrapper .wp-block-query .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important;
        gap: var(--wp--preset--spacing--medium) !important;
    }
}

/* ========================================
   PAGINATION IN EDITOR
   ======================================== */

.editor-styles-wrapper .wp-block-query-pagination {
    margin-top: var(--wp--preset--spacing--xx-large);
}

.editor-styles-wrapper .wp-block-query-pagination .page-numbers {
    display: inline-block;
    padding: 12px 16px;
    margin: 0 4px;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    color: var(--wp--preset--color--heading);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.editor-styles-wrapper .wp-block-query-pagination .page-numbers:hover,
.editor-styles-wrapper .wp-block-query-pagination .page-numbers.current {
    background: var(--wp--preset--color--primary);
    color: white;
    border-color: var(--wp--preset--color--primary);
}

/* ========================================
   FEATURED PROJECTS SECTION IN EDITOR
   ======================================== */

.editor-styles-wrapper .wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.editor-styles-wrapper .wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.editor-styles-wrapper .wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.editor-styles-wrapper .wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
}

.editor-styles-wrapper .wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-image figure {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.editor-styles-wrapper .wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-group[style*="padding"] {
    padding: var(--wp--preset--spacing--medium) !important;
    margin: 0 !important;
}

.editor-styles-wrapper .wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group:hover .wp-block-image img {
    transform: scale(1.02) !important;
}

/* ========================================
   FOOTER NAVIGATION VERTICAL LAYOUT IN EDITOR
   ======================================== */

.editor-styles-wrapper footer .footer-nav-list,
.editor-styles-wrapper footer .footer-nav-list .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--wp--preset--spacing--x-small) !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.editor-styles-wrapper footer .footer-nav-list .wp-block-navigation-item a,
.editor-styles-wrapper footer .footer-nav-list .wp-block-navigation-item__content {
    color: var(--wp--preset--color--background) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.editor-styles-wrapper footer .footer-nav-list .wp-block-navigation-item a:hover,
.editor-styles-wrapper footer .footer-nav-list .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--primary) !important;
}

/* Footer legal links layout in editor */
.editor-styles-wrapper footer .footer-legal-links,
.editor-styles-wrapper footer .footer-legal-links .wp-block-navigation__container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: var(--wp--preset--spacing--small) !important;
    justify-content: flex-end !important;
}

/* Prevent disruptive hover transforms on footer cards in editor */
.editor-styles-wrapper footer .wp-block-group:hover,
.editor-styles-wrapper footer .wp-block-column:hover {
    transform: none !important;
}

/* ========================================
   REDUCED MOTION IN EDITOR
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .editor-styles-wrapper *,
    .editor-styles-wrapper *::before,
    .editor-styles-wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}