/**
 * Templates CSS
 *
 * Consolidated inline styles from all template files.
 * Organized by: Common → Products → Blog → Pages → Search → Front Page
 */

/* ============================================
   COMMON / SHARED STYLES
   ============================================ */

/* Cross-browser consistency (Safari fix) */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Header / Navbar - consistent across browsers */
.tj-header-area .header-wrapper {
    min-height: 80px;
}

/* Center mainmenu between logo and right-info */
.tj-header-area.header-7 .site-logo {
    flex: 1;
}

.tj-header-area.header-7 .mainmenu {
    flex: 0 1 auto;
}

.tj-header-area.header-7 .header_right_info {
    flex: 1;
    justify-content: flex-end;
}

.tj-header-area .mainmenu ul > li > a {
    font-size: 16px;
    line-height: 1;
    padding: 32px 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tj-header-area .site-logo .logo img {
    height: auto;
    max-height: 70px;
    width: auto;
}

/* Page Header */
.tj-page-header {
    position: relative;
    min-height: 250px;
}

.tj-page-header-content {
    padding: 0;
}

.tj-page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tj-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tj-page-link span {
    color: white;
    font-size: 16px;
}

.tj-page-link a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tj-page-link a:hover {
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    border: 2px dashed #ddd;
}

.empty-state .empty-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
}

/* Pagination */
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 8px;
    background: #fff;
    color: #051229;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #0070f3;
    color: #fff;
}

/* Blog Card - Image Aspect Fill (shared across templates) */
.tj-blog-section .blog-item .blog-images,
.h7-blog-wrapper .blog-item .blog-images,
.blog-archive-wrapper .blog-images {
    aspect-ratio: 1 / 1;
    min-height: auto !important;
}

.tj-blog-section .blog-item .blog-images img,
.h7-blog-wrapper .blog-item .blog-images img,
.blog-archive-wrapper .blog-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog Card - Title Clamp (max 2 lines) */
.tj-blog-section .blog-item .blog-content .blog-title.blog-title-clamp,
.tj-blog-section .blog-item .blog-content .blog-title.blog-title-clamp a,
.tj-blog-section .blog-item:first-child .blog-content .blog-title.blog-title-clamp,
.tj-blog-section .blog-item:first-child .blog-content .blog-title.blog-title-clamp a,
.h7-blog-wrapper .blog-item .blog-content .blog-title.blog-title-clamp,
.h7-blog-wrapper .blog-item .blog-content .blog-title.blog-title-clamp a,
.h7-blog-wrapper .blog-item:first-child .blog-content .blog-title.blog-title-clamp,
.h7-blog-wrapper .blog-item:first-child .blog-content .blog-title.blog-title-clamp a,
.blog-archive-wrapper .blog-item .blog-content .blog-title.blog-title-clamp,
.blog-archive-wrapper .blog-item .blog-content .blog-title.blog-title-clamp a,
.blog-archive-wrapper .blog-item:first-child .blog-content .blog-title.blog-title-clamp,
.blog-archive-wrapper .blog-item:first-child .blog-content .blog-title.blog-title-clamp a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Blog Card - Description Clamp (max 3 lines) */
.tj-blog-section .blog-item .blog-content .desc.blog-desc-clamp,
.tj-blog-section .blog-item:first-child .blog-content .desc.blog-desc-clamp,
.h7-blog-wrapper .blog-item .blog-content .desc.blog-desc-clamp,
.h7-blog-wrapper .blog-item:first-child .blog-content .desc.blog-desc-clamp,
.blog-archive-wrapper .blog-item .blog-content .desc.blog-desc-clamp,
.blog-archive-wrapper .blog-item:first-child .blog-content .desc.blog-desc-clamp {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 4.8em !important;
    line-height: 1.6 !important;
}

/* CTA Buttons */
.btn-cta-primary {
    background: white;
    color: #051229;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #051229;
}

.btn-cta-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid white;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta-secondary:hover {
    background: white;
    color: #051229;
    transform: translateY(-3px);
}

/* ============================================
   PRODUCTS - ARCHIVE (Categories)
   ============================================ */

/* Category Card */
.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 280px;
    max-width: 334px;
    margin: 0 auto;
    border: 1px solid rgba(0,112,243,0.1);
    position: relative;
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.category-image-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
}


