/* ===========================================================
   Content Detail Pages – Modern US Startup Design
   Applies to: Technology & Industry detail pages
   Font sizes match website defaults from style.css
   =========================================================== */

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 8rem 0 4rem;
    background: linear-gradient(160deg, var(--bg-body) 0%, var(--bg-panel) 50%, var(--bg-body) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(148, 207, 20, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(148, 207, 20, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.cms-breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-list li {
    color: #6e7681;
}

.breadcrumb-list li a {
    color: var(--text-faded);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list li a:hover {
    color: var(--brand-primary);
}

.breadcrumb-list .separator {
    color: #484f58;
}

.breadcrumb-list .current {
    color: var(--text-faded);
    font-weight: 500;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-heading .text-green {
    color: var(--brand-primary);
    font-size: calc(26px + 6 * ((100vw - 320px) / 1440));
    line-height: 1;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 207, 20, 0.1);
    border-radius: 14px;
    border: 1px solid rgba(148, 207, 20, 0.2);
}

.hero-title {
    font-size: calc(26px + 6 * ((100vw - 320px) / 1440));
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.hero-description {
    font-size: 1.5rem;
    color: var(--text-faded);
    line-height: 1.5;
    max-width: 560px;
}

.hero-description p {
    margin-bottom: 0.75rem;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------
   Overview Section
   ---------------------------------------------------------- */
.overview-section {
    padding: 5rem 0;
    position: relative;
}

.overview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.15), transparent);
}

/* ----------------------------------------------------------
   Benefits Section
   ---------------------------------------------------------- */
.benefits-section {
    padding: 5rem 0;
    background: var(--bg-panel);
    position: relative;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.15), transparent);
}

.section-header {
    /* text-align: center; */
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(148, 207, 20, 0.08);
    border: 1px solid rgba(148, 207, 20, 0.15);
    border-radius: 100px;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: calc(24px + 4 * ((100vw - 320px) / 1440));
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-faded);
    margin-top: 0.75rem;
    max-width: 600px;
    /* margin-left: auto;
    margin-right: auto; */
}

/* ----------------------------------------------------------
   Use Cases Section
   ---------------------------------------------------------- */
.use-cases-section {
    padding: 5rem 0;
    position: relative;
}

.use-cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.15), transparent);
}

/* ----------------------------------------------------------
   Challenges & Solutions (Industry)
   ---------------------------------------------------------- */
.challenges-section {
    padding: 5rem 0;
    position: relative;
}

.challenges-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.15), transparent);
}

.challenge-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.challenge-panel,
.solution-panel {
    background: rgba(var(--bg-menu-rgb), 0.6);
    border: 1px solid rgba(148, 207, 20, 0.08);
    border-radius: 16px;
    padding: 2rem;
}

.challenge-panel {
    border-color: rgba(255, 107, 107, 0.15);
}

.solution-panel {
    border-color: rgba(148, 207, 20, 0.15);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(var(--text-primary-rgb), 0.06);
}

.panel-header .panel-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.challenge-panel .panel-icon {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.solution-panel .panel-icon {
    background: rgba(148, 207, 20, 0.1);
    color: var(--brand-primary);
    border: 1px solid rgba(148, 207, 20, 0.2);
}

.panel-header h2 {
    font-size: calc(22px + 4 * ((100vw - 320px) / 1440));
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.panel-content {
    font-size: 1.5rem;
    color: var(--text-faded);
    line-height: 1.7;
}

.panel-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel-content ul li {
    padding: 0.6rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(var(--text-primary-rgb), 0.04);
}

.panel-content ul li:last-child {
    border-bottom: none;
}

.challenge-panel .panel-content ul li::before {
    content: '\F623';
    font-family: 'bootstrap-icons';
    color: #ff6b6b;
    flex-shrink: 0;
    margin-top: 2px;
}

.solution-panel .panel-content ul li::before {
    content: '\F275';
    font-family: 'bootstrap-icons';
    color: var(--brand-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Fallback for non-list content */
.challenge-solution-content {
    color: var(--text-faded);
    line-height: 1.7;
    font-size: 1rem;
}

.challenge-solution-content h2,
.challenge-solution-content h3 {
    color: var(--text-secondary);
    font-weight: 600;
}

.challenge-solution-content ul {
    list-style: none;
    padding: 0;
}

.challenge-solution-content ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.challenge-solution-content ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ----------------------------------------------------------
   FAQ Section
   ---------------------------------------------------------- */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-panel);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.15), transparent);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.cms-accordion .accordion-item {
    background: rgba(var(--bg-menu-rgb), 0.6);
    border: 1px solid rgba(148, 207, 20, 0.08) !important;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.cms-accordion .accordion-item:hover {
    border-color: rgba(148, 207, 20, 0.2) !important;
}

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

.cms-accordion .accordion-button {
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
    transition: color 0.2s;
}

.cms-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--brand-primary);
}

