/* --- Contact Page Redesign --- */
body.contact-page {
    background-color: #ffffff;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .contact-layout-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info h1 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.info-list {
    list-style: none;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-body);
}

.info-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(211, 47, 47, 0.1);
    /* Light Green */
    color: var(--primary-brand);
    border-radius: 50%;
    font-size: 14px;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    filter: grayscale(100%);
    border: 1px solid var(--border-color);
}

.contact-form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 1px 2px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 2px 2px rgba(0, 0, 0, 0.0);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--primary-brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-brand);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* --- Categories List (Image Ref) --- */
.section-title-large {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.cat-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .cat-list-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.cat-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
}

/* Hover effect for better UX */
.cat-list-item:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.cat-list-item i {
    color: var(--primary-brand);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.cat-list-item:hover span {
    color: var(--primary-brand);
    text-decoration: none;
    /* Removed underline preference for cleaner look */
}

.cat-list-item .count-gray {
    color: #6B7280;
    font-size: 14px;
    margin-left: auto;
    /* Push count to right */
}

/* Newsletter Banner */
.newsletter-banner {
    background-color: #fff;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 32px 0;
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-text h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.newsletter-text p {
    color: #6B7280;
    font-size: 14px;
}

.btn-signup-brand {
    background-color: var(--primary-brand);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-signup-brand:hover {
    background-color: var(--primary-dark);
}

/* Bottom Links Grid */
.bottom-links-section {
    margin-bottom: 80px;
}

.bottom-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .bottom-links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* --- Latest Specs Grid (Mini Cards) --- */
.latest-specs-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.latest-spec-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.latest-spec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-brand);
}

.spec-card-icon {
    width: 44px;
    height: 44px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-brand);
    flex-shrink: 0;
}

.spec-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.spec-card-content {
    flex: 1;
    overflow: hidden;
}

.spec-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spec-card-brand {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
}

.spec-card-action {
    color: #ccc;
    font-size: 12px;
    transition: transform 0.2s;
}

.latest-spec-card:hover .spec-card-action {
    color: var(--primary-brand);
    transform: translateX(3px);
}