.category-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(16,71,129,0.95), rgba(16,71,129,0.8));
    padding: 1.5rem;
    z-index: 2;
    transition: all 0.4s ease;
}

.category-title-overlay h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-description-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16,71,129,0.95), rgba(16,71,129,0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem 1.8rem 0.8rem 1.8rem;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.4s ease;
    z-index: 10;
    pointer-events: none;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
}

.category-description-overlay p {
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.95);
    margin: 0 0 0.8rem 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-weight: 400;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.hover-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    padding: 0.6rem 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hover-arrow span {
    font-size: 0.88rem;
}

.hover-arrow svg {
    transition: all 0.3s ease;
}

/* Category Card Hover */
.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,112,243,0.25);
}

.category-card:hover .category-img {
    transform: scale(1.15);
    filter: brightness(0.3);
}

.category-card:hover .category-title-overlay {
    opacity: 0;
    transform: translateY(20px);
}

.category-card:hover .category-description-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.category-description-overlay:hover .hover-arrow {
    transform: translateX(5px);
}

.category-description-overlay:hover svg {
    transform: scale(1.1);
}

.category-card:focus-within {
    outline: 2px solid #0070f3;
    outline-offset: 2px;
}

/* ============================================
   PRODUCTS - SINGLE
   ============================================ */

/* CSS Variables Fallback */
:root {
    --tj-color-theme-primary: #0075ff;
    --tj-color-heading-primary: #051229;
    --tj-color-text-body: #364052;
    --tj-color-text-body-2: #7e8590;
    --tj-color-common-white: #f7f7f7;
    --tj-color-common-black: #000000;
    --tj-color-theme-primary-light: rgba(0, 117, 255, 0.1);
}

.product-detail-section {
    padding-top: 80px;
    background-color: #f9f9f9;
}

/* Gallery */
.product-gallery {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.main-image-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    height: 450px;
}

.product-image-placeholder {
    width: 100%;
    height: 450px;
    background-color: #e0e0e0 !important;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    background-color: #fff;
    border: 1px solid #e9ecef;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #0075ff;
    box-shadow: 0 0 10px rgba(0, 117, 255, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info-wrapper {
    padding-left: 20px;
}

.product-info .product-category {
    display: inline-block;
    background-color: rgba(0, 117, 255, 0.1);
    color: #0075ff;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-info .product-category:hover {
    background-color: #0075ff;
    color: white;
}

/* Product Tabs */
.product-tabs-right {
    margin-top: 20px;
}

.product-tabs-right .nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.product-tabs-right .nav-tabs .nav-item .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-weight: 600;
    padding: 10px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: transparent;
}

.product-tabs-right .nav-tabs .nav-item .nav-link.active,
.product-tabs-right .nav-tabs .nav-item .nav-link:hover {
    color: #0075ff;
    border-bottom-color: #0075ff;
    background-color: transparent;
}

.product-tabs-right .tab-content {
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.product-detail-section .product-tabs-right .tab-content p {
    color: #555;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.product-detail-section .product-tabs-right .tab-content .product-description {
    color: #555;
    line-height: 1.8;
    font-size: 14px;
}

/* Product Description Headings */
.product-detail-section .product-description h1,
.product-detail-section .product-description h2,
.product-detail-section .product-description h3,
.product-detail-section .product-description h4,
.product-detail-section .product-description h5,
.product-detail-section .product-description h6 {
    margin: 0.8em 0 8px;
    color: #333;
}

.product-detail-section .product-description h1:first-child,
.product-detail-section .product-description h2:first-child,
.product-detail-section .product-description h3:first-child,
.product-detail-section .product-description h4:first-child,
.product-detail-section .product-description h5:first-child,
.product-detail-section .product-description h6:first-child,
.product-detail-section .product-description > p:empty:first-child + h1,
.product-detail-section .product-description > p:empty:first-child + h2,
.product-detail-section .product-description > p:empty:first-child + h3,
.product-detail-section .product-description > p:empty:first-child + h4,
.product-detail-section .product-description > p:empty:first-child + h5,
.product-detail-section .product-description > p:empty:first-child + h6 {
    margin-top: 0;
}

.product-detail-section .product-description > p:first-child:empty {
    display: none;
}

.product-detail-section .product-description h1 { font-size: 40px; }
.product-detail-section .product-description h2 { font-size: 32px; }
.product-detail-section .product-description h3 { font-size: 24px; }
.product-detail-section .product-description h4 { font-size: 20px; }
.product-detail-section .product-description h5 { font-size: 18px; }
.product-detail-section .product-description h6 { font-size: 16px; }

.product-detail-section .product-description ul,
.product-detail-section .product-description ol {
    padding-left: 20px;
}

/* Product Table */
.product-tabs-right .tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.product-tabs-right .tab-content table thead {
    background-color: #28a745;
}

.product-tabs-right .tab-content table thead th {
    color: #fff;
    font-weight: 600;
    padding: 12px 15px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #1e7e34;
}

.product-tabs-right .tab-content table tbody td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #dee2e6;
    font-size: 14px;
}

.product-tabs-right .tab-content table tbody tr:first-child td {
    font-weight: 600;
    background-color: #f8f9fa;
}

.product-tabs-right .tab-content table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.product-tabs-right .tab-content table tbody tr:hover {
    background-color: #e9ecef;
}

/* Product Features List */
.product-tabs-right .tab-content .tj-check-list ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.product-tabs-right .tab-content .tj-check-list li {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #555;
}

.product-tabs-right .tab-content .tj-check-list i {
    color: #0075ff;
    margin-right: 10px;
}

/* ============================================
   PRODUCTS - TAXONOMY (Category Archive)
   ============================================ */

/* Product Grid Card */
.product-grid-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,112,243,0.05);
}