.cms-accordion .accordion-button::after {
    width: 20px;
    height: 20px;
    background-size: 20px;
    filter: invert(1);
    transition: transform 0.3s;
}

.cms-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(0) sepia(1) saturate(5) hue-rotate(25deg);
}

.cms-accordion .accordion-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-faded);
    font-size: 1.4rem;
    line-height: 1.7;
    border-top: 1px solid rgba(148, 207, 20, 0.06);
}

/* ----------------------------------------------------------
   Related Items
   ---------------------------------------------------------- */
.related-items-section {
    padding: 5rem 0;
    background: var(--bg-body);
    position: relative;
}

.related-items-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.15), transparent);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: rgba(var(--bg-menu-rgb), 0.6);
    border: 1px solid rgba(148, 207, 20, 0.08);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.related-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(148, 207, 20, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.related-card:hover {
    border-color: rgba(148, 207, 20, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(var(--shadow-color-rgb), 0.3);
    text-decoration: none;
}

.related-card:hover::before {
    opacity: 1;
}

.related-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 207, 20, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(148, 207, 20, 0.12);
    font-size: 1.75rem;
    color: var(--brand-primary);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.related-card:hover .related-card__icon {
    background: rgba(148, 207, 20, 0.15);
    transform: scale(1.05);
}

.related-card__name {
    font-size: calc(20px + 2 * ((100vw - 320px) / 1440));
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
    position: relative;
    z-index: 1;
}

.related-card__desc {
    font-size: 1rem;
    color: var(--text-faded);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------
   Final CTA
   ---------------------------------------------------------- */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(160deg, var(--bg-surface-hover) 0%, var(--bg-body) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(148, 207, 20, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 207, 20, 0.15), transparent);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    font-size: calc(24px + 4 * ((100vw - 320px) / 1440));
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.cta-desc {
    font-size: 1rem;
    color: var(--text-faded);
    margin: 0 0 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 991px) {
    .challenge-solution-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 6rem 0 2.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .overview-section,
    .benefits-section,
    .use-cases-section,
    .challenges-section,
    .faq-section,
    .related-items-section,
    .cta-section {
        padding: 3rem 0;
    }
}

/* ----------------------------------------------------------
   Content Wrapper – Raw HTML from TinyMCE
   ---------------------------------------------------------- */
.content-wrapper--overview {
    font-size: 1.5rem;
    color: var(--text-faded);
    line-height: 1.8;
}

.content-wrapper--overview h2 {
    font-size: calc(24px + 4 * ((100vw - 320px) / 1440));
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 207, 20, 0.15);
}

.content-wrapper--overview h2:first-child {
    margin-top: 0;
}

.content-wrapper--overview h3 {
    font-size: calc(22px + 4 * ((100vw - 320px) / 1440));
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1.5rem 0 0.75rem;
}

.content-wrapper--overview h4 {
    font-size: calc(20px + 2 * ((100vw - 320px) / 1440));
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1.25rem 0 0.5rem;
}

.content-wrapper--overview p {
    margin-bottom: 1rem;
}

.content-wrapper--overview ul,
.content-wrapper--overview ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-wrapper--overview li {
    margin-bottom: 0.5rem;
    color: var(--text-faded);
}

.content-wrapper--overview li::marker {
    color: var(--brand-primary);
}

.content-wrapper--overview strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.content-wrapper--overview em {
    color: var(--text-faded);
    font-style: italic;
}

.content-wrapper--overview a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.content-wrapper--overview a:hover {
    color: #b8e64e;
}

.content-wrapper--overview blockquote {
    border-left: 3px solid var(--brand-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(148, 207, 20, 0.05);
    border-radius: 0 8px 8px 0;
    color: var(--text-faded);
    font-style: italic;
}

.content-wrapper--overview code {
    background: rgba(148, 207, 20, 0.1);
    color: var(--brand-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.content-wrapper--overview pre {
    background: var(--bg-body);
    border: 1px solid rgba(148, 207, 20, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.content-wrapper--overview pre code {
    background: transparent;
    padding: 0;
    color: var(--text-faded);
}

.content-wrapper--overview img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid rgba(148, 207, 20, 0.1);
}

.content-wrapper--overview table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem;
}

.content-wrapper--overview th,
.content-wrapper--overview td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148, 207, 20, 0.1);
    text-align: left;
}

.content-wrapper--overview th {
    background: rgba(148, 207, 20, 0.08);
    color: var(--text-secondary);
    font-weight: 600;
}

.content-wrapper--overview td {
    color: var(--text-faded);
}

.content-wrapper--overview tr:nth-child(even) td {
    background: rgba(var(--bg-menu-rgb), 0.4);
}

/* Benefits & Use Cases content wrappers */
.content-wrapper--benefits,
.content-wrapper--use-cases {
    font-size: 1rem;
    color: var(--text-faded);
    line-height: 1.7;
}

.content-wrapper--benefits ul,
.content-wrapper--use-cases ul,
.content-wrapper--benefits ol,
.content-wrapper--use-cases ol {
    padding-left: 0;
    list-style: none;
}

.content-wrapper--benefits ul li,
.content-wrapper--use-cases ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-faded);
    font-size: 1.5rem;
    line-height: 1.6;
}

.content-wrapper--benefits ul li::before,
.content-wrapper--use-cases ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.content-wrapper--benefits strong,
.content-wrapper--use-cases strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.content-wrapper--benefits p,
.content-wrapper--use-cases p {
    color: var(--text-faded);
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.content-wrapper--benefits h2,
.content-wrapper--use-cases h2 {
    font-size: calc(24px + 4 * ((100vw - 320px) / 1440));
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 207, 20, 0.12);
}

.content-wrapper--benefits h3,
.content-wrapper--use-cases h3 {
    font-size: calc(22px + 4 * ((100vw - 320px) / 1440));
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1.25rem 0 0.75rem;
}

/* ===========================================================
   Testimonials Section – Content Detail Pages
   =========================================================== */

.content-testimonials-section {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonial {
    background: var(--bg-surface);
    border-left: 4px solid var(--brand-primary);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial__logo {
    margin-bottom: 4px;
}

.testimonial__logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    filter: grayscale(20%);
}

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

.testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial__avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial__avatar--initials {
    background: var(--brand-primary);
    color: #11171b;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.testimonial__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.testimonial__name {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    margin: 0;
}

.testimonial__role {
    color: var(--text-faded);
    font-size: 0.82rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial__stars {
    display: flex;
    gap: 3px;
}

.testimonial__stars .bi-star-fill {
    color: #f5a623;
    font-size: 0.85rem;
}

.testimonial__stars .bi-star {
    color: #484f58;
    font-size: 0.85rem;
}

.testimonial p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
    flex: 1;
}

.testimonial strong {
    color: var(--text-primary);
    display: block;
    margin-top: 20px;
}

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

.testimonial__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.testimonial__meta strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin: 0;
}

.testimonial__meta span {
    color: var(--text-faded);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial {
        padding: 22px;
    }
}