/**
 * Single Firm Detail Page Styles
 * Consolidated from inline <style> blocks in single-firm.php
 *
 * Design system: "Minimalist revision" (block 1) takes precedence.
 * Base styles (block 2) provide additional unique rules.
 * Mobile sticky bar (block 3) is appended at the end.
 *
 * Table of Contents:
 *  1.  Page Layout
 *  2.  Header
 *  3.  Gallery
 *  4.  Badges (Stories)
 *  5.  Sector Leader Banner
 *  6.  Badge CTA & Rank Cards
 *  7.  Support / Voting Section
 *  8.  Description
 *  9.  Certificates
 *  10. ACSI Section
 *  11. Opening Hours
 *  12. Digital vCard
 *  13. FAQ Section
 *  14. Reviews & Rating
 *  15. Sidebar (Contact, Comparison)
 *  16. Embed / Webmaster Section
 *  17. Mobile Sticky Bar
 *  18. Animations
 *  19. Responsive
 */


/* ==========================================================================
   1. Page Layout
   ========================================================================== */

/* Firma detay sayfasında site header sticky olmasın */
html.firm-detail-page .site-header {
    position: relative;
}

/* Footer boşluk düzeltmesi */
html.firm-detail-page .site-footer {
    margin-top: 0;
}


.firm-detail-container {
    background-color: #f8fafc;
    padding-bottom: 0;
    min-height: 100vh;
    margin-bottom: 0;
    width: 100%;
}

.firm-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: start;
    position: relative;
    padding-top: 48px;
}

