/* ============================================
   LABARD INSTRUCHEM - Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2a8bd1;
    --primary-dark: #197fcb;
    --primary-light: #5ba8e0;
    --accent-red: #ed1c24;
    --accent-green: #28a745;
    --text-dark: #0e4771;
    --text-body: #333;
    --text-light: #666;
    --bg-light: #f5f9fc;
    --white: #fff;
    --border: #ddd;
    --shadow: 0px 0px 10px -1px rgba(224,224,224,1);
    --shadow-hover: 0px 5px 20px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --footer-bg: #1a1a1a;
    --footer-text: rgba(255,255,255,0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-y: scroll; }

/* ============================================
   PAGE SMOOTHING / PERFORMANCE
   ============================================ */
@supports (font-kerning: normal) {
    html { text-rendering: optimizeLegibility; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.products-section.reveal,
.products-section .product-category.reveal {
    opacity: 1;
    transform: none;
}

/* Subtle stagger helpers */
.reveal {
    transition-delay: var(--reveal-delay, 0ms);
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 0 rgba(42, 139, 209, 0); }
    40% { box-shadow: 0 0 0 10px rgba(42, 139, 209, 0.12); }
    100% { box-shadow: 0 0 0 rgba(42, 139, 209, 0); }
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseButton {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.02); }
}

/* Optional accent: use on hero slider button / cards if needed */
.accent-anim {
    animation: glowPulse 2.4s ease-in-out infinite;
}

.page-header,
.slider-wrapper,
.section,
.product-category,
.blog-post {
    will-change: opacity, transform;
}

.slider-wrapper.reveal,
.page-header.reveal,
.section.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.slider-wrapper.reveal.in-view,
.page-header.reveal.in-view,
.section.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Better focus visibility for keyboard users */
:focus-visible {
    outline: 3px solid rgba(42, 139, 209, 0.35);
    outline-offset: 3px;
}


body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    background: transparent;
    font-size: 14px;
    overflow-x: hidden;
}


a { text-decoration: none; color: inherit; transition: var(--transition); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.column {
    flex: 1 1 0;
    min-width: 0;
}

.column.is-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.column.is-8 {
    flex: 0 0 calc(66.666% - 12px);
    max-width: calc(66.666% - 12px);
}

.column.is-4 {
    flex: 0 0 calc(33.333% - 12px);
    max-width: calc(33.333% - 12px);
}

.column.is-2 {
    flex: 0 0 calc(16.666% - 12px);
    max-width: calc(16.666% - 12px);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    margin: 1.25rem 0;
    min-width: 320px;
}

.spec-table thead {
    background-color: #eef4fb;
}

.spec-table th,
.spec-table td {
    padding: 14px 16px;
    border: 1px solid #d8dee7;
    text-align: left;
    vertical-align: middle;
    font-size: 0.95rem;
}

.spec-table th {
    color: #0e4771;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.spec-table tbody tr:nth-child(even) {
    background-color: #fbfcfe;
}

.spec-table tbody tr:hover {
    background-color: #f4f8ff;
}

@media (max-width: 780px) {
    .spec-table,
    .spec-table thead,
    .spec-table tbody,
    .spec-table tr,
    .spec-table th,
    .spec-table td {
        display: block;
        width: 100%;
    }

    .spec-table thead {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .spec-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        overflow: hidden;
    }

    .spec-table td {
        border: none;
        border-bottom: 1px solid #e8edf4;
        padding: 12px 14px;
        position: relative;
        text-align: right;
    }

    .spec-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 14px;
        width: calc(50% - 28px);
        padding-right: 10px;
        font-weight: 600;
        color: #4f5d6b;
        text-align: left;
    }

    .spec-table td:last-child {
        border-bottom: none;
    }
}

/* ============================================
   HEADER (Modern redesign)
   ============================================ */

#header-wrap {
    background: var(--white);
    box-shadow: 0 2px 18px rgba(16, 60, 105, 0.10);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#header {
    background: var(--white);
}

