/*
Theme Name: Appel
Theme URI: http://underscores.me/
Author: iDepTrai
Author URI: https://ideptrai.com/
Description: Description
Version: 1.0.16
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: appel
*/

:root {
    --bs-body-color: #4D4D4D;
}

.header__pic {
    height: 255px;
}

.offcanvas-body {
    --bs-offcanvas-padding-x: 0.5rem;
}

.table {
    --bs-table-color: var(--bs-body-color);
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-striped-bg: #F0F0F0;
    --bs-table-hover-color: #fff;
    --bs-table-hover-bg: #8BA05E;
}
.table-striped {
    --bs-table-bg: #E0E0E0;
}

.table a {
    display: block;
    color: inherit;
}

.table ul {
    padding-left: 1rem;
    margin-bottom: 0;
}

.table-bordered a {
    color: #dc3545;
    font-weight: bold;
}
.table-bordered a:hover {
    text-decoration: none;
}

.table-sm {
    font-size: 1rem;
}

.table-striped td {
    border-right: 1px solid #fff;
}

.table-striped td:last-child {
    border-right: none;
}

.breadcrumbs__link, .entry-content a {
    text-decoration: none;
}
.breadcrumbs__link:hover, .entry-content a:hover {
    text-decoration: underline;
}

.btn__up {
    opacity: 0.75;
    transition: all 0.3s ease;
}
.btn__up:hover {
    opacity: 1;
}

.sub__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 100vh;
    background-color: #00618b;
}
.sub__menu.is-active {
    display: block;
}

.sub__menu .nav .nav-item {
    width: 50%;
    border-left: 1px solid #6293b4;
}

.sub__menu .nav .nav-item .nav-link:hover {
    background-color: #8BA05E;
}

@media (min-width: 0) and (max-width: 767px) {
    .dropdown-toggle.show {
        background-color: #00618b;
    }

    .dropdown-menu {
        background: #00618b;
        border-radius: 0;
        border: 0;
    }

    .dropdown-item {
        white-space: normal;
        color: #fff;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .sub__menu .nav .nav-item:nth-child(odd) {
        width: 45%;
    }
    .sub__menu .nav .nav-item:nth-child(even) {
        width: 55%;
    }
}

@media (min-width: 768px) {
    .dropdown-menu.show {
        display: none !important;
    }
}

/* Custom styles for product pages - Article content styling */
article .entry-content,
article .model-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bs-body-color);
}

article .entry-content h1,
article .entry-content h2,
article .entry-content h3,
article .entry-content h4,
article .entry-content h5,
article .entry-content h6,
article .model-description h1,
article .model-description h2,
article .model-description h3,
article .model-description h4,
article .model-description h5,
article .model-description h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #fff;
}

article .entry-content h1,
article .model-description h1 {
    font-size: 2rem;
    border-bottom: 2px solid #8BA05E;
    padding-bottom: 0.5rem;
}

article .entry-content h2,
article .model-description h2 {
    font-size: 1.75rem;
    color: #00618b;
}

article .entry-content h3,
article .model-description h3 {
    font-size: 1.5rem;
    color: #00618b;
}

article .entry-content p,
article .model-description p {
    margin-bottom: 1.25rem;
    text-align: left;
}

article .entry-content ul,
article .entry-content ol,
article .model-description ul,
article .model-description ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

article .entry-content li,
article .model-description li {
    margin-bottom: 0.5rem;
}

article .entry-content strong,
article .entry-content b,
article .model-description strong,
article .model-description b {
    font-weight: 600;
    color: #000;
}

article .entry-content em,
article .entry-content i,
article .model-description em,
article .model-description i {
    font-style: italic;
}

