:root {
    --primary: #005BA1;
    --secondary: #E3F2FD;
    --accent: #00D1FF;
    --main-bg: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%);
    --glass-card: rgba(255, 255, 255, 0.65);
    --floating-widget: rgba(255, 255, 255, 0.8);
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --border-glass: rgba(255, 255, 255, 0.4);
    --border-accent: rgba(0, 91, 161, 0.1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--main-bg);
    background-attachment: fixed;
    color: var(--text-secondary);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--text-muted) !important;
}

.glass-card-flow-theme {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.glass-panel {
    backdrop-filter: blur(15px);
    background: var(--glass-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button {
    background: transparent;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(5px);
    transition: 0.30s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    font-weight: 600;
}

.glass-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 209, 255, 0.2);
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

/* ===== header ===== */
.mehilainen-header {
    background: #FFFFFF;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 91, 161, 0.1);
    z-index: 1050;
}

.mehilainen-header .navbar {
    padding: 0.75rem 0;
}

.mehilainen-header .mehilainen-logo {
    max-width: 45px;
    height: auto;
    object-fit: contain;
}

.mehilainen-header .mehilainen-brand-name {
    font-weight: 700;
    color: #1A202C;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.mehilainen-header .nav-link {
    color: #4A5568;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.mehilainen-header .nav-link:hover,
.mehilainen-header .nav-link:focus {
    color: #005BA1;
}

.mehilainen-header .nav-item.dropdown {
    position: relative;
}

.mehilainen-header .dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #FFFFFF;
    padding: 1rem;
    margin-top: 10px;
}

/* Invisible bridge that fills the gap between the nav link and the menu,
   so moving the cursor onto the dropdown does not trigger an early close. */
.mehilainen-header .nav-item.dropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.mehilainen-header .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: #4A5568;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.mehilainen-header .dropdown-item:hover {
    background: #E3F2FD;
    color: #005BA1;
}

.mehilainen-header .mehilainen-cta-btn {
    background: #005BA1;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.3s ease;
}

.mehilainen-header .mehilainen-cta-btn:hover {
    background: #004a82;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 91, 161, 0.3);
}

.mehilainen-header .custom-toggler {
    border: none;
    color: #005BA1;
    font-size: 1.5rem;
    padding: 0;
}

.mehilainen-header .custom-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .mehilainen-header .navbar-collapse {
        background: #FFFFFF;
        padding: 1.5rem 0;
        border-top: 1px solid #E2E8F0;
        margin-top: 1rem;
    }

    .mehilainen-header .nav-item {
        margin-bottom: 0.5rem;
    }

    .mehilainen-header .mehilainen-cta-btn {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .mehilainen-header .dropdown-menu {
        box-shadow: none;
        border: 1px solid #E2E8F0;
        margin-top: 0;
        background: #F8FAFC;
    }
}

/* ===== hero ===== */
.mehilainen-hero {
    background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.mehilainen-hero .hero-accent-label {
    background: rgba(0, 91, 161, 0.1);
    color: #005BA1;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mehilainen-hero .hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1A202C;
    letter-spacing: -0.02em;
}

.mehilainen-hero .hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #4A5568;
    max-width: 540px;
}

.mehilainen-hero .btn-hero-primary {
    background-color: #005BA1;
    color: #FFFFFF;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 91, 161, 0.3);
}

.mehilainen-hero .btn-hero-primary:hover {
    background-color: #004a82;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 161, 0.4);
    color: #FFFFFF;
}

.mehilainen-hero .hero-visual-composition {
    padding: 20px;
}

.mehilainen-hero .hero-main-image-frame {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    aspect-ratio: 4/5;
}

.mehilainen-hero .hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mehilainen-hero .floating-glass-card {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 220px;
}

.mehilainen-hero .widget-top {
    top: 10%;
    left: -10%;
}

.mehilainen-hero .widget-bottom {
    bottom: 15%;
    right: -5%;
}

.mehilainen-hero .widget-icon-box {
    width: 48px;
    height: 48px;
    background: #E3F2FD;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D1FF;
    font-size: 1.5rem;
}

.mehilainen-hero .widget-content {
    display: flex;
    flex-direction: column;
}

.mehilainen-hero .widget-title {
    font-weight: 700;
    color: #1A202C;
    font-size: 0.95rem;
}

.mehilainen-hero .widget-text {
    color: #718096;
    font-size: 0.8rem;
}

.mehilainen-hero .decorative-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.mehilainen-hero .js-float-element {
    animation: float 4s ease-in-out infinite;
}

.mehilainen-hero .widget-bottom {
    animation-delay: 1s;
}

@media (max-width: 991.98px) {
    .mehilainen-hero .hero-headline {
        font-size: 2.25rem;
    }

    .mehilainen-hero .widget-top {
        left: 0;
    }

    .mehilainen-hero .widget-bottom {
        right: 0;
    }
}

@media (max-width: 767.98px) {
    .mehilainen-hero .hero-headline {
        font-size: 18px !important;
    }

    .mehilainen-hero .hero-description {
        font-size: 14px;
    }

    .mehilainen-hero .hero-accent-label {
        font-size: 12px;
    }

    .mehilainen-hero .floating-glass-card {
        min-width: 180px;
        padding: 12px 16px;
    }

    .mehilainen-hero .widget-icon-box {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

/* ===== about_lab ===== */
.about-lab-block {
    background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%);
    position: relative;
    overflow: hidden;
}

.about-lab-block h2 {
    color: #1A202C;
    line-height: 1.2;
}

.about-lab-block p {
    color: #4A5568;
}

.about-lab-block .bg-primary-light {
    background-color: #E3F2FD;
    color: #005BA1;
    font-weight: 600;
}

.about-lab-block .glass-image-card {
    position: relative;
    padding: 10px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.about-lab-block .glass-image-card img {
    object-fit: cover;
    width: 100%;
    height: 400px;
}

.about-lab-block .floating-stat-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 91, 161, 0.1);
    min-width: 200px;
    z-index: 2;
}

.about-lab-block .small-text {
    font-size: 0.8rem;
    color: #718096;
}

.about-lab-block .feature-glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-lab-block .feature-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 91, 161, 0.1);
    background: rgba(255, 255, 255, 0.75);
}