.firm-main-content {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.firm-sidebar {
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    align-self: stretch;
}

.firm-info-card.contact-card {
    position: sticky;
    top: 160px;
}

/* Shared card style for major content sections */
.firm-badge-section,
.support-box,
.opening-hours-section,
.firm-reviews,
.firm-description,
.firm-certificates,
.acsi-widget-container,
.qr-business-card-section,
.qr-card,
.list-item,
.firm-sidebar .widget,
.sidebar .widget {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.firm-badge-section:hover,
.opening-hours-section:hover,
.firm-reviews:hover,
.firm-description:hover,
.firm-certificates:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* ---- Section sketch divider ---- */
.section-sketch {
    width: 100%;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.section-sketch::before,
.section-sketch::after {
    content: '';
    flex: 1;
    height: 1px;
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-sketch::before {
    background: linear-gradient(90deg, transparent, #e2e8f0);
    transform-origin: right center;
}

.section-sketch::after {
    background: linear-gradient(90deg, #e2e8f0, transparent);
    transform-origin: left center;
}

/* SVG: hidden until drawn */
.section-sketch svg {
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.5s ease 0.3s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.section-sketch svg path,
.section-sketch svg circle,
.section-sketch svg rect,
.section-sketch svg line,
.section-sketch svg polyline,
.section-sketch svg polygon {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

/* Drawn state — triggered by JS adding .is-drawn */
.section-sketch.is-drawn::before,
.section-sketch.is-drawn::after {
    transform: scaleX(1);
}

.section-sketch.is-drawn svg {
    opacity: 0.3;
    transform: scale(1);
}

.section-sketch.is-drawn svg path,
.section-sketch.is-drawn svg circle,
.section-sketch.is-drawn svg rect,
.section-sketch.is-drawn svg line,
.section-sketch.is-drawn svg polyline,
.section-sketch.is-drawn svg polygon {
    stroke-dashoffset: 0;
}

.section-sketch:hover svg {
    opacity: 0.5;
}

/* Section heading with icon */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    flex-shrink: 0;
}

.section-heading-icon svg {
    width: 20px;
    height: 20px;
    stroke: #2563eb;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}


/* ==========================================================================
   2. Header
   ========================================================================== */

.firm-header {
    background: #ffffff;
    padding: 48px 0 32px;
    border-bottom: 1px solid #eef1f5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    margin-bottom: 0;
    width: 100%;
}

.firm-detail-container .firm-header > .container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    display: block;
    box-sizing: border-box;
}

/* Top row: Title + Rating */
.firm-header-top {
    margin-bottom: 20px;
    text-align: center;
}

.firm-header-top .firm-rating {
    justify-content: center;
}

/* Bottom row: Tags left, Buttons right */
.firm-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.firm-header-left {
    flex: 1 1 0;
    min-width: 0;
}

.firm-header-right {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.firm-title {
    font-size: 2.8rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #0f172a;
    font-weight: 800;
}

.firm-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.firm-rating.no-rating {
    opacity: 0.6;
}

.rating-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.rating-value small {
    font-size: 0.8rem;
    color: #888;
    font-weight: normal;
}

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    font-size: 22px;
    display: inline-block;
    line-height: 1;
    position: relative;
}

.stars::before {
    content: '\2605\2605\2605\2605\2605';
    letter-spacing: 2px;
    background: linear-gradient(90deg, #f59e0b var(--percent), #e2e8f0 var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stars-placeholder {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    position: relative;
    color: #ccc;
}

.stars-placeholder::before {
    content: '\2605\2605\2605\2605\2605';
    letter-spacing: 3px;
    color: #ccc;
}

.category-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.firm-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Header action buttons — 2026 modern pill style */
.firm-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    height: 46px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.quick-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.quick-action-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
}

.button-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

.button-icon-wrapper svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Map / Directions */
.map-button {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.map-button:hover {
    background: #1e293b;
    border-color: #334155;
    color: #ffffff;
}

/* Call */
.call-button {
    background: #ffffff;
    color: #0f172a;
    border-color: #e2e8f0;
}

.call-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.call-button .button-icon-wrapper {
    color: #2563eb;
}

/* WhatsApp */
.whatsapp-button {
    background: #22c55e;
    color: #ffffff;
    border-color: #22c55e;
}

.whatsapp-button:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.firm-quick-actions .whatsapp-button,
.firm-quick-actions .whatsapp-button:visited,
.firm-quick-actions .whatsapp-button:focus,
.firm-quick-actions .whatsapp-button:active,
.firm-quick-actions .whatsapp-button:hover {
    color: #ffffff;
    text-decoration: none;
}

.badge-button {
    background-color: #8b5cf6;
    color: white;
}

.badge-button:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
}

/* Action Buttons (Compare etc) */
.action-button {
    height: 50px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.compare-button {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.go-compare-button {
    background: #f43f5e;
    color: #ffffff;
}

.go-compare-button:hover {
    background: #e11d48;
}

.firm-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.firm-actions .btn {
    padding: 10px 20px;
    font-weight: 500;
}

.firm-actions .btn i {
    margin-right: 8px;
}

.top-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-action-button i {
    margin-right: 8px;
}


/* ==========================================================================
   3. Gallery
   ========================================================================== */

.firm-gallery {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
    position: relative;
    display: block;
    max-width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    max-width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* ==========================================================================
   4. Badges (Stories)
   ========================================================================== */

.firm-badges {
    margin-bottom: 30px;
}

.firm-badges h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
}

/* BLM Badge Container */
.blm-badges-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.blm-badges-category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.blm-badges-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.blm-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.blm-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blm-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.blm-badge-info {
    flex-grow: 1;
}

.blm-badge-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.blm-badge-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.blm-badge-date {
    font-size: 0.8rem;
    color: #888;
}

.blm-badges-info {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Instagram-style badge stories */
.firm-badges-stories {
    padding: 15px 0;
    background: transparent;
    border-bottom: none;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
}

.badges-stories-wrapper {
    position: relative;
}

.badges-stories-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 15px 10px 60px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0;
}

.badges-stories-container::-webkit-scrollbar {
    display: none;
}

.badge-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px;
    animation: simpleAppear 0.4s ease backwards;
    animation-delay: calc(var(--badge-index, 0) * 0.05s);
}

.badge-story:hover {
    transform: translateY(-5px);
}

.badge-story-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 8px;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge-story-icon::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    top: -10%;
    left: -10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-story:hover .badge-story-icon::before {
    opacity: 0.5;
}

.badge-story:hover .badge-story-icon {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: scale(1.08);
}

.badge-story-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.badge-story:hover .badge-story-icon i {
    transform: scale(1.15);
}

.badge-story-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    margin-top: 5px;
    line-height: 1.2;
}

.badge-story:hover .badge-story-name {
    font-weight: 600;
    color: #3b82f6;
}

.no-badges-message {
    font-size: 1rem;
    color: #6b7280;
    font-style: italic;
    padding: 20px;
    text-align: center;
    width: 100%;
    animation: fadeIn 1s ease;
}

/* Hover glow effect */
.hover-glow {
    animation: glow 1.5s ease-in-out infinite alternate;
}

/* Badge Application Section */
.firm-badge-section {
    background-color: #fff;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.badge-section-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.badge-section-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    flex-shrink: 0;
}

.badge-section-content {
    flex: 1;
}

.badge-section-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.badge-section-content p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.badge-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(139, 92, 246, 0.2);
    min-width: 160px;
}

.badge-apply-button:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    color: white;
    text-decoration: none;
}

.badge-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    width: 24px;
    height: 24px;
}

.badge-icon-wrapper i {
    font-size: 16px;
}


/* ==========================================================================
   5. Sector Leader Banner
   ========================================================================== */

.sector-leader-banner {
    background: linear-gradient(90deg, #d97706, #b45309);
    margin-bottom: 0;
    box-shadow: 0 5px 15px rgba(180, 83, 9, 0.15);
    position: relative;
    margin-top: -1px;
}

.sector-leader-banner .container {
    padding: 20px 0;
}

.leader-content {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.leader-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fef3c7;
}

.leader-text {
    flex: 1;
}

.leader-text h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    color: #fef3c7;
}

.leader-text p {
    margin: 5px 0 0;
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.leader-text p strong {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px 0;
}

.leader-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 15px;
    min-width: 80px;
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fef3c7;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 5px;
}


/* ==========================================================================
   6. Badge CTA & Rank Cards
   ========================================================================== */

.firm-badge-cta,
.elite-rank-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.badge-cta-text,
.rank-card-left {
    flex: 1;
}

.badge-cta-action,
.rank-card-right {
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    padding-left: 25px;
    border-left: 1px solid #f1f5f9;
}

.badge-cta-text p {
    margin: 0;
    font-size: 16px;
    color: #334155;
    font-weight: 500;
    line-height: 1.6;
}

.badge-cta-button,
.rank-card-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.badge-cta-button {
    background: #0f172a;
    color: #ffffff;
}

.badge-cta-button:hover {
    background: #1e293b;
}

.rank-card-btn {
    background: #2563eb;
    color: #ffffff;
}

.rank-card-btn:hover {
    background: #1d4ed8;
}

.secondary-btn {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.secondary-btn:hover {
    background: #f1f5f9;
}

/* Rank Badge Styling */
.rank-card-badge {
    width: 75px;
    height: 75px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rank-val {
    font-size: 30px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.rank-txt {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    margin-top: 2px;
}

.rank-1 .rank-card-badge {
    border-color: #f59e0b;
    background: #fffbeb;
}

.rank-1 .rank-val {
    color: #b45309;
}

.rank-3 .rank-card-badge {
    border-color: #d97706;
    background: #fff7ed;
}

.rank-3 .rank-val {
    color: #9a3412;
}

.rank-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.rank-card-list-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.rank-card-sentence {
    font-size: 16px;
    color: #334155;
    margin-bottom: 8px;
}

.highlight-rank {
    color: #2563eb;
    font-weight: 700;
}

.rank-card-motivation {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}


/* ==========================================================================
   7. Support / Voting Section
   ========================================================================== */

.firm-support,
.support-box,
.support-content,
.firm-certificates,
.certificates-container,
.acsi-section,
.digital-vcard-section {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

.firm-support {
    margin-top: 40px;
    margin-bottom: 35px;
}

.firm-support h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
}

.support-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.support-title i {
    color: #6366f1;
}

.support-description {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
    padding-left: 32px;
}

/* List items within support */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.list-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.list-item.leader {
    background-color: #fdf9ee;
    border: 1px solid #f0e0bc;
    box-shadow: 0 4px 12px rgba(235, 195, 52, 0.1);
}

.list-item.leader:hover {
    box-shadow: 0 6px 16px rgba(235, 195, 52, 0.15);
}

.list-header {
    flex: 1;
}

.list-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.list-category {
    display: inline-block;
    font-size: 0.85rem;
    background-color: #f1f5f9;
    color: #64748b;
    padding: 3px 12px;
    border-radius: 20px;
}

.list-rank {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    color: #64748b;
}

.list-rank.rank-1 {
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.list-rank.rank-2 {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.list-rank.rank-3 {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.list-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.list-button:hover {
    background-color: #1d4ed8;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.list-badge {
    padding: 6px 12px;
    background-color: #2563eb;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sector-leader-badge {
    background-color: white;
    color: #333;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.list-support-text {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #4b5563;
    font-style: italic;
    line-height: 1.5;
}

.support-info {
    margin-top: 20px;
    padding: 12px 15px;
    background-color: #f0f9ff;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
}

.support-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}

.support-info i {
    color: #2563eb;
    margin-right: 5px;
}

.no-lists {
    font-style: italic;
    color: #64748b;
    padding: 10px 0;
}


/* ==========================================================================
   8. Description
   ========================================================================== */

.firm-description {
    margin-bottom: 30px;
}

.firm-description h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
}

.firm-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 15px;
}


/* ==========================================================================
   9. Certificates
   ========================================================================== */

.firm-certificates {
    margin: 30px 0;
    padding: 30px;
    background-color: #fcfcfc;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    position: relative;
}

.firm-certificates h2 {
    color: #444;
    text-align: left;
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    font-weight: 600;
}

.certificates-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.certificate-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    border-left: 3px solid #ddd;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.certificate-icon {
    font-size: 24px;
    color: #b8860b;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f9f9f9;
    border-radius: 50%;
    flex-shrink: 0;
}

.certificate-details {
    flex: 1;
}

.certificate-details h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.certificate-number,
.certificate-date {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.certificate-number::before,
.certificate-date::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: #999;
    font-size: 12px;
}

.certificate-number::before {
    content: '\f2c2';
}

.certificate-date::before {
    content: '\f073';
}

.certificate-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.certificate-download-button:hover {
    background-color: #e0e0e0;
    color: #333;
}

.certificate-download-button i {
    margin-right: 8px;
    font-size: 14px;
}

/* Minimalist cert details (from block 1) */
.cert-details p {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-details p i {
    width: 16px;
    color: #94a3b8;
}

.cert-details p span {
    font-weight: 700;
    color: #475569;
}

.cert-icon-wrap {
    width: 60px;
    height: 60px;
    background: #fffbeb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cert-icon-wrap i {
    font-size: 24px;
    color: #f59e0b;
}


/* ==========================================================================
   10. ACSI Section
   ========================================================================== */

.acsi-section {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: none;
}

.acsi-section.has-score,
.acsi-section.no-score {
    border-left: none;
    background: transparent;
}

.acsi-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.acsi-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.acsi-section .section-icon {
    color: #10b981;
    font-size: 1.3rem;
}

.acsi-score-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.acsi-score-badge .score-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.acsi-score-badge .score-max {
    opacity: 0.8;
    font-size: 0.9rem;
}

.acsi-section .section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.acsi-info {
    flex: 1;
}

.acsi-score-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.acsi-score-details .score-description p {
    margin: 0 0 5px 0;
    color: #374151;
    line-height: 1.6;
}

.acsi-score-details .score-note {
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
}

.score-meter {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 15px;
}

.meter-background {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626 0%, #f59e0b 25%, #eab308 50%, #84cc16 75%, #10b981 100%);
    border-radius: 6px;
    transition: width 0.8s ease;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
}

.acsi-info-content p {
    margin: 0 0 10px 0;
    color: #374151;
    line-height: 1.6;
}

.acsi-info-content .info-note {
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
}

.acsi-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.acsi-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
    min-width: 140px;
    justify-content: center;
}

.acsi-button.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.acsi-button.secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.acsi-button i {
    font-size: 0.9rem;
}

/* ACSI intro & score (minimalist block) */
.acsi-intro-text {
    font-size: 15px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.5;
}

.acsi-score-display {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f1f5f9;
}

.score-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

.score-val {
    font-size: 32px;
    font-weight: 900;
    color: #6366f1;
    line-height: 1;
}

.score-val span {
    font-size: 14px;
    color: #94a3b8;
    margin-left: 2px;
}

.score-sub-text {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.elite-meter {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.elite-meter-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 4px;
}

/* TCSI sidebar widget */
.tcsi-widget {
    padding: 20px;
}

.tcsi-widget-header {
    margin-bottom: 16px;
}

.tcsi-widget-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 12px;
}

.tcsi-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.tcsi-max {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
}

.tcsi-widget-meter {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.tcsi-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 3px;
    transition: width 1s ease;
}

.tcsi-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.tcsi-widget-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tcsi-widget-link:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.tcsi-widget-link svg {
    flex-shrink: 0;
}


/* ==========================================================================
   11. Opening Hours
   ========================================================================== */

.opening-hours-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 30px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    position: relative;
}

.opening-hours-section .oh-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 18px;
}

.opening-hours-section .section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.opening-hours-section .section-icon {
    color: #2196F3;
    font-size: 1rem;
    background: rgba(33, 150, 243, 0.1);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.oh-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.oh-status-pill.is-open {
    background: #e8f5e8;
    color: #166534;
    border-color: #bbe5bb;
}
.oh-status-pill.is-closed {
    background: #ffebee;
    color: #b71c1c;
    border-color: #f5c2c7;
}
.oh-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.oh-status-pill.is-open .oh-status-dot {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5);
    animation: oh-pulse 2s infinite;
}
@keyframes oh-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
.oh-header-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.oh-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.oh-countdown-badge[hidden] { display: none; }
.oh-countdown-badge.is-open {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbe5bb;
}
.oh-countdown-badge.is-closed {
    background: #fef2f2;
    color: #b71c1c;
    border-color: #f5c2c7;
}
.oh-countdown-badge i { font-size: 0.88rem; opacity: 0.85; }
.oh-countdown-label { opacity: 0.85; font-weight: 500; }
.oh-countdown-value { font-weight: 700; }

.oh-today {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
}
.oh-today-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}
.oh-today-day {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
}
.oh-today-sep { color: #cbd5e1; }
.oh-today-hours {
    font-size: 1.05rem;
    font-weight: 700;
    color: #334155;
    font-variant-numeric: tabular-nums;
}
.oh-today .oh-countdown-badge { margin-left: auto; }
.oh-today.is-open .oh-today-hours { color: #166534; }
.oh-today.is-closed .oh-today-hours { color: #94a3b8; }

.oh-days {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.oh-day {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
    transition: background-color 0.15s ease;
    position: relative;
}
.oh-day:last-child { border-bottom: none; }
.oh-day:hover { background: #f8fafc; }
.oh-day-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: #334155;
}
.oh-day-badge {
    display: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: #2196F3;
    padding: 2px 8px;
    border-radius: 999px;
}
.oh-day-hours {
    margin-left: auto;
    font-size: 0.98rem;
    font-weight: 600;
    color: #334155;
    font-variant-numeric: tabular-nums;
}
.oh-day.is-closed .oh-day-name,
.oh-day.is-closed .oh-day-hours {
    color: #94a3b8;
}
.oh-day.is-today {
    background: rgba(33, 150, 243, 0.06);
    box-shadow: inset 3px 0 0 0 #2196F3;
}
.oh-day.is-today .oh-day-badge { display: inline-block; }
.oh-day.is-today.is-open-now .oh-day-hours { color: #166534; }


/* ==========================================================================
   12. Digital vCard
   ========================================================================== */

.digital-vcard-section .qr-business-card-minimal {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: none;
    margin: 15px 0 50px 0;
    overflow: hidden;
}

.digital-vcard-section .qr-business-card-minimal .card-header {
    display: none;
}

.digital-vcard-section .qr-business-card-minimal .card-body {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.digital-vcard-section .contact-preview {
    flex: 1;
    text-align: left;
}

.digital-vcard-section .contact-preview strong {
    color: #0f172a;
    font-size: 19px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.digital-vcard-section .contact-preview span {
    color: #64748b;
    font-size: 15px;
    display: block;
}

.digital-vcard-section .contact-note {
    display: none;
}

.digital-vcard-section .qr-generator {
    width: auto;
    min-width: 140px;
    flex-shrink: 0;
    text-align: center;
}

.digital-vcard-section .qr-generator img {
    max-width: 160px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.digital-vcard-section .btn-generate {
    background: #2563eb;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 700;
    padding: 12px 20px;
    border: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.digital-vcard-section .btn-generate:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.vcard-offline-msg {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    border: 1px dashed #e2e8f0;
}

.digital-vcard-section::before,
.digital-vcard-section::after {
    display: none;
    content: none;
}


/* ==========================================================================
   13. FAQ Section
   ========================================================================== */

.firm-faq-section {
    margin-bottom: 40px;
    background: transparent;
}

.faq-section-title {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: block;
    font-weight: 600;
    padding: 0;
    background: none;
    border: none;
}

.firm-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
    transform: translateY(-2px);
}

.faq-item.faq-active {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-question:hover {
    background: rgba(0, 115, 170, 0.05);
}

.faq-item.faq-active .faq-question {
    background: rgba(0, 115, 170, 0.08);
    border-bottom-color: #e1e1e1;
}

.faq-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
    line-height: 1.4;
    flex: 1;
    margin-right: 20px;
}

.faq-toggle-icon {
    color: #0073aa;
    font-size: 1.2em;
    transition: all 0.3s ease;
    transform: rotate(0deg);
    min-width: 24px;
    text-align: center;
}

.faq-toggle-icon.faq-open {
    transform: rotate(180deg);
    color: #005a87;
}

.faq-answer {
    display: none;
    padding: 0;
    background: #fafbfc;
    border-top: 1px solid #e9ecef;
}

.faq-answer-content {
    padding: 25px;
    color: #555;
    line-height: 1.6;
    font-size: 1.05em;
    font-weight: 400;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-answer-content ul,
.faq-answer-content ol {
    padding-left: 20px;
    margin: 10px 0;
}

.faq-answer-content table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.faq-answer-content p {
    margin-bottom: 15px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.ai-badge {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 8px;
    border-left: 4px solid #6c757d;
}

.ai-badge small {
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.ai-badge i {
    color: #6c757d;
    font-size: 1em;
}

.faq-edit-suggestion {
    margin-top: 15px;
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.edit-suggestion-btn {
    display: inline-block;
    background: #f8f9fa;
    color: #6c757d;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.edit-suggestion-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.edit-suggestion-btn i {
    margin-right: 5px;
}


/* ==========================================================================
   14. Reviews & Rating
   ========================================================================== */

.firm-reviews {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: none;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.firm-reviews h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.reviews-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.average-rating {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #e9ecef;
    padding-right: 40px;
}

.big-rating {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 10px;
}

.big-rating.no-rating {
    color: #9ca3af;
    font-size: 2.5rem;
}

.rating-count {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.rating-info {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #888;
    max-width: 200px;
}

.rating-breakdown {
    flex: 1;
    min-width: 250px;
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-level {
    width: 75px;
    font-size: 0.95rem;
    color: #555;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 15px;
}

.rating-progress {
    height: 100%;
    background-color: #fbbf24;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.rating-percent {
    width: 50px;
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

.no-ratings-message {
    background-color: #fff8e6;
    border: 1px dashed #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-style: italic;
}

.no-ratings-message p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b5900;
}

/* Google reviews info */
.google-reviews-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f5f9ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.google-logo {
    font-size: 24px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.google-logo i {
    background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg) 73% 55%/150% 150% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.google-info-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 500;
}

/* Review form */
.review-form-container {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
}

.review-form-container h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-form label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
}

.review-form input,
.review-form textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.rating-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.8rem;
    color: #ddd;
    transition: all 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffb700;
}

.submit-review {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    align-self: flex-start;
}

.submit-review:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Review items - airy list design */
.reviews-list {
    margin-top: 50px;
}

.reviews-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.reviews-count {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.review-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 35px 0;
    transition: none;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item::before,
.review-item.website-review::before,
.review-item.google-review::before,
.review-item.admin-review::before {
    display: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-author {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.05rem;
    margin: 0;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-badge.google {
    background: #fef2f2;
    color: #ef4444;
}

.source-badge.website {
    background: #eff6ff;
    color: #3b82f6;
}

.source-badge.admin {
    background: #f0fdf4;
    color: #22c55e;
}

.review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.review-rating .stars {
    font-size: 15px;
}

.rating-number {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.review-text {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.review-text strong,
.review-text b {
    font-weight: 600;
}

.review-text p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.review-footer {
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.review-date {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Google Reviews Link */
.google-reviews-link {
    margin-top: 25px;
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.view-all-reviews-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.view-all-reviews-button:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

/* No Reviews Message */
.no-reviews-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.no-reviews-message h3 {
    color: #374151;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.no-reviews-message p {
    color: #6b7280;
    margin-bottom: 20px;
}

.view-reviews-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-reviews-button:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* Form status messages */
.form-status {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none;
}

.success-message {
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-weight: bold;
    display: none;
}

.error-message {
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    font-weight: bold;
    display: none;
}


/* ==========================================================================
   15. Sidebar (Contact, Comparison)
   ========================================================================== */

.firm-info-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: none;
    padding: 18px 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.firm-info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Contact card header */
.contact-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.contact-card-header svg {
    flex-shrink: 0;
}

/* Info items */
.info-item {
    display: flex;
    gap: 10px;
    padding: 8px 6px;
    margin-bottom: 2px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.info-item:hover {
    background: transparent;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    margin-top: 2px;
}

.info-icon svg {
    display: block;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    display: block;
    margin-bottom: 2px;
}

.info-content h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin: 0 0 2px 0;
}

.info-content p {
    font-size: 0.9rem;
    color: #334155;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.info-content p a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.info-content p a:hover {
    text-decoration: underline;
}

/* Price level */
.price-level {
    font-size: 1.1rem;
    font-weight: 500;
    color: #10b981;
}

/* Business status */
.business-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-temp-closed {
    background-color: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.status-closed {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Open/Closed status */
.open-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.is-open {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.is-closed {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Google Maps link */
.google-maps-link {
    display: inline-block;
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.google-maps-link:hover {
    color: #1967d2;
    text-decoration: underline;
}

/* Comparison Card */
/* Comparison section — matches elite-rank-card style */
.comparison-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.comparison-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.comparison-button i {
    margin-right: 10px;
    font-size: 15px;
}

.add-to-compare {
    background: #0f172a;
    color: #ffffff;
}

.add-to-compare:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

.go-to-compare {
    background: #2563eb;
    color: #ffffff;
}

.go-to-compare:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
    color: #ffffff;
}

.comparison-note {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.comparison-note p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.comparison-note i {
    color: #2563eb;
    margin-right: 6px;
}


/* ==========================================================================
   16. Embed CTA — Minimal
   ========================================================================== */

.embed-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 48px 52px;
    margin: 50px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.embed-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
}

.embed-cta-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    top: -100px;
    right: 100px;
    pointer-events: none;
}

.embed-cta-left {
    flex: 1;
    position: relative;
    z-index: 1;
}

.embed-cta-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.15);
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.embed-cta-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.embed-cta-text {
    font-size: 15px;
    color: #94a3b8;
    margin: 0 0 24px 0;
    line-height: 1.6;
    max-width: 440px;
}

.embed-cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.embed-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.embed-cta-button:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.embed-cta-note {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Widget preview mockup */
.embed-cta-preview {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.embed-preview-card {
    width: 220px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.embed-cta:hover .embed-preview-card {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.preview-header {
    display: flex;
    gap: 5px;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.preview-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e2e8f0;
}

.preview-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-line {
    height: 8px;
    border-radius: 4px;
    background: #f1f5f9;
}

.preview-line--title {
    width: 75%;
    height: 12px;
    background: #e2e8f0;
}

.preview-line--short {
    width: 50%;
}

.preview-line--medium {
    width: 85%;
}

.preview-stars {
    display: flex;
    gap: 2px;
}

.preview-badge {
    width: 60px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    margin-top: 4px;
}

@media (max-width: 992px) {
    .embed-cta-preview {
        display: none;
    }
}

@media (max-width: 768px) {
    .embed-cta {
        flex-direction: column;
        padding: 36px 28px;
        gap: 24px;
        text-align: center;
    }

    .embed-cta-title {
        font-size: 1.5rem;
    }

    .embed-cta-title br {
        display: none;
    }

    .embed-cta-text {
        max-width: 100%;
    }

    .embed-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .embed-cta-button {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   17. Mobile Sticky Bar
   ========================================================================== */

.mobile-sticky-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 16px 28px;
    z-index: 9999;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* ==========================================================================
   18. Animations
   ========================================================================== */

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

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

@keyframes simpleAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes glow {
    from {
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    }
    to {
        box-shadow: 0 6px 15px rgba(var(--badge-color-rgb, 79, 70, 229), 0.4);
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.pulse-effect {
    animation: pulse 0.5s ease-in-out;
}


/* ==========================================================================
   19. Responsive
   ========================================================================== */

/* --- 992px breakpoint --- */
@media (max-width: 992px) {
    .firm-content-grid {
        grid-template-columns: 1fr;
    }

    .firm-sidebar {
        order: -1;
        max-width: 100%;
    }

    .firm-info-card.contact-card {
        position: static;
    }

    .firm-info-card {
        margin-bottom: 30px;
    }

    .firm-header-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .firm-header-right {
        width: 100%;
    }

    .firm-quick-actions {
        width: 100%;
    }
}

/* --- 768px breakpoint --- */
@media (max-width: 768px) {
    /* Header */
    .firm-header-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .firm-header-right,
    .firm-header-left {
        width: 100%;
    }

    .firm-title {
        font-size: 2rem;
    }

    .firm-rating {
        margin-bottom: 10px;
    }

    /* Gallery */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        gap: 15px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2) {
        grid-column: span 1;
    }

    .gallery-item:nth-child(3) {
        grid-column: span 2;
    }

    .gallery-item:nth-child(n+4) {
        display: none;
    }

    /* Badge CTA & Rank Cards */
    .firm-badge-cta,
    .elite-rank-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .badge-cta-action,
    .rank-card-right {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding-top: 25px;
    }

    .score-main-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .support-description {
        padding-left: 0;
    }

    /* Badge Section */
    .badge-section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .badge-section-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .badge-section-content {
        text-align: center;
    }

    .badge-apply-button {
        width: 100%;
        justify-content: center;
    }

    /* Badge Stories */
    .badges-stories-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
        padding: 15px;
        overflow-x: visible;
    }

    .badge-story {
        min-width: auto;
        width: 100%;
    }

    /* Sector Leader Banner */
    .leader-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
        padding: 10px;
    }

    .leader-icon {
        margin: 0 auto;
    }

    .leader-text {
        text-align: center;
        width: 100%;
    }

    .leader-badge {
        margin: 15px auto 0;
        width: 100%;
        flex-direction: row;
        gap: 10px;
    }

    .badge-text {
        margin-top: 0;
    }

    /* Support */
    .support-box {
        padding: 20px;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .list-actions {
        width: 100%;
        justify-content: space-between;
    }

    .list-button {
        flex: 1;
        justify-content: center;
    }

    /* Reviews */
    .reviews-summary {
        flex-direction: column;
        padding: 20px 15px;
        gap: 25px;
    }

    .average-rating {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding-right: 0;
        padding-bottom: 25px;
        width: 100%;
    }

    .rating-breakdown {
        width: 100%;
    }

    .review-item {
        padding: 15px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .review-rating {
        align-self: flex-start;
    }

    .big-rating {
        font-size: 2.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    /* FAQ */
    .firm-faq-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .faq-section-title {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    .faq-question {
        padding: 16px 20px;
    }

    .faq-text {
        font-size: 1em;
    }

    .faq-answer-content {
        padding: 20px;
        font-size: 1em;
    }

    /* Opening Hours */
    .opening-hours-section { padding: 20px; }
    .opening-hours-section .section-title { font-size: 1.2rem; }
    .oh-today-hours { margin-left: 0; }
    .oh-day { padding: 11px 14px; }

    /* ACSI Section */
    .acsi-section {
        padding: 20px;
    }

    .acsi-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .acsi-section .section-title {
        font-size: 1.3rem;
    }

    .acsi-actions {
        flex-direction: column;
    }

    .acsi-button {
        width: 100%;
        min-width: auto;
    }

    .acsi-score-details {
        gap: 12px;
    }

    .score-meter {
        padding: 12px;
    }

    /* ACSI Widget */
    .acsi-widget-container {
        margin: 15px 0;
        padding: 20px;
    }

    .acsi-widget-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .acsi-survey-invitation > div {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .acsi-survey-button {
        width: 100%;
        justify-content: center;
    }

    /* Digital vCard */
    .digital-vcard-section .qr-business-card-minimal .card-body {
        flex-direction: column;
        text-align: center;
    }

    .digital-vcard-section .contact-preview {
        text-align: center;
    }

    .digital-vcard-section .qr-generator {
        width: 100%;
        margin-top: 15px;
    }

    /* Certificates */
    .firm-certificates {
        padding: 20px 15px;
    }

    .certificate-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .certificate-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .certificate-number,
    .certificate-date {
        justify-content: center;
    }

    .certificate-download-button {
        width: 100%;
    }

    /* Embed Section */
    .firm-embed-section.webmaster-special {
        padding: 24px 20px;
        margin: 20px 0;
    }

    .embed-section-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .embed-section-icon {
        width: 50px;
        height: 50px;
    }

    .embed-section-icon i {
        font-size: 24px;
    }

    .embed-section-content h2 {
        font-size: 1.5rem;
    }

    .embed-title {
        font-size: 1.5rem;
    }

    .embed-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tech-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .embed-codes-button {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Sticky Bar */
    .mobile-sticky-action-bar {
        display: flex;
        gap: 10px;
    }

    body {
        padding-bottom: 100px;
    }

    .mobile-sticky-action-bar .quick-action-button {
        flex: 1;
        min-width: 0;
        height: 50px;
        font-size: 11px;
        padding: 0 10px;
    }

    .mobile-sticky-action-bar .whatsapp-button {
        flex: 0 0 50px;
    }

    .mobile-sticky-action-bar .button-icon-wrapper {
        margin-right: 6px;
        width: 18px;
        height: 18px;
    }

    .mobile-sticky-action-bar .button-icon-wrapper i {
        font-size: 14px;
    }
}

/* --- 576px breakpoint --- */
@media (max-width: 576px) {
    /* Gallery */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        gap: 10px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2) {
        grid-column: span 1;
        aspect-ratio: 1;
    }

    .gallery-item:nth-child(3) {
        grid-column: span 2;
        aspect-ratio: 16/9;
    }

    .gallery-item:nth-child(n+4) {
        display: none;
    }

    /* Buttons */
    .firm-quick-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .firm-quick-actions .quick-action-button {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
        margin-bottom: 8px;
        order: 0;
    }

    .firm-quick-actions .whatsapp-button {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        order: 1;
    }

    .firm-quick-actions .call-button,
    .firm-quick-actions .map-button {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
        width: calc(50% - 4px);
        order: 0;
    }

    /* Comparison */
    .comparison-actions {
        flex-direction: column;
    }

    .comparison-button {
        width: 100%;
    }

    /* Badge Stories */
    .badge-story-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .badge-story-name {
        font-size: 0.8rem;
        max-width: 80px;
    }

    .badges-stories-container {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
        padding: 10px;
    }
}

/* --- 480px breakpoint --- */
@media (max-width: 480px) {
    .firm-title {
        font-size: 1.5rem;
    }

    /* Reviews */
    .reviews-summary {
        padding: 15px 10px;
    }

    .rating-row {
        margin-bottom: 8px;
    }

    .rating-level {
        font-size: 0.85rem;
        width: 60px;
    }

    .rating-bar {
        margin: 0 8px;
    }

    .rating-percent {
        font-size: 0.85rem;
        width: 40px;
    }

    .review-form .form-row {
        flex-direction: column;
    }

    .review-form .form-group {
        width: 100%;
        margin-right: 0;
    }

    .google-reviews-info {
        flex-direction: column;
        text-align: center;
    }

    .google-logo {
        margin-bottom: 10px;
    }

    /* Certificates */
    .certificate-card {
        padding: 20px;
    }

    /* Embed / Tech Specs */
    .tech-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tech-spec-item {
        padding: 12px;
    }

    .tech-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .tech-details h4 {
        font-size: 12px;
    }

    .tech-details p {
        font-size: 10px;
    }

    .code-animation {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .embed-title {
        font-size: 1.3rem;
    }
}