#header-inner {
    padding: 0;
}

:root {
    --header-pad-x: 0px;
    --header-border: rgba(13, 76, 139, 0.12);
    --header-shadow: 0 2px 18px rgba(16, 60, 105, 0.10);
}

.header-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--header-border);
}

/* Logo */
#header-logo .site-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    height: 44px;
    width: auto;
    transition: transform 200ms ease;
}

#header-logo:hover .site-logo-link img {
    transform: translateY(-1px);
}

/* Contact cards grid */
.header-contact {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.contact-card {
    background: linear-gradient(180deg, rgba(42,139,209,0.06) 0%, rgba(255,255,255,1) 100%);
    border: 1px solid rgba(42,139,209,0.16);
    border-radius: 12px;
    padding: 12px 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 58px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(16, 60, 105, 0.12);
    border-color: rgba(42,139,209,0.30);
}

.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(42,139,209,0.10);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 16px;
}

.contact-text {
    min-width: 0;
}

.contact-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-transform: none;
}

.contact-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.3;
}

.contact-sub {
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.25;
}

.contact-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark) !important;
    line-height: 1.3;
    transition: color 200ms ease;
}

.contact-link:hover {
    color: var(--primary) !important;
}

/* Responsive contact cards */
@media (max-width: 1100px) {
    .header-contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .header-contact {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contact-card {
        padding: 14px 14px;
        min-height: auto;
    }
    
    .contact-label {
        font-size: 12px;
    }
    
    .contact-value {
        font-size: 13px;
    }
    
    .contact-sub {
        font-size: 12px;
    }

    /* Performance: avoid continuous animations/hover-driven transforms on mobile */
    .tp-caption.button {
        animation: none !important;
    }
    
    .blog-post:hover > div {
        transform: none;
    }
    
    .blog-post:hover .post-image img {
        transform: none;
    }
}


/* Navigation row */
.level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.nav-wrap {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

.main-navigation.active {
    display: block;
}

.nav-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-navigation {
    width: 100%;
}

.main-navigation ul.menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0;
    row-gap: 4px;
    align-items: center;
}

.main-navigation ul.menu li {
    position: relative;
}

.main-navigation ul.menu li a {
    display: block;
    padding: 10px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    white-space: nowrap;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
    border-radius: 10px;
}

.main-navigation ul.menu li a:hover {
    color: var(--primary);
    background: rgba(42,139,209,0.08);
}

.main-navigation ul.menu li a.active {
    color: var(--primary);
    background: rgba(42,139,209,0.12);
}

/* Quote CTA */
.quote-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(42,139,209,1) 0%, rgba(25,127,203,1) 55%, rgba(91,168,224,1) 100%);
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 28px rgba(42,139,209,0.25);
    transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.quote-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(42,139,209,0.30);
    filter: brightness(1.04);
}

.quote-cta i {
    font-size: 14px;
}

.product-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 32px;
    padding: 0 10px;
}

.product-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(42,139,209,0.08);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
    white-space: nowrap;
}

.product-category-link:hover,
.product-category-link:focus {
    background: rgba(42,139,209,0.18);
    color: var(--primary);
    transform: translateY(-1px);
}

.page-header {
    padding: 45px 0 35px;
    background: rgba(248, 251, 255, 0.95);
}

.page-header .container {
    max-width: 1080px;
}

.page-header h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