.about-lab-block .icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E3F2FD;
    border-radius: 16px;
}

.about-lab-block .text-primary {
    color: #005BA1 !important;
}

@media (max-width: 991.98px) {
    .about-lab-block .floating-stat-card {
        right: 10px;
        bottom: 10px;
    }

    .about-lab-block .glass-image-card img {
        height: 300px;
    }

    .about-lab-block h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .about-lab-block h2 {
        font-size: 1.5rem;
    }

    .about-lab-block .feature-glass-card {
        padding: 1.5rem;
    }
}

/* ===== services_preview ===== */
#services-preview-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%);
    position: relative;
    overflow: hidden;
}

#services-preview-section .service-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

#services-preview-section .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.12);
    border-color: rgba(0, 91, 161, 0.2);
}

#services-preview-section .service-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
}

#services-preview-section .service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

#services-preview-section .service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#services-preview-section .service-icon-box {
    width: 48px;
    height: 48px;
    background: #E3F2FD;
    color: #005BA1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

#services-preview-section .btn-all-services {
    display: inline-block;
    background: #005BA1;
    color: #FFFFFF;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 91, 161, 0.2);
}

#services-preview-section .btn-all-services:hover {
    background: #004a82;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 161, 0.3);
    color: #FFFFFF;
}

@media (max-width: 767px) {
    #services-preview-section h2 {
        font-size: 1.5rem;
    }

    #services-preview-section .service-card {
        margin-bottom: 1rem;
    }
}