/* --- Product Detail Page (Migrated Styles) --- */
.detail-layout {
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Consolidated Product Detail - Unified Card */
.detail-unified-card {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 30px !important;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.gallery-section {
    padding: 15px;
    min-width: 0;
}

.gallery-stage {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.gallery-thumb {
    aspect-ratio: 4/3;
    border: 2px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specs Section (Right Side) */
.specs-section {
    padding: 30px 0 30px 30px;
    /* Removed right padding to allow full stretch */
}

@media (max-width: 768px) {
    .specs-section {
        padding: 24px 15px;
    }
}

.detail-category-badge {
    font-size: 12px;
    display: inline-block;
    padding: 4px 12px;
    background: #fff5f5;
    color: var(--brand-red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 10px;
}

.detail-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 25px;
    line-height: 1.2;
}

.specs-mini-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-mini-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.spec-mini-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.spec-mini-value {
    font-size: 13px;
    color: var(--brand-dark);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .detail-unified-card {
        grid-template-columns: 1fr !important;
        gap: 0;
        padding: 0;
    }

    .gallery-section {
        border-bottom: 1px solid #f0f0f0;
        padding: 20px;
    }

    .specs-section {
        padding: 20px;
    }

    .gallery-stage {
        height: auto;
        aspect-ratio: 4/3;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 24px;
    }
}

.detail-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Quick Specs Table */
.quick-specs-table {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
}

.quick-specs-table td {
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.quick-specs-table .qs-label {
    color: #6b7280;
    width: 50%;
    font-size: 14px;
}

.quick-specs-table .qs-value {
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
    font-size: 15px;
}

.product-description {
    margin-bottom: 30px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Key Specs Grid */
.ent-key-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 480px) {
    .ent-key-specs {
        grid-template-columns: 1fr;
    }
}

.ent-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.ent-spec-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-brand);
}

.ent-spec-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
}

.ent-spec-value {
    font-weight: 700;
    color: var(--text-main);
}

.btn-ent-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: var(--primary-brand);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-ent-download:hover {
    background-color: var(--primary-dark);
}

/* Detail Specs Table Container */
.detail-specs-container {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .detail-specs-container {
        padding: 20px;
    }
}

.detail-specs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

@media (max-width: 768px) {
    .detail-specs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.specs-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

/* Related Products */
.related-products {
    margin-top: 20px;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    justify-content: center;
}

.related-grid .product-card {
    width: 100%;
    max-width: 320px;
    justify-self: center;
}

@media (max-width: 600px) {
    .related-products {
        padding: 0 1rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-img {
        height: 120px !important;
    }

    .card-body {
        padding: 10px !important;
    }

    .card-title {
        font-size: 13px !important;
        white-space: normal !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        height: 38px;
        overflow: hidden;
    }
}

.product-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-img {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-brand {
    font-size: 13px;
    color: #888;
}

/* --- Category Cards (Home Page) --- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.cat-card {
    background-color: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.cat-card:hover {
    border-color: var(--primary-brand);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(211, 47, 47, 0.05);
    /* Light brand bg */
    color: var(--primary-brand);
    border-radius: 10px;
    font-size: 20px;
}

.cat-info {
    display: flex;
    flex-direction: column;
}

.cat-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.cat-count {
    font-size: 13px;
    color: #6B7280;
}

/* --- Hero Section (Home Page - Image Reference Style) --- */
/* --- Hero Section (Home Page - Image Reference Style) --- */
.hero-section {
    padding: 20px 0 40px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.25;
}

.hero-subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

.hero-search-wrapper {
    position: relative;
    max-width: 760px;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 50px;
}

.hero-search-form {
    width: 100%;
    display: flex;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    /* Premium Shadow */
    border-radius: 50px;
    padding: 6px;
    /* Inner gap */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.hero-search-form input {
    flex: 1;
    height: 54px;
    padding: 0 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: var(--text-main);
}

.hero-search-form input::placeholder {
    color: #9CA3AF;
}

.hero-search-form input:focus {
    /* Focus relies on parent shadow or we can add inner ring */
    outline: none;
}

.hero-search-form .btn-search-sq {
    width: auto;
    padding: 0 40px;
    height: 54px;
    background-color: var(--primary-brand);
    color: white;
    border: none;
    border-radius: 40px;
    /* Inner Pill */
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-search-form .btn-search-sq:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.featured-links {
    font-size: 13px;
    color: #4B5563;
}

.featured-brand-link {
    color: var(--primary-brand);
    text-decoration: none;
    margin: 0 5px;
}

.featured-brand-link:hover {
    text-decoration: underline;
}

/* Cat Item New Styles */
.cat-item-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.cat-item-placeholder {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-item-placeholder i {
    font-size: 20px;
    color: #9ca3af;
}

.cat-item-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    display: block;
}

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

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.border-0 {
    border: none !important;
}

/* --- Listing Page --- */
.listing-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    /* Refinement: 30px gap */
    margin-top: 40px;
    margin-bottom: 80px;
}

@media (max-width: 992px) {
    .listing-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-filters {
        display: none;
        /* Hidden on mobile for now as per simple req, or stack? Stacking is safer */
    }
}

.sidebar-filters {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    height: fit-content;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Added shadow */
}

.sort-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.sort-trigger:hover {
    color: var(--primary-brand);
}

.sort-trigger i {
    font-size: 12px;
    color: #9CA3AF;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-body);
    cursor: pointer;
}

/* Custom Checkbox Style */
.filter-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    position: relative;
    background-color: white;
}

.filter-checkbox:checked {
    background-color: var(--primary-brand);
    border-color: var(--primary-brand);
}

.filter-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

/* Clean Data Table -> .specs-table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.specs-table thead {
    background-color: #F3F4F6;
    /* Light gray header */
    border-bottom: 1px solid #E5E7EB;
}

.specs-table th {
    padding: 16px 24px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
}

.specs-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
    color: var(--text-body);
    background-color: white;
}

/* Zebra Striping Logic for Detail Page (Odd White, Even Light Gray) */
/* Note: Providing a specific class for zebra styled specs table to be explicit */
.specs-table.zebra tr:nth-child(odd) td {
    background-color: white;
}

.specs-table.zebra tr:nth-child(even) td {
    background-color: #F9FAFB;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.btn-ghost-brand {
    background: transparent;
    border: 1px solid var(--primary-brand);
    color: var(--primary-brand);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-ghost-brand:hover {
    background-color: rgba(211, 47, 47, 0.05);
}

/* --- Auth Page --- */
.auth-wrapper {
    min-height: 90vh;
    /* More vertical space */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 60px 20px;
}

.auth-card {
    background-color: white;
    width: 100%;
    max-width: 900px;
    /* Horizontal Wide */
    height: auto;
    min-height: 500px;
    /* fixed height for consistency */
    display: flex;
    /* Horizontal Layout */
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.5);
    overflow: hidden;
}

/* Left components */
.auth-brand-side {
    width: 50%;
    background-color: var(--primary-brand);
    background-image: linear-gradient(135deg, var(--primary-brand) 0%, #7f1d1d 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center text */
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    /* For animations */
}

/* Auth Particle Engine */
.auth-particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#authParticleCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.auth-brand-side>* {
    position: relative;
    z-index: 2;
}

/* Right components */
.auth-form-side {
    width: 60%;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    text-align: center;
    /* margin-bottom: 32px;  Moved specific margins to side layout if needed */
}

/* --- Rental Directory (Grid & Cards) --- */
.rental-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.rental-country-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
}

.rental-country-card:hover {
    border-color: var(--primary-brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.country-icon-box {
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
}

.company-count {
    font-size: 13px;
    color: #999;
}

/* Breadcrumbs & Page Headers */
.breadcrumb-nav {
    font-size: 14px;
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }
}

.text-title-link {
    color: var(--primary-brand);
    text-decoration: none;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin: 0 auto 16px;
}

/* --- Listing Page (Migrated Styles) --- */
.listing-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 10px;
    margin-bottom: 80px;
}

.listing-layout.no-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
}

