* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    text-align: right;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a3a5f;
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    top: 0;
}

/* Header Styles */
.header {
    background: white;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-link:focus-visible {
    outline: 2px solid #f26522;
    outline-offset: 4px;
}

.logo {
    height: 50px;
    width: auto;
}
.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}
.nav a:hover {
    color: #f26522;
}
.cta-button {
    background: #f26522;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
}
.cta-button:hover {
    background: #d9561e;
}
.language-switcher {
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.2);
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}
.language-switcher option {
    background: white;
    color: #333;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 0;
    }
    
    .logo {
        order: 1;
    }
    
    .header-actions {
        order: 2;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .language-switcher {
        order: 1;
    }
    
    .cta-button {
        order: 2;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .mobile-menu-btn {
        order: 3;
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        gap: 15px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        font-size: 16px;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
}

/* Hero Section */
.hero {
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.7) 0%, rgba(242, 101, 34, 0.7) 100%);
    z-index: 1;
}
.hero-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a3a5f, #f26522, #1a3a5f, #f26522);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Show the animation if the image fails to load */
.hero-gif:not([src]),
.hero-gif[src=""],
.hero-gif[src=""] {
    opacity: 0;
}

.hero-gif:not([src]) + .hero-animation,
.hero-gif[src=""] + .hero-animation,
.hero-gif[src=""] + .hero-animation {
    opacity: 0.8;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    color: white;
}

.hero-with-search .hero-content {
    grid-template-columns: 1fr 400px;
}

.hero-search {
    display: none;
}

.hero-with-search .hero-search {
    display: block;
}

.cargo-hero .hero-content {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.cargo-hero .hero-text {
    margin: 0 auto;
}

.cargo-hero .hero-buttons {
    justify-content: center;
}
.cargo-hero .hero-search {
    display: none;
}
.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}
.quote-box {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #f26522;
    margin: 30px 0;
    backdrop-filter: blur(10px);
}
.quote-box p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
.btn-primary {
    background: #f26522;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    background: #d9561e;
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary:hover {
    background: white;
    color: #1a3a5f;
}
.btn-blue {
    background: #1a3a5f;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-blue:hover {
    background: #0d2440;
    transform: translateY(-2px);
}
.hero-search {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}
.hero-search h3 {
    color: #1a3a5f;
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.hero-search p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.search-box {
    display: flex;
    margin-bottom: 20px;
}
.search-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}
.search-box button {
    background: #f26522;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 600;
}
.popular-categories {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category-tag {
    background: #f26522;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
}
.category-tag:hover {
    background: #d9561e;
}
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-with-search .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero {
        min-height: auto;
        padding: 60px 0 90px;
        overflow: visible;
    }

    .hero-with-search .hero-search {
        width: 100%;
        max-width: 500px;
        margin: 0 auto 20px;
        padding: 20px;
    }

    .hero-search {
        margin-top: 10px;
    }

    .search-box {
        flex-direction: column;
        gap: 10px;
    }

    .search-box input,
    .search-box button {
        width: 100%;
        border-radius: 8px;
    }

    .search-box button {
        padding: 14px;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8fafc;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    color: #1a3a5f;
    margin-bottom: 15px;
}
.section-title p {
    font-size: 1.2rem;
    color: #666;
}
.section-title .category-intro {
    font-size: 1rem;
    margin-top: 15px;
}
.section-title .category-intro a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.service-card:focus {
    outline: 2px solid #f26522;
    outline-offset: 2px;
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}
.service-card h3 {
    color: #1a3a5f;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.service-card .subtitle {
    color: #f26522;
    font-weight: 600;
    margin-bottom: 15px;
}
.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: white;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.category-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    border: none;
}
.category-card.is-active {
    background: #1a3a5f;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(26,58,95,0.2);
}
.category-card.is-active p {
    color: #ffffff;
}
.category-card:hover {
    background: #1a3a5f;
    color: white;
    border-color: #f26522;
    transform: translateY(-3px);
}
.category-card:focus {
    outline: 2px solid #f26522;
    outline-offset: 2px;
}
.category-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}
.category-card .icon.icon-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-card .icon.icon-image img {
    width: 56px;
    height: 56px;
}
.category-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
}
.category-card p {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
}
.category-card:hover p {
    color: white;
}

