@charset "UTF-8";
:root {
    --primary-blue: #0287ca;
    --secondary-blue: #006699;
    --active-blue: #0183c4;
    --very-light-gray: #efefef;
    --pretty-light-gray: #cccccc;
    --light-gray: #999999;
    --medium-gray: #666666;
    --dark-gray: #333333;
    --white: #ffffff;
    --black: #000000;
    --primary-font-color: #777777;
}

/*************************************************************************
 Containers
*************************************************************************/
*, *:before, *:after {  box-sizing: border-box; margin: 0; padding: 0;  }
html {      height:100%; scroll-behavior: smooth; overflow-x: hidden; overflow-y: scroll;  }
body {
    font-size: 80%; /* ( 0.8rem  = 12.8px ) */
    font-family: 'Poppins', sans-serif;
    color: var(--primary-font-color);
    display: flex;  /*enables flex content for its children*/
    height: 100%;
    margin: 0;  /*removes default style*/
    background-image:url(../img/background.jpg);
    background-repeat:repeat;
}
div#wrapper {   position: relative; top: 54px; height: 100%; min-height: 100%;  }
div#top {
    height: 54px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-image:url(../img/top_bar_back.jpg);
    background-repeat:repeat;
    padding: 0;
    z-index: 1000;
}
header {
    display: flex;
    flex-direction: column;  /*places the left and right headers above the bottom content*/
    flex-shrink: 0;  /*makes sure that content is not cut off in a smaller browser window*/
    position: fixed;
    top: 54px;
    left: 0;
    background: var(--secondary-blue);
    height: 100%;  /*allows both columns to span the full height of the browser window*/
    z-index: 1000;
}
main {      display: flex; flex-shrink: 0; align-items: stretch; border-right: 1px solid var(--very-light-gray); background: #ffffff;  }
nav {       flex-grow: 1;   }  /*ensures that the container will take up the full height of the parent container*/
section {   
    flex: 1 0 80%;  
    min-height: 100%;  
    box-sizing: border-box;
    overflow-x: hidden;
}
article {   padding-bottom: 1rem;  }
footer {    margin-bottom: 60px; text-align: center; }

/*******************************************************************************
 BLOG ****************************************************************************
********************************************************************************/
.blog-section,
.blog-detail-section {
    padding: 0 1.5rem 3rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Blog Banner */
.blog-banner {
    position: relative;
    background: #f8f9fa;
    margin: 0 -1.5rem 3rem -1.5rem;
    padding: 4rem 1.5rem;
    overflow: hidden;
}
.blog-banner-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(0,0,0,0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.02) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
    opacity: 0.5;
}
.blog-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.blog-banner-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--dark-gray);
    margin: 0 0 0.5rem 0;
    letter-spacing: 2px;
}
.blog-breadcrumb {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin: 0;
}
.blog-breadcrumb a {
    color: var(--medium-gray);
    text-decoration: none;
}
.blog-breadcrumb a:hover {
    color: var(--primary-blue);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.blog-card-media {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin: 0;
    background: #f0f0f0;
     flex-shrink: 0;
}
.blog-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
        object-position: center;
}
.blog-card:hover .blog-card-media img {
    transform: scale(1.05);
}
.blog-card-media-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    height: 100%;
    position: relative;
}
.blog-card-date-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.blog-card-body {
    padding: 1.75rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.875rem 0;
    line-height: 1.4;
      display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.08em; /* 2 lines × 1.4 line-height × 1.15rem */
}
.blog-card-title a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}
.blog-card-title a:hover {
    color: var(--primary-blue);
}
.blog-card-excerpt {
    font-size: 0.7rem;
    color: var(--medium-gray);
    margin: 0;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
   min-height: 6.72em; /* 6 lines × 1.6 line-height × 0.7rem */
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.blog-page-btn {
    background: var(--white);
    border: 1px solid var(--pretty-light-gray);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.blog-page-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}
.blog-page-number {
    font-weight: 500;
}
.blog-page-arrow {
    font-size: 1.2rem;
    line-height: 1;
}
.blog-page-indicator {
    font-weight: 600;
    color: var(--white);
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.blog-empty {
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    color: var(--medium-gray);
}
.blog-slider-section {
    background: #f6f8fb;
    border-radius: 20px;
    padding: 1.25rem;
    margin-top: 2rem;
    max-width: 100%;
    box-sizing: border-box;
}
.blog-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.blog-slider-view-all {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.blog-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    box-sizing: border-box;
}
.slider-nav {
    background: var(--primary-blue);
    color: var(--white);
    border: 0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.slider-nav[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}
.blog-slider-track {
    flex: 1;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.35rem;
    min-width: 0;
    max-width: 100%;
}
.blog-slide {
    scroll-snap-align: start;
    flex: 0 0 80%;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
    overflow: hidden;
}
@media (min-width: 768px) {
    .blog-slide {
        flex-basis: 45%;
    }
}
.blog-slide-media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.blog-slide-body {
    padding: 1rem 1.1rem 1.25rem 1.1rem;
}
.blog-slide-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--light-gray);
    letter-spacing: 1px;
}
.blog-slide-title {
    font-size: 0.95rem;
    margin: 0.1rem 0;
     text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 2.60em; 
}
.blog-slide-title a {
    color: var(--dark-gray);
    text-decoration: none;
    display: block;
}
.blog-slide-title a:hover {
    color: var(--primary-blue);
}
.blog-slide-date {
    font-size: 0.75rem;
    color: var(--medium-gray);
    margin: 0.5rem 0;
}
.blog-slide-excerpt {
    font-size: 0.8rem;
    color: var(--medium-gray);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 7.68em; /* 6 lines × 1.6 line-height × 0.8rem */
}
/* Blog Detail Grid */
.blog-detail-grid {
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 1024px) {
    .blog-detail-grid {
        grid-template-columns: 2.5fr;
    }
}

/* Blog Article */
.blog-article {
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* Blog Hero with Overlaid Title */
.blog-hero-wrapper {
    margin-bottom: 1.5rem;
}
.blog-hero {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
}
.blog-hero img {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    object-fit: cover;
}
@media (max-width: 768px) {
    .blog-hero img {
        max-height: 400px;
    }
}
@media (max-width: 576px) {
    .blog-hero img {
        max-height: 280px;
    }
}
@media (max-width: 375px) {
    /* iPhone 8 and similar small devices */
    .blog-hero img {
        max-height: 250px;
    }
}
.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
@media (max-width: 768px) {
    .blog-hero-overlay {
        padding: 1.5rem;
    }
}
@media (max-width: 576px) {
    .blog-hero-overlay {
        padding: 1rem;
    }
}
@media (max-width: 375px) {
    /* iPhone 8 and similar small devices */
    .blog-hero-overlay {
        padding: 0.75rem;
    }
}
.blog-hero-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--white);
    margin: 0;
    text-align: center;
    line-height: 1.2;
    font-family: Georgia, serif;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
@media (min-width: 576px) {
    .blog-hero-title {
        font-size: 2rem;
    }
}
@media (min-width: 768px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }
}
@media (min-width: 992px) {
    .blog-hero-title {
        font-size: 3.5rem;
    }
}
.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-top: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--very-light-gray);
}
.blog-hero-meta span {
    color: var(--medium-gray);
}