.product-grid-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-grid-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-grid-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.product-grid-card .product-grid-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: #364052;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    word-break: keep-all;
}

.product-grid-content {
    padding: 1.25rem;
    overflow: hidden;
}

.product-grid-content .view-details {
    color: #0070f3;
    font-weight: 500;
    font-size: 0.85rem;
}

.product-grid-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,112,243,0.15);
}

.product-grid-card:hover img {
    transform: scale(1.05);
}

/* Browse Button */
.btn-browse {
    background: #0070f3;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-browse:hover {
    background: #005bb5;
    color: white;
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #051229;
    margin-bottom: 2rem;
    text-align: center;
}

#faqAccordion {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-accordion-item {
    background: #ffffff;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
}

.faq-accordion-item:last-child {
    border-bottom: none !important;
}

.faq-accordion-button {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    background: #ffffff !important;
    padding: 1.5rem 1.5rem;
    box-shadow: none !important;
}

.faq-accordion-button:not(.collapsed) {
    color: #1a202c;
    background: #ffffff !important;
}

.faq-accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23999'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.faq-accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   BLOG - SINGLE POST
   ============================================ */

.blog-single-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.blog-single-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.blog-single-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-single-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

.blog-single-hero .container {
    max-width: 900px;
}

.blog-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.blog-single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.blog-single-meta .category {
    background: var(--tj-color-theme-primary, #0056b3);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-single-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

/* Blog Content */
.blog-single-content {
    padding: 80px 0;
    background: #fff;
}

.blog-single-content .container {
    max-width: 800px;
}

.blog-single-body {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.blog-single-body p {
    margin-bottom: 1.5em;
}

.blog-single-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: #1a1a1a;
}

.blog-single-body h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    color: #1a1a1a;
}

.blog-single-body h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

.blog-single-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

.blog-single-body ul,
.blog-single-body ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.blog-single-body li {
    margin-bottom: 0.5em;
}

.blog-single-body blockquote {
    position: relative;
    border-left: none;
    background: #f0f4f8;
    padding: 30px 30px 30px 80px;
    margin: 2em 0;
    font-style: italic;
    color: #555;
    border-radius: 8px;
}

.blog-single-body blockquote::before {
    content: "\e90e";
    position: absolute;
    left: 20px;
    top: 25px;
    font-family: "solvior-icons" !important;
    font-size: 40px;
    color: var(--tj-color-theme-primary, #0056b3);
    line-height: 1;
    opacity: 0.3;
}

.blog-single-body a {
    color: var(--tj-color-theme-primary, #0056b3);
    text-decoration: underline;
}

.blog-single-body a:hover {
    text-decoration: none;
}

/* Blog Share & Navigation */
.blog-single-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-share-label {
    font-weight: 600;
    color: #333;
}

.blog-share-links {
    display: flex;
    gap: 10px;
}

.blog-share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    transition: all 0.3s ease;
}

.blog-share-links a:hover {
    background: var(--tj-color-theme-primary, #0056b3);
    color: #fff;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-back-link:hover {
    color: var(--tj-color-theme-primary, #0056b3);
}

/* ============================================
   BLOG - ARCHIVE
   ============================================ */

.blog-archive-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 180px 0 80px;
    text-align: center;
}

.blog-archive-hero .sub-title {
    color: var(--tj-color-theme-primary, #0056b3);
}

.blog-archive-hero .sec-title {
    color: #fff;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.blog-pagination a:hover {
    background: var(--tj-color-theme-primary, #0056b3);
    color: #fff;
}

.blog-pagination span.current {
    background: var(--tj-color-theme-primary, #0056b3);
    color: #fff;
}

.blog-pagination span.dots {
    background: transparent;
    box-shadow: none;
}

.blog-no-posts {
    text-align: center;
    padding: 60px 20px;
}

.blog-no-posts h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.blog-no-posts p {
    color: #666;
}

/* ============================================
   PAGES - PRODUCTS
   ============================================ */

/* Products archive - remove dark overlay on hero image */
.post-type-archive-product .tj-page-header::before {
    display: none;
}

/* ============================================
   PAGES - ABOUT
   ============================================ */

/* About page - Hero */
.page-template-page-about .tj-page-header {
    min-height: 300px;
    display: flex;
    align-items: center;
    background-color: #061129;
}

/* About page - all sections use same background */
.tj-about-info,
.tj-feature-section,
.tj-team-area,
.tj-brand-section-two {
    background-color: var(--tj-color-common-white);
}

.tj-skill-section {
    background-color: var(--tj-color-common-white);
    min-height: 742px;
    padding-top: 0;
    padding-bottom: 350px;
    display: flex;
    align-items: flex-end;
}

.tj-skill-section .container {
    width: 100%;
}

.tj-feature-section .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.tj-feature-section .feature-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.tj-feature-section .feature-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tj-feature-section .feature-content .desc {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.tj-feature-section .feature-content .desc p {
    margin-bottom: 0;
    line-height: 1.6;
}

.tj-feature-section .feature-icon {
    margin-bottom: 25px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.tj-feature-section .feature-content .title {
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* Case Study Slider */
.h7-case-study-slider .h5-case-study-item .case-study-content {
    transform: translateY(0) !important;
    opacity: 1 !important;
    left: auto;
}

.h7-case-study-slider .h5-case-study-item-inner::after {
    height: 100% !important;
    opacity: 0.8 !important;
}

.h7-case-study-slider .h5-case-study-item-inner::before {
    opacity: 0 !important;
}

/* ============================================
   PAGES - CONTACT
   ============================================ */

/* Map Variables */
:root {
    --map-bg: #f8f9fa;
    --map-card-bg: #ffffff;
    --map-border: #e9ecef;
    --map-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.map-section {
    padding: 80px 0;
    background: var(--map-bg);
}

.branch-info-panel {
    background: var(--map-card-bg);
    padding: 30px;
    border-radius: 12px;
    height: 700px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--map-border);
    box-shadow: var(--map-shadow);
}

.branch-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--map-border);
    padding-bottom: 15px;
}

.branch-list li {
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-list li i {
    color: var(--tj-color-theme-primary, #234982);
}

.branch-list li:hover {
    background: rgba(35, 73, 130, 0.1);
    color: var(--tj-color-theme-primary, #234982);
}

.branch-list li.active {
    background: var(--tj-color-theme-primary, #234982);
    color: white;
}

.branch-list li.active i {
    color: white;
}

.branch-details {
    flex-grow: 1;
}

.branch-details h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--tj-color-heading-primary, #0a2540);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 15px;
}

.detail-item i {
    color: var(--tj-color-theme-primary, #234982);
    margin-top: 4px;
}

.detail-item p {
    margin: 0;
    color: var(--tj-color-text-body, #7b8893);
}

.detail-item strong {
    color: var(--tj-color-heading-primary, #0a2540);
}

#contactMap {
    height: 700px;
    border-radius: 12px;
    border: 1px solid var(--map-border);
    box-shadow: var(--map-shadow);
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 15px;
    font-size: 14px;
    font-weight: 600;
}

/* Contact Form */
.tj-contact-section {
    position: relative;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.heading-block {
    padding-right: 40px;
}

.section-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: var(--tj-color-theme-primary, #234982);
    border-radius: 50%;
}

.section-indicator h4 {
    color: var(--tj-color-theme-primary, #234982);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.heading-block h3 {
    color: var(--tj-color-heading-primary, #0a2540);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.contact-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.modern-form {
    display: block;
}

.form-field {
    margin-bottom: 32px;
}

.form-field label {
    color: var(--tj-color-heading-primary, #0a2540);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: block;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0;
    font-size: 16px;
    color: var(--tj-color-heading-primary, #0a2540);
    background: transparent !important;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: none !important;
}

.form-field input:focus,
.form-field textarea:focus {
    border-bottom: 1px solid var(--tj-color-heading-primary, #0a2540) !important;
    box-shadow: none !important;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    margin-top: 16px;
}

.submit-button {
    background: transparent !important;
    color: var(--tj-color-heading-primary, #0a2540);
    border: none !important;
    border-bottom: 2px solid var(--tj-color-heading-primary, #0a2540) !important;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: auto;
    display: inline-block;
    box-shadow: none !important;
}

.submit-button:hover {
    color: var(--tj-color-theme-primary, #234982);
    border-bottom-color: var(--tj-color-theme-primary, #234982) !important;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.search-result-card:hover .result-image img {
    transform: scale(1.1);
}

input[type="search"]:focus {
    border-color: var(--primary-color, #0075ff) !important;
}

/* ============================================
   FRONT PAGE
   ============================================ */

/* Service Slider */
.tj-service-slider .swiper-slide {
    height: auto;
}

.tj-service-slider .service-style-2 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tj-service-slider .service-style-2 .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tj-service-slider .service-style-2 .service-content .desc {
    flex: 1;
}

.h7-blog .service-pagination {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    /* Product Single */
    .product-info-wrapper {
        padding-left: 0;
        margin-top: 30px;
    }

    /* Blog Single */
    .blog-single-hero {
        height: 50vh;
        min-height: 350px;
    }

    .blog-single-title {
        font-size: 32px;
    }

    .blog-single-content {
        padding: 60px 0;
    }

    .blog-single-body {
        font-size: 16px;
    }

    /* Blog Archive */
    .blog-archive-hero {
        padding: 150px 0 60px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .heading-block {
        padding-right: 0;
        text-align: center;
    }

    .heading-block h3 {
        font-size: 36px;
    }

    .branch-info-panel {
        height: auto;
        min-height: 400px;
    }

    #contactMap {
        height: 400px;
    }

    /* About */
    .tj-feature-section .feature-item {
        min-height: 250px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* Page Header */
    .tj-page-title {
        font-size: 1.8rem;
    }

    .products-grid-section h2 {
        font-size: 2rem !important;
    }

    .cta-section h2 {
        font-size: 2rem !important;
    }

    /* Product Single */
    .product-tabs-right .tab-content table {
        font-size: 12px;
    }

    .product-tabs-right .tab-content table thead th,
    .product-tabs-right .tab-content table tbody td {
        padding: 8px 10px;
    }

    .main-image-container {
        height: 350px;
    }

    /* Category Card */
    .category-card {
        height: 220px;
        max-width: 100%;
    }

    .category-description-overlay {
        padding: 1.5rem;
    }

    .category-description-overlay p {
        font-size: 0.85rem;
    }

    .category-title-overlay h3 {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    /* Blog Single */
    .blog-single-hero {
        height: 45vh;
        min-height: 300px;
    }

    .blog-single-hero-content {
        padding: 40px 0;
    }

    .blog-single-title {
        font-size: 26px;
    }

    .blog-single-content {
        padding: 40px 0;
    }

    .blog-single-body {
        font-size: 15px;
        line-height: 1.7;
    }

    .blog-single-body h2 {
        font-size: 22px;
    }

    .blog-single-body h3 {
        font-size: 20px;
    }

    /* Blog Archive */
    .blog-archive-hero {
        padding: 140px 0 50px;
    }

    /* Contact */
    .map-section {
        padding: 40px 0;
    }

    .heading-block h3 {
        font-size: 28px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    /* About */
    .tj-feature-section .feature-item {
        min-height: 220px;
        margin-bottom: 25px;
    }
}

@media (max-width: 575px) {
    .blog-single-title {
        font-size: 22px;
    }

    .blog-single-meta span {
        font-size: 12px;
    }
}