/* Search icon button styling */
.header-menu-icons {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.search-icon {
    background: rgba(42,139,209,0.08);
    border: 1px solid rgba(42,139,209,0.18);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.search-icon i {
    font-size: 16px;
}

.search-icon:hover {
    background: rgba(42,139,209,0.14);
    border-color: rgba(42,139,209,0.30);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: rgba(42,139,209,0.08);
    border: 1px solid rgba(42,139,209,0.18);
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
    color: var(--primary);
    padding: 10px 12px;
    transition: transform 200ms ease;
}

.mobile-menu-btn:hover {
    transform: translateY(-2px);
}

/* Ensure modern header classes work even with legacy header CSS below */
.header-top .header-contact,
.header-top .contact-card,
.nav-right,
.nav-left,
.quote-cta,
.search-icon {
    position: relative;
    z-index: 1;
}

/* ==============================
   Responsive header layout
   ============================== */
@media (max-width: 1100px) {
    .header-contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-navigation ul.menu li a {
        padding: 9px 8px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 10px 0;
    }

    .header-contact {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .level.nav-bar {
        padding: 6px 0 10px;
    }

    .quote-cta {
        display: none;
    }

    .nav-right {
        gap: 10px;
    }

    .main-navigation {
        display: none;
        width: 100%;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul.menu {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 14px;
        margin: 0;
        background: var(--white);
        border-radius: 18px;
        box-shadow: 0 18px 38px rgba(0,0,0,0.08);
    }

    .main-navigation ul.menu li a {
        padding: 14px 10px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    .main-navigation ul.menu li:last-child a {
        border-bottom: none;
    }

    .product-search-bar,
    .product-category-nav,
    .page-header,
    .section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .slider-wrapper {
        /* make hero much taller and responsive */
        min-height: 65vh;
        height: auto;
    }

    .slider-content .inner {
        /* larger vertical padding so text sits comfortably within taller hero */
        padding: 48px 20px;
    }

    .slider-content .title-text {
        font-size: 2.2rem;
        margin-bottom: 18px;
    }

    .tp-caption.button {
        width: fit-content;
        padding: 12px 20px;
    }

    .post-image img {
        height: auto;
    }

    .product-search-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    #productSearchInput {
        min-width: 0;
        width: 100%;
    }

    .product-search-clear {
        margin-top: 4px;
    }

    .product-category-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .product-category-link {
        flex: 0 0 auto;
    }

    .page-header h1 {
        font-size: 1.9rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .blog-list {
        gap: 16px;
    }

    .clients-list {
        gap: 16px;
    }
}

.slider-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center center !important;
}

/* Default hide all slides; JS will set .current */
.slider-wrapper .slide {
    display: none;
}

.slide.current {
    display: block;
}

.slider-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center center !important;
}

.slider-content .inner {
    text-align: center;
    color: var(--white);
    z-index: 2;
    position: relative;

    padding: 48px 20px;
    animation: slideInUp 0.9s ease both;
}

.slider-content .title-text {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.tp-caption.button {
    animation: pulseButton 4.5s ease-in-out infinite;
}

.tp-caption.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 600;
    text-transform: lowercase;
    border-radius: 4px;
    transition: var(--transition);
}

.tp-caption.button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.tp-caption.button .icon {
    font-size: 14px;
}

.previousButton, .nextButton {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border: none;
}

.previousButton:hover, .nextButton:hover {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.previousButton { left: 20px; }
.nextButton { right: 20px; }

.previousButton svg, .nextButton svg {
    width: 12px;
    height: 18px;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 60px 0;
}

.section.has-background-primary-light {
    background: var(--bg-light);
}

.heading-title-top {
    text-align: center;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: lowercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.heading-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 25px;
}

.heading-title.style-3 {
    text-transform: uppercase;
}

.heading-title.multiline {
    text-align: center;
}

.has-text-centered { text-align: center; }
.has-text-left { text-align: left; }

/* ============================================
   ABOUT / WATCH VIDEO SECTION
   ============================================ */

.watch-video {
    background: transparent;
}


.watch-video .columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.watch-video .column.is-8-desktop,
.watch-video .column.is-8 {
    flex: 0 0 calc(66.666% - 15px);
    max-width: calc(66.666% - 15px);
}

.watch-video .column.is-4-desktop,
.watch-video .column.is-4 {
    flex: 0 0 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
}

.watch-video p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.works-button {
    margin-top: 20px;
}

.works-button .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: lowercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.works-button .button:hover {
    background: var(--primary);
    color: var(--white);
}

.works-button .button .icon {
    font-size: 14px;
}

.works-latest-item img {
    max-height: 280px;
    object-fit: contain;
    margin: 0 auto;
}

/* ============================================
   BLOG / PRODUCT CARDS
   ============================================ */

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 0;
}

.blog-post {
    padding: 0;
    margin-bottom: 0;
    opacity: 1;
    transition: transform 600ms ease, box-shadow 0.2s ease;
}

.blog-post.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.blog-post.in-view {
    opacity: 1;
    transform: translateY(0);
}

.blog-post > div {
    box-shadow: var(--shadow);
    background: var(--white);
    margin: 0;
    padding: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: cardAppear 0.65s ease both;
}

.blog-post:hover > div {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.post-image {
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

.post-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.entry-header {
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin: 14px 0 10px;
}

.entry-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    min-height: 2.8em;
}

.entry-title a {
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 14px;
}

.entry-description {
    border-bottom: 1px dashed var(--primary-dark);
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-dark);
    flex: 1;
}

.entry-description > div {
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.6;
    min-height: 72px;
}

.entry-spec-preview {
    font-size: 12px;
    color: #4a4a4a;
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* Products page: search bar */
.product-search-bar {
    margin: 0 auto 28px;
    max-width: 860px;
    padding: 0 15px;
}

.product-search-inner {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(42,139,209,0.25);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.product-search-icon {
    color: var(--primary);
    font-size: 14px;
    width: 24px;
    display: inline-flex;
    justify-content: center;
}

#productSearchInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-body);
}

.product-search-clear {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-light);
    font-size: 22px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-search-clear:hover {
    background: rgba(42,139,209,0.08);
    color: var(--primary);
}

.product-search-meta {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    min-height: 16px;
}


.entry-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.entry-footer .button {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
    white-space: nowrap;
    border-radius: 999px;
    padding: 9px 18px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 8px 18px rgba(42, 139, 209, 0.15);
}

/* VIEW SPEC buttons */
button[data-spec] {
    background: linear-gradient(135deg, rgba(42,139,209,1) 0%, rgba(25,127,203,1) 55%, rgba(91,168,224,1) 100%);
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

button[data-spec]:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 30px rgba(42, 139, 209, 0.24);
    filter: brightness(1.05);
}

button[data-spec]:focus-visible {
    outline: 3px solid rgba(42, 139, 209, 0.35);
    outline-offset: 3px;
}

/* =====================
   VANTA text readability
   ===================== */

#vanta-fullpage + #vanta-content {
    position: relative;
    z-index: 1;
}

#vanta-fullpage + #vanta-content,
#vanta-fullpage + #vanta-content * {
    position: relative;
    z-index: 2;
}

#vanta-fullpage + #vanta-content h1,
#vanta-fullpage + #vanta-content h2,
#vanta-fullpage + #vanta-content h3,
#vanta-fullpage + #vanta-content p {
    color: #ffffff !important;
}

/* "about us" button (hero button) */
#vanta-fullpage + #vanta-content .works-button .button {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

#vanta-fullpage + #vanta-content .works-button .button:hover {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.spec-modal-body pre {
    background: #f7fbff;
    border: 1px solid #e5eff9;
    padding: 14px;
    border-radius: 8px;
    overflow: auto;
    margin: 0 0 16px;
    white-space: pre-wrap;
    word-break: break-word;
}