/* ===== accreditation_banner ===== */
#accreditation-banner-section {
    background-image: url('../ui/images/graphics/finnish-laboratory-accreditation-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 400px;
    display: flex;
    align-items: center;
}

#accreditation-banner-section .accreditation-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 91, 161, 0.85) 0%, rgba(0, 209, 255, 0.6) 100%);
    z-index: 1;
}

#accreditation-banner-section .container {
    z-index: 2;
}

#accreditation-banner-section .glass-banner-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

#accreditation-banner-section .accreditation-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #005BA1;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

#accreditation-banner-section .banner-title {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

#accreditation-banner-section .banner-description {
    color: #F8FAFC;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#accreditation-banner-section .btn-standard-link {
    background-color: #FFFFFF;
    color: #005BA1;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#accreditation-banner-section .btn-standard-link:hover {
    background-color: #005BA1;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    #accreditation-banner-section .banner-title {
        font-size: 1.25rem;
    }

    #accreditation-banner-section .banner-description {
        font-size: 0.95rem;
        hyphens: auto;
    }

    #accreditation-banner-section .accreditation-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    #accreditation-banner-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ===== cta_block ===== */
.mehilainen-cta-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%);
    overflow: hidden;
    position: relative;
}

.mehilainen-cta-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.mehilainen-cta-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #005BA1;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 91, 161, 0.2);
}

.mehilainen-cta-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #1A202C;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-size: 2rem;
}

.mehilainen-cta-text {
    font-family: 'Inter', sans-serif;
    color: #4A5568;
    line-height: 1.6;
    max-width: 650px;
    font-size: 1.1rem;
}

.mehilainen-cta-btn {
    background-color: #005BA1;
    color: #FFFFFF !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 91, 161, 0.15);
}

.mehilainen-cta-btn:hover {
    background-color: #004a82;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 161, 0.25);
}

.mehilainen-cta-btn i {
    transition: transform 0.3s ease;
}

.mehilainen-cta-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .mehilainen-cta-title {
        font-size: 1.25rem;
    }

    .mehilainen-cta-text {
        font-size: 0.95rem;
    }

    .mehilainen-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== footer ===== */
