/* FlexiBlog Theme Styles - Modern Blog Design */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #4cc9f0;
    --gradient: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
.dark {
    --dark: #f9fafb;
    --light: #1f2937;
    --gray: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background-color: #fff;
}

.dark body {
    background-color: #111827;
    color: var(--dark);
}

main {
    min-height: 400px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}



/* Header & Navigation */
header {
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.dark header {
    background-color: rgba(31, 41, 55, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
}

.nav-links a:hover,
.nav-links .nav-link.active {
    color: var(--primary);
}

/* Multi-level Menu (Dropdown) */
.nav-item {
    position: relative;
    display: inline-block;
}

.nav-item.has-dropdown>.nav-link {
    padding-right: 15px;
}

.nav-item.has-dropdown>.nav-link::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    max-width: 360px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .nav-dropdown {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-item:hover>.nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    padding: 0;
}

.nav-dropdown .nav-link {
    display: block;
    padding: 10px 16px;
    color: var(--dark) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: all 0.2s ease;
}

.nav-dropdown .nav-link:hover,
.nav-dropdown .nav-link.active {
    background: rgba(67, 97, 238, 0.05);
    color: var(--primary) !important;
    padding-left: 25px;
}

/* Nested Submenu */
.nav-dropdown .nav-item.has-dropdown>.nav-link::after {
    content: '\f0da';
    right: 15px;
}

.nav-dropdown .nav-dropdown {
    top: -10px;
    left: 100%;
    margin-top: 0;
    margin-left: 10px;
}

.nav-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.25);
}

