/* ============================================================
   MODELS PAGE STYLES — Jackson Group Isuzu
   ============================================================ */

:root {
  --isuzu-red: #cc0000;
  --black: #111;
  --white: #fff;
  --gray-light: #f5f5f5;
  --gray-dark: #333;
  --font-main: 'Arial', sans-serif;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.models-hero {
  background-image: url('../images/models-hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
}

.models-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.models-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.models-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.models-hero p {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero-btn {
  background-color: var(--isuzu-red);
  color: var(--white);
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
  background-color: #a80000;
  transform: translateY(-2px);
}

/* ============================================================
   MODELS SECTION
   ============================================================ */
.models {
  background-color: var(--gray-light);
  padding: 3rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ============================================================
   MODEL CARD LAYOUT
   ============================================================ */
/* =========================================
   MODEL CARDS
========================================= */
.models {
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.model-card {
  display: flex;
  flex-direction: row;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.model-card:hover {
  transform: translateY(-6px);
}

.model-image {
  width: 45%;
  object-fit: cover;
}

.model-content {
  padding: 2rem;
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.model-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.model-content ul {
  margin-bottom: 1.5rem;
}

.model-content li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

/* =========================================
   BUTTON PAIRS (BROCHURE + TECH SPECS)
========================================= */
.button-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.btn.small {
  font-size: 0.75rem; /* smaller to fit text on one line */
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background-color: #555;
  color: #fff;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap; /* prevents text from wrapping */
}

.btn.small:hover {
  background-color: #333;
}

/* ============================================================
   BUTTON STYLING
   ============================================================ */
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn {
  text-decoration: none;
  background-color: var(--isuzu-red);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #a80000;
  transform: translateY(-2px);
}

.secondary {
  background-color: #555;
  color: var(--white);
}

.secondary:hover {
  background-color: #333;
}

.small {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

/* ============================================================
   DROPDOWN STYLING
   ============================================================ */
.dropdown-btn {
  background-color: var(--isuzu-red);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: 100%;
  text-align: center;
}

.dropdown-btn:hover {
  background-color: #a80000;
}

.dropdown-content {
  display: none;
  background-color: var(--white);
  padding: 1.2rem;
  border-radius: 6px;
  margin-top: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content h4 {
  color: var(--isuzu-red);
  margin-bottom: 0.5rem;
}

.dropdown-content p {
  color: var(--gray-dark);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
  .model-card {
    flex-direction: column;
  }

  .model-image {
    width: 100%;
    height: 220px;
  }

  .model-content {
    width: 100%;
    padding: 1.5rem;
  }

  .button-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn.small {
    font-size: 0.7rem; /* slightly smaller for mobile */
    padding: 0.5rem 0.8rem;
  }

  .dropdown-btn {
    border-radius: 0;
  }
}