/* Blog Article Header (when no hero image) */
.blog-article-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--very-light-gray);
}
.blog-article-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--dark-gray);
}

/* Blog Body */
.blog-body {
    margin-top: 2rem;
    font-size: 100%;
    line-height: 1.8;
    color: var(--dark-gray);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    clear: both;
}
.blog-body * {
    max-width: 100%;
    box-sizing: border-box;
}
.blog-body p {
    margin-bottom: 1.25rem;
    clear: both;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.8;
}
.blog-body p:first-child {
    margin-top: 0;
}
.blog-body p:last-child {
    margin-bottom: 0;
}
.blog-body p + p {
    margin-top: 0;
}
.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4,
.blog-body h5,
.blog-body h6 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    clear: both;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.blog-body h1:first-child,
.blog-body h2:first-child,
.blog-body h3:first-child,
.blog-body h4:first-child {
    margin-top: 0;
}
.blog-body h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
}
.blog-body h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--very-light-gray);
    padding-bottom: 0.5rem;
}
.blog-body h3 {
    font-size: 1.5rem;
}
.blog-body h4 {
    font-size: 1.25rem;
}

.blog-body::after {
    content: "";
    display: table;
    clear: both;
}
.blog-body blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--medium-gray);
    clear: both;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.blog-body ul,