.category-card-actions {
    margin-top: 20px;
}

.category-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f26522;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card-link i {
    font-size: 0.85rem;
}

.category-card:hover .category-card-link {
    color: #ffffff;
}

.category-card-link:focus {
    outline: 2px solid #f26522;
    outline-offset: 2px;
}

/* Production Line Category Pages */
.category-overview,
.category-lines,
.related-categories {
    padding: 80px 0;
}

.category-overview {
    background: #f8fafc;
}

.category-lines {
    background: #ffffff;
}

.related-categories {
    background: #f8fafc;
}

.category-overview .section-title p,
.category-lines .section-title p,
.related-categories .section-title p {
    max-width: 720px;
    margin: 0 auto;
}

.category-overview .features-grid {
    margin-top: 40px;
}

.related-categories .categories-grid {
    margin-top: 40px;
}

.related-categories .category-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-categories .category-card:hover h4,
.related-categories .category-card:hover p {
    color: #ffffff;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a3a5f 0%, #f26522 100%);
    color: white;
    text-align: center;
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Why AIV Section */
.why-aiv {
    padding: 80px 0;
    background: #f8fafc;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}
.feature-icon {
    font-size: 3rem;
    color: #f26522;
    margin-bottom: 20px;
    display: block;
}
.feature-icon.icon-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon.icon-image img {
    width: 64px;
    height: 64px;
}

.icon-image img {
    display: block;
}
.feature-card h3 {
    color: #1a3a5f;
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a3a5f 0%, #0d2440 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f26522, #1a3a5f);
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 50px;
}
.footer-section {
    width: 100%;
}
.footer-section h3 {
    margin-bottom: 25px;
    color: #f26522;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
}
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: #f26522;
}
.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.8;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s;
}
.footer-section a:hover {
    color: #f26522;
    padding-right: 5px;
}
.footer-contact {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}
.footer-contact i {
    color: #f26522;
    margin-left: 15px;
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}
.footer-contact .phone-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.footer-contact .phone-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    direction: ltr;
    unicode-bidi: embed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.footer-contact .phone-link:hover {
    color: #f26522;
}
.footer-contact .whatsapp-link {
    color: #25D366;
    text-decoration: none;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.footer-contact .whatsapp-link:hover {
    transform: scale(1.2);
}
.footer-logo {
    margin-bottom: 20px;
}
.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}
.footer-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 25px;
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}
.social-links a:hover {
    background: #f26522;
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.footer-newsletter {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}
.footer-newsletter h4 {
    color: #f26522;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.newsletter-form {
    display: flex;
    gap: 10px;
}
.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: rgba(255,255,255,0.9);
    color: #333;
}
.newsletter-form button {
    background: #f26522;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.newsletter-form button:hover {
    background: #d9561e;
}
.office-box {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.office-box h4 {
    color: #f26522;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}
.office-box h4 i {
    margin-left: 10px;
}

/* Modal Styles - UPDATED FOR SCROLLABILITY */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto; /* Allow modal to scroll if needed */
}
.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 20px;
}
.modal-close:hover {
    color: #f26522;
}
.modal-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}
.modal-content h3 {
    color: #1a3a5f;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.modal-content ul {
    list-style: none;
    padding: 0;
}
.modal-content li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-right: 25px;
}
.modal-content li:before {
    content: '✓';
    color: #f26522;
    font-weight: bold;
    position: absolute;
    right: 0;
}

/* Category Modal Styles - UPDATED FOR SCROLLABILITY */
.category-modal-content {
    text-align: center;
}
.category-modal-content .category-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}
.category-modal-content h3 {
    color: #1a3a5f;
    margin-bottom: 15px;
    font-size: 1.8rem;
}
.category-modal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.category-modal-content .btn-primary {
    margin: 0 auto;
    display: block;
    width: 200px;
}