@media (max-width: 991px) {
    .listing-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Styling */
.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    z-index: 100;
    /* Ensure stays above products */
}

/* Removed Duplicate Product Detail Block */

@media (max-width: 991px) {
    .filters-sidebar {
        position: relative !important;
        top: 0 !important;
        z-index: 1;
    }
}

.filter-section {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-apply-btn {
    background: var(--color-brand-red, #D32F2F);
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.mini-apply-btn:hover {
    opacity: 1;
}

.filter-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 0.5px;
    margin: 0;
}

.filter-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
    pointer-events: none;
    /* Icon won't block the header click */
}

.filter-section.active .filter-icon {
    transform: rotate(180deg);
}

.filter-content {
    display: none;
}

/* Default state: Open on Desktop */
@media (min-width: 992px) {
    .filter-section.active .filter-content {
        display: block;
    }
}

/* Mobile: Closed by default (active class toggles it open) */
@media (max-width: 991px) {
    .filter-section.active .filter-content {
        display: block;
    }
}

/* Category Group Styles */
.category-group {
    margin-bottom: 15px;
}

.category-parent-label {
    font-size: 11px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    padding-left: 2px;
    border-left: 2px solid #eee;
    margin-left: 2px;
}

/* Custom Checkboxes */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
    background: #fff;
}

.custom-checkbox:hover .checkmark {
    border-color: #bbb;
}

