/* ========================================
   1492.vision Landing Page Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    /* --primary-color: #7c3aed; */
    --primary-color: #6366f1;
    /* --primary-color: oklch(59.02% .146 172.62deg); */
    --primary-hover: #595cd9;
    --primary-shadow: rgba(79, 82, 193, 0.3);
    --primary-light: #ede9fe;
    --secondary-color: #009988;
    /* --secondary-color: oklch(59.02% .146 172.62deg); */
    --text-dark: #1e293b;
    --text-muted: #64748b;
    /* --text-light: #94a3b8; */
    --text-light: #64748b;
    /* correct on white: 555753 */
    --bg-light: #f8fafc;
    --bg-lighter: #fafcfe;
    --bg-light-purple: #faf8ff;
    --bg-lighter-purple: #ffffff;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading-old: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', sans-serif;
    /* --font-subtitle: "Roboto", sans-serif; */
    --font-subtitle: 'Inter', sans-serif;
    --font-button: 'Roboto Flex', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    /* Grid blend controls */
    --grid-blend-y: 200vh; /* updated by JS near footer */
    --grid-blend-soft: 140px; /* softness of cross-fade */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.2);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    --radius-large: 6px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    /* background-color: rgba(255, 255, 255, 0.95); */
    background-color: var(--bg-white);
    /* backdrop-filter: blur(10px); */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    /* transition: all 0.3s ease; */
}

.navbar-transparent {
    background-color: transparent;
    /* backdrop-filter: none; */
    box-shadow: none;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark) !important;
}

.brand-text {
    /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
    /* background: var(--primary-color); */
    background: var(--text-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-lang {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-family: var(--font-button);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 20px 25px -5px var(--primary-shadow); 
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background-color: var(--bg-white);
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--bg-light);
}

.btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

/* ========================================
   Animated Grid Background
   ======================================== */
.grids {
    position: fixed;
    inset: 0;
    z-index: 1; 
    will-change: mask-position;
    -webkit-mask-image: radial-gradient(circle 220px at center, black 0%, transparent 100%);
    mask-image: radial-gradient(circle 220px at center, black 0%, transparent 100%);
    -webkit-mask-size: 440px 440px;
    mask-size: 440px 440px;
    mask-position: 0px 0px;
    mask-repeat: no-repeat;
    pointer-events: none;
    /*visibility: visible;
    opacity: 1;    */
}

/* Footer dark grid removed */
.grids-footer { display: none; }

.gridlines {
    /* Clean 10x10 grid tile with subtle outer border */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='s' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M10 0H0V10' fill='none' stroke='%23ebebeb' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23s)'/%3E%3Crect x='0.5' y='0.5' width='99' height='99' fill='none' stroke='%23e6e6e6' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.7; /* keep this !!! */ 
}

/* Light grid remains unchanged everywhere (no cross-fade applied here) */

/* Dark variant removed */
.gridlines-dark { display: none; }

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    padding-bottom: 2rem;
    overflow: visible;
    /* overflow: hidden; */
    background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
}

.hero-mockup {
    position: relative;
    display: block;
    max-width: 940px;
    --max-height: 450px; /* Adjusted fixed height for cropping */
    margin: 0 auto;
    margin-top: 3rem;
    /* transform: translateY(93px); */
    border-radius: 20px;
    padding: 7px;
    background: #1a1a1a; /* Dark border behind screenshot */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    pointer-events: none;
    z-index: 2; /* Above gradient, below UI */
    overflow: hidden; /* Crop the image */
}

.hero-mockup-gradient {
    position: absolute;
    left: 50%;
    bottom: 0px; /* Half-circle peeking below */
    width: 1280px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.1));
    transform: translateX(-50%) translateY(20%);
    filter: blur(70px);
    z-index: 0; /* Behind mockup */
    pointer-events: none;
}

.hero-mockup img {
    position: relative;
    width: 100%;
    border-radius: 14px;
    z-index: 2;
    display: block;
}

