/* ========================================
   MedicalProspects - Main Stylesheet
   ======================================== */

:root {
    --primary: #0066cc;
    --secondary: #00a86b;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --gray: #666;
    --gray-light: #e0e0e0;
    --white: #ffffff;
    --spacing: 1rem;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo-img {
    width: 270px;
    height: 66px;
    object-fit: contain;
    display: block;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    list-style: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: var(--light);
    color: var(--primary);
}

.cta-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   Mega Menu Navigation
   ======================================== */

.mega-menu-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.mega-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.mega-menu-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 2rem;
}

.mega-menu-brand .logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.mega-menu-brand .logo:hover {
    color: var(--primary);
}

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

.mega-menu-list {
    display: flex;
    list-style: none;
    gap: 0;
    flex: 1;
    margin: 0;
    padding: 0;
    align-items: stretch;
    position: relative;
}

.mega-menu-item {
    position: static;
    display: flex;
    align-items: center;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 1.2rem;
    height: 70px;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.mega-menu-link:hover {
    color: var(--primary);
    background: var(--light);
    border-bottom-color: var(--primary);
}

.mega-menu-link i {
    font-size: 1.1rem;
}

.mega-menu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
    background: var(--white);
    border-top: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    padding: 2rem 20px;
}

.mega-menu-item:hover .mega-menu-panel {
    display: block;
    animation: slideDown 0.25s ease;
}

/* Two-column panel layout */
.mega-menu-two-col {
    display: flex;
    max-width: 1360px;
    margin: 0 auto;
    min-height: 280px;
    gap: 0;
}

/* Left sidebar — subcategory list */
.mega-menu-sidebar {
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid var(--gray-light);
    padding-right: 0;
}

.mm-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mm-sub-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
}

.mm-sub-item > a i {
    font-size: 0.7rem;
    color: var(--gray);
    transition: transform 0.15s ease;
}

.mm-sub-item > a:hover,
.mm-sub-item.active > a {
    color: var(--primary);
    background: rgba(0, 102, 204, 0.05);
    border-left-color: var(--primary);
}

.mm-sub-item.active > a {
    font-weight: 600;
}

.mm-sub-item.active > a i {
    color: var(--primary);
    transform: translateX(2px);
}

/* Right — product panels container */
.mega-menu-products-wrap {
    flex: 1;
    min-width: 0;
    padding: 0 0 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Individual product panel (hidden by default) */
.mm-products-panel {
    position: absolute;
    top: 0;
    left: 2rem;
    right: 0;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.mm-products-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.mm-products-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
}

/* Products in a 2-column grid */
.mm-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 2.5rem;
    margin-bottom: 1rem;
}

.mm-products-grid a {
    display: block;
    padding: 0.35rem 0;
    color: var(--gray);
    font-size: 0.875rem;
    transition: color 0.15s ease, padding-left 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-products-grid a:hover {
    color: var(--primary);
    padding-left: 0.35rem;
}

/* View More button */
.mm-view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    padding: 0.4rem 1rem;
    background: var(--light);
    color: var(--primary);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mm-view-more:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.mega-menu-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.mega-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
}

.mega-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mega-menu-mobile {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 999;
}

.mega-menu-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-mobile-item {
    border-bottom: 1px solid var(--gray-light);
}

.mega-menu-mobile-toggle {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    transition: background 0.3s ease;
    text-align: left;
}

.mega-menu-mobile-toggle:hover {
    background: var(--light);
}