.custom-checkbox input:checked+.checkmark {
    background: var(--color-brand-red, #D32F2F);
    border-color: var(--color-brand-red, #D32F2F);
}

.custom-checkbox input:checked+.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: white;
}

.label-text .count {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
    margin-left: 4px;
}

.label-text {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    transition: color 0.2s;
}

.custom-checkbox input:checked~.label-text {
    color: var(--text-main);
    font-weight: 700;
}

.filter-clear {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

.filter-clear:hover {
    color: var(--color-brand-red, #D32F2F);
}

.btn-reset-filters {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--text-main);
    color: white;
    text-align: center;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-reset-filters:hover {
    background: #333;
    transform: translateY(-2px);
}

.inline-btn {
    width: auto;
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
}

/* Table List Layout */
.list-header {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 60px;
    gap: 20px;
    padding: 15px 25px;
    background: #fff;
    border-bottom: 2px solid #000;
    margin-bottom: 15px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    /* Header Height */
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Stronger shadow to clearly separate from rows */
    border-top: 1px solid #eee;
    /* Light ceiling */
}

.product-row-card {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 25px;
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 60px;
    gap: 20px;
    align-items: center;
    position: relative;
    transition: all 0.2s;
    margin-bottom: 4px;
    /* Tiny gap to prevent sticking */
    border-radius: 4px;
    /* Slightly rounded even without hover */
}

.product-row-card:hover {
    background: #fafafa;
    transform: scale(1.005);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    z-index: 10;
    border-color: transparent;
    border-radius: 8px;
}

.row-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.row-col-image .img-wrapper {
    width: 70px;
    height: 50px;
    background: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-icon {
    color: #ccc;
    font-size: 18px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px 0;
    margin: 0 0 2px 0;
}

/* Mobile Responsiveness for Product Row */
@media (max-width: 768px) {
    .listing-header-row {
        display: none !important;
    }

    .product-row-card {
        grid-template-columns: 80px 1fr !important;
        grid-template-rows: auto auto auto;
        gap: 10px 15px;
        padding: 15px;
        height: auto;
        align-items: start;
    }

    .row-col-image {
        grid-row: 1 / span 3;
        grid-column: 1;
    }

    .row-col-info {
        grid-column: 2;
        grid-row: 1;
    }

    .row-col-spec {
        grid-column: 2;
        grid-row: auto;
        display: flex;
        align-items: center;
        margin-top: 0;
        font-size: 13px;
    }

    .mobile-label {
        display: inline-block !important;
        font-weight: 700;
        color: #999;
        font-size: 11px;
        width: 50px;
        /* Fixed width for alignment */
    }

    .row-col-action {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
    }
}

@media (min-width: 769px) {
    .mobile-label {
        display: none;
    }
}

.product-excerpt {
    font-size: 13px;
    color: #777;
    margin: 0;
    font-style: italic;
}

.brand-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
}

.text-muted {
    color: #d0d0d0;
}

.category-pill {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-view-details {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 12px;
    transition: all 0.2s;
}

.product-row-card:hover .btn-view-details {
    background: var(--primary-brand, #D32F2F);
    border-color: var(--primary-brand, #D32F2F) !important;
}

.product-row-card:hover .btn-view-details i {
    color: white !important;
}


.mobile-label {
    display: none;
}

/* Empty State Box */
.empty-state-box {
    text-align: center;
    padding: 60px;
    background: #f4f4f4;
    border-radius: 8px;
}

.empty-state-box .empty-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
    display: inline-block;
    /* Override global block if needed, but matched */
}

/* Responsive List */
@media (max-width: 991px) {
    .list-header {
        display: none;
    }

    .product-row-card {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px 20px;
        padding: 15px;
        border: 1px solid #eee;
        margin-bottom: 15px;
        border-radius: 8px;
        align-items: center;
        position: relative;
    }

    .row-col-image {
        display: flex;
        grid-row: 1 / span 3;
        grid-column: 1;
        justify-self: start;
    }

    .row-col-image .img-wrapper {
        width: 80px;
        height: 60px;
    }

    .row-col-info {
        grid-column: 2;
        grid-row: 1;
        padding-right: 30px;
        /* Space for action arrow */
    }

    .row-col-spec {
        grid-column: 2;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        border-bottom: none;
        padding-bottom: 0;
        font-size: 13px;
    }

    .row-col-action {
        display: flex;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
    }

    .mobile-label {
        display: inline-block;
        font-weight: 700;
        color: #999;
        font-size: 11px;
        width: 45px;
    }
}

/* Utility Extensions */
.text-sm {
    font-size: 14px;
}

.text-xl {
    font-size: 20px;
}

.text-gray-400 {
    color: #9ca3af;
}

/* Already added in previous step actually, but safe to keep or rely on cascade */
.text-decoration-none {
    text-decoration: none;
}

.text-main {
    color: var(--text-main);
}

.auth-subtitle {
    color: #6B7280;
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 16px;
}

.auth-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 48px;
    /* Room for icon */
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    background-color: #fff;
}

.btn-full-brand {
    width: 100%;
    height: 52px;
    background-color: var(--primary-brand);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(211, 47, 47, 0.2);
}

.btn-full-brand:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(211, 47, 47, 0.3);
}

/* Social Buttons */
.social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-social:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
    color: #9CA3AF;
    font-size: 13px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.auth-divider span {
    padding: 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #6B7280;
}

.auth-link {
    color: var(--primary-brand);
    font-weight: 600;
    text-decoration: none;
}

/* --- Detail Page --- */
.detail-layout {
    margin-top: 40px;
    margin-bottom: 80px;
}

.detail-top {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
}

@media (max-width: 768px) {
    .detail-top {
        flex-direction: column;
    }
}

.machine-image {
    flex: 0 0 540px;
    /* Wider for slide shape */
    aspect-ratio: 16 / 9;
    /* Slide aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    background-color: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    /* Safety for mobile */
}

.machine-image img {
    max-width: 100%;
    height: auto;
}

.machine-summary {
    flex: 1;
}

.machine-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
}

.key-specs-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.key-specs-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-body);
}