.spec-modal-body table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Ensure header and data cells align (prevents drifting columns) */
.spec-modal-body table th,
.spec-modal-body table td {
    text-align: left;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Default 2-column key/value look */
.spec-modal-body table tr > th:first-child {
    width: 35%;
}

.spec-modal-body table tr > td:last-child {
    width: 65%;
}

/* Distinct header row background */
.spec-modal-body table thead th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text-dark);
}

/* Better readability on small screens */
@media (max-width: 640px) {
    .spec-modal-body table {
        font-size: 11px;
    }

    /* Keep the table compact; avoid weird wrapping that changes perceived alignment */
    .spec-modal-body table th,
    .spec-modal-body table td {
        padding: 7px 8px;
    }
}



/* ============================================
   CLIENTS CAROUSEL
   ============================================ */

.clients-content-section {
    background: var(--white);
    padding: 40px 0;
}

.clients-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.client-item {
    padding: 10px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo {
    max-height: 60px;
    width: auto;
}

/* ============================================
   FOOTER
   ============================================ */

#footer-wrap {
    background: var(--footer-bg);
}

#footer {
    padding: 50px 0 30px;
}

#footer-inner .columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#footer-inner .column.is-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

#footer-inner .column.is-2 {
    flex: 0 0 16.666%;
    max-width: 16.666%;
}