.blog-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    clear: both;
    list-style-position: outside;
}
.blog-body ul {
    list-style-type: disc;
}
.blog-body ol {
    list-style-type: decimal;
}
.blog-body ul li,
.blog-body ol li {
    margin-bottom: 0.75rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.7;
    padding-left: 0.5rem;
}
.blog-body ul li:last-child,
.blog-body ol li:last-child {
    margin-bottom: 0;
}
/* Nested lists */
.blog-body ul ul,
.blog-body ol ol,
.blog-body ul ol,
.blog-body ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}
.blog-body ul li a,
.blog-body ol li a {
    display: inline;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}
.blog-body a {
    color: var(--primary-blue);
    text-decoration: underline;
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline;
}
.blog-body a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}
/* Links in paragraphs should wrap properly */
.blog-body p a {
    word-break: break-word;
    overflow-wrap: anywhere;
}
.blog-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    clear: both;
    display: table;
    overflow-x: auto;
}
.blog-body table th,
.blog-body table td {
    padding: 0.75rem;
    border: 1px solid var(--very-light-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.blog-body table th {
    background: #f8f9fa;
    font-weight: 600;
}
.blog-body div {
    clear: both;
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin-bottom: 1rem;
}
.blog-body div:last-child {
    margin-bottom: 0;
}
/* Reset any problematic inline styles from TinyMCE */
.blog-body [style*="position: absolute"],
.blog-body [style*="position:absolute"] {
    position: relative !important;
}
.blog-body [style*="overflow: hidden"],
.blog-body [style*="overflow:hidden"] {
    overflow: visible !important;
}
/* Better spacing for sections */
.blog-body > * + * {
    margin-top: 1.25rem;
}
.blog-body > h1 + *,
.blog-body > h2 + *,
.blog-body > h3 + *,
.blog-body > h4 + * {
    margin-top: 0.75rem;
}
.blog-body strong,
.blog-body b {
    font-weight: 600;
}
.blog-body em,
.blog-body i {
    font-style: italic;
}

/* Blog Post Navigation */
.blog-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--very-light-gray);
}
.blog-nav-prev,
.blog-nav-next {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.blog-nav-prev:hover,
.blog-nav-next:hover {
    background: #e9ecef;
}
.blog-nav-prev {
    text-align: left;
}
.blog-nav-next {
    text-align: right;
}
.blog-nav-label {
    font-size: 0.75rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.blog-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    line-height: 1.4;
}

/* Blog Sidebar */
.blog-aside {
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* Blog Widgets */
.blog-widget {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--very-light-gray);
    border-radius: 8px;
}
.blog-widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-blue);
}

/* Search Widget */
.blog-search-form {
    margin: 0;
}
.blog-search-input-wrapper {
    position: relative;
    display: flex;
}
.blog-search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--pretty-light-gray);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}
.blog-search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}
.blog-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-search-btn:hover {
    color: var(--primary-blue);
}

/* Categories Widget */
.blog-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-categories-list li {
    margin-bottom: 0.75rem;
}
.blog-categories-list li:last-child {
    margin-bottom: 0;
}
.blog-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}
.blog-categories-list a:hover {
    color: var(--primary-blue);
}
.blog-category-count {
    color: var(--medium-gray);
    font-size: 0.85rem;
}