.key-specs-list i {
    color: var(--primary-brand);
    width: 20px;
    text-align: center;
}

.btn-download-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background-color: var(--primary-brand);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-download-large:hover {
    background-color: var(--primary-dark);
}

/* Detail Tabs */
.tabs-nav {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 0;
    /* Tabs sit directly on top */
}

.tab-btn {
    padding: 12px 24px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    font-size: 14px;
}

.tab-btn.active {
    background: white;
    color: var(--text-main);
    border-top: 3px solid var(--primary-brand);
    /* Active Green Top Border */
    margin-bottom: -1px;
    /* Cover the bottom border */
    position: relative;
    z-index: 1;
}

.specs-container {
    background: white;
    border: 1px solid #E5E7EB;
    border-top: none;
    /* Connect with active tab */
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.specs-table .spec-label {
    font-weight: 600;
    width: 40%;
    color: var(--text-main);
}

/* --- Brand Page --- */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 80px;
}

@media (max-width: 992px) {
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.brand-card {
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    /* Space between logo and text */
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.brand-card:hover {
    border-color: var(--primary-brand);
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.brand-logo-box {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
}

.brand-logo-box img {
    max-height: 100%;
    max-width: 80%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.2s;
}

.brand-card:hover .brand-logo-box img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Enterprise Grade Styles --- */

/* 1. Unified Detail Card */
/* Removed Redundant Detail Block */

.detail-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.2;
}

.detail-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 32px;
    font-weight: 500;
}

.ent-key-specs {
    list-style: none;
    margin-bottom: auto;
    /* Push button down */
}

.ent-spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    border-bottom: 1px solid #F9FAFB;
    padding-bottom: 12px;
}

.ent-spec-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(211, 47, 47, 0.05);
    color: var(--primary-brand);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
}

.ent-spec-label {
    color: #6B7280;
    margin-right: auto;
    font-weight: 500;
}

.ent-spec-value {
    color: var(--text-main);
    font-weight: 700;
}