.mobile-menu-btn {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

.dark .mobile-menu-btn {
    color: #f9fafb;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.dark .mobile-menu {
    background: #1f2937;
}

.mobile-menu.active {
    display: flex;
}

/* Main Content */
main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.dark a {
    color: #818cf8;
}

.dark a:hover {
    color: #a5b4fc;
}

/* Buttons */
.btn,
.primary-btn {
    background: var(--gradient);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover,
.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(67, 97, 238, 0.25);
}

.secondary-btn {
    background: white;
    color: var(--primary);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 15px;
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.dark .secondary-btn {
    background: #1f2937;
    color: #818cf8;
    border-color: #818cf8;
}

.dark .secondary-btn:hover {
    background: #818cf8;
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dark .card {
    background: #1f2937;
    border-color: #374151;
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dark .post-card {
    background: #1f2937;
    border-color: #374151;
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 2rem;
}

.page-header-content {
    text-align: center;
}

.page-header-title {
    color: var(--gray);
}

.page-header-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    margin-bottom: 20px;
}

.page-header-badge i {
    color: #6366f1;
    margin-right: 8px;
}

.page-header-badge span {
    color: #6366f1;
    font-weight: 600;
    font-size: 14px;
}

.post-meta time {
    color: var(--gray);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.post-title a {
    color: var(--dark);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary);
}

.dark .post-title a {
    color: #f9fafb;
}

.post-excerpt {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

.read-more:hover {
    gap: 12px;
}

/* Prose Styles */
.prose {
    color: var(--dark);
    line-height: 1.8;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.dark .prose {
    color: #e5e7eb;
}

.dark .prose a {
    color: #818cf8;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 25px;
    margin-top: 80px;
}

.dark footer {
    background: #0f172a;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1;
    min-width: 230px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 18px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: 13px;
}

.copyright p {
    display: inline;
    margin: 0;
}

/* Utility Classes */
.highlight {
    background: var(--gradient);
    padding: 3px 10px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--gradient);
    opacity: 0.05;
    border-radius: 50%;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-8deg);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 18px;
    line-height: 1.2;
}

.hero p {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-features {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.hero-feature {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.hero-feature i {
    color: var(--success);
    margin-right: 8px;
    font-size: 16px;
}

/* What You Get Section */
.what-you-get {
    padding: 70px 0;
    background: white;
}

.get-title {
    text-align: center;
    margin-bottom: 40px;
}

.get-title h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.get-title p {
    color: var(--gray);
    font-size: 17px;
}

.what-you-get .landing-btn-wrap {
    margin-bottom: 1.5rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 14px;
    border-radius: 8px;
    transition: var(--transition);
    background: #fafbff;
    border: 1px solid #f0f2ff;
}

.feature-item:hover {
    background: rgba(67, 97, 238, 0.05);
    transform: translateY(-2px);
}

.feature-item i {
    color: var(--success);
    font-size: 16px;
    margin-right: 14px;
    margin-top: 2px;
    min-width: 20px;
}

.subscription-highlight {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
    border-left: 4px solid var(--success);
    padding: 20px;
    border-radius: var(--radius);
    margin: 6px 0 0;
}

.subscription-highlight h4 {
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 18px;
}

.subscription-highlight p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.5;
}

.ownership-banner {
    background: var(--gradient);
    color: white;
    padding: 28px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 40px;
}

.ownership-banner h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.ownership-banner p {
    opacity: 0.9;
    font-size: 16px;
}

/* Features Section */
.features {
    padding: 70px 0;
    background-color: #f8f9ff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 17px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 22px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 14px;
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border-radius: var(--radius);
    padding: 35px 25px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 300px;
    max-width: 370px;
    position: relative;
    border: 2px solid #eee;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.03);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-8px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
}

.pricing-header h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.price {
    font-size: 44px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 8px 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.pricing-features li i {
    color: var(--success);
    margin-right: 10px;
    font-size: 14px;
}

.pricing-action {
    text-align: center;
}

/* Demo Section */
.demo {
    padding: 80px 0;
    background-color: white;
}

.demo-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.demo-text {
    flex: 1;
}

.demo-video {
    flex: 1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.demo-video img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.08);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

/* FAQ Block Styles - Handled by core landing-blocks.css */

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 18px;
}

.cta-section p {
    font-size: 17px;
    margin-bottom: 28px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: white;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-content,
    .demo-content {
        flex-direction: column;
    }

    .hero,
    .demo {
        padding: 140px 0 70px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 30px;
    }

    .section-title h2,
    .cta-section h2 {
        font-size: 28px;
    }

    .get-title h2 {
        font-size: 26px;
    }

    .primary-btn,
    .secondary-btn,
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .pricing-card {
        min-width: 100%;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn,
    .primary-btn,
    .secondary-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--dark);
    background: white;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .active span {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.dark .pagination a,
.dark .pagination span {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.dark .pagination a:hover {
    background: var(--primary);
    color: white;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f2ff;
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: white;
}

.dark .tag {
    background: #374151;
    color: #818cf8;
}

.dark .tag:hover {
    background: #818cf8;
    color: white;
}

/* Categories */
.category-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.dark .category-link {
    color: #818cf8;
}

.dark .category-link:hover {
    color: #a5b4fc;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dark .product-card {
    background: #1f2937;
    border-color: #374151;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.product-card-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.product-title a {
    color: var(--dark);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary);
}

.dark .product-title a {
    color: #f9fafb;
}

.product-excerpt {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-gallery-viewport {
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.24);
    touch-action: pan-y;
    user-select: none;
}

.product-gallery-placeholder {
    width: 100%;
    min-height: clamp(380px, 46vw, 640px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.product-gallery-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.product-gallery-slide.active {
    display: block;
}

.product-gallery-slide img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.product-gallery-slide:hover img {
    transform: scale(1.02);
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.product-gallery-nav.prev {
    left: 14px;
}

.product-gallery-nav.next {
    right: 14px;
}

.product-gallery-nav:hover {
    background: rgba(15, 23, 42, 0.8);
}

.product-gallery-thumbs-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
}

.product-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 2px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.product-gallery-thumbs.dragging {
    cursor: grabbing;
}

.product-gallery-thumbs::-webkit-scrollbar {
    height: 8px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 999px;
}

.product-gallery-thumb {
    width: 112px;
    height: 78px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
    opacity: 0.72;
    background: transparent;
    padding: 0;
}

.product-gallery-thumb:hover {
    opacity: 1;
    border-color: #93c5fd;
}

.product-gallery-thumb.active {
    opacity: 1;
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs-nav {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.product-gallery-thumbs-nav:hover {
    border-color: #3b82f6;
    color: #1d4ed8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dark .product-gallery-viewport {
    background: linear-gradient(145deg, #111827 0%, #1f2937 100%);
    border-color: rgba(129, 140, 248, 0.2);
}

.dark .product-gallery-thumb.active {
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

.dark .product-gallery-nav {
    background: rgba(15, 23, 42, 0.72);
}

.dark .product-gallery-thumbs-nav {
    background: #0f172a;
    color: #cbd5e1;
    border-color: rgba(129, 140, 248, 0.3);
}

/* =========================================
   Dark Mode Standardization (Added Phase 68)
   ========================================= */

/* Hero Section Dark Mode */
.dark .hero {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}
.dark .hero-image img {
    border-color: #374151;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Features Section Dark Mode */
.dark .features {
    background-color: #111827;
}
.dark .feature-card {
    background: #1f2937;
    border-color: #374151;
}
.dark .feature-card h3 {
    color: #f9fafb;
}

/* What You Get Section Dark Mode */
.dark .what-you-get {
    background-color: #111827;
}
.dark .feature-item {
    background: #1f2937;
    border-color: #374151;
}
.dark .feature-item:hover {
    background: rgba(129, 140, 248, 0.05); /* Soft transparent primary */
}
.dark .subscription-highlight {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-left-color: #4cc9f0;
}
.dark .subscription-highlight h4 {
    color: #f9fafb;
}
.dark .subscription-highlight p {
    color: #9ca3af;
}

/* Demo Section Dark Mode */
.dark .demo {
    background-color: #111827;
}
.dark .demo-video {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #374151;
}
.dark .play-button {
    background: rgba(31, 41, 55, 0.95);
    color: #818cf8;
}
.dark .play-button:hover {
    background: #374151;
}

/* FAQ Section Dark Mode */
.dark .faq {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

/* Core/Global Dark Mode Fixes */
.dark .section-title h2,
.dark .get-title h2,
.dark .cta-section h2,
.dark .pricing-header h3 {
    color: #f9fafb;
}

.dark .section-title p,
.dark .get-title p,
.dark .hero p,
.dark .pricing-header p {
    color: #9ca3af;
}

.dark .product-category-tag:hover {
    background: #818cf8;
    color: white;
    border-color: #818cf8;
}

.dark .package-card {
    background: #1f2937;
    border-color: #374151;
}

.dark .package-card:hover {
    border-color: #818cf8;
}

.dark .package-card strong {
    color: #f9fafb !important; /* Force override inline styles if any remaining */
}

.dark .package-card div[style*="color: var(--dark)"] {
    color: #f9fafb !important;
}

.dark .package-info {
    background: #374151;
    color: #9ca3af;
}

.dark .stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.dark .stock-badge.out-of-stock {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.2);
}

.dark .tags-container {
    background: #1f2937;
}

.dark .tags-container span {
    color: #f9fafb;
}

.dark .post-footer-bordered {
    border-top-color: #374151;
}

.dark .product-details h3 {
    color: #f9fafb !important;
}

/* Category Page Styles */
.category-banner-image {
    width: 100%;
    max-width: 800px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 auto 30px;
    display: block;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.empty-state-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--gray);
    margin-bottom: 20px;
}

.empty-state-text {
    color: var(--gray);
    font-size: 17px;
}

/* Dark Mode Category Overrides */
.dark .category-banner-image {
    border-color: #374151;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark .empty-state-icon {
    color: #4b5563;
}

.dark .empty-state-text {
    color: #9ca3af;
}

/* Base Page Layout Styles */
.page-header-section {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

.page-content-section {
    padding: 60px 0;
    background: white;
}

.post-article img, 
.page-article img {
    max-width: 100%;
    height: auto;
}

/* Global Dark Mode Page Layout Overrides */
.dark .page-header-section {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark .page-content-section {
    background-color: #111827;
}

.dark .page-header-title {
    color: #f9fafb;
}

.dark .page-header-excerpt {
    color: #9ca3af;
}

.dark .page-header-content i,
.dark .page-header-content span {
    color: #818cf8;
}

/* Language Switcher dropdown & flags */
.flag-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.flag-icon-wrapper svg {
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}
.nav-link:hover .flag-icon-wrapper svg {
  transform: scale(1.1);
}
.nav-dropdown li.active .nav-link {
  font-weight: 600;
  color: var(--dark, #000) !important;
}
.dark .nav-dropdown li.active .nav-link {
  color: #fff !important;
}
.nav-dropdown li.active .flag-icon-wrapper svg {
  outline: 2px solid var(--primary, #4361ee);
  outline-offset: 1px;
}
.widget-language-list li a {
  display: inline-flex;
  align-items: center;
}
.widget-language-list li.active a .flag-icon-wrapper svg {
  outline: 2px solid var(--primary, #4361ee);
  outline-offset: 1px;
}

/* Custom Language Switcher Widget Dropdown styling */
.widget-language-dropdown-custom {
  position: relative;
  display: inline-block;
  width: 100%;
}
.widget-language-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--light, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--dark, #1e293b);
  justify-content: space-between;
}
.widget-language-dropdown-custom:hover .widget-language-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}
.widget-language-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 100%;
  margin-top: 4px;
  padding: 6px 0;
  list-style: none;
  background: var(--light, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.widget-language-dropdown-menu li {
  padding: 0 !important;
  margin: 0 !important;
}
.widget-language-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--dark, #1e293b);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}
.widget-language-dropdown-menu li a:hover {
  background: var(--light-gray, #f1f5f9);
}
.widget-language-dropdown-menu li.active a {
  font-weight: 600;
  background: var(--light-gray, #f8fafc);
  color: var(--primary, #4361ee);
}
html.dark .widget-language-dropdown-trigger,
.dark .widget-language-dropdown-trigger,
html.dark .widget-language-dropdown-menu,
.dark .widget-language-dropdown-menu {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}
html.dark .widget-language-dropdown-menu li a,
.dark .widget-language-dropdown-menu li a {
  color: #f8fafc;
}
html.dark .widget-language-dropdown-menu li a:hover,
.dark .widget-language-dropdown-menu li a:hover {
  background: #1e293b;
}
html.dark .widget-language-dropdown-menu li.active a,
.dark .widget-language-dropdown-menu li.active a {
  background: #1e293b;
  color: var(--primary, #4361ee);
}