article .entry-content blockquote,
article .model-description blockquote {
    background: #f8f9fa;
    border-left: 4px solid #8BA05E;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

article .entry-content img,
article .model-description img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

article .entry-content figure,
article .model-description figure {
    margin: 1.5rem 0;
    text-align: center;
}

article .entry-content figcaption,
article .model-description figcaption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Model description styling - Container specific styles */
/* article .model-description {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 2rem;
} */

/* Override specific heading styles for model description to ensure brand colors */
article .model-description h1,
article .model-description h2,
article .model-description h3,
article .model-description h4,
article .model-description h5,
article .model-description h6 {
    color: #00618b !important; /* Ensure brand color override */
}

article .model-description h1:first-child,
article .model-description h2:first-child,
article .model-description h3:first-child,
article .model-description h4:first-child,
article .model-description h5:first-child,
article .model-description h6:first-child {
    margin-top: 0;
}

/* Technical specifications styling */
article .entry-content,
article .model-description {
    overflow-x: auto;
}

article .entry-content table,
article .model-description table {
    width: 100%;
    min-width: 600px; /* Minimum width to ensure readability */
    border-collapse: collapse;
    background: #fff;
    overflow: hidden;
/*     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    border: 1px solid #e9ecef;
    display: table; /* Ensure table behavior */
    color: #000;
}

article .entry-content table th,
article .model-description table th {
    background: #00618b;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #0056b3;
}

article .entry-content table td,
article .model-description table td {
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    vertical-align: top;
}


article .model-description table tbody td {
    border: 1px solid #e9ecef;
	font-size: 0.85rem
}

article .model-description table tbody td a {
    white-space: nowrap;
}

/* Product links styling in tables */
article .entry-content table a,
article .model-description table a {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

article .entry-content table a:hover,
article .model-description table a:hover {
    color: #b02a37;
    text-decoration: underline;
}

/* Zebra striping for data rows */
article .model-description table tr:nth-child(n+3):nth-child(odd) {
    background: #fff;
}

article .model-description table tr:nth-child(n+3):nth-child(even) {
    background: #fff;
}

/* Empty row styling */
article .model-description table tr td:empty,
article .model-description table tr td:contains("&nbsp;") {
    background: #e9ecef;
    height: 0.5rem;
    padding: 0.25rem;
}

/* Entry content table styling */
article .entry-content table tr:nth-child(odd) {
    background: #f8f9fa;
}

article .entry-content table tr:nth-child(even) {
    background: #fff;
}

/* Table cell content styling */
article .entry-content table td ul,
article .model-description table td ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

article .entry-content table td li,
article .model-description table td li {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Scrollable table enhancements */
article .entry-content::-webkit-scrollbar,
article .model-description::-webkit-scrollbar {
    height: 8px;
}

article .entry-content::-webkit-scrollbar-track,
article .model-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

article .entry-content::-webkit-scrollbar-thumb,
article .model-description::-webkit-scrollbar-thumb {
    background: #00618b;
    border-radius: 4px;
}

article .entry-content::-webkit-scrollbar-thumb:hover,
article .model-description::-webkit-scrollbar-thumb:hover {
    background: #004a73;
}

/* Table wrapper for better mobile experience */
@media (max-width: 991px) {
    article .entry-content table,
    article .model-description table {
        min-width: 800px; /* Wider minimum on smaller screens */
    }
}

@media (max-width: 767px) {
    article .entry-content table,
    article .model-description table {
        min-width: 700px; /* Maintain readability on mobile */
        font-size: 0.9rem;
    }
    
    /* Add scroll hint shadow */
    /*article .entry-content,*/
    /*article .model-description {*/
    /*    position: relative;*/
    /*}*/
    
    article .entry-content::after,
    article .model-description::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to left, rgba(0, 97, 139, 0.1), transparent);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    article .entry-content:hover::after,
    article .model-description:hover::after {
        opacity: 1;
    }
}

/* Image collection styling enhancement */
article .image-collection {
    margin: 2rem 0;
}

article .image-collection img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

article .image-collection img:hover {
    transform: scale(1.02);
}

/* Responsive improvements */
@media (max-width: 767px) {
    article .entry-content,
    article .model-description {
        font-size: 0.95rem;
    }
    
    article .entry-content h1,
    article .model-description h1 {
        font-size: 1.75rem;
    }
    
    article .entry-content h2,
    article .model-description h2 {
        font-size: 1.5rem;
    }
    
    article .entry-content h3,
    article .model-description h3 {
        font-size: 1.25rem;
    }
    
    article .entry-content p,
    article .model-description p {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    article .model-description {
        margin-top: 1.5rem;
    }
    
    article .entry-content table th,
    article .entry-content table td,
    article .model-description table th,
    article .model-description table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    article .model-description table tr:first-child td,
    article .model-description table tr:nth-child(2) td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    article .entry-content blockquote,
    article .model-description blockquote {
        padding: 0.75rem 1rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    article .entry-content h1,
    article .entry-content h2,
    article .entry-content h3,
    article .entry-content h4,
    article .entry-content h5,
    article .entry-content h6,
    article .model-description h1,
    article .model-description h2,
    article .model-description h3,
    article .model-description h4,
    article .model-description h5,
    article .model-description h6 {
        margin-top: 1.5rem;
    }
    
    article .model-description {
        padding: 0.75rem;
    }
    
    article .entry-content table,
    article .model-description table {
        font-size: 0.85rem;
        margin: 1rem 0;
    }
    
    article .entry-content table th,
    article .entry-content table td,
    article .model-description table th,
    article .model-description table td {
        padding: 0.4rem;
    }
    
    article .model-description table tr:first-child td,
    article .model-description table tr:nth-child(2) td {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
} 