#footer-inner .column {
    flex: 1;
}

.widget-title {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: capitalize;
}

#footer p {
    color: var(--footer-text);
    font-size: 13px;
    line-height: 1.8;
}

#footer .site-logo img {
    height: 55px;
    margin-bottom: 15px;
}

.footer-social-links ul {
    display: none;
    list-style: none;

    gap: 10px;
    margin-top: 15px;
}

.footer-social-links ul li a {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    transition: var(--transition);
}

.footer-social-links ul li a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.widget-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-links ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.widget-links ul li .icon {
    font-size: 14px;
    margin-top: 3px;
    color: var(--primary);
    min-width: 20px;
    flex-shrink: 0;
}

.widget-links ul li > a {
    flex: 1;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    color: var(--footer-text);
    font-size: 13px;
    text-decoration: none;
    line-height: 1.4;
}

.widget-links ul li > a strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.widget-links ul li a:hover {
    color: var(--primary);
}

.links-with-icons ul li strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

/* Footer Bottom */
#footer-bottom-wrap {
    background: #111;
    padding: 15px 0;
}

/* Contact dark-theme helpers (labels muted, links crisp white) */
.contact-label-dark {
    color: rgba(0, 0, 0, 0.55);
    font-weight: 600;
}

/* Use a black background for the link text to keep it readable */
.contact-link-dark {
    color: var(--white) !important;
    background: #000;
    padding: 0;
    border-radius: 0;
}

#footer .contact-link-dark,
#footer .contact-link-dark:hover {
    color: var(--white) !important;
}

.footer-bottom-content .level {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.footer-copyright a {
    color: var(--white);
    font-weight: 600;
}

/* ============================================
   PAGE HEADER (Inner Pages)
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    display: block;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}


.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    opacity: 1;
    visibility: visible;
}

.page-header p {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-section .columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-section .column {
    flex: 1;
}

.about-section .column.is-6 {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
}

.about-section img {
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.about-section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.about-section p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */


/* ============================================
   PRODUCT CATEGORIES (Products page)
   ============================================ */

.product-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 30px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.96);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    position: sticky;
    top: 88px;
    z-index: 20;
    backdrop-filter: blur(8px);
}

.product-category-link {
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    transition: var(--transition);
}

.product-category-link:hover {
    background: var(--primary);
    color: var(--white);
}

.product-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 10px 0 18px;
    padding-left: 14px;
    border-left: 5px solid var(--primary);
}


