/* ============================================
   BSI BioSpecimen Solutions - Global Styles
   Shared across all pages
   ============================================ */

/* === CSS Variables for Easy Theming === */
:root {
    --primary-color: #0095eb;
    --primary-hover: #007cc3;
    --secondary-color: #76dd4b;
    --dark-bg: #292b33;
    --light-bg: #FCFCFC;
    --text-color: #626262;
    --heading-color: #161922;
    --border-color: #EBEBEB;
    --white: #ffffff;
    --background: #F2F2F2;
    
    --font-main: "Roboto", Arial, sans-serif;
    --font-heading: "Merriweather", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 20px;
    line-height: 1.6;
    color: black;
    font-weight: 300;
    background-color: var(--background);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 48px; }
h2 { font-size: 30px; font-weight: 300; }
h3 { font-size: 21px; font-weight: 300; }
h4 { font-size: 21px; font-weight: 500; }
h5 { font-size: 15px; font-weight: 700; }
h6 { font-size: 14px; }

p {
    margin-bottom: 1rem;
}

a {
    color: rgb(105, 105, 105);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

a:hover {
    color: rgb(243, 243, 243);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* === Page Title === */
.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

.page-subtitle {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}


/* === Layout === */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Top Bar & Logo === */
#Top_bar {
    background-color: var(--background);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

#Top_bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top_bar_left {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    padding: 5px 0;
}

.logo a {
    display: block;
    height: 60px;
    line-height: 60px;
}

.logo img {
    max-height: 50px;
    vertical-align: middle;
}

/* === Hero Section === */
.header-hero {
    background: linear-gradient(135deg, #0095eb 0%, #007cc3 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-hero .container {
    position: relative;
    z-index: 1;
}

/* === Navigation Menu === */
.menu_wrapper {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#menu {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

#menu li {
    position: relative;
}

#menu > ul > li > a {
    display: block;
    padding: 20px 15px;
    color: #6a6c74;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

#menu > ul > li > a:hover,
#menu > ul > li.current-menu-item > a {
    color: var(--primary-color);
}

/* === hide hamburger menu ===*/
.responsive-menu-toggle {
    display: none;
}



/* === Dropdown Menu === */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #F2F2F2;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.has-submenu:hover .sub-menu,
.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    display: block;
}

.sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #5f5f5f;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.sub-menu a:hover {
    color: #2e2e2e;
    background-color: rgba(0, 0, 0, 0.03);
}

/* === Buttons === */
.bsi_button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1em 2em;
    border-radius: 0.25em;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
    max-width: 200px;
    margin: 20px auto;
}

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

/* === Related Links Section === */
.section {
    padding: 60px 0;
    margin-top: 40px;
}

.related-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 40px;
}

.related-section h2 {
    text-align: center;
    font-size: 36px;
    color: #161922;
    margin-bottom: 40px;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.related-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.related-card i {
    font-size: 48px;
    color: #0095eb;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.related-card:hover i {
    transform: scale(1.1);
}

.related-card h3 {
    font-size: 22px;
    color: #161922;
    margin-bottom: 10px;
}

.related-card p {
    font-size: 16px;
    color: #626262;
    margin: 0;
}

/* === Footer === */
#Footer {
    background-color: var(--dark-bg);
    color: #cccccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer_copy {
    text-align: center;
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
}

/* === Footer Socials === */
.footer-socials {
    display: flex;
    gap: 40px;
    margin: 20px auto 40px auto;
    align-items: center;
    justify-content: center;
}

.social {
    display: flex;
    gap: 10px;
    margin: 10px;
    align-items: center;
}

.socials-image img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.socials-info h3 {
    font-size: 16px;
    color: white;
    margin: 0;
}

/* === Footer Socials Images === */
.social i {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
    display: block;
}

/* === Sticky Header === */
#Top_bar.is-sticky {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* === Responsive Design === */

/* Hide side menu on desktop/tablet - only show on mobile */
@media only screen and (min-width: 768px) {
    #Side_slide,
    #body_overlay {
        display: none !important;
    }
}

/* Tablet */
@media only screen and (max-width: 975px) {
    h1 { font-size: 36px; }
    h2 { font-size: 26px; }
    h3 { font-size: 18px; }
}

/* Mobile */
@media only screen and (max-width: 767px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 16px; }

    .logo {
        margin-right: auto;
    }
    
    #Top_bar {
        background-color: var(--white);
    }

    .top_bar_left {
        position: relative;
        justify-content: flex-start;
        display: flex;
        align-items: center;
        width: 90%;
    }
    
    /* Hide desktop menu, show mobile toggle */
    #menu {
        display: none;
        position: relative;
        top: 100%;
        right: 0;
        background: transparent;
        width: 250px;
    }

    #menu.active {
        display: block !important;
    }
    .responsive-menu-toggle {
        display: block !important;
        position: absolute;
        right: -10%;
        top: 50%;
        transform: translateY(-50%);
        color: #0095eb !important;
        background-color: transparent !important;
        font-size: 28px !important;
        padding: 10px !important;
        z-index: 9999 !important;
        cursor: pointer;
    }
    
    .responsive-menu-toggle:hover {
        color: #007cc3 !important;
    }

    /* === Side Slide Menu (Mobile) === */
    #Side_slide {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background-color: #191919;
        z-index: 9999;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    #Side_slide.active {
        right: 0;
    }

    #Side_slide .close-wrapper {
        text-align: right;
        margin-bottom: 20px;
    }

    #Side_slide .close {
        position: relative;
        display: block;
        text-decoration: none;
        text-align: right;
        right: 10px;
        color: var(--white);
        font-size: 24px;
    }

    #body_overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 9998;
        display: none;
    }

    #body_overlay.active {
        display: block;
    }
    
    /* Mobile menu in side slide */
    #Side_slide #menu {
        justify-content: flex-start !important;
        display: block !important;
        color : #191919;
        flex-direction: column;
        width: 100%;
    }
    
    #Side_slide #menu ul {
        justify-content: flex-start !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        align-items: stretch !important;
    }
    
    #Side_slide #menu .menu-left,
    #Side_slide #menu .menu-right {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        text-align: left;
    }

    #Side_slide #menu li {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #Side_slide #menu a {
        display: block !important;
        color: #A6A6A6;
        padding: 15px;
        text-align: left;
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #Side_slide #menu a:hover {
        color: var(--white);
    }

    #Side_slide .menu_wrapper {
        justify-content: flex-start !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        background: transparent;
    }
    
    #Side_slide .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        width: 100%;
        margin-left: 15px;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        margin-left: 15px;
    }
    
    .bsi_button {
        display: block;
        max-width: 100%;
    }
}

/* Small Mobile */
@media only screen and (max-width: 479px) {
    h1 { font-size: 24px; }
    h2 { font-size: 18px; }
    
    .container {
        padding: 0 15px;
    }
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.text-center.constrained {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}


.clearfix::after {
    content: "";
    display: table;
    clear: both;
}