.mehilainen-footer {
    background: linear-gradient(135deg, #F8FAFC 0%, #E3F2FD 100%);
    position: relative;
    border-top: 1px solid rgba(0, 91, 161, 0.1);
    overflow: hidden;
}

.mehilainen-footer .footer-logo {
    max-width: 50px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.mehilainen-footer .footer-tagline {
    color: #4A5568;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

.mehilainen-footer .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.mehilainen-footer .footer-contact-link {
    display: inline-flex;
    align-items: center;
    color: #1A202C;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mehilainen-footer .footer-contact-link i {
    color: #005BA1;
}

.mehilainen-footer .footer-contact-link:hover {
    color: #005BA1;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-detail-link {
    color: #1A202C;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-detail-link i {
    color: #005BA1;
}

.contact-detail-link:hover {
    color: #005BA1;
}

.mehilainen-footer .footer-link {
    color: #1A202C;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.mehilainen-footer .footer-link:hover {
    color: #005BA1;
}

.mehilainen-footer .footer-divider {
    height: 1px;
    background: rgba(0, 91, 161, 0.1);
    width: 100%;
}

.mehilainen-footer .copyright-text {
    color: #718096;
    font-size: 0.85rem;
}

.mehilainen-footer .legal-link {
    color: #718096;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.mehilainen-footer .legal-link:hover {
    color: #005BA1;
}

@media (max-width: 767.98px) {
    .mehilainen-footer .footer-tagline {
        margin: 0 auto 1.5rem;
    }

    .mehilainen-footer .footer-contact {
        align-items: center;
        margin-bottom: 1.25rem;
    }

    .mehilainen-footer .footer-nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mehilainen-footer .footer-link {
        font-size: 0.85rem;
    }

    .mehilainen-footer .legal-links {
        justify-content: center;
    }
}

/* ===== PAGE: laboratory-diagnostics ===== */
.diag-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%);
  font-family: 'Inter', sans-serif;
  color: #4A5568;
}
.diag-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1A202C;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.diag-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 800px;
}
.diag-card {
  position: relative;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 2.5rem;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.diag-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 91, 161, 0.2);
}
.diag-h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 1.25rem;
}
.diag-h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1A202C;
  margin-bottom: 0.75rem;
}
.diag-h3 a {
  color: inherit;
  text-decoration: none;
}
.diag-h3 a:hover {
  color: #005BA1;
}
.diag-feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}
.diag-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 500;
}
.diag-feature-list i {
  color: #005BA1;
  font-size: 1.4rem;
}
.diag-card-icon {
  font-size: 3.5rem;
  color: #005BA1;
  opacity: 0.15;
  position: absolute;
  bottom: 20px;
  right: 20px;
}
.diag-tariff-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(0, 91, 161, 0.1);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.diag-tariff-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}
.diag-price {
  font-size: 2rem;
  font-weight: 700;
  color: #005BA1;
}
.diag-tariff-desc {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.diag-btn {
  display: inline-block;
  background: #005BA1;
  color: #FFFFFF !important;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}
.diag-btn:hover {
  background: #004a85;
  transform: translateY(-2px);
}
.diag-product-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.diag-img-wrapper {
  height: 200px;
  width: 100%;
  overflow: hidden;
}
.diag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.diag-product-card:hover .diag-img {
  transform: scale(1.05);
}
.diag-product-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.diag-product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
}
.diag-price-sm {
  font-weight: 700;
  color: #1A202C;
}
.diag-action-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: #005BA1;
  text-decoration: none;
}
.diag-action-btn:hover {
  text-decoration: underline;
}
.diag-btn-secondary {
  background: transparent;
  border: 1px solid #005BA1;
  color: #005BA1;
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.diag-btn-secondary:hover {
  background: #005BA1;
  color: #FFFFFF;
}
@media (max-width: 768px) {
  .diag-main-title { font-size: 1.75rem; }
  .diag-h2 { font-size: 1.5rem; }
  .diag-section { padding: 40px 0; }
}

/* ===== PAGE: finas-standards ===== */
.title-block .glass-surface {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
}

.title-block .bg-primary-soft {
  background: rgba(0, 91, 161, 0.1);
}

.title-block h1 {
  color: #1A202C;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.finas-list-block .glass-card-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.finas-list-block .glass-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(31, 38, 135, 0.08);
  border-color: rgba(0, 209, 255, 0.3);
}

.finas-list-block .card-img-wrapper {
  height: 220px;
  overflow: hidden;
}

.finas-list-block .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.finas-list-block .glass-card-item:hover .card-img-top {
  transform: scale(1.05);
}

.finas-list-block .card-overlay-date {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #005BA1;
}

.finas-list-block .bg-accent-soft {
  background: rgba(0, 209, 255, 0.1);
  width: fit-content;
}

.finas-list-block .btn-glass {
  background: rgba(0, 91, 161, 0.05);
  border: 1px solid rgba(0, 91, 161, 0.1);
  color: #005BA1;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.finas-list-block .btn-glass:hover {
  background: #005BA1;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 91, 161, 0.2);
}

.finas-list-block h2 {
  color: #1A202C;
  font-weight: 700;
}

.finas-list-block .card-title {
  color: #1A202C;
  font-weight: 600;
}

/* ===== PAGE: research-cases ===== */
.research-cases-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%);
}

.research-cases-section .research-title {
  color: #1A202C;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.research-cases-section .research-subtitle {
  color: #4A5568;
  font-size: 1.1rem;
}

.research-cases-section .research-intro-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.research-cases-section .research-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.research-cases-section .research-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

.research-cases-section .research-card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.research-cases-section .research-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.research-cases-section .research-card:hover .research-card-img {
  transform: scale(1.05);
}