/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section .columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-section .column.is-6 {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

.contact-info-list {
    list-style: none;
    background-color: transparent;
}

/* Plain contact list variant (no link styling, used for exact structured list look) */
.contact-info-list-plain {
    background-color: transparent;
}

.contact-info-list-plain p {
    color: #444;
}

.contact-info-list-plain h4 {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(42,139,209,0.65);
    font-weight: 700;
}

.contact-info-list-plain p {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(42,139,209,0.55);
}

.contact-info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-info-list .icon-circle {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-info-list h4 {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-list p {
    color: var(--text-light);
    font-size: 13px;
}

.contact-form-wrap {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: var(--shadow);

    /* Contain native select dropdown rendering within the form card */
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-body);
    font-size: 13px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    transition: var(--transition);
}

/* Prevent select dropdown option list from visually escaping the form/layout */
.select-wrap {
    position: relative;
    width: 100%;
}

.select-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px !important;
    position: relative;
    z-index: 2;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #0e4771;
    font-weight: 700;
    font-size: 14px;
}

.form-group select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Ensure the dropdown itself has enough stacking context */
.form-group {
    position: relative;
}

/* Keep native select dropdown contained inside form column */
.form-group .select-wrap {
    position: relative;
    z-index: 3;
}

.form-group .select-wrap select {
    position: relative;
    z-index: 2;
}

/* Some browsers render the native option list with the document stacking
   context; these rules ensure the form section creates a predictable stacking layer. */
.contact-form-wrap {
    position: relative;
    z-index: 1;
}

.contact-section {
    position: relative;
    z-index: 0;
}

/* ============================================
   CONTACT US (left “Contact Us” list)
   Must be transparent + bright blue icons + crisp white data
   ============================================ */

/* Container background must be fully transparent */
.contact-info-list.contact-info-list--contact-us {
    background-color: transparent;
}

/* Main heading (icon-less) */
.contact-us-heading {
    color: var(--white) !important;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

/* List items: vertical rhythm */
.contact-info-list.contact-info-list--contact-us {
    background-color: transparent;
}

.contact-info-list.contact-info-list--contact-us li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

/* Icon circle styling: white fill with a blue outline and centered icon */
.contact-info-list.contact-info-list--contact-us .icon-circle {
    background: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #2a8bd1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-list.contact-info-list--contact-us .icon-circle i {
    color: #2a8bd1;
    font-size: 18px;
}

.contact-us-heading {
    color: var(--white) !important;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info-list.contact-info-list--contact-us .contact-us-data {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
    margin: 0;
}

.contact-info-list.contact-info-list--contact-us p {
    color: rgba(255, 255, 255, 0.92) !important;
    margin: 0;
}

.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(42, 139, 209, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   CERTIFICATIONS / CLIENTS / DOWNLOADS
   ============================================ */

.cert-grid, .download-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.cert-item, .download-item {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    background: var(--white);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-radius: 4px;
    transition: var(--transition);
}

.cert-item:hover, .download-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.cert-item img {
    height: 80px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.cert-item h4, .download-item h4 {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
}

.download-item .icon-file {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    /* Product cards remain responsive through grid layout */
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .level.top { flex-direction: column; gap: 15px; }
    .topbar-info { flex-direction: column; gap: 10px; }
    .level.nav-bar { position: relative; }
    .level.nav-bar .level-left { width: 100%; justify-content: space-between; }
    .nav-wrap {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1001;
    }
    .nav-wrap.active { display: block; }
    .main-navigation { display: block; width: 100%; }
    .main-navigation.active { display: block; }
    .main-navigation ul.menu { flex-direction: column; align-items: stretch; padding: 12px 15px; }
    .main-navigation ul.menu li a { padding: 10px 0; border-bottom: 1px solid #f0f0f0; width: 100%; }
    .main-navigation a { visibility: visible !important; opacity: 1 !important; }
    .header-menu-icons.social { display: none; }

    .slider-wrapper { min-height: 50vh; height: auto; }
    .slider-content .title-text { font-size: 1.8rem; }

    .watch-video .column.is-8-desktop,
    .watch-video .column.is-4-desktop,
    .about-section .column.is-6,
    .contact-section .column.is-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Product cards remain responsive through grid layout */

    #footer-inner .column.is-4,
    #footer-inner .column.is-2,
    #footer-inner .column {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .cert-item, .download-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    /* Product cards remain responsive through grid layout */
    .slider-content .title-text { font-size: 1.4rem; }
    .heading-title { font-size: 1.4rem; }
    .cert-item, .download-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   PRODUCT SPEC MODAL
   ============================================ */

.spec-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.spec-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-modal-content {
    background-color: var(--white);
    margin: 20px auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.spec-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.spec-modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.spec-modal-close {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.spec-modal-close:hover {
    color: #ffdddd;
    transform: scale(1.1);
}

.spec-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-body);
}

.spec-modal-body h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-light);
}

.spec-modal-body h3:first-child {
    margin-top: 0;
}

.spec-modal-body h4 {
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 15px 0 8px;
}

.spec-modal-body ul {
    margin: 8px 0 8px 20px;
    padding: 0;
}

.spec-modal-body ul li {
    margin-bottom: 4px;
}

.spec-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 12px;
}

.spec-modal-body table th,
.spec-modal-body table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
}

.spec-modal-body table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.spec-modal-body table tr:nth-child(even) {
    background: #fafafa;
}

.spec-modal-body p {
    margin-bottom: 10px;
}

.spec-modal-body strong {
    color: var(--text-dark);
}

/* Utility classes */
.display-none { display: none; }
.is-clearfix::after { content: ""; display: table; clear: both; }

/* ============================================
   GLOBAL SEARCH MODAL
   ============================================ */

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.25s ease;
}

.search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-modal-content {
    width: 90%;
    max-width: 700px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(42, 139, 209, 0.03) 0%, rgba(42, 139, 209, 0.01) 100%);
}

.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-body);
    background: transparent;
    font-family: inherit;
    padding: 0;
}