/* Ensure hexagonal halos are correctly positioned and behind content */
.hero-hex {
    position: absolute;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(139, 92, 246, 0.04));
    -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODIiIGhlaWdodD0iMjAxIj48cGF0aCBkPSJNLjMgNjUuNDg2YzAtOS4xOTYgNi42ODctMjAuMDYzIDE0LjIxMS0yNS4wNzhsNjEuODYtMzUuOTQ2YzguMzYtNS4wMTYgMjAuODk5LTUuMDE2IDI5LjI1OCAwbDYxLjg2IDM1Ljk0NmM4LjM2IDUuMDE1IDE0LjIxMSAxNS44ODIgMTQuMjExIDI1LjA3OHY3MS4wNTVjMCA5LjE5Ni02LjY4NyAyMC4wNjMtMTQuMjExIDI1LjA3OWwtNjEuODYgMzUuOTQ1Yy04LjM2IDQuMTgtMjAuODk5IDQuMTgtMjkuMjU4IDBsLTYxLjg2LTM1Ljk0NUM2LjE1MSAxNTcuNDQuMyAxNDUuNzM3LjMgMTM2LjU0eiIvPjwvc3ZnPg==);
    mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODIiIGhlaWdodD0iMjAxIj48cGF0aCBkPSJNLjMgNjUuNDg2YzAtOS4xOTYgNi42ODctMjAuMDYzIDE0LjIxMS0yNS4wNzhsNjEuODYtMzUuOTQ2YzguMzYtNS4wMTYgMjAuODk5LTUuMDE2IDI5LjI1OCAwbDYxLjg2IDM1Ljk0NmM4LjM2IDUuMDE1IDE0LjIxMSAxNS44ODIgMTQuMjExIDI1LjA3OHY3MS4wNTVjMCA5LjE5Ni02LjY4NyAyMC4wNjMtMTQuMjExIDI1LjA3OWwtNjEuODYgMzUuOTQ1Yy04LjM2IDQuMTgtMjAuODk5IDQuMTgtMjkuMjU4IDBsLTYxLjg2LTM1Ljk0NUM2LjE1MSAxNTcuNDQuMyAxNDUuNzM3LjMgMTM2LjU0eiIvPjwvc3ZnPg==);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
  
    z-index: 0;
}