.research-cases-section .research-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #005BA1;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.research-cases-section .research-author, 
.research-cases-section .research-date {
  font-size: 0.85rem;
  color: #718096;
  display: flex;
  align-items: center;
}

.research-cases-section .research-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A202C;
  line-height: 1.3;
}

.research-cases-section .research-card-excerpt {
  color: #4A5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.research-cases-section .research-btn {
  background: transparent;
  border: 1px solid rgba(0, 91, 161, 0.3);
  color: #005BA1;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.research-cases-section .research-btn:hover {
  background: #005BA1;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 91, 161, 0.2);
}

@media (max-width: 768px) {
  .research-cases-section {
    padding: 60px 0;
  }
  .research-cases-section .research-title {
    font-size: 1.5rem;
  }
  .research-cases-section .research-card-img-wrapper {
    height: 180px;
  }
}

/* ===== PAGE: contacts-logistics ===== */
.logistics-section { background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%); min-height: 400px; }.logistics-card { background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(15px); border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07); }.logistics-card .section-title { color: #1A202C; font-weight: 700; letter-spacing: -0.02em; }.logistics-item .icon-wrapper { background: #E3F2FD; color: #005BA1; padding: 12px; border-radius: 12px; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }.logistics-item h3 { color: #1A202C; }.contact-card { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px); border-radius: 24px; border: 1px solid rgba(0, 91, 161, 0.1); box-shadow: 0 12px 40px 0 rgba(0, 91, 161, 0.05); }.contact-avatar { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 4px solid #FFFFFF; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }.contact-card .btn-primary { background-color: #005BA1; color: #FFFFFF; font-weight: 600; text-transform: none; border-radius: 12px; padding: 12px 24px; transition: all 0.3s ease; border: none; }.contact-card .btn-primary:hover { background-color: #004a82; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 91, 161, 0.2); }.contact-card .btn-outline-primary { border: 2px solid #005BA1; color: #005BA1; font-weight: 600; text-transform: none; border-radius: 12px; padding: 12px 24px; background: transparent; transition: all 0.3s ease; }.contact-card .btn-outline-primary:hover { background-color: #E3F2FD; color: #005BA1; transform: translateY(-2px); }.info-tag { color: #718096; background: rgba(227, 242, 253, 0.5); padding: 8px 16px; border-radius: 50px; }@media (max-width: 768px) { .logistics-section { padding-top: 2rem; padding-bottom: 2rem; } .contact-avatar { width: 100px; height: 100px; } .logistics-card .card-body { padding: 1.5rem !important; } }

/* ===== PAGE: privacy ===== */
.privacy-content-section {
  background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%);
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: #4A5568;
}

.privacy-content-section .privacy-breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
}

.privacy-content-section .privacy-breadcrumb .breadcrumb-item a {
  color: #005BA1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.privacy-content-section .privacy-breadcrumb .breadcrumb-item a:hover {
  color: #00D1FF;
}

.privacy-content-section .privacy-breadcrumb .breadcrumb-item.active {
  color: #718096;
}

.privacy-content-section .privacy-main-title {
  color: #1A202C;
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

.privacy-content-section .privacy-lead-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4A5568;
}

.privacy-content-section .privacy-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.privacy-content-section .privacy-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 91, 161, 0.2);
}

.privacy-content-section .privacy-card-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(0, 91, 161, 0.1);
  color: #005BA1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1.5rem;
}

.privacy-content-section .privacy-card-heading {
  color: #1A202C;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.privacy-content-section .privacy-card-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.privacy-content-section .privacy-list {
  list-style: none;
  padding: 0;
}

.privacy-content-section .privacy-list li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #4A5568;
}

.privacy-content-section .privacy-list li i {
  color: #00D1FF;
}

.privacy-content-section .privacy-btn-outline {
  background: transparent;
  border: 1px solid #005BA1;
  color: #005BA1;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: none;
}