.mega-menu-mobile-toggle i:last-child {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.mega-menu-mobile-toggle.active i:last-child {
    transform: rotate(180deg);
}

.mega-menu-mobile-submenu {
    display: none;
    background: var(--light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mega-menu-mobile-submenu.active {
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.mega-menu-mobile-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.75rem 2rem;
    color: var(--gray);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mega-menu-mobile-category:hover {
    color: var(--primary);
    background: var(--white);
}

.mega-menu-mobile-category .count {
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.mega-menu-mobile-action {
    padding: 1rem;
    border-top: 1px solid var(--gray-light);
}

.mega-menu-mobile-action .btn {
    width: 100%;
    text-align: center;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 168, 107, 0.05) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-family: "Trebuchet MS", "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-search {
    margin: 1.5rem 0 1.25rem;
    position: relative;
    max-width: 780px;
}

.hero-search-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.hero-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 16px;
    padding: 0.75rem 0.35rem 0.75rem 1rem;
    min-height: 58px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-search-input-wrap i {
    color: var(--primary);
    font-size: 1.05rem;
}

.hero-search-input-wrap input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--dark);
    background: transparent;
}

.hero-search-button {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 700;
    align-self: stretch;
    min-width: 58px;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(27, 95, 160, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-search-button svg {
    width: 20px;
    height: 20px;
    line-height: 1;
}

.hero-search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(27, 95, 160, 0.22);
}

.hero-search-button:focus-visible {
    outline: 2px solid rgba(27, 95, 160, 0.3);
    outline-offset: 2px;
}

.hero-search-hint {
    margin: 0.45rem 0 0;
    font-size: 11px;
    color: var(--gray);
}

@media (min-width: 769px) {
    .hero-search-hint {
        font-size: 14px;
    }
}

.hero-search-results {
    display: none;
    margin-top: 0.7rem;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    max-height: 420px;
    overflow-y: auto;
}

.hero-search-results.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.hero-search-result {
    display: block;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    color: var(--dark);
    background: #fafcff;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-search-result:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.hero-search-result.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
    background: #f4f9ff;
}

.hero-search-result-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

.hero-search-result-meta {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.hero-search-result-count {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-search-empty {
    grid-column: 1 / -1;
    padding: 0.85rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.hero-home .hero-content {
    grid-template-columns: 1fr;
}

.hero-home .hero-content > div:first-child {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.hero-home h1 {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.hero-home-subtitle {
    width: 80%;
    max-width: 882px;
    font-size: 1.225rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .hero-home-subtitle {
        font-size: 1.5rem;
    }
}

.hero-home .hero-search {
    width: 70%;
    max-width: 882px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.hero-home .btn-group {
    justify-content: center;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.hero-image {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

/* When hero image is an SVG illustration — remove gradient bg */
.hero-image.hero-image-svg {
    background: transparent;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    align-items: flex-start;
}

.hero-image-home {
    flex-direction: column;
    gap: 1rem;
}

.hero-logo-under-image {
    width: min(240px, 70%);
    height: auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 0.35rem 0.6rem;
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 600px;
}

.text-center .section-subtitle,
.container.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ========================================
   Cards
   ======================================== */

.card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ========================================
   Forms
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.required {
    color: #dc3545;
}

/* Checkbox Styles */
.interest-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 0.75rem;
    margin-bottom: 2rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start; /* Better for multi-line labels */
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--dark);
    line-height: var(--line-height, 1.4);
}

.checkbox-group input {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    margin: 3px 0 0 0; /* Manual offset for perfect vertical centering with text */
    flex-shrink: 0;
    accent-color: var(--primary);
}

.contact-form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

/* ========================================
   Alert Messages
   ======================================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: var(--secondary);
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #0c5460;
    color: #0c5460;
}

/* ========================================
   Features Section
   ======================================== */

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

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4,
.footer-section h5 {
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 330px;
    max-width: 100%;
    height: auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #aaa;
    font-size: 0.9rem;
}

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

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

.footer-links a {
    color: #aaa;
    transition: color 0.3s ease;
}

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

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

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

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

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #aaa;
}

.contact-info a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #aaa;
}

/* ========================================
   Utility Classes
   ======================================== */

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

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

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }

/* ========================================
   Breadcrumb Navigation
   ======================================== */

.breadcrumb-section {
    background: var(--light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.breadcrumb-nav {
    display: block;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: var(--primary);
    transition: color 0.3s ease;
}

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

.breadcrumb-item span {
    color: var(--dark);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--gray);
    margin: 0 0.25rem;
}

.breadcrumb-separator i {
    font-size: 0.8rem;
}

/* ========================================
   Hierarchical Dropdown Navigation
   ======================================== */

.dropdown-menu-main {
    min-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
}

.nav-category-item {
    position: relative;
    border-bottom: 1px solid var(--gray-light);
}

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

.category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--dark);
    transition: all 0.3s ease;
    width: 100%;
}

.category-link:hover {
    background: var(--light);
    color: var(--primary);
}

.category-link i {
    font-size: 1.2rem;
}

.dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--white);
    list-style: none;
    min-width: 280px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1002;
}

.nav-category-item:hover .dropdown-submenu {
    display: block;
}

.dropdown-submenu li {
    border-bottom: 1px solid var(--gray-light);
}

.dropdown-submenu li:last-child {
    border-bottom: none;
}

.dropdown-submenu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark);
    border: none;
    transition: all 0.3s ease;
}

.dropdown-submenu li a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 2rem;
}

/* ========================================
   Atomic Answer / AI Snippet Optimization
   ======================================== */

.atomic-answer-box {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(0, 168, 107, 0.05));
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

/* Narrow centred wrapper used inside .container for Quick Answer + Reviews */
.content-narrow {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.atomic-answer-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.atomic-answer-label i {
    font-size: 1.1rem;
}

.atomic-answer-content p {
    margin: 0;
    font-size: 1.125rem; /* 18px — body + 2px */
    line-height: 1.7;
    color: var(--dark);
}

/* ========================================
   FAQ Accordion for AI Extraction
   ======================================== */

.faq-section {
    margin-top: 2rem;
}

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

.faq-question {
    padding: 1.25rem;
    background: var(--light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
    user-select: none;
}

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

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-question {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
}

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

.faq-answer {
    padding: 1.25rem;
    color: var(--dark);
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* ========================================
   Comparison Table for AI Data Extraction
   ======================================== */

.comparison-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.comparison-table th {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.comparison-table tr:hover {
    background: var(--light);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ========================================
   Expert Byline / E-E-A-T Signals
   ======================================== */

.expert-byline {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 168, 107, 0.05) 100%);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    align-items: flex-start;
}

.expert-icon {
    font-size: 3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.expert-content h4 {
    margin: 0 0 0.25rem 0;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.expert-title {
    margin: 0 0 0.75rem 0;
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.expert-bio {
    margin: 0;
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================
   Key Takeaways / Bullet List Optimization
   ======================================== */

.key-takeaways {
    background: var(--light);
    border-left: 4px solid var(--secondary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.key-takeaways h4 {
    margin-top: 0;
    color: var(--dark);
    margin-bottom: 1rem;
}

.key-takeaways ul {
    margin: 0;
    padding-left: 1.5rem;
}

.key-takeaways li {
    margin-bottom: 0.75rem;
    color: var(--dark);
    line-height: 1.6;
}

.key-takeaways li:before {
    content: '✓ ';
    color: var(--secondary);
    font-weight: bold;
    margin-right: 0.5rem;
}
