/* Feature Detail Pages Styles - Modern Design System */
:root {
    --primary-color: #26a69a;
    --primary-color-dark: #00897b;
    --primary-color-light: #4db6ac;
    --success-color: #38b000;
    --success-color-dark: #2e9600;
    --accent-color: #ff9800;
    --accent-color-dark: #f57c00;
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Breadcrumb Section */
.feature-breadcrumb {
    background-color: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-breadcrumb .breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
    padding: 0;
}

.feature-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-secondary);
}

.feature-breadcrumb .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.feature-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.feature-breadcrumb .breadcrumb-item.active {
    color: var(--text-secondary);
}

/* Main Content Section */
.feature-detail-section {
    padding: 3rem 0;
}

.feature-detail-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
}

.feature-detail-section h4 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.feature-detail-section p.lead {
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-detail-section p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.feature-detail-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.feature-detail-section ul li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Screenshot Container */
.screenshot-container {
    margin: 2.5rem 0;
}

.screenshot-container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    min-height: 300px;
    object-fit: contain;
    object-position: top center;
}

.screenshot-caption {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1rem;
    line-height: 1.5;
}

/* Screenshot Placeholder */
.screenshot-placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    margin: 2.5rem 0;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.screenshot-placeholder .screenshot-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.screenshot-placeholder .screenshot-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Key Features Grid */
.key-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.feature-card h4 i {
    color: var(--primary-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Feature Highlight Box */
.feature-highlight-box {
    background: linear-gradient(135deg, rgba(38, 166, 154, 0.08) 0%, rgba(0, 137, 123, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin: 2rem 0;
}

.feature-highlight-box h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.feature-highlight-box h4 i {
    color: var(--primary-color);
}

.feature-highlight-box p {
    margin-bottom: 0.75rem;
}

.feature-highlight-box p:last-child {
    margin-bottom: 0;
}

/* Use Case Section */
.use-case-section {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.use-case-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.use-case-section h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.use-case-section h4 i {
    margin-right: 0.5rem;
}

.use-case-section p {
    margin-bottom: 0.75rem;
}

.use-case-section p:last-child {
    margin-bottom: 0;
}

.use-case-section strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Stage CTA Sections */
.stage-cta {
    background: linear-gradient(135deg, rgba(38, 166, 154, 0.05), rgba(0, 137, 123, 0.05));
    border-radius: var(--radius-md);
    border: 1px solid rgba(38, 166, 154, 0.2);
}

/* Modern Button Styles - Primary */
.btn-primary {
    background: linear-gradient(135deg, #26a69a, #00897b) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00897b, #00695c) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 166, 154, 0.4);
    color: white !important;
}

.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #00897b, #00695c) !important;
    color: white !important;
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.3);
}

/* Modern Button Styles - Secondary/Outline */
.btn-outline-secondary {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
}

.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Outline Primary Button */
.btn-outline-primary {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
}

/* CTA Box - Modern Gradient */
.cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin: 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(38, 166, 154, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 152, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-box h4 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-box p {
    position: relative;
    z-index: 1;
}

.cta-box p.lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-box .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Generic button styling for CTA box - ensures visibility */
.cta-box .btn {
    background: linear-gradient(135deg, #26a69a, #00897b) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.cta-box .btn:hover {
    background: linear-gradient(135deg, #00897b, #00695c) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 166, 154, 0.4);
    color: white !important;
}

.cta-box .btn-light {
    background: linear-gradient(135deg, #26a69a, #00897b) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.cta-box .btn-light:hover {
    background: linear-gradient(135deg, #00897b, #00695c) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 166, 154, 0.4);
    color: white !important;
}

.cta-box .btn-outline-light {
    background: transparent !important;
    border: 2px solid rgba(255, 152, 0, 0.5) !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.cta-box .btn-outline-light:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.1)) !important;
    border-color: #ff9800 !important;
    transform: translateY(-2px);
    color: white !important;
}

/* Override btn-primary and btn-outline-primary for dark CTA box */
.cta-box .btn-primary,
.cta-box .btn.btn-primary {
    background: linear-gradient(135deg, #26a69a, #00897b) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.cta-box .btn-primary:hover,
.cta-box .btn.btn-primary:hover {
    background: linear-gradient(135deg, #00897b, #00695c) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 166, 154, 0.4);
    color: white !important;
}

.cta-box .btn-outline-primary,
.cta-box .btn.btn-outline-primary {
    background: transparent !important;
    border: 2px solid rgba(255, 152, 0, 0.5) !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.cta-box .btn-outline-primary:hover,
.cta-box .btn.btn-outline-primary:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.1)) !important;
    border-color: #ff9800 !important;
    transform: translateY(-2px);
    color: white !important;
}

/* Ensure muted text is visible on dark background in CTA box */
.cta-box .text-muted,
.cta-box .small.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Responsive Design */

/* Hero Section Responsive - aligned with About page */
@media (max-width: 992px) {
    .mk-hero--detail .mk-hero__headline {
        font-size: 2.5rem;
    }

    .mk-hero--detail .mk-hero__subheadline {
        font-size: 1.1rem;
    }

    .mk-hero--detail .mk-hero__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .mk-hero--detail {
        min-height: auto !important;
        padding: 80px 0 !important;
    }

    .mk-hero--detail .mk-hero__headline {
        font-size: 2rem;
    }

    .mk-hero--detail .mk-hero__subheadline {
        font-size: 1rem;
    }

    .mk-hero--detail .hero-stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .mk-hero--detail {
        padding: 60px 0 !important;
    }

    .mk-hero--detail .container {
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
        overflow: hidden;
    }

    .mk-hero--detail .mk-hero__content {
        max-width: 100%;
        overflow: hidden;
    }

    .mk-hero--detail .mk-hero__headline {
        font-size: 1.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .mk-hero--detail .mk-hero__subheadline {
        padding: 0 8px;
    }

    .mk-hero--detail .mk-hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .mk-hero--detail .mk-hero__actions .hero-cta-primary,
    .mk-hero--detail .mk-hero__actions .hero-cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .key-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Main Content */
    .feature-detail-section {
        padding: 2rem 0;
    }

    .feature-detail-section h3 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .feature-detail-section h4 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }

    /* Grid Layout */
    .key-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Feature Cards */
    .feature-card {
        padding: 1.25rem;
    }

    .feature-card h4 {
        font-size: 1.1rem;
    }

    /* Screenshots */
    .screenshot-container {
        margin: 2rem 0;
    }

    .screenshot-container img {
        border-radius: var(--radius-sm);
        min-height: 200px;
    }

    .screenshot-placeholder {
        padding: 2rem 1.5rem;
        min-height: 200px;
    }

    .screenshot-placeholder .screenshot-title {
        font-size: 1.1rem;
    }

    .screenshot-caption {
        font-size: 0.875rem;
        margin-top: 0.75rem;
    }

    /* Highlight Boxes */
    .feature-highlight-box {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .feature-highlight-box h4 {
        font-size: 1.15rem;
    }

    /* Use Cases */
    .use-case-section {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .use-case-section h4 {
        font-size: 1.1rem;
    }

    /* CTA Box */
    .cta-box {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .cta-box h4 {
        font-size: 1.5rem;
    }

    .cta-box p.lead {
        font-size: 1rem;
    }

    /* Stage CTA buttons stack on mobile */
    .stage-cta {
        flex-direction: column;
        align-items: center;
    }

    .stage-cta .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .feature-detail-section h3 {
        font-size: 1.35rem;
    }

    .feature-detail-section h4 {
        font-size: 1.1rem;
    }

    .screenshot-container img,
    .screenshot-placeholder {
        min-height: 150px;
    }

    .feature-highlight-box {
        padding: 1rem;
    }

    .use-case-section {
        padding: 1rem;
    }

    .cta-box {
        padding: 1.5rem 1rem;
    }

    .cta-box h4 {
        font-size: 1.25rem;
    }

    .cta-box .btn-light,
    .cta-box .btn-outline-light {
        width: 100%;
        text-align: center;
    }
}

/* Image Placeholder for Missing Screenshots */
.screenshot-container img[src*="screenshots/"] {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-container img[src*="screenshots/"]::after {
    content: "Screenshot Coming Soon";
    display: block;
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 500;
}