/* Sales Contact Modal Styles - UPDATED FOR SCROLLABILITY */
.sales-contact-modal-content {
    text-align: center;
}
.sales-contact-modal-content .modal-icon {
    color: #f26522;
    font-size: 3rem;
    margin-bottom: 20px;
}
.sales-contact-modal-content h3 {
    color: #1a3a5f;
    margin-bottom: 15px;
    font-size: 1.8rem;
}
.sales-contact-modal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}
.offices-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}
.office-box-modal {
    flex: 1;
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
}
.office-box-modal h4 {
    color: #1a3a5f;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}
.office-box-modal h4 i {
    color: #f26522;
    margin-left: 10px;
}
.office-box-modal .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #555;
}
.office-box-modal .contact-item i {
    color: #f26522;
    margin-left: 10px;
    font-size: 1.2rem;
}
.office-box-modal .contact-item .phone-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.office-box-modal .contact-item .phone-link {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    direction: ltr;
    unicode-bidi: embed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.office-box-modal .contact-item .phone-link:hover {
    color: #f26522;
}
.office-box-modal .contact-item .whatsapp-link {
    color: #25D366;
    text-decoration: none;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.office-box-modal .contact-item .whatsapp-link:hover {
    transform: scale(1.2);
}
.phone-number {
    direction: ltr;
    unicode-bidi: embed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Search Result Modal Styles - UPDATED FOR SCROLLABILITY */
.search-result-modal-content {
    text-align: center;
}
.search-result-modal-content .modal-icon {
    color: #f26522;
    font-size: 3rem;
    margin-bottom: 20px;
}
.search-result-modal-content h3 {
    color: #1a3a5f;
    margin-bottom: 15px;
    font-size: 1.8rem;
}
.search-result-modal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}
.search-empty-title {
    color: #1a3a5f;
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.search-equipment-heading {
    margin-top: 25px;
    color: #1a3a5f;
    font-size: 1.2rem;
}
.search-note {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #555;
}
.search-result-modal-content .btn-primary {
    margin: 0 auto;
    display: block;
    width: 200px;
}
.search-contact-cta {
    margin-top: 25px;
    padding: 18px 20px;
    background: #f3f6fb;
    border-radius: 12px;
    text-align: center;
    color: #1a3a5f;
}
.search-contact-cta p {
    margin: 0 0 15px;
    font-size: 1rem;
    color: #1a3a5f;
}
.search-contact-cta .btn-primary {
    width: auto;
    padding: 10px 24px;
    font-size: 1rem;
}
.search-suggestions {
    margin-top: 20px;
    text-align: center;
}
.search-suggestions h4 {
    color: #1a3a5f;
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.suggestion-tag {
    background: #f26522;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
}
.suggestion-tag:hover {
    background: #d9561e;
}

/* Modal Buttons - REVISED FOR BETTER CENTERING */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}
.modal-buttons .btn-secondary {
    background: transparent;
    color: #1a3a5f;
    border: 2px solid #1a3a5f;
    padding: 12px 24px;
    font-size: 1rem;
}
.modal-buttons .btn-secondary:hover {
    background: #1a3a5f;
    color: #fff;
}

/* Equipment Modal Styles - UPDATED FOR SCROLLABILITY */
.equipment-modal-content {
    max-width: 900px;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    background-color: white;
    max-height: 90vh; /* Set max height to 90% of viewport */
    overflow-y: auto; /* Enable vertical scrolling */
}
.equipment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}
.equipment-modal-header h3 {
    margin: 0;
    color: #1a3a5f;
    font-size: 1.8rem;
}
.equipment-modal-header .back-btn {
    background: #1a3a5f;
    color: white;
    border: 2px solid #1a3a5f;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.equipment-modal-header .back-btn:hover {
    background: #f26522;
    border-color: #f26522;
    transform: translateY(-2px);
}
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.equipment-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.equipment-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #f26522;
}
.equipment-icon.icon-image {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
.equipment-icon.icon-image img {
    width: 64px;
    height: 64px;
}
.equipment-card h4 {
    color: #1a3a5f;
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.equipment-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.equipment-card .equipment-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a3a5f;
    margin-bottom: 8px;
}
.equipment-card .equipment-context {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2b5c8a;
    margin-bottom: 8px;
    opacity: 0.85;
}
.equipment-card .equipment-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    text-align: start;
    direction: inherit;
}
.equipment-card .equipment-meta li {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #444;
}
.equipment-card .equipment-meta li strong {
    color: #1a3a5f;
}
.equipment-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.equipment-actions a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}
.equipment-actions .btn-primary {
    background: #f26522;
    color: white;
}
.equipment-actions .btn-primary:hover {
    background: #d9561e;
}
.equipment-actions .btn-secondary {
    background: #1a3a5f;
    color: white;
}
.equipment-actions .btn-secondary:hover {
    background: #0d2440;
}
.no-equipment {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #ddd;
}

