/* KAM Sensors - Page Specific Styles */
/* Version: 4.0 - 1:1 Design Restoration */

/* ========== About Page ========== */
.about-page-header {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.about-tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--border-color);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 25px;
}

.about-tab-btn:hover,
.about-tab-btn.active {
    background: #005abb;
    border-color: #005abb;
    color: var(--text-white);
}

.about-intro-section {
    padding: 60px 0;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-intro-left {
    position: relative;
}

.about-title-block {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.about-title-blue {
    background: var(--blue-accent);
    color: #fff;
    padding: 15px 30px;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.about-title-dark {
    background: var(--bg-dark);
    color: #fff;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
}

.about-since {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 72px;
    font-weight: 700;
    color: rgba(218, 37, 28, 0.15);
    line-height: 1;
}

.about-intro-left .content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.about-stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-gray);
    border-radius: 4px;
}

.about-stat-item .icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.about-stat-item .number {
    font-size: 36px;
    font-weight: 700;
    color: #005abb;
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat-item .label {
    font-size: 13px;
    color: var(--text-light);
}

/* ========== Application Area Page ========== */
.application-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: #005abb;
    border-color: #005abb;
    color: #fff;
}

.application-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.app-card {
    background: #fff;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.app-card:hover {
    box-shadow: var(--shadow-lg);
}

.app-card-image {
    height: 250px;
    overflow: hidden;
}

.app-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.app-card:hover .app-card-image img {
    transform: scale(1.05);
}

.app-card-content {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-card-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.app-card-expand {
    width: 40px;
    height: 40px;
    background: #005abb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.app-card-expand:hover {
    background:blue;
}

/* ========== Contact Page ========== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    min-height: 600px;
}

.contact-info-panel {
    
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.contact-info-panel .company-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item .label {
    font-size: 14px;
    color: var(--text-light);
    min-width: 80px;
}

.contact-info-item .value {
    font-size: 14px;
    color: var(--text-color);
}

.contact-form-panel {
    background: #fff;
    padding: 60px;
    position: relative;
	box-shadow: 2px 2px 5px
#808080; margin-top:80px;
}

.contact-form-panel::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: #005abb;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.form-header p {
    color: var(--text-light);
    font-size: 14px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group label .required {
    color: #005abb;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #005abb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(218, 37, 28, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-input-group .country-code {
    width: 100px;
    flex-shrink: 0;
}

.submit-btn {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.submit-btn .btn {
    width: 100%;
    padding: 16px;
    font-size: 15px;
}

/* ========== News List Page ========== */
.news-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.news-tab {
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.news-tab:hover,
.news-tab.active {
    color: #005abb;
}

.news-tab.active::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    right: 0;
    height: 2px;
}

.news-list-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-list-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-list-item:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.news-list-item .news-image {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-list-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-list-item:hover .news-image img {
    transform: scale(1.05);
}

.news-list-item .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-item .news-content time {
    font-size: 13px;
    color: #005abb;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-list-item .news-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.news-list-item:hover .news-content h3 {
    color: #005abb;
}

.news-list-item .news-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== News Detail Page ========== */
.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
}

.news-detail-content {
    background: #fff;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-detail-header h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.news-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-share span {
    font-size: 14px;
    color: var(--text-light);
}

.news-share a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: 50%;
    font-size: 16px;
    transition: var(--transition);
}

.news-share a:hover {
    background: #005abb;
    color: #fff;
}

.news-detail-body {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-color);
}

.news-detail-body p {
    margin-bottom: 20px;
}

.news-detail-body h2 {
    font-size: 22px;
    margin: 30px 0 15px;
}

.news-detail-body ul,
.news-detail-body ol {
    margin: 20px 0;
    padding-left: 20px;
}

.news-detail-body li {
    margin-bottom: 10px;
    list-style: disc;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.sidebar-widget h4 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #005abb;
}

.related-news-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.related-news-item:last-child {
    border-bottom: none;
}

.related-news-item .date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.related-news-item a {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.5;
    display: block;
}

.related-news-item a:hover {
    color: #005abb;
}

/* ========== Products List Page ========== */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.products-sidebar .sidebar-widget {
    background: #fff;
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.sidebar-widget h4 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #005abb;
}

.category-list li a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    transition: var(--transition);
}

.category-list li:last-child a {
    border-bottom: none;
}

.category-list li a:hover,
.category-list li.active a {
    background: #005abb;
    color: #fff;
    padding-left: 20px;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-gray);
    margin-bottom: 25px;
}

.results-count {
    font-size: 14px;
    color: var(--text-light);
}

.products-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card-simple {
    background: #fff;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.product-card-simple:hover {
    box-shadow: var(--shadow-lg);
}

.product-card-simple .product-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
}

.product-card-simple .product-image img {
    max-height: 150px;
    object-fit: contain;
}

.product-card-simple .product-info {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.product-card-simple .product-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card-simple:hover .product-info h3 {
    color: #005abb;
}

.product-card-simple .product-info .btn {
    padding: 10px 25px;
    font-size: 12px;
    border-color: #005abb;
    color: #005abb;
}

.product-card-simple .product-info .btn:hover {
    background: #005abb;
    color: #fff;
}

/* ========== Product Detail Page ========== */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-main-image {
    border: 1px solid var(--border-color);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.product-main-image img {
    max-height: 400px;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
}

.product-thumb {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.product-thumb:hover,
.product-thumb.active {
    border-color: #005abb;
}

.product-thumb img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.product-detail-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.product-detail-info .product-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-specs {
    margin-bottom: 30px;
}

.product-specs h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #005abb;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 12px 15px;
    font-size: 14px;
}

.specs-table td:first-child {
    font-weight: 500;
    color: var(--text-color);
    width: 40%;
    background: var(--bg-gray);
}

.product-actions {
    display: flex;
    gap: 15px;
}

/* ========== Search Page ========== */
.search-section {
    padding: 60px 0;
}

.search-box-large {
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-box-large form {
    display: flex;
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.search-box-large input {
    flex: 1;
    padding: 18px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-box-large button {
    padding: 18px 40px;
    background: #005abb;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box-large button:hover {
    background: var(--primary-dark);
}

.search-info {
    text-align: center;
    margin-bottom: 40px;
    font-size: 15px;
    color: var(--text-light);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-result-item:hover {
    box-shadow: var(--shadow);
}

.search-result-item .result-image {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    background: var(--bg-gray);
    overflow: hidden;
}

.search-result-item .result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-item .result-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.search-result-item:hover .result-content h3 {
    color: #005abb;
}

.search-result-item .result-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* ========== Service Page ========== */
.service-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.service-tab {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.service-tab:hover,
.service-tab.active {
    background: #005abb;
    border-color: #005abb;
    color: #fff;
}

.service-content-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 50px;
}

.service-content-card h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
}

.service-content-card h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.service-content-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.service-content-card ul,
.service-content-card ol {
    margin: 20px 0;
    padding-left: 30px;
}

.service-content-card li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: var(--bg-gray);
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: #005abb;
    color: #fff;
}

.pagination .page-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.pagination .page-input input {
    width: 60px;
    height: 45px;
    text-align: center;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.pagination .page-input button {
    height: 45px;
    padding: 0 20px;
    background: #005abb;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.pagination .page-input button:hover {
    background: var(--primary-dark);
}

/* ========== Sub Navigation ========== */
.sub-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.sub-nav a {
    padding: 15px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: var(--transition);
}

.sub-nav a:hover,
.sub-nav a.active {
    color: #005abb;
}

.sub-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0088DD;
}