.privacy-content-section .privacy-btn-outline:hover {
  background: #005BA1;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 91, 161, 0.2);
}

.privacy-content-section .privacy-highlight-box {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-content-section .privacy-iso-img {
  height: 60px;
  width: auto;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.3s ease;
}

.privacy-content-section .privacy-highlight-box:hover .privacy-iso-img {
  filter: grayscale(0) opacity(1);
}

@media (max-width: 768px) {
  .privacy-content-section .privacy-main-title {
    font-size: 1.75rem;
  }
  .privacy-content-section .privacy-card {
    padding: 1.5rem;
  }
  .privacy-content-section .privacy-card-heading {
    font-size: 1.15rem;
  }
  .privacy-content-section .privacy-card-text {
    font-size: 0.95rem;
  }
}

/* ===== PAGE: terms ===== */
.terms-section {
  background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%);
  min-height: 80vh;
}

.terms-section .terms-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.terms-section .icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(0, 91, 161, 0.1);
  color: #005BA1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 50%;
  margin: 0 auto;
}

.terms-section h1 {
  font-weight: 700;
  color: #1A202C;
  letter-spacing: -0.02em;
}

.terms-section h2 {
  color: #005BA1;
  font-weight: 600;
  position: relative;
}

.terms-section .last-updated {
  color: #718096;
  font-weight: 500;
}

.terms-section .custom-list {
  list-style: none;
  padding-left: 0;
}

.terms-section .custom-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.terms-section .custom-list li::before {
  content: "\2022";
  color: #00D1FF;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.terms-section .alert-glass {
  background: rgba(0, 209, 255, 0.05);
  border: 1px solid rgba(0, 209, 255, 0.2);
  color: #4A5568;
  font-style: italic;
}

.terms-section .btn-primary {
  background: #005BA1;
  border: none;
  box-shadow: 0 4px 14px 0 rgba(0, 91, 161, 0.3);
  transition: all 0.3s ease;
}

.terms-section .btn-primary:hover {
  background: #004a82;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(0, 91, 161, 0.4);
}

@media (max-width: 768px) {
  .terms-section h1 {
    font-size: 1.5rem;
  }
  .terms-section h2 {
    font-size: 1.2rem;
  }
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-section { background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%); min-height: 60vh; }.disclaimer-section .glass-card { background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 24px; backdrop-filter: blur(15px); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07); }.disclaimer-section .breadcrumb-item, .disclaimer-section .breadcrumb-item.active { font-size: 0.85rem; color: #718096; }.disclaimer-section h1 { font-weight: 700; letter-spacing: -0.02em; color: #1A202C; }.disclaimer-section h2 { font-weight: 600; color: #005BA1; }.disclaimer-section p, .disclaimer-section li { color: #4A5568; line-height: 1.6; }.disclaimer-section .important-notice { background: rgba(0, 91, 161, 0.05); border-left: 4px solid #005BA1; }.disclaimer-section .ph-bold { vertical-align: middle; }

.comment-card-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.avatar-initials {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #005BA1 0%, #00D1FF 100%);
}

.comment-author {
    color: #1A202C;
    font-weight: 700;
}

.comment-date {
    font-size: 0.85rem;
    color: #718096;
}

.comment-text {
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.btn-comment-action {
    background: transparent;
    border: none;
    color: #005BA1;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-comment-action:hover {
    opacity: 0.7;
}

.reply-card {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    padding: 1.25rem;
    position: relative;
}

.reply-card::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 91, 161, 0.1);
}

.bg-accent-gradient {
    background: linear-gradient(135deg, #00D1FF 0%, #E3F2FD 100%);
    color: #005BA1 !important;
}

.ms-5 {
    margin-left: 3rem !important;
}

@media (max-width: 576px) {
    .ms-5 {
        margin-left: 1.5rem !important;
    }

    .reply-card::before {
        left: -12px;
    }
}


/* ===== PAGE TEMPLATE: diagnostics-list ===== */
.diagnostics-detail-wrapper {
    overflow-x: hidden;
}

.hero-detail-section {
    position: relative;
    padding: 100px 0 60px;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 42, 74, 0.9) 0%, rgba(0, 42, 74, 0.3) 100%);
    z-index: 1;
}

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

