body {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Header styling */
  header {
    background-color: white;
    height: 50px ;
    padding: 15px 0;
    border-bottom: 2px inset rgb(59, 19, 136);/* Blue Border color */
    box-shadow: 0px 4px 4px rgb(59, 34, 174);/* Shadow effect */
    gap: 100px;
    position: relative;
    z-index: 10;/* Ensures header is above other content */
  }
  
  /* Header container for logo and navigation */
  .header-container{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 2000px; /* Maximum width for header */
    margin: auto; /* Center header on the page */
    padding: 0 50px; /* Padding for header content */
    gap: 700px; /* Space between logo and navigation */
  
  }
  
  /* Ford logo styling */
  .ford-logo {
    display: flex; /* Flexbox for alignment */
    align-items: center; /* Center items vertically */
  }
  
  .ford-icon {
    height: 50px; /* Height of the logo */
  }
  
  .nav-items {
    list-style: none; /* Remove default list styling */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    display: flex; /* Flexbox for navigation items */
    gap: 25px; /* Space between navigation items */
  }
  
  .nav-items a {
    text-decoration: none; /* Remove underline from links */
    color: black; /* Default text color */
    display: inline-block; /* Inline-block for padding and margin */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth transition for hover effects */
  }
  
  /* Navigation items hover effect */
  .nav-items a:hover {
    color: black; /* Change text color on hover */
    text-decoration: underline; /* Underline on hover */
    transform: scale(1.05) translateY(-2px); /* Scale and move up on hover */
    text-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Shadow effect on hover */
    text-decoration-thickness: 2px; /* Thickness of underline */
    text-underline-offset: 4px; /* Offset of underline */
   
  }
  /* Welcome section styling */

 .welcome {
    position: relative;
    height: 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 2rem;
    margin-top: 4px; /* Matches header height */
   
  }
  
  /* Background styling */
  .welcome::before {
    content: '';
    position: absolute; /* Positioning the background image */
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image:url(/images/2025-ford-f150.webp) ; /* Background image */
    background-size: 120%; /* Adjust size as needed */
    background-position: center;
    background-repeat: no-repeat; /* No repeat */
  }
  
  

/* Categories Section */
.categories-panel {
    width: 190px; /* Fixed width for categories panel */
    height: 90%;
    background-color: #ffff;
    padding: 1rem 0.5rem;
    border-right: 1px inset #959494e4;
    margin-top: 30px;
    margin-left: 10px;
    margin-bottom: 50px;
    
}
.categories-panel h2 {
    font-size: 1.5rem; /* Font size for categories title */
    color: #002D55;
    margin-bottom: 1rem; /* Space below title */
    text-align: center;
}
.categories-panel h2:hover {
    color: #004F9F;
}


.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.category-item {
    padding: 1rem;
    display: flex;
    margin: 0.5rem 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover {
    background-color: #f8f8f8;
}

.category-item.active {
    background-color: #002D55;
    color: white;
    font-weight: bold;
}

/* Products Grid Section */

.products-container {
    display: flex; /* Flexbox for layout */
    min-height: 100vh; /* Minimum height for container */
    background-color: #ffffff; /* White background */
    overflow: hidden; /* Hide overflow */
    padding: 3rem 0; /* Padding for container */
    margin: 2rem 0; /* Margin for container */
    margin-top: 15px; /* Space below header */
    border-radius: 10px; /* Rounded corners */
   
  }

/* Products grid styling */
.products-grid {
    flex: 1; /* Take remaining space */
    padding: 2rem; /* Padding for grid */
  
    
    
}

/* Grid header styling */
.grid-header {
    margin-bottom: 1rem; /* Space below header */
}

/* Grid title styling */
.grid-title {
    font-size: 2rem;/* Font size for title */
    color: #002D55; /* Title color */
    margin-top: 1rem; /* Space above title */
    margin-bottom: 1rem; /* Space below title */
}


/* Grid description styling */
.products-row {
    display: grid; /* Grid layout for products */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive columns */
    gap: 2rem; /* Space between items */
    margin-top: 1rem; /* Space above grid */
}

/* Product card styling */
.product-card {
    width: 100%; /* Full width */
    max-width: 500px; /* Maximum width for card */
    margin: 0 auto; /* Center card */
    background: white; /* White background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgb(19, 19, 136); /* Shadow effect */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
    margin-top: 10px;
}

/* Product image container styling */
.product-image-container {
    height: 170px; /* Fixed height for image container */
    display: flex;
    padding: 10px;
    background: #ffff; /* Light background for image area */
}

/* Product image styling */
.product-card:hover {
    transform: translateY(-5px);
}

/* Image hover effect */
.product-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Image hover effect on card hover */
.product-details {
    padding: 1.5rem;
    flex-grow: 1;
    text-align: center;
}

/* Product title styling */
.product-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #004F9F;
    text-align: left;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Product title hover effect */
.product-price {
    font-size: 1rem;
    color: #000000;
    font-weight: bold;
    margin-top: 0.5rem;
    text-align: left
}
/* Product price styling */
.product-info{

    font-size: 0.9rem;
    color: #333;
    margin-top: 0.5rem;
    text-align: left;
}
/* Product info styling */
.product-category {
    font-size: 0.9rem;
    color: #ffff;
   
    
}



/* Footer styling */
.ford-footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 40px 0 20px;
    font-family: Arial, sans-serif;
    border-top: 1px solid #e0e0e0;
   
  
  }
  
  /* Footer container for layout */
  .footer-container {
    max-width: 1200px; /* Maximum width for footer */
    margin: 0 auto; /* Center footer on the page */
    padding: 0 20px; /* Padding for footer content */
  }
  
  /* Footer main row for layout */
  .footer-main-row {
    display: flex; /* Flexbox for layout */
    flex-wrap: wrap; /* Wrap items on smaller screens */
    justify-content: space-between; /* Space between items */
  }
  
  /* Footer sections for different content */
  .footer-section {
    flex: 1; /* Take equal space */
    min-width: 150px; /* Minimum width for sections */
    padding: 0 15px; /* Padding for sections */
  }
  
  /* Footer heading styling */
  .footer-heading {
    color: #002D55; /* Heading color */
    font-size: 1.1rem; /* Font size for heading */
    margin-bottom: 15px; /* Space below heading */
    font-weight: 600; /* Font weight for heading */
  }
  
  /* Footer links styling */
  .footer-links {
    list-style: none; /* Remove default list styling */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
  }
  
  /* Footer link items styling */
  .footer-links li {
    margin-bottom: 10px; /* Space between items */
  }
  
  /* Footer link styling */
  .footer-links a {
    color: #333;
    text-decoration: none; 
    font-size: 0.9rem;
    transition: color 0.2s;
  }
  
  /* Footer link hover effect */
  .footer-links a:hover {
    color: #004F9F;
    text-decoration: underline;
  }
  
  /* Footer bottom section styling */
  .footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 30px;
    display: flex;
    flex-direction: column; /* Changed to column layout */
    gap: 20px; /* Added gap between sections */
  }
  
  /* Social Links Section */
  .social-links {
    display: flex;
    justify-content: center; /* Center social links */
    gap: 24px;
    padding-bottom: 20px 0;
    border-bottom: 1px solid #ddd; /* Divider line */
    margin-bottom: 20px;
  }
  
  /* Social links styling */
  .social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #002D55;
    text-decoration: none;
    font-size: 0.9rem; /* Font size for social links */
    font-weight: 600; /* Font weight for social links */
    transition: color 0.2s; /* Transition for color change */
    transition: all 0.2s ease; /* Transition for hover effects */
    margin-bottom: 20px;
  }
  
  /* Social links image styling */
  .social-links img {
    width: 17px;
    height: 17px;
    transition: transform 0.2s ease;
  }
  
  /* Social links hover effect */
  .social-links a:hover {
    color: #004F9F;
    text-decoration: underline;
  }
  
  /* Legal links section styling */
  .legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 0.8rem;
  }
  
  /* Legal links styling */
  .legal-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  /* Legal links hover effect */
  .copyright {
    width: 100%;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: 10px;
  }
  
  


  /* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Header adjustments */

  header {
    height: auto; /* Auto height for header */
    padding: 10px 0; /* Reduced padding for header */
  }

  .header-container {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

  /* Navigation */
  .nav-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
  }

  .nav-items a {
    font-size: 0.9rem;
    padding: 5px 10px;
  }


  .nav-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  /* Welcome section */
  .welcome {
    min-height: 400px; /* Adjusted height for mobile */
    padding: 1rem; /* Reduced padding for mobile */
  }

  .welcome::before {
    background-size: cover;  /* Cover background for mobile */
    background-position: 60% center; /* Adjust background position for mobile */
  }

  /* Products container */
  .products-container {
    flex-direction: column;   /* Stack items vertically */
    padding: 1rem 0; /* Reduced padding for mobile */
    margin: 1rem 0; /* Reduced margin for mobile */
    
  }

  /* Categories panel */
  .categories-panel {
    width: 100%; /* Full width for mobile */
    height: auto; /* Auto height for categories panel */
    margin: 0; /* No margin for mobile */
    padding: 1rem;  /* Reduced padding for mobile */
    border-right: none; /* No border for mobile */
    border-bottom: 1px solid #ddd; /* Bottom border for mobile */
    align-items: center; /* Center items vertically */
  }

  .category-list {
    flex-direction: row; /* Row layout for categories */
    flex-wrap: wrap; /* Wrap categories on smaller screens */
    justify-content: center; /* Center categories */
  }

  .category-item {
    margin: 0.25rem; /* Reduced margin for mobile */
    padding: 0.5rem; /* Reduced padding for mobile */
  }

  /* Products grid */
  .products-grid {
    padding: 1rem; /* Reduced padding for mobile */
  }

  .products-row {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjusted columns for mobile */
    gap: 1rem; /* Reduced gap for mobile */
  }

  /* Footer adjustments */
  .footer-main-row {
    flex-direction: column;   /* Stack items vertically */
  }

  .footer-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1.5rem; /* Padding for sections */
  }

  .footer-heading {
    margin-bottom: 0.5rem; /* Space below heading */
  }

  .social-links {
    flex-wrap: wrap;
    gap: 15px; /* Reduced gap for mobile */
    padding: 15px 0; /* Reduced padding for mobile */
  }

  .legal-links {
    flex-direction: column; /* Stack legal links vertically */
    align-items: center; /* Center items */
    gap: 10px;
  }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
  /* Header */
  header {
    height: auto; /* Auto height for header */
    padding: 10px 0; /* Reduced padding for header */
  }



  header-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }

  
  
  .ford-icon {
    height: 40px; /* Adjusted logo height for mobile */
  }

  /* Welcome section */
  .welcome {
    min-height: 300px;
  }

  /* Products grid */
  .products-row {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  .product-card {
    max-width: 100%; /* Full width for product card */
  }

  /* Footer */
  .footer-links li {
    margin-bottom: 5px; /* Reduced space between items */
  }
  .social-links a {
    font-size: 0.8rem; /* Smaller font size for mobile */
  }
}
