/* Enhanced Promotions Page Styling */

/* Fix for promotion images to ensure they're fully displayed */
.promotion-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .promotion-card {
    flex-direction: row;
    max-height: none; /* Remove any max-height constraints */
  }
}

.promotion-image {
  flex: 1;
  min-width: 300px;
  max-width: 450px; /* Limit width on larger screens */
  height: auto; /* Allow height to adjust naturally */
  display: flex; /* Use flexbox for centering */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f9f9f9;
}

.promotion-image img {
  width: 100%;
  height: auto; /* Allow height to adjust based on aspect ratio */
  object-fit: contain; /* Change from cover to contain to show full image */
  max-height: 300px; /* Set a reasonable max height */
  padding: 0; /* Remove any padding */
  display: block; /* Remove any extra space below image */
}

/* Enhanced promotion details */
.promotion-details {
  flex: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.promotion-details h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.promotion-details h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.promotion-highlights {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.promotion-highlights li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.promotion-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.promotion-details .btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background: var(--primary-gradient);
  color: var(--text-dark);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.promotion-details .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(248, 183, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .promotion-image {
    max-width: 100%;
    height: 200px; /* Fixed height on mobile */
  }
  
  .promotion-image img {
    max-height: 200px;
  }
}

/* Enhanced Terms and Conditions Section */
.terms-section {
  background-color: #f9f9f9;
  padding: 5rem 1rem;
  position: relative;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f8b700' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.terms-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
}

.terms-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.terms-icon {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.8rem;
  vertical-align: middle;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

.terms-section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.terms-content {
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
  max-width: 900px;
  margin: 0 auto;
}

.terms-content:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.terms-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.terms-content ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style-type: none;
}

.terms-content li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.terms-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: bold;
}

.terms-content li:hover {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

.terms-disclaimer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  font-style: italic;
  color: #777;
  font-size: 0.9rem;
  text-align: center;
}

/* Page header enhancements */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/banner.jpeg');
  background-size: cover;
  background-position: center;
  padding: 5rem 1rem;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: white;
  line-height: 1.6;
}