.btn-ent-download {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-brand);
    color: white;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 24px;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn-ent-download:hover {
    background-color: var(--primary-dark);
}

/* 2. Enterprise Admin */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    /* 80px Header */
    background-color: #F9FAFB;
}

.admin-sidebar-fixed {
    width: 260px;
    background: white;
    border-right: 1px solid #E5E7EB;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 24px 0;
    flex-shrink: 0;
}

.admin-main-scroll {
    flex: 1;
    padding: 40px;
    overflow-x: hidden;
}

.ent-table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    overflow: hidden;
}

.ent-table {
    width: 100%;
    border-collapse: collapse;
}

.ent-table thead {
    background-color: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.ent-table th {
    padding: 16px 24px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ent-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

.ent-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.ent-user-info {
    display: flex;
    flex-direction: column;
}

.ent-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.ent-email {
    font-size: 12px;
    color: #9CA3AF;
}

.ent-pill {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

.ent-pill.active {
    background-color: rgba(211, 47, 47, 0.08);
    color: var(--primary-brand);
}

.ent-pill.inactive {
    background-color: #F3F4F6;
    color: #4B5563;
}

.ent-action-link {
    font-size: 13px;
    font-weight: 600;
    margin-right: 12px;
    text-decoration: none;
    cursor: pointer;
}

.ent-action-edit {
    color: var(--primary-brand);
}

.ent-action-edit:hover {
    text-decoration: underline;
}

.ent-action-delete {
    color: #EF4444;
}

.ent-action-delete:hover {
    text-decoration: underline;
}

/* 3. Pro Profile 3-Col */
.pro-profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .pro-profile-grid {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 900px) {
    .pro-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* --- News Page --- */
.news-header-title {
    max-width: 1200px;
    margin-bottom: 50px;
    text-align: left;
}

.news-pre-title {
    display: block;
    color: var(--primary-brand);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 12px;
}

.news-header-title h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}

.news-header-title p {
    font-size: 18px;
    color: #6B7280;
    line-height: 1.6;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-brand);
}

.news-img {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #F3F4F6;
    display: block;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.news-img::after {
    content: '\f1ea';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: #D1D5DB;
}

.news-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-brand);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* FEATURED CARD STYLING */
.news-card.featured {
    grid-column: span 3;
    flex-direction: row;
    min-height: 400px;
}

.news-card.featured .news-img {
    width: 55%;
    aspect-ratio: auto;
    height: 100%;
}

.news-card.featured .news-content {
    width: 45%;
    padding: 60px;
    justify-content: center;
}

.news-card.featured .news-title {
    font-size: 32px;
    margin-bottom: 24px;
}

.news-card.featured .news-excerpt {
    font-size: 16px;
    margin-bottom: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.news-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.25;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--primary-brand);
}

.news-excerpt {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary-brand);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.news-read-more:hover {
    gap: 12px;
}

/* NEWSLETTER CARD */
.news-newsletter-card {
    grid-column: span 3;
    background: linear-gradient(135deg, var(--primary-brand) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 60px;
    color: white;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.news-newsletter-card::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.newsletter-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    font-size: 40px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.news-newsletter-card h3 {
    font-size: 36px;
    color: white;
    margin-bottom: 16px;
}

.news-newsletter-card p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    height: 54px;
    padding: 0 20px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    outline: none;
}

.btn-newsletter {
    height: 54px;
    padding: 0 32px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-newsletter:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Scoped styles for Automated Pages */
.automated-page-wrapper .page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    background-color: #380000 !important;
    color: white;
    padding: 100px 0;
}

.automated-page-wrapper .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.automated-page-wrapper .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(118, 2, 13, 0.838) 0%, #2a0f13 100%);
}

.automated-page-wrapper .hero-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.automated-page-wrapper .hero-content {
    max-width: 1000px;
}

.automated-page-wrapper .hero-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    z-index: 1;
}

.automated-page-wrapper .page-title {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.1;
    margin: 0;
}

