/* 
 * template-why-book-with-us.css - MAXIMUM CONTRAST VERSION
 * Extreme high contrast for perfect readability on dark backgrounds
 */

/* Use the main site fonts - Raleway for headings, Open Sans for body text */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@500;600;700&family=Open+Sans:wght@400;600;700&display=swap');

/* Main section styling */
#why-book-with-us {
  background-color: #0a0a14;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0.95)), url('../images/slider/heritage-srilanka-main-slider.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 45px 0;
  margin-top: -1px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Left Column Styles */
.why-book-left {
  padding: 15px 35px;
}

.why-book-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-height: 550px;
  overflow: hidden;
}

/* HIGH CONTRAST TEXT STYLES */
.section-title {
  color: #ffffff; /* Pure white */
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 12px;
  letter-spacing: 0.3px;
  font-family: 'Raleway', sans-serif;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Strong shadow for contrast */
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px; /* Thicker line */
  background-color: #00ccff; /* Bright cyan for maximum visibility */
}

/* Add high-contrast class for regular body text */
.high-contrast {
  color: #ffffff !important; /* Force white */
  font-weight: 500 !important; /* Semi-bold for better visibility */
  text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important; /* Strong shadow */
}

.section-description {
  font-size: 1rem; /* Larger font */
  line-height: 1.7; /* Increased line height */
  margin-bottom: 18px;
  letter-spacing: 0.2px;
  font-family: 'Open Sans', sans-serif;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.feature-list li {
  font-size: 1rem; /* Larger font */
  padding: 5px 0;
  display: flex;
  align-items: center;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 5px; /* Added spacing between items */
}

.feature-list li i {
  color: #00ccff; /* Bright cyan */
  margin-right: 10px;
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8)); /* Shadow for the icon */
}

.why-book-btn {
  background-color: #00ccff; /* Bright cyan */
  border-color: #00ccff;
  color: #000000; /* Black text for contrast on bright button */
  font-weight: 700; /* Bold for better visibility */
  padding: 10px 25px; /* Wider button */
  margin-top: auto;
  transition: all 0.3s ease;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem; /* Larger font */
  position: relative;
  overflow: hidden;
  z-index: 1;
  align-self: flex-start;
  box-shadow: 0 5px 15px rgba(0, 204, 255, 0.4); /* Glowing effect */
  font-family: 'Open Sans', sans-serif;
}

.why-book-btn:hover {
  background-color: #ffffff; /* White on hover for maximum contrast */
  border-color: #ffffff;
  color: #000000; /* Black text */
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5); /* Stronger glow on hover */
}

/* Middle Column Styles */
.why-book-middle {
  height: 600px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.featured-image-container {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.featured-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.8s ease;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0) 100%); /* Solid black at bottom */
  padding: 30px 25px;
}

.overlay-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Strong shadow */
}

.overlay-content p {
  font-size: 1rem; /* Larger font */
  margin-bottom: 0;
  font-style: italic;
  line-height: 1.6;
  max-width: 95%;
  letter-spacing: 0.2px;
  font-family: 'Open Sans', sans-serif;
}

/* Right Column Styles */
.why-book-right {
  padding: 15px 35px;
  background-color: rgba(0, 0, 0, 0.9); /* Nearly solid black */
  position: relative;
}

.why-book-right:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px; /* Thicker line */
  height: 100%;
  background: linear-gradient(to bottom, transparent, #00ccff, transparent); /* Bright cyan */
}

.feature-cards-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  max-height: 550px;
  overflow: hidden;
}

.feature-card {
  background-color: rgba(10, 10, 20, 0.95); /* Very dark with slight transparency */
  border-radius: 4px; /* Slight rounding */
  padding: 20px; /* More padding */
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  border: 1px solid rgba(0, 204, 255, 0.1); /* Slight cyan border */
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px; /* Thicker line */
  height: 0;
  background: #00ccff; /* Bright cyan */
  transition: height 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 204, 255, 0.3); /* More visible border on hover */
}

.feature-card:hover:before {
  height: 100%;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; /* Larger icon */
  height: 54px;
  border-radius: 50%;
  background-color: rgba(0, 204, 255, 0.15); /* Bright cyan background */
  color: #00ccff; /* Bright cyan */
  font-size: 1.5rem;
  margin-right: 15px;
  flex-shrink: 0;
  transition: all 0.4s ease;
  border: 2px solid rgba(0, 204, 255, 0.3); /* More visible border */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

.feature-card:hover .feature-icon {
  background-color: #00ccff; /* Bright cyan */
  color: #000000; /* Black for contrast */
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 15px rgba(0, 204, 255, 0.5); /* Glowing effect */
}

.feature-text {
  flex: 1;
}

.feature-text h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #ffffff; /* Pure white */
  font-weight: 700; /* Bold for visibility */
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  font-family: 'Raleway', sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8); /* Shadow for contrast */
}

.feature-text p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
  letter-spacing: 0.2px;
  font-family: 'Open Sans', sans-serif;
}

.feature-card:hover .feature-text h4 {
  color: #00ccff; /* Bright cyan */
}

/* Light Theme Styles */
body.light-theme #why-book-with-us {
  background-color: #f8f9fa;
  background-image: linear-gradient(to right, rgba(248, 249, 250, 0.97), rgba(248, 249, 250, 0.95)), url('../images/slider/heritage-srilanka-main-slider.jpg');
  border-bottom: 1px solid #dee2e6;
}

body.light-theme .section-title {
  color: #000000;
  text-shadow: none;
}

body.light-theme .high-contrast {
  color: #000000 !important;
  text-shadow: none !important;
}

body.light-theme .section-title:after,
body.light-theme .why-book-right:before,
body.light-theme .feature-card:before {
  background-color: #00ccff;
}

body.light-theme .feature-list li i {
  color: #00ccff;
  filter: none;
}

/* Responsive adjustments remain the same */
@media (max-width: 991.98px) {
  .why-book-middle {
    height: 400px;
    order: 1;
  }
  
  .why-book-left {
    order: 2;
  }
  
  .why-book-right {
    order: 3;
  }
  
  .feature-cards-container, .why-book-content {
    max-height: none;
  }
}