/* Second-hand page */
.second-hand-hero .hero-bg {
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.75) 0%, rgba(242, 101, 34, 0.75) 100%);
}

.second-hand-hero .hero-gif {
    filter: brightness(0.7);
}

.second-hand-inventory .equipment-card {
    text-align: initial;
}

.second-hand-inventory-category {
    margin-bottom: 50px;
}

.second-hand-inventory-category:last-of-type {
    margin-bottom: 0;
}

.inventory-category-title {
    font-size: 1.5rem;
    color: #1a3a5f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.inventory-category-icon.icon-image {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
}
.inventory-category-icon.icon-image img {
    width: 48px;
    height: 48px;
}

.second-hand-card .equipment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(242,101,34,0.12);
    color: #f26522;
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.second-hand-page .equipment-card h4 {
    text-align: inherit;
}

.second-hand-page .equipment-card p {
    text-align: inherit;
}

.second-hand-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.second-hand-meta li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(26,58,95,0.06);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.second-hand-meta li span {
    color: #4a5568;
    font-weight: 500;
}

.second-hand-meta li strong {
    color: #1a3a5f;
    font-weight: 700;
}

.second-hand-overview {
    padding: 80px 0;
    background: #f8fafc;
}

.second-hand-process {
    padding: 80px 0;
    background: #ffffff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.process-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px 25px 30px;
    box-shadow: 0 20px 40px rgba(26,58,95,0.12);
    border: 1px solid rgba(26,58,95,0.08);
    position: relative;
    overflow: hidden;
}

.process-card .step,
.process-card .process-step {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f26522;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.process-card h3 {
    color: #1a3a5f;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.process-card p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.process-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-card ul li {
    position: relative;
    padding-right: 18px;
    margin-bottom: 10px;
    color: #2d3748;
    line-height: 1.6;
}

[dir="ltr"] .process-card ul li {
    padding-right: 0;
    padding-left: 18px;
}

.process-card ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    top: 0;
    color: #f26522;
    font-weight: 700;
}

[dir="ltr"] .process-card ul li::before {
    right: auto;
    left: 0;
}