.custom-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "/";
}

.custom-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
}

.glass-content-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.content-rich-text h2,
.content-rich-text h3 {
    color: #1A202C;
    font-weight: 700;
}

.content-rich-text p {
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #005BA1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: #005BA1;
    color: #fff;
}

.slider-nav-btn.prev {
    left: 15px;
}

.slider-nav-btn.next {
    right: 15px;
}

.custom-accordion .accordion-button {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    box-shadow: none;
    font-weight: 600;
    padding: 1.25rem;
    color: #1A202C;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: #005BA1;
    background: rgba(227, 242, 253, 0.8);
}

.comment-card-glass {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
}

.avatar-initials {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.bg-primary-gradient {
    background: linear-gradient(45deg, #005BA1, #00D1FF);
}

.bg-accent-gradient {
    background: linear-gradient(45deg, #00D1FF, #E3F2FD);
    color: #005BA1;
}

.comment-date {
    font-size: 0.75rem;
    color: #718096;
}

.btn-comment-action {
    border: none;
    background: transparent;
    color: #718096;
    font-size: 0.85rem;
    margin-right: 1rem;
    transition: color 0.2s;
}

.btn-comment-action:hover {
    color: #005BA1;
}

.glass-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 91, 161, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: #005BA1;
    box-shadow: 0 0 0 0.25rem rgba(0, 91, 161, 0.1);
}

.sidebar-sticky-box {
    position: sticky;
    top: 100px;
}

.glass-card-flow {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.icon-feature {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 91, 161, 0.1);
    color: #005BA1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.btn-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #005BA1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 91, 161, 0.1);
    transition: 0.3s;
}

.btn-share:hover {
    background: #005BA1;
    color: #fff;
    transform: translateY(-2px);
}

.reply-card {
    transform: scale(0.95);
    margin-left: 2rem !important;
}

@media (max-width: 768px) {
    .hero-detail-section {
        padding: 80px 15px 40px;
    }

    .glass-content-card,
    .sidebar-sticky-box .glass-card-flow {
        padding: 1.5rem !important;
    }

    .reply-card {
        margin-left: 1rem !important;
    }
}

/* ===== PAGE TEMPLATE: finas-list ===== */
.detail-page-wrapper {
    background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%);
    min-height: 100vh;
}

.hero-detail {
    position: relative;
    overflow: hidden;
}

.detail-glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.content-rich-text h2 {
    color: #1A202C;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-rich-text p {
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.info-item-glass {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 91, 161, 0.05);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.info-item-glass:hover {
    transform: translateY(-5px);
}

.sidebar-glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
}

.sidebar-title {
    color: #1A202C;
    border-bottom: 2px solid #E3F2FD;
    padding-bottom: 10px;
    font-weight: 600;
}

.sidebar-list a {
    color: #4A5568;
    transition: color 0.3s ease;
    font-weight: 500;
}

.sidebar-list a:hover {
    color: #005BA1;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF;
    border-radius: 12px;
    color: #005BA1;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(0, 91, 161, 0.1);
}

.share-btn:hover {
    background: #005BA1;
    color: #FFF;
    transform: scale(1.1);
}

.comment-card-glass {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.reply-card {
    border-left: 3px solid #005BA1;
}

.avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #005BA1, #00D1FF);
}

.comment-date {
    font-size: 0.8rem;
    color: #718096;
}

.comment-author {
    font-size: 1rem;
    color: #1A202C;
}

.btn-comment-action {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: #718096;
    padding: 0.2rem 0.5rem;
    transition: color 0.2s;
}

.btn-comment-action:hover {
    color: #005BA1;
}

.comment-form-box {
    background: rgba(227, 242, 253, 0.4);
    border: 1px dashed rgba(0, 91, 161, 0.2);
}

.form-control {
    background: #fff !important;
    border-radius: 12px !important;
}

@media (max-width: 768px) {
    .content-rich-text h2 {
        font-size: 1.5rem;
    }

    .hero-detail h1 {
        font-size: 1.8rem;
    }
}

/* ===== PAGE TEMPLATE: cases-list ===== */
.detail-page-wrapper {
    background: linear-gradient(135deg, #F8FAFC 0%, #E0F2F1 100%);
}

.detail-hero {
    position: relative;
    padding: 120px 0 80px;
    background-position: center;
    background-size: cover;
    color: #FFFFFF;
}

.detail-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.detail-hero .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    color: #FFFFFF;
}

.glass-card-main {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.content-body h2 {
    color: #005BA1;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body p {
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
    color: #4A5568;
}

.glass-card-sidebar {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A202C;
    border-bottom: 2px solid rgba(0, 91, 161, 0.1);
    padding-bottom: 0.5rem;
}

.case-link-text {
    color: #4A5568;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.case-link-text:hover {
    color: #005BA1;
}

.category-badge {
    background: #E3F2FD;
    color: #005BA1;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: none;
}

.category-badge:hover {
    background: #005BA1;
    color: #FFFFFF;
}

.btn-share {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #FFFFFF;
    text-decoration: none;
    white-space: nowrap;
}

.btn-facebook {
    background: #1877F2;
}

.btn-twitter {
    background: #1DA1F2;
}

.btn-linkedin {
    background: #0077B5;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: #FFFFFF;
    opacity: 0.9;
}

.comment-card-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.reply-card {
    border-left: 4px solid #00D1FF;
}

.avatar-initials {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.1rem;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #005BA1 0%, #00D1FF 100%);
}

.bg-accent-gradient {
    background: linear-gradient(135deg, #00D1FF 0%, #E3F2FD 100%);
    color: #005BA1;
}

.comment-author {
    font-size: 1rem;
    font-weight: 700;
    color: #1A202C;
}

.comment-date {
    font-size: 0.8rem;
    color: #718096;
}

.comment-text {
    font-size: 0.95rem;
    color: #4A5568;
    line-height: 1.6;
    margin: 0.75rem 0;
}

.btn-comment-action {
    background: none;
    border: none;
    color: #005BA1;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 1rem;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.btn-comment-action:hover {
    opacity: 0.7;
}

.comment-form-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-outline .form-control {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 91, 161, 0.1);
    border-radius: 12px;
}

.form-outline .form-label {
    color: #718096;
}

.form-control:focus~.form-label {
    color: #005BA1 !important;
}

.mehilainen-cta-btn {
    background: #005BA1;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.mehilainen-cta-btn:hover {
    background: #004a82;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 91, 161, 0.3);
}

@media (max-width: 768px) {
    .detail-hero {
        padding: 80px 0 40px;
        text-align: center;
    }

    .detail-hero .hero-title {
        font-size: 1.75rem;
    }

    .detail-hero .hero-subtitle {
        font-size: 1rem;
    }

    .detail-meta {
        justify-content: center;
    }

    .reply-card {
        margin-left: 1.5rem !important;
    }
}

/* --- Form label fix: render label as a static block above the field so it never overlaps typed text --- */
.form-outline {
    display: flex;
    flex-direction: column-reverse;
    position: relative;
}

.form-outline > .form-label,
.form-outline > label.form-label {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 0.45rem 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
    color: #475569 !important;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.form-outline > .form-control {
    padding: 0.7rem 0.95rem !important;
    line-height: 1.5;
}

.form-outline .form-control:focus ~ .form-label,
.form-outline .form-control:focus + .form-label {
    color: #005BA1 !important;
}