@font-face {
    font-family: 'MainFont';
    src: url('../fonts/font.ttf') format('truetype');
}
body {
    margin: 0;
    padding: 0;
    font-family: 'MainFont', sans-serif;
    background: #f9f9f9;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.overlay-text {
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-size: 24px;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 6px;
}
@media (max-width: 768px) {
    .slider-container {
        height: 180px;
    }
    .overlay-text {
        font-size: 16px;
        bottom: 10px;
        left: 15px;
        padding: 6px 12px;
    }
}

.pattern{
    right: 0;
    
    position: absolute;
    bottom: 0;
    width: 300px;
}

.pattern-left{
    position: absolute;
    left: 0;
    bottom: 0;
}

.car-catalog{
    position: relative;
}


.car-catalog h2 {
    font-size: 32px;
    color: blue;
    margin-bottom: 30px;
}


#from{
    width: 250px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    height:50px;
    font-family: 'MainFont', sans-serif;
    outline: none;
}
#to{
    width: 250px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    height:50px;
    font-family: 'MainFont', sans-serif;
    outline: none;
}

#type{
    width: 250px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    height:50px;
    font-family: 'MainFont', sans-serif;
    outline: none;
}

.btn{
    font-family: 'MainFont', sans-serif;
}

.footer-text{
    width: 300px;
}


.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
  }
  
  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: white;
    z-index: 2;
    padding: 110px 0px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  
  .overlay.active {
    display: flex;
  }
  
  .overlay a {
    margin: 10px 0;
    font-size: 20px;
  }
  
  @media (max-width: 768px) {
    .main-nav {
      display: none;
    }

    .pattern{
        display: none;
    }

    .pattern-left{
        display: none;
    }
  
    .menu-toggle {
      position: absolute;
      right: 0;
      display: block;
    }
  
    .overlay a {
      color: #414141;
      text-decoration: none;
      font-weight: 500;
    }
  
    .overlay a.active {
      color: #67b100;
    }
  
    .overlay a.btn.green {
      border: 1px solid #67b100;
      padding: 10px;
    }
  
    .overlay a.btn.blue {
      padding-left: 20px;
    }


    .container {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        text-align: center;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .car-grid {
        grid-template-columns: 1fr;
    }

    .overlay-text {
        font-size: 16px;
        bottom: 10px;
        left: 10px;
        padding: 6px 12px;
    }

    .shipping-calculator h2 {
        font-size: 22px;
    }

    .slider-item {
        width: 100px;
    }

    .slider-item img {
        height: 70px;
    }

    .footer-right {
        text-align: center;
        font-size: 16px;
    }

    .social-icons {
        justify-content: center;
    }

    .social-icons img {
        width: 24px;
        height: 24px;
    }
  }


  @media (max-width: 992px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .btn.blue {
        padding-left: 20px;
    }

    .car-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-form {
        flex-direction: column;
        align-items: center;
    }

    .footer-center {
        flex-wrap: wrap;
        justify-content: center;
    }
}


@media (max-width: 480px) {
    .hero-section {
        padding: 60px 10px;
    }

    .hero-section h1 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 12px;
    }

    .car-grid {
        grid-template-columns: 1fr;
    }

    .btn.green {
        padding: 8px;
    }

    #load-more {
        padding: 8px 15px;
        font-size: 16px;
    }

    .overlay-text {
        font-size: 14px;
        padding: 5px 10px;
    }

    .slider-container {
        height: 180px;
    }

    .slider-item {
        width: 80px;
    }

    .slider-item img {
        height: 60px;
    }

    .calc-form select, .calc-form button {
        font-size: 14px;
        padding: 8px 10px;
    }

    .footer-left img {
        width: 100px;
        height: auto;
    }
}

.shipping-calculator {
    background-color: #f8f8f8;
    padding: 30px 0;
    display: flex;
    justify-content: center;
}

.calc-wrapper {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.calc-title {
    font-size: 20px;
    color: red;
    margin-bottom: 20px;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.calc-form select {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.calc-result {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}