/* Recent Posts Widget */
.blog-aside-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-aside-card {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--very-light-gray);
}
.blog-aside-card:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.blog-aside-image-link {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}
.blog-aside-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-aside-content {
    flex: 1;
    min-width: 0;
}
.blog-aside-title {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.blog-aside-title:hover {
    color: var(--primary-blue);
}
.blog-aside-date {
    font-size: 0.75rem;
    color: var(--medium-gray);
    margin: 0;
}

/*******************************************************************************
 HEADINGS **********************************************************************
********************************************************************************/
h1, h2, h3, h4, h5 {    color: var(--dark-gray);  }
h1 {        font-size: 1.3rem; text-transform: uppercase; font-weight: bold; margin: 2rem 3.5rem 0.5rem 1.5rem; padding-bottom: 0.5rem;  }
h2 {        font-size: 0.9rem; font-weight: bold; border-bottom: 1px solid #eeeeee; margin-top: 1rem; }
h3 {        font-size: 0.8rem; font-weight: bold; margin-top: 1.8rem; border-bottom: 1px solid var(--very-light-gray);  }
h3.news {   color: #db261b;  border-bottom: 1px solid #db261b; text-align: center; font-size: 0.9rem; text-transform: uppercase; margin: 0.85rem 0; letter-spacing: 5px;  }
h4 {        font-size: 1.0rem; font-weight: bold; margin-top: 30px; margin-bottom: 15px; text-align: center;  }
h5 {        font-size: 1.0rem; font-weight: bold; text-align: center; }

a,
a:link,
a:hover,
a:active, 
a:focus {   color: var(--secondary-blue); font-weight: normal; text-decoration: none; font-size: 0.8rem;  }

/*******************************************************************************
 LIST ****************************************************************
********************************************************************************/
ul.content {        margin-left: 1rem; margin-right: 1rem; }
ul.content li {     margin-top: 0.5rem; }

/*******************************************************************************
 MAIN-MENU-LIST ****************************************************************
********************************************************************************/
ul#main_menu {          margin-top: 2rem; }
ul#main_menu li a {     font-size: 0.7rem;  }
ul#main_menu li a.main-link { 
    color: var(--white);
    display: block;
    padding: 0.2rem 0 0.3rem 0.5rem; /* top | right | bottom | left */
    text-transform: uppercase;
}
ul#main_menu li a.active { 
    background: var(--active-blue);
}
a.sub-link {
    flex-wrap: nowrap;
    color: var(--white);
    display: block;
    padding: 0.2rem 0 0.3rem 1.0rem; /* top | right | bottom | left */
}
ul#submenu.open { display: block; }
ul#submenu.close { display: none; }
/*******************************************************************************
 CART **************************************************************************
********************************************************************************/
#cart-badge { margin-left: 0.2rem; margin-right: 0.3rem; font-size: 0.75rem; border: 0; color: var(--black); }
.menu-icon { /* Caludlate filter for SVG icons: https://codepen.io/sosuke/pen/Pjoqqp   */
   filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(211deg) brightness(106%) contrast(102%);
   margin-right: 0.4rem;
}

/*******************************************************************************
 LANGUAGE LINKS ****************************************************************
********************************************************************************/
div#lang_icons_box { margin-top: 1rem;  } /* top/bottom | left/right */
img.langauge-icons { height: 30px; cursor: pointer; margin-right: 0.5rem; }


/*******************************************************************************
 PRODUCT ***********************************************************************
********************************************************************************/
a.product_link,
a.product_link:link,
a.product_link:hover,
a.product_link:active, 
a.product_link:focus {
    color: var(--primary-font-color);
    font-weight: normal;
    text-decoration: none;
    font-size: 0.8rem;
}
.old_price {  
    text-decoration: line-through;
    color: #8d8d8d; 
}
span.discount { color: red; }

/*******************************************************************************
 OTHER *************************************************************************
********************************************************************************/
.remove_item_cart_preview { color: red; cursor: pointer; }
.add_top_margin { margin-top: 3rem; }
.add_xsmall_top_margin { margin-top: 0.4rem;  }

/*******************************************************************************
 FOOTER*************************************************************************
********************************************************************************/
footer p {          font-size: 0.6rem;    }
footer a:link,
footer a:hover,
footer a:active, 
footer a:focus {    font-size: 0.7rem; color: var(--white); text-align: center;  }

/*******************************************************************************
 FORM *************************************************************************
********************************************************************************/
form.checkout_form input {  font-size: 0.5rem; }
input , textarea, select {  padding: 3px;  color: var(--medium-gray) !important; }
textarea {                  resize: none; }

span.explain {              color: var(--light-gray); font-weight: normal;  }
label.pay_label {           font-weight: bold; font-size: 0.7rem;  }
div.div_pay {               margin-top: 10px; }

.error, .important {  color: red;  }
.ok { color: green;  }
.disabled_text { color: red; }
.bold { font-weight: bold;  }

input::-webkit-input-placeholder {      font-size: 0.7rem; color: var(--medium-gray); opacity: 0.5     } /* Chrome/Opera/Safari */
input::-moz-placeholder {               font-size: 0.7rem; color: var(--medium-gray); opacity: 0.5;    } /* Firefox 19+ */
input:-ms-input-placeholder {           font-size: 0.7rem; color: var(--medium-gray); opacity: 0.5;    } /* IE 10+ */
textarea::-webkit-input-placeholder {   font-size: 0.7rem; color: var(--medium-gray); opacity: 0.5;    } /* Chrome/Opera/Safari */
textarea::-moz-placeholder {            font-size: 0.7rem; color: var(--medium-gray); opacity: 0.5;    } /* Firefox 19+ */
textarea:-ms-input-placeholder {        font-size: 0.7rem; color: var(--medium-gray); opacity: 0.5;    } /* IE 10+ */

/*******************************************************************************
 IMAGE *************************************************************************
********************************************************************************/
img#logo {          height: 54px; width: auto; }
img#ex_logo {       height: 54px; }
img.center {        display: block; margin-left: auto; margin-right: auto;  }
img#start_image {   width: 100%; height: auto;  }
img#news_product {  max-width: 360px; width: 100%; height: auto;  }

/*******************************************************************************
 EFFECTS ***********************************************************************
********************************************************************************/
.light-shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.shadow {  box-shadow: 0 .5rem 1rem rgba(0,0,0,.35) !important;  }
.round-corners { border-radius: 25px; }
.small-round-corners { border-radius: 15px;   }

/*******************************************************************************
 LINES ***********************************************************************
********************************************************************************/
.gray-top-line { border-top: 1px solid var(--very-light-gray); }
.fat-gray-line {   border-bottom: 3px solid var(--very-light-gray);  }

/*******************************************************************************
 BUTTONS ***********************************************************************
********************************************************************************/
.btn-ss {       padding: .35rem .6rem; font-size: .725rem; line-height: .6; border-radius: .25rem;  }
.btn-xs {       padding: .25rem .4rem; font-size: .875rem; line-height: .5; border-radius: .2rem;   }
.btn-primary {  background: var(--primary-blue); }
.btn-primary:hover, .btn-primary:focus  { background: var(--secondary-blue);  }




/*******************************************************************************
 GENERIC TABLE ****************************************************************
********************************************************************************/
table { width: 100%; }

/*******************************************************************************
 PRODUCTS TABLE ****************************************************************
********************************************************************************/
img.product_list_image {                width: 100px; height: auto; margin: 0.5rem; }
table#table_products tr {               border-bottom: 1px solid var(--very-light-gray);  }
table#table_products td {               background: var(--white); vertical-align: top; text-align: left;  }
table#table_products td.product_image { width: 100px; vertical-align: middle; }
table#table_products td.product_price { width: 200px;  }
table#table_products td p {             padding: 0.5rem; }

img.product_item_image {    width: 100%; max-width: 350px; height: auto; max-height: 350px;   }
table#table_product_item {  width: 100%; margin-bottom: 1rem; border-bottom: 3px solid var(--very-light-gray); }
table#table_product_item td.td_product_item_image { width: 40%; vertical-align: text-top; padding-top: 0.5rem; }
table#table_product_item td.td_product_item_info { width: 60%;  vertical-align: top; padding: 0.5rem 0.5rem 0.5rem 0.5rem; }

/*******************************************************************************
 CART TABLE ********************************************************************
********************************************************************************/
img.cart_product_image { max-width: 50px; max-height: 50px; margin-right: 1rem; }
.remove_item_cart_preview       { border: 1px solid white;  }
.remove_item_cart_preview:hover { border: 1px solid pink;   }
table#table_cart tr {       border-bottom: 1px solid #dddddd;      }
table#table_cart tr th {    background: var(--very-light-gray); border-bottom: 1px solid var(--pretty-light-gray); color: #444444;  }
table#table_cart tr td {    color: var(--dark-gray);  border: 0; }

table#table_cart tr th.td_cart_product { padding: 0 0 0 0.6rem; margin: 0;  text-align: left;  vertical-align: middle; height: 30px; }

table#table_cart tr  th.td_cart_price,
table#table_cart tr  th.td_cart_input_number,
table#table_cart tr  th.td_cart_space,
table#table_cart tr  th.td_cart_total_price { padding: 0; margin: 0; text-align: center;  vertical-align: middle; height: 30px; }

table#table_cart tr td.td_cart_product            {   height: 50px; width: auto;   }

table#table_cart tr td.td_cart_price           {   height: 50px; max-width: 100px; vertical-align: middle; text-align: center;  }
table#table_cart tr td.td_cart_input_number    {   height: 50px; min-width: 80px; max-width: 80px; width: 80px; vertical-align: middle; text-align: center; flex-shrink: 0;  }
table#table_cart tr td.td_cart_space           {   height: 50px; width: 50px; max-width: 50px; vertical-align: middle; text-align: center;  }
table#table_cart tr td.td_cart_total_price     {   height: 50px; max-width: 100px; vertical-align: middle; text-align: center; }

table#table_cart tr  td.td_cart_right  {    height: 30px; vertical-align: middle !important;  text-align: right; }
table#table_cart tr  td.td_cart_middle {    height: 30px;  vertical-align: middle !important;  text-align: center; background: #eeeeee; font-weight: 600; }

/*******************************************************************************
 CART SUB TABLE ********************************************************************
********************************************************************************/
table#table_cart_subtable tr { background: #fcfcfc; }
table#table_cart_subtable caption { caption-side: top; font-weight: 600; }
table#table_cart_subtable tr td { border: 1px solid var(--pretty-light-gray);  padding: 0.5rem;   }
table#table_cart_subtable tr td.left { width: 30%; }
table#table_cart_subtable tr td.right { width: 70%; }
table#table_cart_subtable tr td.no_border_background { border: 0; background: none; }

/*******************************************************************************
 CHECKOUT TABLE ****************************************************************
********************************************************************************/
table#table_checkout thead {        background: #f8f9fb;       }
table#table_checkout thead tr {     border-bottom: 1px solid #dddddd;       }
table#table_checkout thead tr th {  padding: 5px; color: var(--black);   }
table#table_checkout tbody {            background: var(--very-light-gray);      }
table#table_checkout tbody tr {         border-bottom: 1px solid #dddddd;     }
table#table_checkout tbody tr.no_line { border-bottom: 0; background: #f8f9fb;     }
table#table_checkout tbody tr td {      padding: 5px; color: var(--dark-gray); font-size: 0.7rem;    }
td.payment { background: #f8f9fb;  }

/*******************************************************************************
 SPINNER ***********************************************************************
********************************************************************************/
input[type=number] {
    float: left;
    width: 24px;
    height: 20px;
    padding: 0;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    border: 0;
    background: none;
    outline: none;
    pointer-events: none;
    background: var(--very-light-gray);
}
span.spinner {
    /* position: relative; */
    height: 21px;
    /* No-Select functionality */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}
span.spinner > .sub {
    float: left;
    display: block;
    width: 20px;
    height: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8em;
    line-height: 20px;
    color: var(--white);
    background: var(--primary-blue);
    border: 0;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
}

span.spinner > .add {
    float: left;
    display: block;
    width: 20px;
    height: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8em;
    line-height: 20px;
    color: var(--white);
    background: var(--primary-blue);
    border: 0;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
span.spinner > .sub:hover,
span.spinner > .add:hover {      background: var(--secondary-blue);     }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {      -webkit-appearance: none;  }
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {      -webkit-appearance: none; margin: 0;  }
/* Firefox */
input[type=number] {            -moz-appearance: textfield;  }
/********************************************************************************************/
/********************************************************************************************/
/* MOBILE FIRST */
/********************************************************************************************/
/********************************************************************************************/
/* Extra small devices (portrait phones, less than 576px), No media query for `xs` since this is the default in Bootstrap */
#wrapper {  width: 400px; left: 170px;     }
header { width: 170px; }
span#lang_icons_box {  padding-left: 1rem; }
article {  margin: 0 0.2rem;  }

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    #wrapper {  width: 400px; left: 170px;     }
    header { width: 170px; }
    span#lang_icons_box {  padding-left: 20rem; }
    article {  margin: 0 0.4rem;  }
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    #wrapper {  width: 570px; left: 190px;      }
    header { width: 190px; }
    span#lang_icons_box {  padding-left: 26rem; }
    article {  margin: 0 0.8rem;  }
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    #wrapper {  width: 780px; left: 200px;     }
    header { width: 200px; }
    span#lang_icons_box {  padding-left: 32rem; }
    article {  margin: 0 1.2rem;  }
}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    #wrapper {  max-width: 800px; left: 200px;         }
    header { width: 200px;   }
    span#lang_icons_box {  padding-left: 38rem; }
    article {  margin: 0 1.5rem;  }
}