.automated-page-wrapper .hero-content h1 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.automated-page-wrapper .page-category-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.automated-page-wrapper .hero-summary {
    color: #ffffff;
    font-size: 18px;
    max-width: 800px;
    margin-top: 15px;
    line-height: 1.6;
}

/* Sidebar Navigation */
.automated-page-wrapper .page-sidebar-nav {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.automated-page-wrapper .sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    display: block;
}

.automated-page-wrapper .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.automated-page-wrapper .toc-item {
    margin-bottom: 12px;
}

.automated-page-wrapper .toc-link {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 0;
}

.automated-page-wrapper .toc-link:hover {
    color: #0f172a;
    transform: translateX(4px);
}

.automated-page-wrapper .toc-link.active {
    color: #2563eb;
    font-weight: 600;
}

.automated-page-wrapper .sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.automated-page-wrapper .sidebar-date-label {
    font-size: 11px;
    color: #94a3b8;
    display: block;
}

.automated-page-wrapper .sidebar-date-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.automated-page-wrapper .page-sidebar-column {
    flex: 0 0 280px;
}

@media (max-width: 991px) {
    .automated-page-wrapper .page-sidebar-column {
        flex: 1 1 100%;
        order: 2;
    }

    .automated-page-wrapper .page-content-column {
        order: 1;
    }
}

/* Sections & Content */
.automated-page-wrapper .standard-page-container {
    padding: 80px 0;
    background: #ffffff;
}

.automated-page-wrapper .page-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    /* Center the content column */
}

.automated-page-wrapper .page-content-column {
    flex: 1;
    min-width: 0;
}

.automated-page-wrapper .content-section {
    margin-bottom: 60px;
    scroll-margin-top: 120px;
}

.automated-page-wrapper .section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.automated-page-wrapper .section-icon-wrapper {
    width: 44px;
    height: 44px;
    background: #fff5f5;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-brand, #D32F2F);
    font-size: 20px;
    flex-shrink: 0;
}

.automated-page-wrapper .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.automated-page-wrapper .section-body {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

/* New Bordered Card for Content Sections */
.automated-page-wrapper .content-bordered-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.automated-page-wrapper .content-bordered-card:hover {
    border-color: var(--primary-brand, #D32F2F);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.automated-page-wrapper .content-bordered-card h4 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.automated-page-wrapper .card-title-icon {
    width: 44px;
    height: 44px;
    background: #fff5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-brand, #D32F2F);
    font-size: 18px;
    flex-shrink: 0;
}

.automated-page-wrapper .content-bordered-card h4::before {
    display: none;
    /* Hide the bar in favor of the icon box */
}


.automated-page-wrapper .content-bordered-card p:last-child {
    margin-bottom: 0;
}

/* Special styling for Effective Date paragraph */
.automated-page-wrapper .effective-date-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 30px;
}

.automated-page-wrapper .effective-date-box i {
    color: var(--primary-brand, #D32F2F);
}


.automated-page-wrapper .section-body p {
    margin-bottom: 24px;
}

.automated-page-wrapper .section-body>p:first-of-type {
    font-size: 19px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 50px;
    /* Increased margin before first card */
    line-height: 1.7;
    border-left: 4px solid var(--primary-brand);
    padding-left: 24px;
}

.automated-page-wrapper .content-tagline {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 40px 0;
    text-align: center;
    position: relative;
    letter-spacing: -0.01em;
}

.automated-page-wrapper .content-tagline::before,
.automated-page-wrapper .content-tagline::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 3px;
    background: var(--primary-brand);
    vertical-align: middle;
    margin: 0 20px;
    border-radius: 2px;
}




.automated-page-wrapper .section-body ul,
.automated-page-wrapper .section-body ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.automated-page-wrapper .section-body li {
    margin-bottom: 12px;
}

.automated-page-wrapper .section-body strong {
    color: #0f172a;
    font-weight: 700;
}

/* Special Layouts: Grid Cards */
.automated-page-wrapper .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.automated-page-wrapper .feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.automated-page-wrapper .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: var(--primary-brand, #D32F2F);
}

.automated-page-wrapper .feature-icon {
    font-size: 28px;
    color: var(--primary-brand, #D32F2F);
    margin-bottom: 20px;
}

.automated-page-wrapper .feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.automated-page-wrapper .feature-description {
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* Highlight Box (Our Goal) */
.automated-page-wrapper .highlight-box {
    background: #fff5f5;
    border-left: 4px solid var(--primary-brand, #D32F2F);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
}

.automated-page-wrapper .highlight-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-brand, #D32F2F);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.automated-page-wrapper .highlight-content {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.8;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .automated-page-wrapper .page-sidebar-nav {
        position: static;
        margin-bottom: 40px;
    }

    .automated-page-wrapper .page-hero {
        height: auto !important;
        padding: 80px 0 60px 0;
    }
}

/* --- Industry Services & Providers Responsiveness --- */
.service-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--primary-brand), #b91c1c);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-wrapper i {
    color: white !important;
}