@media (max-width: 768px) {
    .second-hand-page .hero-points {
        margin: 20px 0;
    }

    .second-hand-page .hero-points li {
        padding: 10px 14px;
    }
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
    .offices-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-section {
        margin-bottom: 0;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer-section h3::after {
        width: 40px;
    }
    
    .footer-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .office-box {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .office-box h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .footer-contact {
        margin-bottom: 12px;
        font-size: 0.9rem;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .footer-contact i {
        font-size: 1rem;
        width: 25px;
        margin-top: 3px;
    }
    
    .footer-newsletter {
        padding: 15px;
        border-radius: 8px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-bottom {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Mobile Modal Adjustments */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .equipment-modal-content {
        max-height: 95vh;
        margin: 2.5% auto;
        padding: 20px;
    }
    
    .equipment-modal-header {
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    .equipment-modal-header h3 {
        font-size: 1.5rem;
    }
    
    .equipment-modal-header .back-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Language Direction Styles */
[dir="ltr"] {
    text-align: left;
}
[dir="ltr"] .container {
    padding: 0 20px;
}
[dir="ltr"] .main-header {
    flex-direction: row;
}
[dir="ltr"] .nav {
    flex-direction: row;
}
[dir="ltr"] .hero-with-search .hero-content {
    grid-template-columns: 1fr 400px;
}
[dir="ltr"] .cargo-hero .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
}
[dir="ltr"] .cargo-hero .hero-buttons {
    justify-content: center;
}
[dir="ltr"] .cargo-hero .hero-text {
    margin: 0 auto;
}
[dir="ltr"] .quote-box {
    border-left: none;
    border-right: 4px solid #f26522;
}
[dir="ltr"] .search-box input {
    border-radius: 0 5px 5px 0;
}
[dir="ltr"] .search-box button {
    border-radius: 5px 0 0 5px;
}

@media (max-width: 768px) {
    [dir="ltr"] .hero-with-search .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    [dir="ltr"] .hero-with-search .hero-search {
        width: 100%;
        max-width: 500px;
        margin: 0 auto 20px;
        padding: 20px;
    }

    [dir="ltr"] .hero-text {
        text-align: center;
    }

    [dir="ltr"] .hero-buttons {
        justify-content: center;
    }

    [dir="ltr"] .search-box input,
    [dir="ltr"] .search-box button {
        border-radius: 8px;
    }
}
[dir="ltr"] .modal-close {
    float: right;
    right: 20px;
    left: auto;
}
[dir="ltr"] .modal-content li {
    padding-left: 25px;
    padding-right: 0;
}
[dir="ltr"] .modal-content li:before {
    left: 0;
    right: auto;
}
[dir="ltr"] .footer-section h3::after {
    left: 0;
    right: auto;
}
[dir="ltr"] .footer-contact i {
    margin-left: 0;
    margin-right: 15px;
}
[dir="ltr"] .footer-section a:hover {
    padding-right: 0;
    padding-left: 5px;
}
[dir="ltr"] .office-box h4 i {
    margin-left: 0;
    margin-right: 10px;
}
[dir="ltr"] .office-box-modal h4 i {
    margin-left: 0;
    margin-right: 10px;
}
[dir="ltr"] .office-box-modal .contact-item i {
    margin-left: 0;
    margin-right: 10px;
}
[dir="ltr"] .footer-contact .phone-container {
    flex-direction: row;
}
[dir="ltr"] .office-box-modal .contact-item .phone-container {
    flex-direction: row;
}
@media (max-width: 768px) {
    [dir="ltr"] .hero-content {
        grid-template-columns: 1fr;
    }

    [dir="ltr"] .nav {
        flex-direction: column;
    }

    [dir="ltr"] .mobile-menu-btn {
        order: 3;
    }
    
    [dir="ltr"] .logo {
        order: 1;
    }
    
    [dir="ltr"] .header-actions {
        order: 2;
        flex-direction: row;
    }
    
    [dir="ltr"] .footer-contact {
        flex-direction: row;
    }
    
    [dir="ltr"] .footer-contact i {
        margin-right: 0;
        margin-left: 15px;
    }
}
/* Responsive adjustments for services and features grids */
@media (max-width: 1024px) {
    .services-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .services-grid, .features-grid {
        grid-template-columns: 1fr;
    }
}
}
/* Projects page styles */
.projects-hero {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.08), rgba(242, 101, 34, 0.08));
}

.projects-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #1a3a5f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.projects-back-link:hover {
    color: #f26522;
}

.projects-hero-content h1 {
    font-size: 2.8rem;
    color: #1a3a5f;
    margin-bottom: 16px;
}

.projects-hero-content p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 780px;
}

.projects-section {
    padding: 60px 0 100px;
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(26, 58, 95, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(26, 58, 95, 0.12);
}

.project-header {
    background: linear-gradient(135deg, #1a3a5f, #f26522);
    color: #ffffff;
    padding: 24px;
    position: relative;
    min-height: 96px;
}

.project-status {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-status.in-progress {
    background: rgba(255, 193, 7, 0.85);
}

.project-status.completed {
    background: rgba(40, 167, 69, 0.85);
}

.project-body {
    padding: 28px;
}

.project-title {
    font-size: 1.35rem;
    color: #1a3a5f;
    margin-bottom: 16px;
    line-height: 1.5;
}

.project-description {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.project-actions {
    display: flex;
    gap: 12px;
}

.project-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f26522;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.project-actions .btn-primary:hover {
    background: #d9561e;
    transform: translateY(-2px);
}

.project-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a3a5f;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.project-actions .btn-secondary:hover {
    background: #0d2440;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .projects-hero-content h1 {
        font-size: 2.3rem;
    }

    .projects-hero-content p {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 60px 0 30px;
    }

    .projects-hero-content h1 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-body {
        padding: 24px 22px 26px;
    }
}

[dir="ltr"] .projects-back-link i {
    transform: rotate(180deg);
}

