body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e0f2f7 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1030;
}

.header .logo {
    height: 40px;
    width: auto;
}

.header .site-title {
    font-weight: 700;
    color: #007bff;
    font-size: 1.8rem;
}

.header .nav-link {
    color: #555;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: #007bff;
    background-color: #e9f5ff;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 123, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.offcanvas-header {
    background-color: #007bff;
    color: #fff;
}

.offcanvas-title {
    font-weight: 700;
}

.offcanvas-body .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

.offcanvas-body .nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.hero-section {
    position: relative;
    min-height: 80vh;
    background-image: url('assets/pics/medical-desk-background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 80px;
    color: #fff;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p.lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-nav .nav-tabs {
    border-bottom: none;
}

.hero-nav .nav-link {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    margin: 0 5px;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-nav .nav-link:hover,
.hero-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: translateY(-3px);
}

.small-disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 2rem;
}

.seo-block {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 3rem;
}

.seo-block p {
    font-size: 1rem;
    color: #e0e0e0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #007bff;
    border-radius: 2px;
}

.section-subtitle {
    color: #007bff;
}

.card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.model-card .card-body h3 {
    font-size: 1.5rem;
    color: #007bff;
    font-weight: 600;
}

.model-card .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.model-card .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

#about-omron img, #usage-guide img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.list-unstyled li,
.card-body ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

.list-unstyled li i,
.card-body ul li i {
    color: #007bff;
}

.bg-warning-subtle {
    background-color: #fff3cd !important;
}

.blog-card .card-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.blog-card .btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
}

.blog-card .btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

.contact-form .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
}

.contact-form .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.contact-form .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.contact-info p {
    font-size: 1.1rem;
}

.contact-info a {
    color: #007bff;
}

.footer {
    background-color: #212529 !important;
    color: #f8f9fa;
    padding-bottom: 80px; /* Space for cookie banner */
}

.footer .logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer h5 {
    font-weight: 600;
    color: #007bff;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #f8f9fa;
}

.word-break-all {
    word-break: break-all;
}

.cookie-banner {
    z-index: 1040;
    background-color: #212529 !important;
    color: #f8f9fa;
    border-top: 1px solid #343a40;
}

.cookie-banner .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.cookie-banner .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.cookie-banner .btn-outline-light {
    color: #f8f9fa;
    border-color: #f8f9fa;
}

.cookie-banner .btn-outline-light:hover {
    background-color: #f8f9fa;
    color: #212529;
}

#cookieSettingsModal .modal-header {
    background-color: #007bff;
}

#cookieSettingsModal .modal-title {
    color: #fff;
}

#cookieSettingsModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Global box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Responsive Typography */
.site-title {
    font-size: 2rem; /* Desktop */
}

.hero-section h1 {
    font-size: 2.5rem; /* Desktop */
}

.section-title {
    font-size: 2.2rem; /* Desktop */
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-title {
        font-size: 1.8rem; /* Tablet */
    }
    .hero-section h1 {
        font-size: 2.2rem; /* Tablet */
    }
    .hero-section p.lead {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem; /* Tablet */
    }
}

@media (max-width: 767px) {
    .header .site-title {
        font-size: 1.25rem; /* Mobile */
    }
    .header .logo {
        height: 30px;
    }
    .hero-section h1 {
        font-size: 1.5rem; /* Mobile */
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.5rem; /* Mobile */
    }
    .hero-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    .hero-nav .nav-tabs {
        flex-wrap: wrap;
    }
    .seo-block {
        padding: 1rem;
    }
    .card-img-top {
        height: 180px;
    }
    .footer {
        padding-bottom: 100px; /* More space for cookie banner on small screens */
    }
    .cookie-banner .container {
        flex-direction: column;
    }
    .cookie-banner .d-flex.flex-column.flex-sm-row {
        width: 100%;
    }
    .cookie-banner .btn-sm {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 1100px) {
    .header .nav-pills {
        display: none;
    }
    .navbar-toggler {
        display: block !important;
    }
}

/* Ensure buttons don't cut text */
.btn {
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

/* Ensure nav items don't wrap on desktop if possible */
.nav-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-pills .nav-item {
    flex-shrink: 0;
}
/* Main container for terms and conditions */
.termsCaveBox {
    padding: 20px 25px; /* Top/bottom 20px, left/right 25px */
}

/* Heading 1 styles */
.termsCaveBox h1 {
    font-size: 28px; /* Moderate size for H1 */
    font-weight: 700; /* Bold */
    line-height: 1.2;
    margin-top: 32px; /* Spacing above the heading */
    margin-bottom: 16px; /* Spacing below the heading */
}

/* Heading 2 styles */
.termsCaveBox h2 {
    font-size: 24px; /* Moderate size for H2 */
    font-weight: 700;
    line-height: 1.3;
    margin-top: 28px;
    margin-bottom: 14px;
}

/* Heading 3 styles */
.termsCaveBox h3 {
    font-size: 20px; /* Moderate size for H3 */
    font-weight: 700;
    line-height: 1.4;
    margin-top: 24px;
    margin-bottom: 12px;
}

/* Heading 4 styles */
.termsCaveBox h4 {
    font-size: 18px; /* Moderate size for H4 */
    font-weight: 600; /* Slightly less bold than H1-H3 */
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Heading 5 styles */
.termsCaveBox h5 {
    font-size: 16px; /* Moderate size for H5, often similar to body text */
    font-weight: 600;
    line-height: 1.5;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Paragraph styles */
.termsCaveBox p {
    font-size: 16px; /* Standard body text size */
    line-height: 1.6; /* Good readability */
    margin-bottom: 1em; /* Spacing between paragraphs */
}

/* Unordered list styles */
.termsCaveBox ul {
    list-style-type: disc; /* Default bullet style */
    margin-top: 1em; /* Spacing above the list */
    margin-bottom: 1em; /* Spacing below the list */
    padding-left: 25px; /* Indent for bullet points */
}

/* List item styles */
.termsCaveBox li {
    font-size: 16px; /* Standard body text size for list items */
    line-height: 1.6; /* Good readability */
    margin-bottom: 0.5em; /* Spacing between individual list items */
}