.provider-profile-hero {
    background: linear-gradient(135deg, var(--primary-brand), #b91c1c);
    padding: 40px;
    color: white;
}

.provider-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.provider-info-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.break-long-text {
    word-break: break-all;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .service-category-header {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .service-category-header {
        display: none !important;
    }

    .service-category-header h1 {
        font-size: 24px !important;
    }

    .provider-profile-hero {
        padding: 30px 20px;
    }

    .provider-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .provider-hero-content h1 {
        font-size: 22px !important;
    }

    .provider-info-grid {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.provider-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.provider-card:hover {
    border-color: var(--primary-brand);
    background: #fafafa;
}

.provider-card:hover .fa-chevron-right {
    color: var(--primary-brand) !important;
}

.provider-card:hover .btn-view-details {
    background: var(--primary-brand);
    border-color: var(--primary-brand);
}

.provider-card:hover .btn-view-details i {
    color: white !important;
}

@media (max-width: 576px) {
    .provider-card {
        padding: 12px;
        gap: 12px;
        align-items: flex-start;
    }

    .provider-card .placeholder-logo,
    .provider-card img {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
    }

    .provider-card .fa-chevron-right {
        display: none;
    }

    .provider-card h1,
    .provider-card .company-name {
        font-size: 15px !important;
    }
}

/* Premium Unified Pagination (Global) */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination li a:hover {
    border-color: var(--primary-brand);
    color: var(--primary-brand);
    background: #fff5f5;
    transform: translateY(-2px);
}

.pagination li.active span {
    background: var(--primary-brand);
    border-color: var(--primary-brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
}

.pagination li.disabled span {
    background: #f9fafb;
    color: #9ca3af;
    border-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

.pagination li i {
    font-size: 12px;
}

.pagination li:first-child a,
.pagination li:first-child span,
.pagination li:last-child a,
.pagination li:last-child span {
    padding: 0 20px;
    gap: 8px;
}

/* Custom Brand Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f4f4f4;
}

::-webkit-scrollbar-thumb {
    background: #D32F2F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B71C1C;
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: #D32F2F #f4f4f4;
}


#scroll-sentinel {
    margin-top: 0;
    height: 1px;
    will-change: transform;
}

#loading-spinner {
    padding: 40px 0;
    width: 100%;
}
/* --- Sidebar Height Optimization --- */
.filter-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
    margin-right: -4px; /* Offset for scrollbar */
}

.filter-content::-webkit-scrollbar {
    width: 5px;
}

.filter-content::-webkit-scrollbar-track {
    background: #f9f9f9;
}

.filter-content::-webkit-scrollbar-thumb {
    background: #D32F2F;
    border-radius: 5px;
}

.filter-content::-webkit-scrollbar-thumb:hover {
    background: #B71C1C;
}

/* Ensure the main container doesn't stretch unnecessarily */
.listing-layout.has-sidebar {
    align-items: flex-start; /* Prevent sidebar from stretching main area */
}