.hero-hex-left {
    top: 2.5rem;
    left: 5rem;
    width: 550px;
    height: 550px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.hero-hex-right {
    top: 1.5rem;
    right: 1.5rem;
    width: 250px;
    height: 250px;
    transform: rotate(90deg);
    display: none;
}

@media (min-width: 768px) {
    .hero-hex-right { display: block; }
}

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

/* Ensure all Bootstrap containers render above the grid */
.container { position: relative; z-index: 2; }

.hero-mockup-wrap { position: relative; }

.hero-title {
    font-size: clamp(3rem, 6vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 60px;
        /* max-width: 42rem; */
        max-width: 640px;
        margin: 0 auto;
        margin-bottom: 1.5rem;
    }
}

.hero-subtitle {
    font-family: var(--font-subtitle);
    font-size: 1rem !important;  /*clamp(1.1rem, 2vw, 1.25rem);*/
    font-weight: 400;
    color: var(--text-light);
    /* max-width: 42rem;  */
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-mockup-wrap {
    position: relative;
}

/* ========================================
   Section Styles
   ======================================== */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-family: var(--font-subtitle);
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-description {
    font-family: var(--font-subtitle);
    font-size: 1rem;
    font-weight: 400; 
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.badge-label {
    display: inline-block;
    padding: 0.375rem 1rem;
    /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
    background: var(--secondary-color);
    color: white;
    border: 0px solid var(--secondary-color);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* ========================================
   Problems Section
   ======================================== */
.problems-section {
    background-color: var(--bg-white);
    padding: 0rem 0;
}

.problem-card {
    text-align: center;
    padding: 1.5rem;
}

.icon-hex {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODIiIGhlaWdodD0iMjAxIj48cGF0aCBkPSJNLjMgNjUuNDg2YzAtOS4xOTYgNi42ODctMjAuMDYzIDE0LjIxMS0yNS4wNzhsNjEuODYtMzUuOTQ2YzguMzYtNS4wMTYgMjAuODk5LTUuMDE2IDI5LjI1OCAwbDYxLjg2IDM1Ljk0NmM4LjM2IDUuMDE1IDE0LjIxMSAxNS44ODIgMTQuMjExIDI1LjA3OHY3MS4wNTVjMCA5LjE5Ni02LjY4NyAyMC4wNjMtMTQuMjExIDI1LjA3OWwtNjEuODYgMzUuOTQ1Yy04LjM2IDQuMTgtMjAuODk5IDQuMTgtMjkuMjU4IDBsLTYxLjg2LTM1Ljk0NUM2LjE1MSAxNTcuNDQuMyAxNDUuNzM3LjMgMTM2LjU0eiIvPjwvc3ZnPg==);
    mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODIiIGhlaWdodD0iMjAxIj48cGF0aCBkPSJNLjMgNjUuNDg2YzAtOS4xOTYgNi42ODctMjAuMDYzIDE0LjIxMS0yNS4wNzhsNjEuODYtMzUuOTQ2YzguMzYtNS4wMTYgMjAuODk5LTUuMDE2IDI5LjI1OCAwbDYxLjg2IDM1Ljk0NmM4LjM2IDUuMDE1IDE0LjIxMSAxNS44ODIgMTQuMjExIDI1LjA3OHY3MS4wNTVjMCA5LjE5Ni02LjY4NyAyMC4wNjMtMTQuMjExIDI1LjA3OWwtNjEuODYgMzUuOTQ1Yy04LjM2IDQuMTgtMjAuODk5IDQuMTgtMjkuMjU4IDBsLTYxLjg2LTM1Ljk0NUM2LjE1MSAxNTcuNDQuMyAxNDUuNzM3LjMgMTM2LjU0eiIvPjwvc3ZnPg==);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
    margin-bottom: 1rem;
}

.icon-hex-primary {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.icon-hex-secondary {
    background-color: var(--primary-light);
    color: var(--secondary-color);
}

.icon-hex svg {
    width: 24px;
    height: 24px;
}

.problem-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.problem-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   Solutions Section
   ======================================== */
.solutions-section {
    /* background-color: var(--bg-light); */
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.feature-row {
    margin-bottom: 4rem;
}

.feature-img {
    max-height: 350px;
    object-fit: contain;
}

.feature-title {
    font-family: var(--font-subtitle);
    font-size: 1.5rem;  /*clamp(1.5rem, 3vw, 2rem);*/
    font-weight:400;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    /*font-family: var(--font-subtitle);*/
    font-size: 1rem;
    font-weight:300;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   Key Features Grid
   ======================================== */
.key-features-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    height: 100%;
}

.feature-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.feature-card-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   CTA Blocks
   ======================================== */
.cta-block {
    background-color: var(--bg-light);
    padding: 3rem 0;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cta-text {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.testimonials-swiper {
    padding: 0.5rem 0 4rem;
}

.testimonial-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    min-height: 360px; /* fixed visual height so authors align */
    display: flex;             /* stack text then author */
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1; /* take remaining space to push author to bottom */
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center; /* vertically center avatar and text */
    justify-content: flex-start;
    gap: 1rem;
    margin-top: auto;     /* stick to the bottom of the card */
}

/* Ensure all slides stretch so cards share the same bottom line */
.testimonials-swiper .swiper-wrapper { align-items: stretch; }
.testimonials-swiper .swiper-slide { height: auto; display: flex; }
.testimonials-swiper .swiper-slide > * { width: 100%; }

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-position {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    background-color: var(--bg-white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 1.25rem;
}

.swiper-pagination-bullet {
    background-color: var(--primary-color);
}

/* ========================================
   Statistics Section
   ======================================== */
.stats-section {
    /* background-color: var(--bg-light); */
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.stat-card {
    /* background-color: var(--bg-light); */
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    /* background-color: var(--bg-lighter); */
    transform: translateY(-4px);
}

.stat-card-popup {
    position: fixed;
    background-color: var(--text-light);
    max-width: 250px;
    height: auto;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    /* white-space: nowrap; */
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.stat-card-popup.show {
    opacity: 1;
}

/* .stat-card-popup::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--text-dark);
} */

.stat-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODIiIGhlaWdodD0iMjAxIj48cGF0aCBkPSJNLjMgNjUuNDg2YzAtOS4xOTYgNi42ODctMjAuMDYzIDE0LjIxMS0yNS4wNzhsNjEuODYtMzUuOTQ2YzguMzYtNS4wMTYgMjAuODk5LTUuMDE2IDI5LjI1OCAwbDYxLjg2IDM1Ljk0NmM4LjM2IDUuMDE1IDE0LjIxMSAxNS44ODIgMTQuMjExIDI1LjA3OHY3MS4wNTVjMCA5LjE5Ni02LjY4NyAyMC4wNjMtMTQuMjExIDI1LjA3OWwtNjEuODYgMzUuOTQ1Yy04LjM2IDQuMTgtMjAuODk5IDQuMTgtMjkuMjU4IDBsLTYxLjg2LTM1Ljk0NUM2LjE1MSAxNTcuNDQuMyAxNDUuNzM3LjMgMTM2LjU0eiIvPjwvc3ZnPg==);
    mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODIiIGhlaWdodD0iMjAxIj48cGF0aCBkPSJNLjMgNjUuNDg2YzAtOS4xOTYgNi42ODctMjAuMDYzIDE0LjIxMS0yNS4wNzhsNjEuODYtMzUuOTQ2YzguMzYtNS4wMTYgMjAuODk5LTUuMDE2IDI5LjI1OCAwbDYxLjg2IDM1Ljk0NmM4LjM2IDUuMDE1IDE0LjIxMSAxNS44ODIgMTQuMjExIDI1LjA3OHY3MS4wNTVjMCA5LjE5Ni02LjY4NyAyMC4wNjMtMTQuMjExIDI1LjA3OWwtNjEuODYgMzUuOTQ1Yy04LjM2IDQuMTgtMjAuODk5IDQuMTgtMjkuMjU4IDBsLTYxLjg2LTM1Ljk0NUM2LjE1MSAxNTcuNDQuMyAxNDUuNzM3LjMgMTM2LjU0eiIvPjwvc3ZnPg==);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    /* margin-bottom: 0.5rem; */
    background-color: var(--primary-light);
    color: var(--secondary-color);
}

.stat-icon svg {
    width: 16px;
    height: 16px;
}
/* 
.stat-icon-blue,
.stat-icon-green,
.stat-icon-purple,
.stat-icon-orange,
.stat-icon-yellow,
.stat-icon-pink {
    background-color: var(--primary-light);
    color: var(--secondary-color);
} */

.stat-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.0rem;
    display: flex;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0rem 0;
    font-family: var(--font-heading);
}

.stat-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0rem;
}

/* ========================================
   Data Source Section
   ======================================== */
.data-source-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.media-flex {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.media-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.media-icon svg {
    width: 36px;
    height: 36px;
}

.media-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.media-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   Appearances Section
   ======================================== */
.appearances-section {
    /* background-color: var(--bg-light); */
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.appearances-swiper {
    padding: 0.5rem 0 4rem;
}

.appearance-card {
    /* background-color: var(--bg-light); */
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    min-height: 420px;          /* fixed visual height so items align */
    display: flex;              /* stack text, image, author */
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.appearance-card:hover {
    box-shadow: var(--shadow-lg);
    /* background-color: var(--bg-lighter); */
    transform: translateY(-4px);
}

.appearance-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex: 0 0 100px;            /* fixed text height for vertical alignment */
    overflow: hidden;
}

.appearance-image {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex: 0 0 320px;            /* fixed image height, slightly less than before */
}

.appearance-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appearance-author {
    text-align: left;
    margin-top: auto;           /* push author block to bottom */
    display: flex;
    align-items: center;
    justify-content: space-between; /* title left, date right */
    min-height: 38px;
}

/* Stretch slides so cards share the same bottom line */
.appearances-swiper .swiper-wrapper { align-items: stretch; }
.appearances-swiper .swiper-slide { height: auto; display: flex; }
.appearances-swiper .swiper-slide > * { width: 100%; }

/* ========================================
   Additional Reasons Section
   ======================================== */
.additional-reasons-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
}

/* ========================================
   Final CTA
   ======================================== */
.final-cta {
    /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
    background: var(--bg-white);
    padding: 2rem 0;
    padding-top:0;
    margin-top:-3rem;
    margin-bottom:1rem;
    z-index: 3; /* ensure above grid */
}

.cta-wrapper {
    text-align: center;
    position: relative;
    z-index: 3; /* ensure above grid */
}

.cta-title-large {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.final-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* .final-cta .btn-primary {
    background-color: white;
    color: var(--primary-color) !important;
}

.final-cta .btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
} */

/* ========================================
   Footer
   ======================================== */
.footer { 
    background-color: #f4f4f5; /* var(--text-dark); */
    color: var(--text-light);
    position: relative;
    z-index: 3; /* ensure above grid */
}

.footer-logo svg {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
}

.logo-right,
.logo-left,
.logo-bottom {
    fill: var(--primary-color);
    stroke: none;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    /* border-radius: 50%; */
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    /* background-color: var(--primary-color); */
    color: var(--primary-color); /* text-dark); */
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.footer-column-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-light);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.heart-icon {
    color: #ef4444;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* ========================================
   Pricing Page Styles
   ======================================== */
.pricing-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.recommended {
    border-color: var(--primary-color);
    background: #f8fafc; /* Light gray background */
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
    z-index: 2;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-card-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.pricing-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pricing-plan-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.5rem 0 0.5rem;
    text-align: center;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.625rem 0;
    display: flex;
    align-items: flex-start;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .feature-label {
    flex-grow: 1;
}

.pricing-features .feature-value {
    margin-left: auto;
    font-weight: 500;
}

.pricing-features .value-included {
    color: var(--secondary-color);
}

.pricing-features .value-limited {
    color: #f59e0b; /* Orange */
}

.pricing-features .value-excluded {
    color: #ef4444; /* Red */
}

.pricing-cta {
    margin-top: auto;
}

.pricing-cta .btn {
    width: 100%;
}

.pricing-cta .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comparison Table */
.comparison-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.comparison-table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
}

.comparison-table .feature-name {
    text-align: left;
    font-weight: 500;
    color: var(--text-dark);
}

.comparison-table .plan-header {
    background: var(--primary-light);
    color: var(--primary-color);
}

.comparison-table .recommended-header {
    background: var(--secondary-color);
    color: white;
}

.comparison-table .value-included {
    color: var(--secondary-color);
}

.comparison-table .value-limited {
    color: #f59e0b;
}

.comparison-table .value-excluded {
    color: #ef4444;
}

.comparison-table .text-success {
    color: var(--secondary-color);
}

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

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Value Section */
.value-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.value-card {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    background: var(--bg-light);
}

.value-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.value-text strong {
    color: var(--primary-color);
}

/* Support Section */
.support-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.support-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
}

.support-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.support-cta {
    margin-top: 2rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.text-primary {
    color: var(--primary-color);
}

/* ========================================
   Pricing Page Enhancements
   ======================================== */

/* Payment Methods Section */
.payment-methods-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.payment-logo {
    width: 80px;
    height: 50px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-logo:hover {
    opacity: 1;
}

.payment-security {
    max-width: 600px;
    margin: 0 auto;
}

.payment-security i {
    color: var(--secondary-color);
    width: 24px;
    height: 24px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.trust-badge i {
    color: var(--secondary-color);
    width: 20px;
    height: 20px;
}

/* Invoice & Refund Info */
.invoice-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.invoice-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.invoice-features li i {
    color: var(--secondary-color);
}

/* FAQ Additions - Enhanced */
.faq-answer p {
    margin-bottom: 0;
}

/* Feature Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Dashboard Preview */
.dashboard-preview-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.dashboard-preview-carousel {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.dashboard-screenshot {
    max-width: 380px;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dashboard-screenshot:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Enterprise Section */
.enterprise-offers-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 5rem 0;
}

.enterprise-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg) ! important;
}

.enterprise-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.enterprise-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.enterprise-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.enterprise-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.enterprise-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.enterprise-features li i {
    color: var(--secondary-color);
}

.enterprise-cta {
    margin-top: 2rem;
}

.enterprise-support {
    text-align: center;
}

.enterprise-support h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991px) {
    .hero-section {
        padding: 8rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background-color: var(--bg-white);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav {
        margin-bottom: 1rem;
    }
    
    .feature-row .col-lg-6 {
        text-align: center;
    }
    
    .feature-title,
    .feature-description {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 7rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-block .col-lg-4 {
        text-align: center;
    }
    
    .cta-block .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Pricing responsive adjustments */
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .pricing-features li {
        font-size: 0.85rem;
    }
    
    .pricing-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.75rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Comparison table mobile */
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .feature-name {
        font-size: 0.9rem;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-light {
    color: var(--text-light) !important;
}

.gap-3 {
    gap: 1rem;
}

/* Loading Animation for Icons */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.problem-card,
.feature-card,
.stat-card {
    animation: fadeIn 0.6s ease-out;
}

/* Hover Effects */
.feature-img {
    transition: transform 0.3s ease;
}

.feature-row:hover .feature-img {
    transform: scale(1.02);
}

/* ========================================
   Landing Page Component Classes
   Reusable classes for landing_* templates.
   No inline styles or hardcoded colors in templates —
   always use these classes or CSS vars.
   ======================================== */

/* Bokeh hexagon decorations — shown on all pages via landing_header.
   z-index: 1 paints hexes above section backgrounds (auto/0)
   but below .container content (z-index: 2). */
.page-hex-decor {
    position: relative;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

/* Section top spacing (below fixed navbar) */
.landing-section {
    margin-top: 4rem;
}

/* Section with minimum viewport height (for short pages like login/register) */
.landing-section-full {
    margin-top: 4rem;
    min-height: 80vh;
}

/* Highlight card — soft purple-blue gradient for info/side panels */
.card-highlight {
    background: linear-gradient(135deg, #f8f6ff 0%, #f0f4ff 100%);
}

/* Icon circle — 48px, primary-light background */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
}

/* Icon circle small — 40px variant */
.icon-circle-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
}

/* Lucide icon colors inside icon circles */
.icon-circle [data-lucide],
.icon-circle .lucide {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.icon-circle-sm [data-lucide],
.icon-circle-sm .lucide {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Lucide icon sizes for various contexts */
.input-group-text [data-lucide],
.input-group-text .lucide {
    width: 18px;
    height: 18px;
}

.lucide-sm, [data-lucide].lucide-sm {
    width: 16px;
    height: 16px;
}

.lucide-xs, [data-lucide].lucide-xs {
    width: 14px;
    height: 14px;
}

/* Profile/author thumbnail — square, cropped */
.img-profile-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--text-dark);
}

/* Profile/author detail image — responsive with border */
.img-profile {
    max-width: 100%;
    border: 1px solid var(--text-dark);
}

/* Object-fit cover utility */
.img-cover {
    object-fit: cover;
}

/* Constrained logo image */
.img-logo-block {
    width: 100%;
    max-width: 400px;
}

/* Research article content — parsed markdown */
.research-content img,
.research-content p img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.research-content h2,
.research-content h3,
.research-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.research-content p {
    line-height: 1.7;
    color: var(--text-muted);
}

.research-content ul,
.research-content ol {
    color: var(--text-muted);
}

/* Feature icon — large 48px standalone icon (pricing dashboard previews) */
.icon-feature [data-lucide],
.icon-feature .lucide {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

/* Feature icon variant — secondary color */
.icon-feature-secondary [data-lucide],
.icon-feature-secondary .lucide {
    width: 48px;
    height: 48px;
    color: var(--secondary-color, var(--primary-color));
}

/* Enterprise icon — extra-large 80px icon */
.icon-enterprise [data-lucide],
.icon-enterprise .lucide {
    width: 80px;
    height: 80px;
}

/* Enterprise icon — primary-light color variant */
.icon-enterprise-light [data-lucide],
.icon-enterprise-light .lucide {
    width: 80px;
    height: 80px;
    color: var(--primary-light);
}

/* Payment method label */
.payment-logo-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Section background using bg-light var (light gray) */
.section-bg-light {
    background: var(--bg-light);
}

/* Section background with soft purple-to-white gradient */
.section-bg-purple {
    /* background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);*/
    background: linear-gradient(180deg, var(--bg-light-purple) 0%, var(--bg-lighter-purple) 100%);
}

/* Timeline — alternating icon left/right, one item per row */
.timeline-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-card .card-body {
    text-align: right;
}

.timeline-icon {
    flex-shrink: 0;
}

.timeline-card,
.research-card {
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover,
.research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

@media (max-width: 767px) {
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }
    .timeline-item:nth-child(even) .timeline-card .card-body {
        text-align: left;
    }
}

/* ── Accessory: form+button that looks identical to <a> ── */
.accessory-form {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}
/* Strip browser button chrome only */
.accessory-btn {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
/* Plain text links (no .btn): full reset to match <a> */
.accessory-btn:not(.btn) {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    text-decoration: inherit;
    text-align: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}
/* Footer links: match <a> styling inside .footer-links */
.footer-links .accessory-btn {
    color: var(--text-light);
    font-size: 0.875rem;
}
.footer-links .accessory-btn:hover {
    color: var(--primary-color);
}
/* Navbar: ensure accessory-form doesn't break flex layout */
.navbar .accessory-form {
    display: inline-flex;
}