.search-modal-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.search-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-light);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 200ms ease, background 200ms ease;
    border-radius: 8px;
}

.search-modal-close:hover {
    background: rgba(42, 139, 209, 0.08);
    color: var(--primary);
}

.search-modal-results {
    max-height: 60vh;
    overflow-y: auto;
    padding: 16px;
}

.search-result-item {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 200ms ease, box-shadow 200ms ease;
    border-left: 4px solid transparent;
}

.search-result-item:hover {
    background: rgba(42, 139, 209, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left-color: var(--primary);
}

.search-result-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 4px;
}

.search-result-type {
    display: inline-block;
    background: rgba(42, 139, 209, 0.12);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.search-result-preview {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.search-empty-state {
    padding: 60px 24px;
    text-align: center;
    color: var(--text-light);
}

.search-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.search-empty-text {
    font-size: 14px;
    margin: 0;
}

.search-loading {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-light);
}

.search-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(42, 139, 209, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-hint {
    padding: 16px 24px;
    background: rgba(42, 139, 209, 0.06);
    border-bottom: 1px solid rgba(42, 139, 209, 0.12);
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

/* Keyboard shortcuts hint */
.search-keyboard-hint {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    margin-left: auto;
    white-space: nowrap;
}

.search-keyboard-hint kbd {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 11px;
    min-width: 24px;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-modal.active {
        padding-top: 20px;
    }

    .search-modal-content {
        width: 95%;
        max-width: none;
        max-height: 80vh;
    }

    .search-modal-header {
        padding: 16px 18px;
    }

    .search-modal-input {
        font-size: 16px;
    }

    .search-modal-results {
        max-height: 70vh;
    }

    .search-result-item {
        padding: 14px;
        margin-bottom: 10px;
    }

    .search-empty-state {
        padding: 40px 18px;
    }

    .search-keyboard-hint {
        display: none;
    }
}

/* Header Fixes */
#header-wrap {
    position: relative;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.topbar-info li {
    margin-left: 2rem;
}

.topbar-info .media {
    display: flex;
    align-items: flex-start;
}

.topbar-info .icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: #007cba;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    border-radius: 5px;
    z-index: 1001;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

.dropdown-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Search Dropdown */
.search-container {
    position: relative;
}

.search-icon {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 250px;
}

.search-container:hover .search-dropdown,
.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    padding: 1rem;
}

.search-form input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-form button {
    border: none;
    background: #007cba;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
